Skip to content

feat(list): expose receipt-backed Droid attestation - #122

Closed
swaynehales wants to merge 4 commits into
aannoo:mainfrom
swaynehales:fix/nrm-050-droid-attestation
Closed

swaynehales wants to merge 4 commits into
aannoo:mainfrom
swaynehales:fix/nrm-050-droid-attestation

Conversation

@swaynehales

@swaynehales swaynehales commented Sep 2, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • expose receipt-backed Droid adapter attestation in hcom list
  • require an addressed request followed by a current-generation UserPromptSubmit or Stop adapter receipt
  • keep display tags out of the attestation decision
  • accept only exact or adjacent IEEE-754 generation values to tolerate empirically bounded default-parser drift

Verification

  • cargo fmt --all -- --check
  • cargo clippy --all-targets --all-features --locked -- -D warnings
  • cargo test --all-targets --locked — 2,214 passed; 16 ignored

This is forgeable same-user local receipt evidence, not authentication. nurmterm owns adapter receipt-schema churn. Human list currently performs two receipt-history lookups per instance; that tradeoff is called out for maintainer review.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 2, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-02T02:13:51.150164Z f7ae772 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: f7ae7720ed

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/db/events.rs
Comment on lines +145 to +149
let addressed = ["delivered_to", "mentions"].iter().any(|field| {
request
.get(field)
.and_then(|v| v.as_array())
.is_some_and(|values| values.iter().any(|v| v.as_str() == Some(name)))

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Exclude broadcasts from addressed receipt evidence

For a normal broadcast, resolve_delivery records every recipient in delivered_to even though the message is not directed to any of them (src/commands/send.rs:311-318). Consequently, an adapter receipt referencing a broadcast makes this predicate true and exposes adapter_attestation: "droid" without an addressed request. Require mention scope (and recipient membership) rather than treating any delivered_to entry as direct evidence.

Useful? React with 👍 / 👎.

@coderabbitai

coderabbitai Bot commented Sep 16, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Advanced

Run ID: 635ef2da-9ff8-4561-ad51-88c013d9dcd4

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Comment @coderabbitai help to get the list of available commands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant