Skip to content

refactor(xtask): extract the evidence-quality scorecard cluster from main.rs (#2119) - #2221

Merged
EffortlessSteven merged 2 commits into
mainfrom
codex/xtask-scorecard-extract
Jul 22, 2026
Merged

EffortlessSteven merged 2 commits into
mainfrom
codex/xtask-scorecard-extract

Conversation

@EffortlessSteven

Copy link
Copy Markdown
Member

Summary

Slice 6 of #2119 (xtask main.rs decomposition): extracts the evidence-quality scorecard/trend cluster (113 items) into xtask/src/evidence_quality.rs, plus a comment-only fix to the ripr_swarm header (its "remain in main.rs" note now points at evidence_audit.rs). Pure move, zero behavior change.

  • xtask/src/main.rs: 41,632 → 37,576 lines (−4,056)
  • xtask/src/evidence_quality.rs: 4,089 lines, verbatim move in original order (anchored EVIDENCE_QUALITY_SCORECARD_SCHEMA_VERSION → trend_push_metric_table); zero foreign items in range, zero scorecard items outside it
  • Compiler-derived re-exports (production + 14 #[cfg(test)]); consumer map caught two consumers in evidence_audit.rs
  • One masked proven string (work-queue repair text) handled with the slice-5 fine-grained ripr-allow mechanism — byte-identical, follow-up rewording tracked

Evidence (orchestrator-verified independently of the builder)

  • cargo test -p xtask: 1213 passed, 0 failed
  • cargo clippy --workspace --all-targets -- -D warnings, cargo fmt --check, cargo xtask precommit: clean
  • cargo xtask goldens check: zero drift
  • Purity spot-check: trend_push_metric_table body identical modulo pub(crate) prefix
  • cargo xtask module-health (advisory): main.rs 37,576, still flagged

Refs #2119

@coderabbitai

coderabbitai Bot commented Jul 22, 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: 8 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

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: e7f27e58-3a00-4cd2-8491-4815c78915c9

📥 Commits

Reviewing files that changed from the base of the PR and between 24c3d57 and c53105b.

📒 Files selected for processing (3)
  • xtask/src/evidence_quality.rs
  • xtask/src/main.rs
  • xtask/src/ripr_swarm.rs
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch codex/xtask-scorecard-extract

Comment @coderabbitai help to get the list of available commands.

@EffortlessSteven
EffortlessSteven merged commit 9e9efd7 into main Jul 22, 2026
22 of 24 checks passed
@EffortlessSteven
EffortlessSteven deleted the codex/xtask-scorecard-extract branch July 22, 2026 11:47
EffortlessSteven added a commit that referenced this pull request Jul 23, 2026
…main.rs (#2119) (#2283)

Behavior-preserving module extraction, following the #2184/#2221
protocol. The evidence-promotion-honesty gate cluster (honesty options
parsing, corpus validation, typed semantic assertions, pinned external
checkout machinery, external run report, corpus summary report, and the
report-local evidence_promotion_* helpers) moves from main.rs
(37943 -> 33694 lines) into the new flat module
xtask/src/evidence_promotion.rs (4276 lines): 95 top-level fns, 7
structs, 2 enums, and 12 consts, including
parse_json_rejecting_duplicate_keys (#2279).

Moved blocks are byte-identical except visibility widening for the
items main.rs and tests.rs reach through the crate root
(pub(crate) on 10 fns, 5 types, 3 consts, and the fields of the four
structs tests.rs constructs literally). main.rs additions are exactly
the mod declaration plus two re-export blocks (one #[cfg(test)]);
dispatch.rs and tests.rs compile unchanged.

No no-panic, process, or static-language allowlist repoints were
needed: the cluster contains no panic-family calls, no Command::new,
and no prohibited vocabulary, and none of the 17 main.rs-pinned
no-panic containers live in this cluster.

Verified: cargo test -p xtask -- --list count 1262 == base 1262
(sorted lists byte-identical), cargo test -p xtask exit 0 (1260
passed, 0 failed); check-evidence-promotion-honesty and module-health
stdout plus evidence-promotion-honesty.md and corpus-summary.{json,md}
byte-identical to the base build; fmt --check, precommit, and goldens
check (pass, 186 fixtures, zero drift) all exit 0.
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