Repository navigation
fix(analysis): apply rustfmt to safe Rust evidence projection - #3517
Conversation
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
Warning Review limit reachedNext included review available in 22 minutes. View limit detailsLimit details: You’ve used the included review currently available. You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Review configuration: ⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (3)
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 |
EffortlessSteven
left a comment
There was a problem hiding this comment.
Exact-head formatter review — 2afd150d3be1cfb49b974acd6a991b8b9a009e0c
Disposition: REVIEW_READY for required-check-aware auto-merge.
- The three hunks exactly match the
cargo fmt --checkoutput from the failed required run on merge commit5b5180aa. - Each change is formatter-owned layout only: two assertion collapses and one function-signature collapse.
- No token, literal, assertion operand, control flow, public contract, schema, generated artifact, dependency, or workflow behavior changes.
- The PR is based directly on the offending merge commit and introduces no unrelated baseline cleanup.
Merge authority remains the protected hosted result: Ripr Rust Small Result must succeed on this exact head. No admin-bypass merge is supported by this review.
Apply only the two formatter changes reported on the shift-left candidate: wrap the missing-gates diagnostic and order the child modules deterministically. Leave the three inherited analyzer diffs to their existing owner in #3517.
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
There was a problem hiding this comment.
Decision
- Needs verification checks before upstream.
Verification questions
- Confirm artifact-verifier sensor failed with exit code Some(2); no source-route receipt available to corroborate downstream crate consumers of the changed modules.
- Confirm formatter-only diff carries near-zero semantic risk, but the PR's proof target is the hosted 'Ripr Rust Small Result' required check succeeding on this exact head. Until cargo fmt/check/clippy/nextest/precommit receipts land in the gate, this lane cannot independently confirm zero regression beyond tokmd/ripr/ast-grep structural evidence.
Refuted
- Formatting collapse could alter parse/operator-precedence behavior of the assert! macro argument chain.; refuted because: Method-call chain
.fingerprint.ends_with("...")has identical AST pre- and post-collapse; rustfmt only rewraps within the max_width budget. Argument count, order, and types unchanged. - Tests do not prove the formatting fix because the assertion operands are unchanged.; refuted because: This is formatter-only diff. Adding new red/green behavior tests would be a semantic change contradicting PR scope. Proof is the required-check
Ripr Rust Small Resultsucceeding on this head, not new behavior tests. - Formatting fix might be coupled with semantic changes hidden in whitespace-adjacent edits or stale base.; refuted because: PR is based directly on the offending merge commit 5b5180a per body and review summary; diff is exactly the cargo fmt --check delta. No unrelated cleanup or rebased content present.
Parked follow-ups
- Duplicate assertion shape across finding_test_evidence.rs:209 and test_evidence_summary.rs:278 is pre-existing, not introduced by this PR.
Evidence gaps
- Model proof intent was rejected by deterministic validation.
- cargo-test scheduled-late; receipt lands before gate. Until that receipt arrives, lane relies on prior #3507 nextest result and the head commit being a direct follow-up of 5b5180a.
- artifact-verifier failed with exit code Some(2); cargo-test receipt absent (scheduled-late).
* devex(agent): shift candidate verification left Make candidate builders establish inherited baseline health before mutation, bind a discriminating control to a known-wrong state before production repair, and run the committed-diff check-fast lane before the full precommit route. Keep baseline drift out of unrelated candidates and make exact-head limitations explicit. * fix(agent): keep baseline preflight cheap and bounded Use worktree doctor plus check-fast as the branch-start floor instead of spending a full precommit before every first edit. Reserve exact-base precommit for baseline repairs and later failure attribution while keeping full candidate precommit after the committed fast gate. * fix(agent): reject unverified check-fast selection Bind both candidate routes to an independent origin/main diff before they cite check-fast. Treat an unexpected empty set or missing ran category as instrument failure and run the affected gate directly instead of promoting a silent selector failure to pass. * fix(agent): bind fast-gate attribution to merge-base identity Require origin/main's merge-base with the candidate head to equal the recorded base SHA before check-fast may support inherited-baseline attribution. A mismatch now routes to history reconciliation or base-aware direct gates instead of borrowing an unrelated denominator. * fix(agent): add a bounded base compile floor Make the branch-start floor compile the selected semantic owner before production edits. Keep it package-scoped by default, widen only for workspace/cross-package changes, and state explicitly that zero-diff check-fast is policy evidence rather than compile evidence. * fix(agent): isolate inherited baseline reproduction Require resumed-candidate comparisons and exact-base precommit to run in a clean isolated worktree, preserving the candidate worktree and evidence boundary. Clarify that genuinely non-Rust-only work records the omitted compile dimension rather than implying compile proof. * fix(xtask): fail check-fast closed on selector loss Preflight origin/main diff discovery before any fast gate, keep the existing category planner as the single gate authority, validate its ran receipt against the selected paths, and emit selector evidence on both success and failure. Add negative coverage for unavailable selection, valid empty selection, and a Rust path whose conditional gates are missing. Closes #3508. * docs(agent): bind candidate proof to strict selector receipts Update both provider routes after the command repair: the independent diff is now a denominator receipt and direct-helper defense, while exact-head review must reconcile check-fast-selector.md with the planner's ran/skipped report. * refactor(xtask): simplify strict fast-gate transaction Collapse the selector guard to one transaction, one compact receipt, one reuse of the existing category authority, and the three discriminating wrong-state tests. Remove path rendering and reporting scaffolding that did not change the command decision. * style(xtask): apply candidate-owned rustfmt output Apply only the two formatter changes reported on the shift-left candidate: wrap the missing-gates diagnostic and order the child modules deterministically. Leave the three inherited analyzer diffs to their existing owner in #3517. * style(xtask): rustfmt module declaration order after merge resolution * test(xtask): pin the mid-run selector-drift refusal The selector_changed_during_run guard had no test: a selector that changes between the before/after discovery passes must fail closed, keep the before-run denominator in the receipt, and never read as a pass.
Summary
Fixes the required Rust-small failure from #3507 by committing the exact
cargo fmt --checkoutput reported in workflow run33137202515.The diff contains only three formatter-owned hunks:
finding_test_evidence.rs;raw_string_hash_countsignature intest_evidence_identity.rs;test_evidence_summary.rs.No semantic, schema, fixture, golden, dependency, support-tier, actionability, or repair-routing behavior changes.
Why this is a separate PR
#3507 was merged before its required
Ripr Rust Small Resultcompleted because the repository currently exempts admins from enforcement. The required run then failed at the first command,cargo fmt --check, before check, Clippy, nextest, precommit, goldens, fixtures, or PR evidence could execute.This PR restores the intended proof path. It must land only through required-check-aware auto-merge.
Proof target
The repository-owned
Routed Rust Smallworkflow must complete with:cargo fmt --check;cargo check --workspace --all-targets;cargo clippy --workspace --all-targets -- -D warnings;cargo nextest run --workspace;cargo xtask precommitand the remaining required policy, golden, fixture, and PR-evidence gates;Ripr Rust Small Result = success.Scope / rollback
One formatting-only commit, based directly on merge commit
5b5180aa. Revert this commit to roll back; it carries no behavior or state migration.