Repository navigation
fix(evidence): pin the evidence-record verify non-claim and name the receipt's producer (#4307) - #4947
Conversation
…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.
|
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 configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Advanced Run ID: 📒 Files selected for processing (5)
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
WalkthroughThe 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. ChangesAgent verify and receipt workflow
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix Merge Risk: ⚪ Minimal · up to 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)
✅ Passed checks (4 passed)
Full details: Description checkExplanation 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.
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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. A rabbit checks the snapshots bright, Comment |
There was a problem hiding this comment.
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.
…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.
What this does
An actionable evidence record (repo-exposure, gap ledger, editor gap cockpit, gate gap-record route) offers a
verify_commandthat prints to stdout overtarget/ripr/pilot/*snapshots beside a receipt that readstarget/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_COMMANDnow carries the contract: the display stays Direct over the pilot snapshotsripr pilotactually writes, because a redirect would retype the routeshell_requiredand leave record-backed packets with zero executable routes for the boundedagent verify-executeauthority, would be refused by the editor gap-cockpit safety filter (#4225/#4239), and would embed the rendering working directory into stored snapshots.agent receiptwith a missing--verify-jsonartifact 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 theanalysis-outcome.jsonstep 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_smokeverify-execute journeys (typed-vs-display reproducibility refusal, thenverification_rejected_policywith 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-containedagent verify --outremains 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):actionable_verify_stays_direct_over_producer_maintained_pilot_snapshotsmissing_receipt_verify_error_names_the_producing_commandmissing_custom_receipt_verify_error_names_no_unrelated_producergap_record_carry_keeps_the_direct_verify_and_the_receipt_inputrepo_exposure_seam_carries_the_record_verify_and_receipt_identityoutput::evidence_record::tests::output::gate::cli::commands_agent_support::output::gap_decision_ledger::cli_smokeverify-execute journeys (6)cargo test -p ripr --libgit::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 exactorigin/main; surface byte-identical to basecargo test -p ripr --test cli_smokeadvisory_write_safetyten-second budget under full-suite host load; both pass in isolation, and the full-suite failures reproduce identically on exactorigin/maincargo xtask goldens checkcargo xtask check-output-contractscargo fmt --checkcargo clippy --workspace --all-targets -- -D warningsmap_err_ignoreatoutput/markdown.rs:838no longer fires after the main merges)Review map
output/evidence_record.rsVERIFY_COMMAND: the non-claim contract and its reason; the display itself is unchanged from base.output/evidence_record.rstests: the Direct/pilot discriminator and the typed-spec shape that keeps verify-execute executable.cli/commands_agent_support.rsvalidate_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.rstests: the gap-record carry pin.output/gap_decision_ledger.rstests: the record→ledger bridge identity pin.docs/AGENT_DISPATCH_WORKFLOW.md: the fallback block gains the analysis-outcome step.