style(pi-shell): apply rustfmt and clippy-equivalent cleanup - #3685
Conversation
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
bb5ed18 to
c696a0f
Compare
76d0d7c to
9b1fb53
Compare
Align process-tree comments and control-flow formatting with the repository rustfmt configuration, and apply the semantic-preserving `clippy::question_mark` cleanup required by the repository Rust checks. The telegram daemon generation guard treats crates/pi-shell/src/process.rs as protected Telegram and discord native authority, so the cleanup ships with the mandated DAEMON_GENERATION 38 -> 39 and CHAT_DAEMON_GENERATIONS.discord 20 -> 21 bumps plus a regenerated semantic manifest. Issue: #3682 Constraint: formatting plus lint-equivalent maintenance only; no semantic change to process.rs Constraint: generation bumps and manifest regeneration are guard-mandated, not optional Constraint: do not absorb unrelated clippy cleanup or increment unrelated generations Tested: cargo fmt --all -- --check Tested: bun run check:rs Tested: cargo test -p pi-shell Tested: bun scripts/telegram-daemon-generation-guard.ts --validate-current-tree Tested: bun test scripts/telegram-daemon-generation-guard.test.ts Tested: bun test packages/coding-agent/test/notifications-telegram-daemon.test.ts packages/coding-agent/test/daemon-control.test.ts Confidence: high Scope-risk: narrow Reversibility: trivial
9b1fb53 to
ec373d1
Compare
Yeachan-Heo
left a comment
There was a problem hiding this comment.
MERGE_READY — exact-head hostile review
Head under review: ec373d1dcb20a78822f523b6c92eec9fe780e192
Base: cc5873573 (current dev, post-#3686 4c6e817 + #3687 eef2afb + main-into-dev release merge)
Verdict
CI is terminal green at the exact head: 0 failed, 0 pending, all required checks pass or skip legitimately. mergeable: MERGEABLE, mergeStateStatus: CLEAN.
Hostile-review findings (all cleared)
- Exact recovery fidelity.
crates/pi-shell/src/process.rsis byte-identical to the approved exact head091fbbff(empty diff). The original 14-green/1-red shape is preserved; nothing unrelated was absorbed. - Original red root cause. The Telegram guard red was a native-authority digest mismatch (
8647fbf7…manifest vs regenerated tree digest). Fixed by regeneratingscripts/telegram-daemon-generation-manifest.json; the process.rs entry is now45b22243…and--validate-current-treepasses locally. - Guard-mandated generation bumps. The guard treats the process.rs authority change as a protected lifecycle change for both Telegram and discord. Per policy the commit ships
DAEMON_GENERATION 38 → 39andCHAT_DAEMON_GENERATIONS.discord 20 → 21, with only those two digests plus the process.rs authority digest changed in the manifest — verified line-by-line against base. No other generation was incremented; no unrelated authority was touched. - Scope audit. Full diff vs base is exactly five files: process.rs (formatting/clippy-equivalent only, semantics unchanged), the two generation constants with history comments, the one pinned test expectation (
DAEMON_GENERATION38 → 39 innotifications-telegram-daemon.test.ts), and the manifest. No drive-by edits. - Local verification at this head.
cargo fmt --all -- --checkclean;bun run check:rsexit 0;cargo test -p pi-shell202/202; guard suite 42/42;--validate-current-treeVALID;notifications-telegram-daemon+daemon-control672/672. - Lease discipline. Every force-push used
--force-with-leasepinned to the previously observed remote head; no user work was overwritten. Rebases raced dev twice (eef2afb→cc5873573) and were re-verified each time.
Residual risk: none identified beyond the inherent daemon-generation rollover, which is the guard's intended mechanism and is covered by the lifecycle test suites above.
MERGE_READY
—
[repo owner's gaebal-gajae (clawdbot) 🦞]
gajae receipt — PR #3685 exact recovery (issue #3682)
Recovery actions
Verification at final head (local)
CI at final head
Push discipline
Status
|
Summary
crates/pi-shell/src/process.rsclippy::question_markcleanup required by the repository Rust check at the existing task-name conversiondevtip and do not absorb unrelated clippy cleanupEvidence
devata9189f6cad3da50cbcc66ac47ebfae4b6da8d11205456b20917d9a08ef6506212b6a7ad9438a4f6dcrates/pi-shell/src/process.rsonlylet Some(tid_str) = name.to_str() else { return None; };was replaced bylet tid_str = name.to_str()?;, preserving the sameNonebehaviorcargo fmt --all -- --checkpassedbun run check:rspassed, including cargo fmt and workspace clippy with-D warningscargo test -p pi-shellpassed, 202 passed, 0 failed; doc-tests 0 passedCloses #3682