Repository navigation
fix(output): keep mixed health repairs visible - #3190
Conversation
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
EffortlessSteven
left a comment
There was a problem hiding this comment.
reviewed_head_sha: 15e2ff9
integration_basis: 77689c5
claim_boundary: Mixed assistant-health repair work remains visible in the advisory PR front panel; no analyzer, gate, schema, runtime mutation, or release claim.
changed_surfaces_and_semantic_owners_inspected: Full candidate diff; pr_review_front_panel movement/candidate/top-issue/artifact composition; RIPR-SPEC-0023; mixed-health corpus and rendered JSON/Markdown; issue #3186.
blocking_findings: none in the committed candidate inspection.
non_blocking_suggestions: none.
refuted_or_stale_findings: The old aggregate summary.improved > 0 plus proofs[0] behavior is refuted by the new retained-producer negative oracle; null seam is separately challenged and now fails closed.
proof_and_ci_observed: Local exact-candidate front-panel module tests 6/6 pass; focused mixed and unknown alternates pass; fixture/output/static-language/evidence-promotion/goldens/dogfood/precommit pass. Hosted checks are currently queued/in progress.
proof_or_review_missing: Hosted exact-head completion and independent published-head review are not yet available.
affected_currentness_dimensions: production implementation, test stimulus, test oracle, rendered output, fixture relationships, candidate head identity.
residual_assumptions_and_non_claims: Input ordering is preserved only as a tie-breaker inside the same severity bucket. The front panel remains advisory and does not establish runtime mutation confirmation, test adequacy, gate approval, or merge approval.
disposition: REVIEW_INCOMPLETE pending hosted evidence and independent exact-head review.
|
Warning Review limit reached
Next review available in: 47 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 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 configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (3)
Summary by CodeRabbit
WalkthroughAssistant-health proof selection now prioritizes unresolved states before aggregate improvement. Movement, top-issue, status, and artifact generation use the selected proof. Tests and fixtures cover mixed, unchanged, and unknown health outcomes. ChangesFront-panel assistant-health projection
Estimated code review effort: 4 (Complex) | ~45 minutes Sequence Diagram(s)sequenceDiagram
participant AssistantHealth
participant FrontPanel
participant Artifacts
AssistantHealth->>FrontPanel: provide multiple proof outcomes
FrontPanel->>FrontPanel: select unresolved proof and derive movement
FrontPanel->>Artifacts: emit assistant-health and coverage artifacts
Artifacts-->>FrontPanel: return linked artifact metadata
Possibly related PRs
Suggested labels: Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ 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. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
crates/ripr/src/output/pr_review_front_panel.rs (1)
1724-1735: 🗄️ Data Integrity & Integration | 🟠 Major | ⚡ Quick winKeep receipt status bound to the selected proof.
The top issue, receipt artifact, and commands use
proof, but receipt status first usesparsed.receipt. If that input describes another proof, the report combines one proof’s repair route with another proof’s receipt status.Read the selected proof receipt first. Only use
parsed.receiptas a fallback after verifying that it has the same proof or seam identity.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@crates/ripr/src/output/pr_review_front_panel.rs` around lines 1724 - 1735, Update the receipt status construction in the PanelReceipt initializer to derive status from the selected proof’s receipt first, matching the proof used for the artifact and commands. Use parsed.receipt only as a fallback after confirming its proof or seam identity matches the selected proof; otherwise continue to the existing raw receipt status fallback and RECEIPT_MISSING default.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@crates/ripr/src/output/pr_review_front_panel.rs`:
- Around line 1091-1100: Update the movement-selection logic around
selected_assistant_health_proof so it no longer requires
input.coverage_frontier_path; whenever parsed.assistant_health contains a
selected proof with movement_state, return that assistant-health movement first.
Keep coverage_frontier_path limited to coverage/grip calculations, preserve
fallback behavior when no usable health proof exists, and add a regression test
covering health-only unchanged, regressed, or missing-proof resolution.
---
Outside diff comments:
In `@crates/ripr/src/output/pr_review_front_panel.rs`:
- Around line 1724-1735: Update the receipt status construction in the
PanelReceipt initializer to derive status from the selected proof’s receipt
first, matching the proof used for the artifact and commands. Use parsed.receipt
only as a fallback after confirming its proof or seam identity matches the
selected proof; otherwise continue to the existing raw receipt status fallback
and RECEIPT_MISSING default.
🪄 Autofix
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: ASSERTIVE
Plan: Pro Plus
Run ID: c13b0420-6105-4035-90ae-3268a1aebbc7
📒 Files selected for processing (5)
crates/ripr/src/output/pr_review_front_panel.rsfixtures/boundary_gap/expected/pr-review-front-panel/README.mdfixtures/boundary_gap/expected/pr-review-front-panel/corpus.jsonfixtures/boundary_gap/expected/pr-review-front-panel/mixed-health/pr-review-front-panel.jsonfixtures/boundary_gap/expected/pr-review-front-panel/mixed-health/pr-review-front-panel.md
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
|
Replacement head 49ed02d also fixes the second review finding: a selected assistant-health proof can use a richer parsed receipt only when receipt provenance identifies the same seam. The regression selected_proof_rejects_receipt_status_from_another_seam injects an improved receipt for a different seam and proves the selected unresolved proof remains receipt_found. Current main 6fdecdf was merged normally with no conflicts; combined-tree focused proof is green. |
EffortlessSteven
left a comment
There was a problem hiding this comment.
REPAIR_REQUIRED
reviewed_head_sha: 49ed02d
integration_basis: merge base / PR target / origin/main 6fdecdf
claim_boundary: #3186 mixed assistant-health repair-first front-panel projection
The health-only repair is correct: assistant-health movement no longer depends on coverage_frontier_path, while the first_action guard preserves the existing actionable first-action authority. The new health-only unchanged oracle reaches that branch. Repair-first selection remains deterministic (regressed, unchanged, missing/unknown, then first), the null-seam unknown case fails closed to incomplete/missing_required_input, and the retained corpus keeps JSON/Markdown movement, top issue, receipt artifact, and repair route on the selected unchanged proof.
One cross-proof data-integrity defect remains in selected_proof_receipt_status. The function checks a parsed receipt with the same seam_id first and returns its lifecycle movement before consulting the selected proof's own receipt. Seam identity is not proof/attempt identity: the repository's multi-proof fixture itself has improved and unchanged proofs for the same seam. Therefore an externally supplied improved receipt for that seam can still label the selected unchanged proof receipt_movement_improved while its top issue, commands, artifact, and movement all come from the unchanged proof. The new regression only uses a different seam, so it cannot catch this same-seam/different-proof mix.
Derive status from selected_receipt first. Use parsed_receipt only when the selected proof has no usable receipt status and the parsed receipt is bound to the same proof/attempt identity; seam-only equality is insufficient where multiple attempts share a seam. Add a same-seam improved-receipt versus selected-unchanged proof negative oracle.
Publication evidence is also incomplete: the PR body still reports the original proof matrix and does not record exact head 49ed02d or the two review repairs. Hosted exact-head coverage is currently failing (91.56% patch, 14 lines), while JUnit, UB, and security are nonterminal and dependency review is queued. Current-main integration itself is established and clean.
The prior health-only inline thread is resolved. The receipt-authority finding was outside the old diff and has a response comment but is not semantically resolved by this implementation. GraphQL thread-state inspection remains unavailable due exhausted GraphQL quota; REST evidence is reported above.
|
Addressed the exact-head P1 at 22e6532. Same-seam identity is no longer accepted: parsed receipt lifecycle is used only when the input receipt artifact exactly equals the selected proof declared receipt artifact; otherwise the selected proof receipt status remains authoritative. The new same-seam improved-versus-selected-unchanged negative oracle and all 8 front-panel tests pass, as do fixture/output/static contracts. Requesting independent re-review of exact 22e6532. |
EffortlessSteven
left a comment
There was a problem hiding this comment.
REPAIR_REQUIRED
reviewed_head_sha: 22e6532
integration_basis: merge base / PR target / origin/main 6fdecdf
claim_boundary: #3186 repair-first assistant-health projection and selected-proof receipt authority
The health-only, null-seam, repair-first, current-main, fixture, JSON/Markdown, and PR-body repairs are coherent. Exact receipt-artifact matching is a stronger identity check than the prior seam-only match, and the same-seam/different-artifact regression closes the specific cross-attempt case raised on 49ed.
One authority-ordering defect remains. selected_proof_receipt_status still consults parsed_receipt first whenever its input path equals the selected proof's receipt artifact. The selected proof already carries a usable receipt.status, but that selected status is consulted only afterward. This does not implement �derive status from the selected proof's receipt first; use parsed receipt only as fallback.� A canonical receipt path can be regenerated/overwritten between proof production and front-panel assembly, and the current code also no longer verifies that the parsed receipt content names the selected seam. Thus same path does not by itself establish immutable proof/attempt identity, and parsed movement can still overwrite selected receipt authority.
Use selected_receipt.status first whenever present. Only fall back to parsed_receipt when selected status is absent, and require all available identity dimensions (exact artifact plus selected seam/proof identity) rather than artifact equality alone. Add a negative oracle where the selected receipt has status present but a parsed receipt at the exact same artifact path reports improved for stale/wrong content; the result must retain receipt_found from the selected proof.
Hosted exact-head evidence is also nonterminal: required GitHub-hosted Rust Small, JUnit, coverage, UB review, and security are in progress. Routing, source-of-truth, dependency, cargo-deny, plan, and Graphite checks have succeeded. REST exposes no new inline comments on this head; GraphQL thread-state inspection remains unavailable due exhausted quota.
Republish the authority-order repair and exact-head proof for fresh review.
|
Addressed the exact 22e653 P1 at replacement head 2be2556. Selected proof receipt.status is now authoritative even when parsed top-level content arrives through the same path. Parsed receipt content is considered only when selected status is absent and the selected receipt artifact exactly matches the input artifact. The new exact-same-path stale improved receipt versus selected unchanged proof oracle passes; full front-panel 8/8 and fixture/output/static contracts are green. Requesting independent re-review of exact 2be2556. |
EffortlessSteven
left a comment
There was a problem hiding this comment.
REVIEW_INCOMPLETE
reviewed_head_sha: 2be2556
integration_basis: merge base / PR target / origin/main 6fdecdf
claim_boundary: #3186 repair-first assistant-health front-panel projection and selected-proof receipt authority
Semantic repair is complete with no remaining source finding. selected_proof_receipt_status now returns a usable selected proof receipt.status before considering parsed top-level content. Parsed receipt lifecycle is reached only when selected status is absent and the selected receipt artifact exactly equals the supplied receipt input path; otherwise it fails closed to receipt_missing. The same-path stale parsed-receipt oracle injects improved content for the selected unchanged seam and correctly retains receipt_found. The resulting improved-only corpus change from receipt_movement_improved to receipt_found is intentional policy parity: movement remains on the selected proof, while receipt presence no longer borrows richer stale parsed movement.
Prior review leads remain satisfied: health-only unresolved movement does not require coverage input; actionable first_action authority is preserved; proof selection is deterministic repair-first; null seam fails closed; mixed JSON/Markdown retain the selected unchanged identity, repair route, receipt artifact, and movement; current-main integration and PR body/proof record are current.
Hosted exact-head evidence is nonterminal: required GitHub-hosted Rust Small, JUnit, coverage, UB review, and source-of-truth are in progress. Routing, dependency review, cargo-deny, PR plan, and docs-only detection have succeeded. REST exposes no inline comments on this exact head; GraphQL thread-state inspection remains unavailable due exhausted quota.
Re-read exact head and all hosted evidence when required jobs are terminal; if unchanged and successful, upgrade to REVIEW_READY.
EffortlessSteven
left a comment
There was a problem hiding this comment.
REVIEW_READY for exact published head 2be255694741953fae3527ea28e4d49051ce77dc.
Substantive re-review is complete. The selected proof's own receipt.status is authoritative; parsed receipt content is only a fallback when selected status is absent and the parsed input artifact exactly matches the selected receipt artifact. The same-path stale parsed improved negative oracle now discriminates that rule. The earlier health-only/repair-first/null-seam behavior remains coherent: mixed health selects the actionable repair identity, health-only unresolved movement does not require a coverage frontier, unknown/null evidence fails closed, and JSON/Markdown plus retained fixture corpus agree.
Freshness and integration:
- GitHub remote head is still exactly
2be255694741953fae3527ea28e4d49051ce77dc. - Current remote
mainis8822523192657a6093632e7f367ab448d5ae5f34. - The PR body records exact-head precommit pass and the exact candidate SHA. Its historical integration-basis line remains
6fdecdf5, but a fresh read-onlygit merge-tree --write-tree origin/main <head>succeeds at current main (treec4f5a468e9d814c60c251cf3357bd5839c19a3ee), and GitHub reports mergeable/clean. - The only REST inline thread is on stale head
15e2ff97; it has an owner repair reply and CodeRabbit's explicit resolved acknowledgement. No exact-head inline findings are present. GraphQL thread state remains unavailable due exhausted user quota, so this conclusion is based on complete REST comment/review evidence.
Hosted exact-head evidence is terminal green: Required Rust Small and aggregate, JUnit, coverage, UB review, source-of-truth, dependency review, cargo-deny, pr-plan, GitGuardian, and codecov patch all succeeded. Skipped matrix/advisory lanes are policy routing results, not claimed passes.
No actionable semantic finding remains on this exact head.
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 2be2556947
ℹ️ 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".
| if movement.state == "regressed" { | ||
| return Candidate { | ||
| top_issue: top_issue_from_assistant_health(input, parsed), | ||
| top_issue_state: "actionable".to_string(), |
There was a problem hiding this comment.
Avoid marking health regressions policy-eligible
When assistant health is the only supplied artifact and its selected proof is regressed, this assigns actionable; policy_state() consequently emits new_policy_eligible even though no gate, ledger, baseline, or first-action artifact established policy eligibility. This fabricates policy evidence from an advisory repair result, so keep the regression visible without the policy-bearing state or make the policy projection source-aware.
AGENTS.md reference: AGENTS.md:L242-L246
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Decision
- Needs verification checks before upstream.
Verification questions
- Confirm the status() arm ordering puts top_issue_state=="missing_required_input" -> "incomplete" before the "Suppressed" check; harmless today but brittle if a Suppressed candidate ever lacks a top issue.
- Confirm assistant_health_movement_does_not_require_coverage_frontier only asserts top_issue_state and movement_state; does not pin placement, headline, or artifact list, so a partial regression (e.g. wrong placement string) might still pass. Existing fixture corpus coverage-flat-grip-improved pins the rich output for that case, so the negative oracle is sufficient for its claim but not over-specified.
- Confirm sibling-route scan: artifacts() pushes Assistant loop health under three branches (missing_required_input, actionable-without-first-action, unchanged_after_attempt|already_improved-with-flat-grip). The 'actionable' branch with first_action=None + assistant_health=Some and the 'unchanged_after_attempt' branch share push_assistant_health_and_coverage_artifacts via the new helper. Confirmed via diff; no duplicate-push risk observed.
Refuted
- Box::from(slice) / allocation-failure analysis applies to this diff; refuted because: No ArrayBuffer/Box-from-slice/worker-handoff paths touched; review posture forbids introducing UB narrative absent diff evidence.
Evidence gaps
- Model proof intent was rejected by deterministic validation.
|
Repair engagement for the P1 same-path fallback finding: #3190 merged at reviewed head The follow-up keeps selected Current-main mutation proof: restoring #3190's path-only predicate makes the exact negative test fail with exit 101 ( |
Summary
Swarm / Source Boundary
ripr-swarmSource-of-truth Links
Proposal: n/a
Spec:
docs/specs/RIPR-SPEC-0023-pr-review-front-panel-report.mdADR: n/a
Plan item: n/a
Active goal: n/a
Issue: Closes #3186
Scope
Scope Classification
This PR is scoped by:
Production delta:
Evidence/support delta:
Single acceptance criterion:
already_improvedorno_repair_packetNon-goals:
Support-tier Impact
docs/status/SUPPORT_TIERS.mdClaim/proof notes:
Policy Impact
Ledger or exception notes:
Proof
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 cargo fmt --check git diff --checkResult, failures, or skipped proof:
Claim Boundary
The front panel now keeps repair-bearing mixed assistant-health outcomes visible and keeps its selected movement/top-issue identity aligned. This does not establish runtime mutation confirmation, test adequacy, gate approval, or merge approval.
Rollback
Revert this PR; rollback is confined to front-panel selection and its fixture corpus.
Spec-Test-Code Traceability
crates/ripr/src/output/pr_review_front_panel.rsfixtures/boundary_gap/expected/pr-review-front-panel/mixed-health/Static Language Check
killed,survived,untested,proven, andadequate.CI Economics
Engineering Check
panic,unwrap,expect,todo, orunimplementedin production code.panic,unwrap,expect,todo, orunimplementedin tests.Gates
cargo fmt --checkcargo check --workspace --all-targetscargo test --workspacecargo clippy --workspace --all-targets -- -D warningscargo doc --workspace --no-depscargo package -p ripr --listcargo publish -p ripr --dry-runcargo xtask check-static-languagecargo xtask check-doc-artifacts(via precommit)cargo xtask check-support-tierscargo 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-contractscargo 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