Skip to content

fix(analysis): apply rustfmt to safe Rust evidence projection - #3517

Merged
EffortlessSteven merged 1 commit into
mainfrom
agent/3507-rustfmt-fix-forward
Aug 28, 2026
Merged

EffortlessSteven merged 1 commit into
mainfrom
agent/3507-rustfmt-fix-forward

Conversation

@EffortlessSteven

Copy link
Copy Markdown
Member

Summary

Fixes the required Rust-small failure from #3507 by committing the exact cargo fmt --check output reported in workflow run 33137202515.

The diff contains only three formatter-owned hunks:

  • collapse one fingerprint assertion in finding_test_evidence.rs;
  • format the raw_string_hash_count signature in test_evidence_identity.rs;
  • collapse one fingerprint assertion in 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 Result completed 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 Small workflow must complete with:

  • cargo fmt --check;
  • cargo check --workspace --all-targets;
  • cargo clippy --workspace --all-targets -- -D warnings;
  • cargo nextest run --workspace;
  • cargo xtask precommit and the remaining required policy, golden, fixture, and PR-evidence gates;
  • final required status 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.

@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 28, 2026

Copy link
Copy Markdown

Warning

Review limit reached

Next included review available in 22 minutes.

View limit details

Limit 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.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: ba014102-6275-4d36-bee8-bbcfc35d9f8f

📥 Commits

Reviewing files that changed from the base of the PR and between 5b5180a and 2afd150.

📒 Files selected for processing (3)
  • crates/ripr/src/domain/finding_test_evidence.rs
  • crates/ripr/src/domain/test_evidence_identity.rs
  • crates/ripr/src/domain/test_evidence_summary.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.

@EffortlessSteven
EffortlessSteven enabled auto-merge (squash) August 28, 2026 03:06

@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.

Exact-head formatter review — 2afd150d3be1cfb49b974acd6a991b8b9a009e0c

Disposition: REVIEW_READY for required-check-aware auto-merge.

  • The three hunks exactly match the cargo fmt --check output from the failed required run on merge commit 5b5180aa.
  • 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.

EffortlessSteven added a commit that referenced this pull request Aug 28, 2026
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

codecov Bot commented Aug 28, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@github-actions github-actions 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.

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 Result succeeding 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).

@EffortlessSteven
EffortlessSteven merged commit 12b2e02 into main Aug 28, 2026
24 of 25 checks passed
@EffortlessSteven
EffortlessSteven deleted the agent/3507-rustfmt-fix-forward branch August 28, 2026 03:24
EffortlessSteven added a commit that referenced this pull request Aug 29, 2026
* 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.
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