Skip to content

feat: verify receipt v3 evidence (v3-core) - #63

Merged
luckyPipewrench merged 9 commits into
mainfrom
feat/receipt-v3-core
Nov 28, 2026
Merged

luckyPipewrench merged 9 commits into
mainfrom
feat/receipt-v3-core

Conversation

@luckyPipewrench

@luckyPipewrench luckyPipewrench commented Nov 28, 2026 •

Copy link
Copy Markdown
Member

What changed

  • pipelock-verify verifies Pipelock receipt v3 evidence through a new v3 command and the pipelock_verify.v3 API, using the v3-core verifier synced from Pipelock commit 89ba9038a (recorded in pipelock_verify/v3/SOURCE). It produces the same verify_result document and exit codes as Pipelock's other verifiers. A directory or file list that also holds legacy (v1/v2) evidence returns USE_HOST_VERIFIER with an unsupported verdict and exit 3, pointing to pipelock verify-receipt --chain <dir>; no flag turns that into success. Existing v1 and v2 commands and APIs are unchanged.
  • The shared receipt v3 test corpus from the same Pipelock commit is included as tests, and the version moves to 0.5.0.

Summary by CodeRabbit

  • New Features
    • Added Receipt v3-core verification through the command line and Python API, including checks for signed evidence and verification expectations.
    • Verification can process evidence directories and produce results or structured projections.
    • Mixed legacy evidence that requires host verification is identified with an unsupported verdict and guidance to use the host verifier.
  • Documentation
    • Added guidance for Receipt v3-core verification, supported inputs, and handling evidence that requires host verification.
  • Packaging
    • Updated the release version to 0.5.0 and included conformance tests and fixtures in package distributions.

@coderabbitai

coderabbitai Bot commented Nov 28, 2026 •

Copy link
Copy Markdown

Explain Change →

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: f8504ae2-0d19-4aeb-a6ec-99a9cdc11008
Walkthrough

[!WARNING]
Review details and warnings were omitted to fit the comment limit.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Comment thread pipelock_verify/v3/decision.py Fixed
Comment thread pipelock_verify/v3/decision.py Fixed
Comment thread pipelock_verify/v3/verify.py Fixed
Comment thread pipelock_verify/v3/verify.py Fixed
Comment thread pipelock_verify/v3/verify.py Fixed
Comment thread pipelock_verify/v3/verify.py Fixed
Comment thread pipelock_verify/v3/wire.py Fixed
datetime.fromisoformat accepts a trailing Z only from Python 3.11, so on
3.10 every v3 timestamp failed the schema check. Pass the equivalent
+00:00 form; the timestamp pattern already requires the Z.
@luckyPipewrench luckyPipewrench self-assigned this Nov 28, 2026
@luckyPipewrench

Copy link
Copy Markdown
Member Author

/review

@github-actions

github-actions Bot commented Nov 28, 2026 •

Copy link
Copy Markdown

The requested diff review didn't complete. Treat this run as incomplete. Inspect and fix the diagnosed cause before a fresh review command on the current snapshot; Actions reruns are refused.

Captured base a098ae98613ad8aea2fb93a747348081b1c56817 and head c0cf75e3fe13fb7e276ee7630816942143d1bd71.

Actions run.

Import appraise where it is used so the verifier has no module-level
import cycle, import the sqlite3 module once for annotations and use,
explain the intentional fall-through in head_expectation, and return the
default after each match statement. Behaviour is unchanged; the local
changes are recorded in pipelock_verify/v3/SOURCE.
The 1,929 shared corpus files from Pipelock 89ba9038a move into one
deterministic archive whose digest the test pins before unpacking it, so
the source diff stays within hosted review limits. Also check that the
v3 modules import in either order.
Comment thread pipelock_verify/v3/decision.py Fixed
Comment thread pipelock_verify/v3/verify.py Fixed
Comment thread pipelock_verify/v3/verify.py Fixed
decision.py no longer imports verify for its two annotation-only types,
so the modules form no cycle and verify imports decision at module level
as upstream does. The scratch database keeps its single deferred sqlite3
import. Behaviour is unchanged.
@luckyPipewrench

Copy link
Copy Markdown
Member Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Action not completed

Head commit changed.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@luckyPipewrench
luckyPipewrench merged commit d46d286 into main Nov 28, 2026
14 checks passed
@luckyPipewrench
luckyPipewrench deleted the feat/receipt-v3-core branch November 28, 2026 18:52
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.

2 participants