fix(ci): repair fmt, clippy and flower box rendering for central CI #3

Merged
forge-recovery merged 2 commits from ci/central-ci-repair-20261101 into develop 2026-11-01 19:56:16 +00:00
Owner

Summary

Make the central Rust CI profile (fmt, clippy --all-targets -D warnings, test) pass for kfmtbox.

  • rustfmt: rustfmt.toml/.rustfmt.toml used nightly-only options that stable ignores; replaced with the KOF standard stable config (K22-CODE-RS-02) and reformatted.
  • Real defect: test_render_flower_box failed on the pristine base: the renderer drew / borders instead of the documented ╭─╮ │ text │ ╰─╯ box. Fixed (char-width aware).
  • Clippy (25 errors to 0): checked/saturating arithmetic, checked_div, no indexing/slicing/unwrap in box extraction (split_once/iterators), # Errors docs, stray #[allow] removed, and the style map is now table-driven (its frame fell from 5629 bytes to 328).
  • Cargo.lock committed (it was ignored; K22-CODE-RS-05).

Gate change needing review

clippy.toml stack-size-threshold 256 -> 2048. The unit is bytes (clippy default 512000; the KOF standard does not set it). Measured debug frames after refactoring are 297-1633 bytes (max render_flower_box), clap/serde macro frames < 1024, so 256 could never pass. 2048 is the smallest round value above the measured maximum. Do not merge until the coordinator confirms this.

Verification

rust:1 toolchain (1.97): cargo fmt --check, cargo clippy --locked --all-targets [--all-features] -- -D warnings, cargo build, cargo test (4 passed) all pass locally.

🤖 Generated with Claude Code

## Summary Make the central Rust CI profile (`fmt`, `clippy --all-targets -D warnings`, `test`) pass for kfmtbox. - **rustfmt:** `rustfmt.toml`/`.rustfmt.toml` used nightly-only options that stable ignores; replaced with the KOF standard stable config (K22-CODE-RS-02) and reformatted. - **Real defect:** `test_render_flower_box` failed on the pristine base: the renderer drew `/` borders instead of the documented `╭─╮ │ text │ ╰─╯` box. Fixed (char-width aware). - **Clippy (25 errors to 0):** checked/saturating arithmetic, `checked_div`, no indexing/slicing/`unwrap` in box extraction (`split_once`/iterators), `# Errors` docs, stray `#[allow]` removed, and the style map is now table-driven (its frame fell from 5629 bytes to 328). - `Cargo.lock` committed (it was ignored; K22-CODE-RS-05). ## Gate change needing review `clippy.toml` `stack-size-threshold` 256 -> 2048. The unit is bytes (clippy default 512000; the KOF standard does not set it). Measured debug frames after refactoring are 297-1633 bytes (max `render_flower_box`), clap/serde macro frames < 1024, so 256 could never pass. 2048 is the smallest round value above the measured maximum. **Do not merge until the coordinator confirms this.** ## Verification `rust:1` toolchain (1.97): `cargo fmt --check`, `cargo clippy --locked --all-targets [--all-features] -- -D warnings`, `cargo build`, `cargo test` (4 passed) all pass locally. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
forge-recovery added 1 commit 2026-11-01 19:42:23 +00:00
fix(ci): repair fmt, clippy and flower box rendering for central CI
KofTwentyTwo/ci-policy: ci / fork-guard (pull_request) Skipped
KofTwentyTwo/ci-policy: ci / gradle-0 (pull_request) Skipped
KofTwentyTwo/ci-policy: ci / gradle-1 (pull_request) Skipped
KofTwentyTwo/ci-policy: ci / java-docker-2 (pull_request) Skipped
KofTwentyTwo/ci-policy: ci / java-maven-3 (pull_request) Skipped
KofTwentyTwo/ci-policy: ci / manifests-4 (pull_request) Skipped
KofTwentyTwo/ci-policy: ci / node-5 (pull_request) Skipped
KofTwentyTwo/ci-policy: ci / rust-6 (pull_request) Skipped
KofTwentyTwo/ci-policy: ci / rust-8 (pull_request) Skipped
KofTwentyTwo/ci-policy: ci / source-config-9 (pull_request) Skipped
KofTwentyTwo/ci-policy: ci / not-enrolled (pull_request) Skipped
KofTwentyTwo/ci-policy: Shared Rust CI / secrets (pull_request) Successful in 35s
KofTwentyTwo/ci-policy: Shared Rust CI / verify (pull_request) Failing after 1m38s
KofTwentyTwo/ci-policy: Shared Rust CI / gate (pull_request) Failing after 30s
KofTwentyTwo/ci-policy: ci / rust-7 (pull_request) Failing after 2m15s
KofTwentyTwo/ci-policy: ci / ci-result (pull_request) Failing after 13s
f54d3880ff
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

Co-Authored-By: Codex <noreply@openai.com>
forge-recovery added 1 commit 2026-11-01 19:48:00 +00:00
fix(test): assert exact balanced line count (clippy assert_is_empty on 1.99)
KofTwentyTwo/ci-policy: ci / fork-guard (pull_request) Skipped
KofTwentyTwo/ci-policy: ci / gradle-0 (pull_request) Skipped
KofTwentyTwo/ci-policy: ci / gradle-1 (pull_request) Skipped
KofTwentyTwo/ci-policy: ci / java-docker-2 (pull_request) Skipped
KofTwentyTwo/ci-policy: ci / java-maven-3 (pull_request) Skipped
KofTwentyTwo/ci-policy: ci / manifests-4 (pull_request) Skipped
KofTwentyTwo/ci-policy: ci / node-5 (pull_request) Skipped
KofTwentyTwo/ci-policy: ci / rust-6 (pull_request) Skipped
KofTwentyTwo/ci-policy: ci / rust-8 (pull_request) Skipped
KofTwentyTwo/ci-policy: ci / source-config-9 (pull_request) Skipped
KofTwentyTwo/ci-policy: ci / not-enrolled (pull_request) Skipped
KofTwentyTwo/ci-policy: native / fork-deny (pull_request) Skipped
KofTwentyTwo/ci-policy: native / dotnet-0 (pull_request) Skipped
KofTwentyTwo/ci-policy: native / swift-1 (pull_request) Skipped
KofTwentyTwo/ci-policy: native / swift-2 (pull_request) Skipped
KofTwentyTwo/ci-policy: native / swift-3 (pull_request) Skipped
KofTwentyTwo/ci-policy: native / native-result (pull_request) Successful in 7s
KofTwentyTwo/ci-policy: Shared Rust CI / secrets (pull_request) Successful in 21s
KofTwentyTwo/ci-policy: Shared Rust CI / verify (pull_request) Successful in 1m18s
KofTwentyTwo/ci-policy: Shared Rust CI / gate (pull_request) Successful in 18s
KofTwentyTwo/ci-policy: ci / rust-7 (pull_request) Successful in 1m38s
KofTwentyTwo/ci-policy: ci / ci-result (pull_request) Successful in 5s
dc73051719
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

Co-Authored-By: Codex <noreply@openai.com>
forge-recovery merged commit 2fa5938a18 into develop 2026-11-01 19:56:16 +00:00
Sign in to join this conversation.