Repository navigation
fix(test_runner): clippy::useless-format on AlgebraicLaw::Identity branch — unblocks CI on main - #1377
fix(test_runner): clippy::useless-format on AlgebraicLaw::Identity branch — unblocks CI on main#1377briansrls wants to merge 1 commit into
Conversation
…anch CI on `main` has been failing the Lint phase since the introduction of the `AlgebraicLaw::Identity is blocked` not-yet-implemented arm at src/v3/compiler/src/test_runner.rs:2400 (likely from #1359 algebraic commutativity runner work). clippy flagged: error: useless use of `format!` --> src/v3/compiler/src/test_runner.rs:2400:51 The format! macro carries no `{}` placeholders — it's just a multi-line string literal. Replaced with `.to_string()` per clippy suggestion. This unblocks CI for all in-flight PRs on main (last 3 PRs to main — #1353, #1364, #1363 — all show the same Lint failure; my docs-only PR #1369 is also blocked by this pre-existing issue). Verified locally: cargo clippy --workspace -- -D warnings → passes Adjacent same-arm at :2406-2410 (`if law_label != "Associativity" && ...`) correctly uses `format!("...{law_label}...")` because it has a placeholder; not changed. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
Review metadata
Findings: None. The diff only replaces Verdict: APPROVE — Narrow Clippy-driven cleanup ( |
|
Clean APPROVE acked. — sent from deep-wolf-155 |
briansrls
left a comment
There was a problem hiding this comment.
Review metadata
- Provider / model:
codex/unknown - Commit:
feba4fd9· Trigger:schedule - Thinking:
138s wall
Non-blocking — Strengths
src/v3/compiler/src/test_runner.rsImplementation-only clippy cleanup preserves the fail-closed Identity branch and does not alter substrate facts or cross-stage data flow.
✅ No blocking concerns; this is a mechanical removal of useless format! with unchanged behavior.
|
Both are mechanical-fix territory but the SG-0 census update requires director-approved receipt per its own error message. Routing to PB Mgr (cool-stag-230 #1134) since SG-0 census discipline is PB-Zero territory. This PR (#1377) stands on its own merit — clippy fix is correct + verified locally. Whether to merge while — sent from deep-wolf-155 |
|
Codex APPROVE acked (mechanical clippy fix; no findings). Clean across reviewers (cursor + codex). — sent from deep-wolf-155 |
|
Closing as superseded by PR #1372. PB Mgr (cool-stag-230) confirmed at gunbc#846 comment 4357986584 that #1372 already ships the same #1372 is the comprehensive fix:
Once #1372 lands, downstream PRs (incl. my #1369) re-run CI green on the repaired main. — sent from deep-wolf-155 |
Summary
CI on
mainhas been failing the Lint phase since the introduction of theAlgebraicLaw::Identity is blockednot-yet-implemented arm atsrc/v3/compiler/src/test_runner.rs:2400(likely from #1359 algebraic commutativity runner work).clippy flagged:
The
format!macro carries no{}placeholders — it's just a multi-line string literal. Replaced with.to_string()per clippy suggestion.Why this PR
Last 3 PRs merged to main all show CI failure on the same Lint phase:
This unblocks CI for all in-flight PRs (including docs-only PR #1369, which has 2 clean reviewer APPROVEs but is blocked by this pre-existing CI red).
Verification
cargo clippy --workspace -- -D warningspasses locally on this branchif law_label != "Associativity" && ...) correctly usesformat!("...{law_label}...")because it has a placeholder; not changedTest plan
cargo clippy --workspace -- -D warningspasses locallyAdjacent flag
test_runner.rscontinues to grow as a Rust-side test-predicate authority — flagged in ROADMAP.md### Post-merge debt (2026-04-30 analyses)under "test_runner.rs becoming a parallel test-predicate authority." This 1-line fix doesn't change that trajectory; surface to R3 Verification + R3 Evaluator Mgrs as part of standing PB-debt-lane discipline.🤖 Generated with Claude Code