Skip to content

fix(evidence): pin the evidence-record verify non-claim and name the receipt's producer (#4307) - #4947

Merged
EffortlessSteven merged 4 commits into
mainfrom
fix/4307-evidence-record-route
Sep 30, 2026
Merged

EffortlessSteven merged 4 commits into
mainfrom
fix/4307-evidence-record-route

Conversation

@EffortlessSteven

@EffortlessSteven EffortlessSteven commented Sep 30, 2026 •

Copy link
Copy Markdown
Member

What this does

An actionable evidence record (repo-exposure, gap ledger, editor gap cockpit, gate gap-record route) offers a verify_command that prints to stdout over target/ripr/pilot/* snapshots beside a receipt that reads target/ripr/workflow/agent-verify.json, so the printed pair is not a persisted chain (#4307). The issue's fork allows persisting the chain or a written non-claim with the reason.

Change: this PR implements the written non-claim at the code owner and repairs the two adjacent truthfulness gaps. VERIFY_COMMAND now carries the contract: the display stays Direct over the pilot snapshots ripr pilot actually writes, because a redirect would retype the route shell_required and leave record-backed packets with zero executable routes for the bounded agent verify-execute authority, would be refused by the editor gap-cockpit safety filter (#4225/#4239), and would embed the rendering working directory into stored snapshots. agent receipt with a missing --verify-json artifact now names its producing command in the error, built by the shared loop-command builder so the hint cannot drift from the workflow verify shape — and the hint is scoped to the workflow artifact the dispatch loop owns, because a custom verify path's producing pair is unknowable at the receipt. docs/AGENT_DISPATCH_WORKFLOW.md's fallback block names the analysis-outcome.json step a complete receipt reads; no earlier doc covered it (#4334 reconciled receipt flows without it).

Fork decision, with executed evidence: the persisted shapes were attempted first and reverted. Workflow snapshots plus an anchored redirect failed 6 cli_smoke verify-execute journeys (typed-vs-display reproducibility refusal, then verification_rejected_policy with zero executable routes); a Direct workflow-snapshot display failed the same journeys on input resolution, because only the pilot namespace is producer-maintained in the record's context. A root-contained agent verify --out remains the proposed future owner of a persisted chain on this route. The review-card guidance route (pr_review_front_panel, #4940) is the complementary persisted surface: its context maintains the workflow snapshots, so its card verify redirects to the artifact its receipt reads.

Branch state: the branch carries two merges of main (the second brings #4940/#4939/#4936; the evidence-record non-claim and the card redirect are independent surfaces of the same #4307 fork and needed no semantic repair against each other) and one review-repair commit (67516c1f1): scoped producer hint plus a no-unrelated-producer boundary test, and the repo-exposure→gap-record bridge pin, both from this PR's review threads.

Verification

All rows executed on head 0f4f15a84 (Windows host, native):

Check Result
actionable_verify_stays_direct_over_producer_maintained_pilot_snapshots pass (executed red witness at the fork decision: redirect mutant fails)
missing_receipt_verify_error_names_the_producing_command pass (workflow artifact names its producer; redirect lands on the looked-for path)
missing_custom_receipt_verify_error_names_no_unrelated_producer pass (executed red witness against the unconditional hint: custom path inherits the workflow pair)
gap_record_carry_keeps_the_direct_verify_and_the_receipt_input pass (gate carry keeps the pair verbatim, Direct, no redirect)
repo_exposure_seam_carries_the_record_verify_and_receipt_identity pass (ledger bridge carries the record identity verbatim)
output::evidence_record::tests:: 42 passed
output::gate:: 106 passed
cli::commands_agent_support:: 11 passed
output::gap_decision_ledger:: 104 passed
cli_smoke verify-execute journeys (6) 6 passed
cargo test -p ripr --lib 7187 passed, 1 failed: git::tests::native_git_spawn_with_empty_path_names_the_missing_binary — host-premise refusal ("missing-binary premise no longer holds on this host"); reproduced identically on exact origin/main; surface byte-identical to base
cargo test -p ripr --test cli_smoke 289 passed, 2 failed: advisory_write_safety ten-second budget under full-suite host load; both pass in isolation, and the full-suite failures reproduce identically on exact origin/main
cargo xtask goldens check pass; no golden drift
cargo xtask check-output-contracts pass
cargo fmt --check clean
cargo clippy --workspace --all-targets -- -D warnings clean (the previously inherited map_err_ignore at output/markdown.rs:838 no longer fires after the main merges)

Review map

  • output/evidence_record.rs VERIFY_COMMAND: the non-claim contract and its reason; the display itself is unchanged from base.
  • output/evidence_record.rs tests: the Direct/pilot discriminator and the typed-spec shape that keeps verify-execute executable.
  • cli/commands_agent_support.rs validate_agent_receipt_verify_path: the producer-naming error, scoped to the workflow artifact; the hint's redirect lands on the receipt's own missing path; the custom-path boundary test.
  • output/gate/repair_route.rs tests: the gap-record carry pin.
  • output/gap_decision_ledger.rs tests: the record→ledger bridge identity pin.
  • docs/AGENT_DISPATCH_WORKFLOW.md: the fallback block gains the analysis-outcome step.

Devin Review

…receipt's producer (#4307)

The evidence-record route's actionable verify display stays Direct over the
pilot snapshots its producing flow maintains, and a new contract documents
why it must not gain a redirect: the bounded agent verify-execute authority
executes Direct leaf verify routes only (packets built from these records
are its producer-owned input, so a redirected display leaves them with zero
executable routes), the editor gap-cockpit safety filter refuses any '>'
payload (#4225/#4239), and an anchored redirect would embed the rendering
process's working directory into stored snapshots and baselines. The
accepted written non-claim (#4307 fork) is now encoded at the code owner
with a discriminator test; the gate gap-record carry route gains the same
pin. Recovery for a missing verify artifact stays 'ripr agent status'; a
root-contained 'agent verify --out' remains the proposed future chain owner.

A receipt whose --verify-json artifact is missing now names its producing
command in the error, built by the shared loop-command builder so the hint
cannot drift from the workflow verify shape, and the hint's redirect lands
exactly where the receipt looked. The dispatch workflow fallback block now
names the analysis-outcome.json step a complete receipt reads beside the
verify artifact; no earlier doc covered it (#4334 reconciled receipt flows
without it).

Attempted-and-reverted persisted shapes, with executed evidence: workflow
snapshots plus an anchored redirect failed 6 cli_smoke verify-execute
journeys (typed-vs-display reproducibility refusal, then zero executable
routes); a workflow-snapshot Direct display failed the same journeys on
input resolution because only the pilot namespace is producer-maintained in
the record's context.
@coderabbitai

coderabbitai Bot commented Sep 30, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Advanced

Run ID: 39ac7623-2f6b-428d-ab4a-78d194558ed3

📥 Commits

Reviewing files that changed from the base of the PR and between 96b2a73 and 0f4f15a.

📒 Files selected for processing (5)
  • crates/ripr/src/cli/commands_agent_support.rs
  • crates/ripr/src/output/evidence_record.rs
  • crates/ripr/src/output/gap_decision_ledger.rs
  • crates/ripr/src/output/gate/repair_route.rs
  • docs/AGENT_DISPATCH_WORKFLOW.md

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.


Summary by CodeRabbit

  • Bug Fixes
    • Missing workflow verify artifacts now include a relevant command hint. Missing custom verify paths show the canonicalization error without an unrelated hint.
  • Documentation
    • Clarified that ripr check produces the analysis-outcome JSON artifact to write before running agent verify and agent receipt.
    • Clarified the distinction between pilot verification and the workflow verify artifact used by receipt commands.

Walkthrough

The changes add conditional producer-command guidance for missing workflow verify artifacts, test verify and receipt command preservation across output records and routes, and update agent dispatch instructions to write an analysis-outcome artifact.

Changes

Agent verify and receipt workflow

Layer / File(s) Summary
Verify and receipt command representation
crates/ripr/src/output/evidence_record.rs, crates/ripr/src/output/gap_decision_ledger.rs, crates/ripr/src/output/gate/repair_route.rs
Documentation describes Direct pilot-snapshot verification separately from the workflow verify artifact. Tests check that records and rendered routes preserve verify and receipt commands, and that receipts use the workflow verify artifact.
Missing verify artifact handling
crates/ripr/src/cli/commands_agent_support.rs
A producer command is included after canonicalization fails only when the requested path is the workflow verify artifact. Tests cover workflow and custom verify paths.
Dispatch workflow instructions
docs/AGENT_DISPATCH_WORKFLOW.md
The instructions add a ripr check command that writes analysis-outcome.json before the agent verify and receipt steps.

Priority: ⬇️ Low

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix

Merge Risk: ⚪ Minimal · up to 0f4f1

The change clarifies verification and receipt workflows and avoids misleading producer hints for custom paths. No actionable merge-blocking risk is established; merge after normal checks.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description gives a detailed change summary, scope rationale, verification results, and review map. However, it omits most required template sections, including swarm/source boundary, source-of-tr… Restructure the description using the repository template. Add or explicitly mark as not applicable all missing sections, including source links, candidate relationships, scope and non-goals, support and policy impact, claim boundary, rollb…
✅ Passed checks (4 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed Docstring coverage is 92.31% which is sufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 13 functions across 4 files. (1 skipped: 1 …
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Title check ✅ Passed The title clearly identifies the main changes: the evidence-record verify non-claim and the receipt producer hint.
Full details: Description check

Explanation

The description gives a detailed change summary, scope rationale, verification results, and review map. However, it omits most required template sections, including swarm/source boundary, source-of-truth links, candidate relationships, scope classification, support-tier impact, policy impact, rollback, traceability, static language, CI economics, engineering checks, and the complete gates checklist.

Resolution

Restructure the description using the repository template. Add or explicitly mark as not applicable all missing sections, including source links, candidate relationships, scope and non-goals, support and policy impact, claim boundary, rollback, traceability, engineering checks, CI economics, and required gates. Preserve the existing summary and verification evidence.

  • Fix all pre-merge checks with AI
✨ Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR

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

A rabbit checks the snapshots bright,
Then keeps the receipt path right.
No custom path gets hints misplaced,
The workflow steps are now well traced.
I nibble clover, pleased tonight.

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

@gemini-code-assist gemini-code-assist 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.

Code Review

This pull request enhances the error reporting and architectural consistency of the agent receipt verification workflow. When the agent receipt verification path fails to canonicalize, the error message now explicitly names the producing command and its expected redirect target. Additionally, the PR introduces unit tests to ensure that the verify command remains direct (without redirects) to satisfy safety filters and execution authority requirements, and updates the documentation to include the necessary analysis outcome generation step. No review comments were provided, so there is no additional feedback.

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Devin Review found 2 potential issues.

Devin Review

…ord-route

# Conflicts:
#	crates/ripr/src/cli/commands_agent_support.rs
#	crates/ripr/src/output/evidence_record.rs
…and pin the ledger bridge (#4307)

Review-thread repairs on this PR. The receipt's missing-verify producer
hint is only real for the workflow artifact the dispatch loop owns; a
custom verify path's producing snapshot pair is unknowable at the
receipt, so the error now names no producer there (executed red witness:
the boundary test fails on the unconditional hint with the workflow pair
steering comparisons/verify.json). The repo-exposure to gap-record
bridge now pins the record verify/receipt identity carry verbatim —
Direct pilot verify, workflow-artifact receipt — so the gate carry pin
cannot be reentered from the bridge side.
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