You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Guarded marker writes' stderr suppression fires after the write, not before -- "2>/dev/null" on "date +%s > MARKER || ..." leaves the shell's own permission-denied line unsuppressed #635
cohort-9Open at the v0.30.0 tag; frozen, can only shrinkfiled-by-loopFiled by the maintainer loop, not by a human. Sets the author axis in dispatch_rank.lane-capturein-session hooks and the summarizer — post-tool, prompt, session-start/end, haiku.py, prompts/priority:lowReal, but neither blocking nor compounding fast
Found by the gate 3 release audit on the delta v0.29.1..HEAD (round 1), class B, row misreports. Non-blocking. Observed, not reasoned -- reproduced directly.
Both new guarded writes added by #625 are shaped like:
date +%s >"$COOLDOWN_MARKER"2>/dev/null \
|| report_error "cooldown""WARNING: could not write ..."
(scripts/save-session.sh:405 for COOLDOWN_MARKER, :999 for NDC_MARKER.) Redirections are processed left to right, so the > is attempted -- and fails -- before 2>/dev/null takes effect. The 2>/dev/null is nominally there to suppress the raw shell error but is effectively a no-op: it only redirects fd 2 for whatever the shell does after the failed redirection is already reported.
Reproduced against a chmod 500 directory:
--- stderr.txt contents ---
t.sh: line 3: blocked/marker: Permission denied
--- fired.log ---
REPORT_ERROR_FIRED: WARNING: could not write blocked/marker
Both the shell's raw message and the intended report_error line are emitted -- a guard with no positive control, since nothing was actually being suppressed.
Mitigation confirmed, not assumed: scripts/bootstrap-dirs.sh:336 does exec 2>> "$REMEMBER_DIR/logs/hook-errors.log", and save-session.sh sources it at :77, so the stray line lands in hook-errors.log (already flattened per #618) rather than leaking into the agent's own stream -- except on the path where logs/ itself could not be created. So the consequence is a duplicated, unflattened line in the file a bug reporter is asked to paste, not a stream leak, but the redirection reads as if it suppresses the raw message and it does not.
Fix: move the redirection ahead of the write, e.g. { date +%s > "$MARKER"; } 2>/dev/null || ..., or drop the now-misleading 2>/dev/null entirely since hook-errors.log already catches it.
[AI-generated, filed by the maintainer loop's gate 3 release audit]
cohort-9Open at the v0.30.0 tag; frozen, can only shrinkfiled-by-loopFiled by the maintainer loop, not by a human. Sets the author axis in dispatch_rank.lane-capturein-session hooks and the summarizer — post-tool, prompt, session-start/end, haiku.py, prompts/priority:lowReal, but neither blocking nor compounding fast
Activity
Fix ndc_read_gen() FIFO hang and marker-write stderr leak (#634, #635) (
Fix NOW_DAY_FILE FIFO hang and five more stderr-order leaks in save-s…
Refuse a non-regular file at every marker WRITE site, and report a no…