Skip to content

Reject an emptied reply as an invalid receipt, not an incomplete one - #115

Open
owizdom wants to merge 1 commit into
Lucid-Computing:mainfrom
owizdom:owizdom/verifier-empty-reply
Open

owizdom wants to merge 1 commit into
Lucid-Computing:mainfrom
owizdom:owizdom/verifier-empty-reply

Conversation

@owizdom

@owizdom owizdom commented Nov 27, 2026 •

Copy link
Copy Markdown

Change

The holder verifier returned exit 13 (INCOMPLETE) for a bundle whose reply_token_ids had been replaced with [], even with its log history removed and its text changed. The empty-list check in verifier/holder.py ran before the transcript commitment and history checks.

No receipt can commit to an empty reply, because transcript_commitment refuses one. The docs reserve INCOMPLETE for otherwise-valid bundles (RFC-0007, auditor/README.md:27), and the auditor's intake already rejects this bundle as invalid_bundle.

With the early return removed, raw_ids rejects the empty list and the verifier exits 10 (RECEIPT_INVALID). Signed incomplete replies such as (2,) still exit 13.

Verification

Checked on macOS arm64 with Python 3.13.18. The new test fails on eccb15e with 13 != 10 and passes here. make test-unit runs 461 tests, OK, 26 skipped. make lint and make docs-check pass.

The holder verifier returned exit 13 (INCOMPLETE) for a bundle with a
validly signed receipt and matching input whose reply_token_ids was an
empty list, before it recomputed the transcript commitment or checked
history. No receipt commits to an empty reply, so such a bundle is
invalid evidence (exit 10), as the auditor's intake already treats it.
@owizdom
owizdom force-pushed the owizdom/verifier-empty-reply branch from 447d340 to d0ef905 Compare November 27, 2026 13:43
@owizdom
owizdom marked this pull request as ready for review November 27, 2026 13:51
owizdom added a commit to owizdom/akashi that referenced this pull request Nov 27, 2026
The verifier fix in Lucid-Computing#115 adds its line at the top of the same list.

This branch has not been deployed

No deployments
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