Skip to content

fix(output): bind receipt fallback to selected proof - #3196

Merged
EffortlessSteven merged 2 commits into
mainfrom
agent/front-panel-receipt-currentness
Aug 12, 2026
Merged

EffortlessSteven merged 2 commits into
mainfrom
agent/front-panel-receipt-currentness

Conversation

@EffortlessSteven

@EffortlessSteven EffortlessSteven commented Aug 12, 2026 •

Copy link
Copy Markdown
Member

Summary

  • keep a selected proof's usable receipt status authoritative
  • admit parsed same-path receipt content only when seam, movement, lifecycle, and available classes agree with the selected proof
  • fail closed when regenerated improved content occupies the selected unchanged proof's receipt path
  • retain the valid current same-path unchanged fallback and pin JSON/Markdown corpus parity

Swarm / Source Boundary

  • ordinary feature, analyzer, editor, docs, spec, fixture, badge, dependency, or repo-ops development for ripr-swarm
  • repair or follow-up for a same-repo swarm PR
  • swarm-only CI, runner, routing, source-of-truth, or agent-operating surface
  • other swarm-scoped work:

Source-of-truth Links

Proposal: n/a
Spec: docs/specs/RIPR-SPEC-0023-pr-review-front-panel-report.md
ADR: n/a
Plan item: n/a
Active goal: n/a
Issue: Closes #3195; Refs #3186; follow-up to #3190

Scope

#3190 merged at 2be255694741953fae3527ea28e4d49051ce77dc before its substantive P1 repair was published. This follow-up carries only that residual front-panel receipt-fallback authority repair on current main.

Scope Classification

This PR is scoped by:

  • One production behavior
  • One public contract
  • One architectural seam
  • Docs/spec/test-only evidence package
  • Other:

Production delta:

  • selected proof receipt.status remains the first authority
  • parsed receipt fallback requires exact artifact path plus matching seam, movement, lifecycle, and any available before/after classes
  • mismatched same-path regenerated content fails closed to receipt_missing

Evidence/support delta:

  • adds direct valid-current and regenerated-stale same-path oracles
  • adds retained stale-same-path JSON/Markdown fixture corpus coverage

Single acceptance criterion:

  • parsed receipt content cannot combine an unchanged selected proof with regenerated improved same-path movement

Non-goals:

  • no change to fix(output): keep mixed health repairs visible #3190 proof ranking or mixed-health routing
  • no analyzer, classifier, schema, gate, workflow, editor, mutation-runtime, or release changes
  • no broader receipt freshness claim outside this front-panel fallback

Support-tier Impact

  • none
  • updates docs/status/SUPPORT_TIERS.md
  • changes a README, release, docs, CLI, JSON, editor, CI, or package claim

Claim/proof notes:

  • advisory front-panel projection honesty only

Policy Impact

  • none
  • doc artifacts
  • CI lane
  • package boundary
  • lint / Clippy
  • no-panic
  • file policy
  • generated artifact
  • dependency
  • process/network

Ledger or exception notes:

  • no new exception

Proof

cargo test -p ripr --lib output::pr_review_front_panel::tests::selected_proof_rejects_regenerated_same_path_receipt_fallback -- --exact --nocapture
cargo test -p ripr --lib output::pr_review_front_panel::tests -- --nocapture
cargo xtask check-fixture-contracts
cargo xtask check-output-contracts
cargo xtask check-static-language
cargo xtask check-evidence-promotion-honesty
cargo xtask goldens check
cargo xtask dogfood
cargo xtask precommit
git diff --check

Result, failures, or skipped proof:

  • exact candidate: 0fb638fadbbd19db11688b3ce377bfbdc152ec4f
  • integration basis: current origin/main c0a86ff9a42beeb2bc13722efcf417e9fa211b1a
  • current-main reproduction: temporary restoration of fix(output): keep mixed health repairs visible #3190's path-only admission made the discriminating exact test fail, exit 101, 0 passed; 1 failed, because receipt_missing was absent
  • repaired exact oracle: pass, 1 passed; 0 failed; 4171 filtered out
  • changed-source parity repair: exact absent-status changed receipt regression passes; reverting to lossy top-level unknown comparison fails the exact oracle
  • retained corpus removal grip: validator regression passes; removing stale_same_path_receipt_fails_closed from required_cases makes it fail
  • full front-panel suite: pass, 11 passed; 0 failed; 4162 filtered out
  • pass: fixture contracts, output contracts, static-language, evidence-promotion-honesty, goldens, dogfood, precommit, formatting (via precommit), and diff check
  • independent substantive exact-head review remains pending; this PR does not self-approve or arm merge

Claim Boundary

This candidate only makes parsed receipt fallback coherent with the already-selected assistant-health proof. It does not establish runtime mutation confirmation, overall test adequacy, gate approval, or receipt freshness for other consumers.

Rollback

Revert this PR; rollback is confined to front-panel fallback admission and the retained fixture/test corpus. #3190's repair-first proof selection remains intact.

Spec-Test-Code Traceability

  • Spec: RIPR-SPEC-0023 selected issue, no-hidden-findings, unchanged repair route
  • Tests: selected_proof_uses_current_same_path_receipt_only_as_fallback, selected_proof_rejects_regenerated_same_path_receipt_fallback, full front-panel fixture corpus
  • Code: crates/ripr/src/output/pr_review_front_panel.rs
  • Golden outputs: fixtures/boundary_gap/expected/pr-review-front-panel/stale-same-path-receipt/
  • Metrics: unchanged
  • ADR/learning: n/a

Static Language Check

  • Static output avoids killed, survived, untested, proven, and adequate.
  • Unknowns include stop reasons where applicable.

CI Economics

  • LEM impact: n/a
  • Workflows touched: none
  • Branch protection impact: none
  • Failure mode caught: regenerated same-path receipt upgrades selected unchanged proof lifecycle
  • Cheaper signal considered: focused retained-producer test and fixture corpus are the cheapest sufficient signal
  • Required lanes affected: none
  • Advisory lanes affected: front-panel report semantics only
  • On-demand/release lanes affected: none
  • Labels that alter behavior: none
  • Artifact families affected: PR review front panel
  • Rollback path: revert this PR

Engineering Check

  • No new panic, unwrap, expect, todo, or unimplemented in production code.
  • No new panic, unwrap, expect, todo, or unimplemented in tests.
  • New non-Rust programming files are allowlisted with owner, surface, and reason.
  • New generated, dependency, process-spawn, or network surfaces are allowlisted with owner and reason.
  • Errors are reported with actionable context.
  • Public JSON/schema changes are documented.

Gates

  • cargo fmt --check (via precommit)
  • cargo check --workspace --all-targets
  • cargo test --workspace
  • cargo clippy --workspace --all-targets -- -D warnings
  • cargo doc --workspace --no-deps
  • cargo package -p ripr --list
  • cargo publish -p ripr --dry-run
  • cargo xtask check-static-language
  • cargo xtask check-doc-artifacts (via precommit)
  • cargo xtask check-support-tiers
  • cargo xtask check-no-panic-family (via precommit)
  • cargo xtask check-allow-attributes (via precommit)
  • cargo xtask check-local-context (via precommit)
  • cargo xtask check-file-policy (via precommit)
  • cargo xtask check-executable-files (via precommit)
  • cargo xtask check-workflows (via precommit)
  • cargo xtask check-spec-format (via precommit)
  • cargo xtask check-spec-numbering (via precommit)
  • cargo xtask check-fixture-contracts
  • cargo xtask check-generated (via precommit)
  • cargo xtask check-badge-diff-policy (via precommit)
  • cargo xtask check-generated-clean (via precommit)
  • cargo xtask check-dependencies (via precommit)
  • cargo xtask check-process-policy (via precommit)
  • cargo xtask check-network-policy (via precommit)

Extension changes: n/a

@gemini-code-assist

Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@coderabbitai

coderabbitai Bot commented Aug 12, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

@EffortlessSteven, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 25 minutes

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: efc04b4c-b7fe-4beb-ba28-2e0822b26161

📥 Commits

Reviewing files that changed from the base of the PR and between c0a86ff and 0fb638f.

📒 Files selected for processing (9)
  • crates/ripr/src/output/pr_review_front_panel.rs
  • fixtures/boundary_gap/expected/pr-review-front-panel/README.md
  • fixtures/boundary_gap/expected/pr-review-front-panel/corpus.json
  • fixtures/boundary_gap/expected/pr-review-front-panel/stale-same-path-receipt/agent-receipt.json
  • fixtures/boundary_gap/expected/pr-review-front-panel/stale-same-path-receipt/assistant-loop-health.json
  • fixtures/boundary_gap/expected/pr-review-front-panel/stale-same-path-receipt/pr-review-front-panel.json
  • fixtures/boundary_gap/expected/pr-review-front-panel/stale-same-path-receipt/pr-review-front-panel.md
  • xtask/src/fixture_contracts/report_validators.rs
  • xtask/src/tests.rs

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 @coderabbitai help to get the list of available commands.

@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: a2537dd68f

ℹ️ 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".

@codecov

codecov Bot commented Aug 12, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 96.42857% with 7 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
crates/ripr/src/output/pr_review_front_panel.rs 96.41% 7 Missing ⚠️

📢 Thoughts on this report? Let us know!

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

[P2][high confidence] changed receipts that match the selected proof's actual source movement are rejected by the fallback. assistant_loop_health::normalize_movement_state collapses changed to the selected proof's top-level movement_state = "unknown", while the retained nested movement.source_state and real agent receipt preserve changed. parsed_receipt_matches_selected_proof compares every parsed movement to that lossy top-level value at crates/ripr/src/output/pr_review_front_panel.rs:1782-1792; meanwhile receipt_lifecycle_state_from_movement explicitly treats changed as receipt_found. Thus an absent-status receipt with the exact artifact, seam, available classes, and source movement can regress to receipt_missing. Compare against the selected source movement (or a shared semantics-preserving normalization), and add the exact absent-status changed parity regression. This confirms the unresolved exact-head automated finding rather than treating it as advisory.

[P2][high confidence] The new retained stale-same-path corpus counterexample is removable without failing the corpus contract. xtask/src/fixture_contracts/report_validators.rs:333-343 omits stale_same_path_receipt_fails_closed from required_cases; deleting its manifest entry and fixture directory makes the manifest-driven fixture/golden/dogfood checks silently stop exercising it. Add this claim-bearing case to the required set and retain a deletion regression (plus direct traceability if required by the governing mapping) so the advertised corpus oracle cannot disappear while its gates remain green.

reviewed_head_sha: a2537dd
integration_basis: origin/main 23560f2 (contains merged #3190); clean merge-tree basis observed
claim_boundary: Issue #3195 only: selected proof receipt.status is authoritative; absent status may use a parsed receipt only when the supplied artifact and selected seam/movement/lifecycle/available classes agree. Broader receipt freshness/currentness and runtime mutation adequacy remain non-goals.
changed_surfaces_and_semantic_owners_inspected: Full exact-head diff and PR/issue wording; selected_proof_receipt_status, parsed_receipt_matches_selected_proof, class/value match helpers; assistant-loop-health movement projection; agent-receipt production and receipt-lifecycle authority; top-issue selection and JSON/Markdown renderer consumers; RIPR-SPEC-0023 and traceability; corpus manifest plus stale-same-path assistant-health/receipt/JSON/Markdown artifacts; fixture-contract validator and broad corpus test.
blocking_findings: Two P2 findings above: lossy changed movement matching and a removable retained corpus case.
non_blocking_suggestions: None.
refuted_or_stale_findings: The issue's exact unchanged-versus-regenerated-improved same-path counterexample is fixed: exact artifact equality alone no longer admits the parsed receipt, and selected proof receipt.status wins before fallback parsing. No overlap or superseding PR was found.
proof_and_ci_observed: Focused front-panel unit suite passed 10/10 (cargo test -p ripr --lib output::pr_review_front_panel::tests -- --nocapture). check-fixture-contracts, check-output-contracts, check-evidence-promotion-honesty, goldens check, dogfood, and test-oracle-report passed. Exact-head routed GitHub-hosted Rust job succeeded; rust-tests-junit reported 6077/6077 plus doc tests 2 passed/1 ignored; rust-coverage and Codecov patch succeeded (95.20% patch); source-of-truth, UB review, dependency review, cargo-deny, pr-plan, GitGuardian, and routed aggregate succeeded. Matrix/advisory skips were routing skips, not counted as passes.
proof_or_review_missing: No regression exercises the real changed source-state/top-level-normalization mismatch. The retained stale case lacks removal grip. The first cold focused invocation timed out during compilation and closed its stdout pipe; the warm rerun passed and is the behavioral signal. Droid review remained queued at inspection time and is not used as semantic evidence.
affected_currentness_dimensions: production fallback semantics, movement/lifecycle authority parity, retained test-oracle durability, traceability/gate claim accuracy, exact-head remote evidence.
residual_assumptions_and_non_claims: This review does not claim broad receipt freshness, arbitrary regenerated-path detection, runtime mutation adequacy, or that skipped CI lanes passed. Existing front-panel behavior outside selected receipt fallback is not expanded.
disposition: REPAIR_REQUIRED

@EffortlessSteven
EffortlessSteven force-pushed the agent/front-panel-receipt-currentness branch from a2537dd to 0fb638f Compare August 12, 2026 21:12
@EffortlessSteven

Copy link
Copy Markdown
Member Author

Repair engagement for review 4921041353, exact head 0fb638fadbbd19db11688b3ce377bfbdc152ec4f:

  • Movement authority: parsed fallback now uses the selected proof's retained movement.source_state before its lossy top-level movement_state, and compares the normalized receipt lifecycle. A matching absent-status changed receipt remains usable as receipt_found.
  • Movement oracle: reverting the comparison to the top-level unknown value makes selected_proof_accepts_matching_changed_source_receipt_fallback fail; restored code passes.
  • Corpus durability: stale_same_path_receipt_fails_closed is now a fixture-validator required case. The new removal regression fails when that grip is deleted and passes when restored.
  • Current exact proof: front-panel 11/11; fixture-validator regressions 3/3; fixture contracts, output contracts, evidence-promotion honesty, goldens, dogfood, precommit, formatting, and diff checks pass.
  • Integration basis: live main c0a86ff9a42beeb2bc13722efcf417e9fa211b1a.

Fresh independent exact-head review remains required. No self-review or merge has been performed.

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

reviewed_head_sha: 0fb638f
integration_basis: live origin/main c0a86ff; pull/3196/head re-read immediately before this record and remained exact. The PR is based on that exact main and GitHub reports it mergeable.
claim_boundary: Issue #3195 only: selected proof receipt status remains terminal authority; absent status may admit the explicitly supplied parsed receipt only when artifact path, seam, source movement, lifecycle, and any available before/after classes agree. This does not establish broader receipt freshness, runtime mutation confirmation, test adequacy, or gate authority.

changed_surfaces_and_semantic_owners_inspected:

  • Full 9-file diff: selected_proof_receipt_status and parsed_receipt_matches_selected_proof; shared receipt_lifecycle semantics; selected assistant-health proof production and front-panel JSON/Markdown consumers; RIPR-SPEC-0023 and traceability; retained stale-same-path corpus artifacts; fixture-contract required_cases; deletion regression; PR/issue claims and exact-head checks/threads.
  • Confirmed selected receipt.status returns before parsing any supplied receipt. When absent, source movement now prefers movement.source_state over the lossy top-level movement projection. Parsed seam and movement require at least one present matching authority; all present movement representations must agree; derived parsed lifecycle must equal the selected movement lifecycle; present class values cannot contradict selected classes.

blocking_findings: none.
non_blocking_suggestions: none.

refuted_or_stale_findings:

  • The prior changed lifecycle finding is repaired: nested movement.source_state = changed is retained, maps through the shared lifecycle owner to receipt_found, and the exact absent-status regression passes.
  • The prior removable-corpus finding is repaired: stale_same_path_receipt_fails_closed is now in validator required_cases; the dedicated temporary-corpus mutation removes the manifest case and observes the required missing-case violation.
  • Same-path regenerated improved content still fails closed to receipt_missing; selected explicit status remains authoritative even if supplied same-path content disagrees.
  • The one remaining unresolved inline thread describes the repaired older-head changed finding. It is stale semantically but remains a merge-control housekeeping item; this read-only review did not resolve it.

proof_and_ci_observed:

  • Read-only detached Windows worktree at exact head.
  • Exact changed-source fallback: 1 passed, 0 failed, 4172 filtered out.
  • Full front-panel unit/fixture-renderer suite: 11 passed, 0 failed, 4162 filtered out, including selected-status authority, current same-path fallback, regenerated same-path rejection, JSON/Markdown corpus parity, and mixed/unknown selection behavior.
  • Required-case removal regression: 1 passed, 0 failed, 1611 filtered out. An earlier command incorrectly used --exact without the module-qualified name and selected zero tests; it is excluded from evidence and the corrected nonzero run above is the proof.
  • check-fixture-contracts, check-output-contracts, goldens check, dogfood, check-traceability, test-oracle-report, check-evidence-promotion-honesty, check-static-language, and git diff --check passed.
  • Exact-head hosted evidence is terminal: routed GitHub-hosted Rust and aggregate SUCCESS; JUnit, coverage, Codecov patch, source-of-truth, UB review, dependency review, cargo-deny, pr-plan, GitGuardian, and Graphite checks SUCCESS. Platform/matrix/editor skips are correct path-routing skips, not claimed as passes.

proof_or_review_missing:

  • No missing substantive proof for this bounded claim. The unresolved stale inline thread must still be engaged/resolved before merge under repository rules.

affected_currentness_dimensions:

  • source/integration: exact remote head stable; exact current-main base
  • semantic: production fallback, selected-proof movement/lifecycle identity, and renderer consumers inspected
  • generated/evidence: retained JSON/Markdown artifacts and corpus/golden/dogfood gates observed
  • oracle durability: required-case mutation/removal grip observed with a nonzero denominator
  • remote policy/CI: required hosted denominator and aggregate terminal-success; review thread state explicitly inspected

residual_assumptions_and_non_claims:

  • Same-path identity is intentionally bounded to the fields available in these explicit artifacts; this review does not claim cryptographic or cross-consumer freshness.
  • Gate decision remains the only pass/fail authority; the front panel remains advisory.
  • I did not mutate the candidate branch or merge.

disposition: REVIEW_READY

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.

fix(output): bind front-panel receipt fallback to selected proof

1 participant