Repository navigation
fix(security): apply wait_timeout to security_cmd tirith calls (F-06) - #18
Merged
Merged
Conversation
The v0.1.6 overnight summary (branch #12) claimed fetch_audit_stats and fetch_doctor_status had the wait_timeout / stdout-cap / stdin-null pattern via a run_tirith_capture helper. Grepping the current file shows no such helper and no wait_timeout import — both call sites were running unbounded Command::new(bin).output(). Routes both through exec_capture_short with the same 8s budget the gate uses in tirith_gate.rs. Failure mode is identical to the previous .ok()? short-circuit: a hung or missing tirith reports as "no data" to the dashboard rather than freezing the `rtk security` command. Stacks on feat/sec-exec-capture-limits — that's where exec_capture_short ships. Closes F-06 from docs/security/AUDIT-subprocess-timeouts.md. Found by Codex round-2 review of the original audit doc. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
thehoff
force-pushed
the
feat/sec-security-cmd-actual-timeout
branch
from
May 18, 2026 05:36
0f19913 to
f486b00
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Stacked on #17. The v0.1.6 overnight summary claimed
src/analytics/security_cmd.rs::{fetch_audit_stats, fetch_doctor_status}had thewait_timeout/ stdout-cap / stdin-null pattern via arun_tirith_capturehelper. Grepping the current file showed no such helper and nowait_timeoutimport — both call sites were running unboundedCommand::new(bin).output().Routes both through
exec_capture_shortwith the same 8s budget the gate uses intirith_gate.rs. Operational shape now matches the gate; a hung tirith reports as "no data" to thecontextcrawler securitydashboard rather than freezing the command.Why this is its own PR
The fix depends on
exec_capture_shortshipping in #17. Once #17 merges, this branch rebases cleanly onto develop.Same failure mode the project memory rule
feedback_verify_code_not_subjects.mdcovers — the overnight summary's commit subject claimed the hardening landed; the code showed otherwise.Test plan
cargo buildcleancargo test2003 pass / 6 ignored / 0 failexec_capture_shortwith the same 8s budget astirith_gate.rs🤖 Generated with Claude Code