Repository navigation
refactor(xtask): extract the evidence-quality scorecard cluster from main.rs (#2119) - #2221
Conversation
|
Warning Review limit reached
Next review available in: 8 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. 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)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
…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.
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 (anchoredEVIDENCE_QUALITY_SCORECARD_SCHEMA_VERSION→trend_push_metric_table); zero foreign items in range, zero scorecard items outside it#[cfg(test)]); consumer map caught two consumers in evidence_audit.rsprovenstring (work-queue repair text) handled with the slice-5 fine-grainedripr-allowmechanism — byte-identical, follow-up rewording trackedEvidence (orchestrator-verified independently of the builder)
cargo test -p xtask: 1213 passed, 0 failedcargo clippy --workspace --all-targets -- -D warnings,cargo fmt --check,cargo xtask precommit: cleancargo xtask goldens check: zero drifttrend_push_metric_tablebody identical modulopub(crate)prefixcargo xtask module-health(advisory): main.rs 37,576, still flaggedRefs #2119