Repository navigation
land: audit-u03-shell-watcher-logs - #536
Merged
Merged
Conversation
Carry 0720c571fbf5 / 59d3c98 / d3a645d; 6c4e1f94b1a3 / 82f1d72 / 1b9d226; 656cbfe92fe4 / a71b33e / e0a305e; 82292630116b / 507700b / d2429a9; fb9909628f75 / e16a7b6 / 1e4b90b; c0cc3bc802e1 / 14688ea / 13c5028. Reconcile immutable watcher snapshots and shared shell parsing with current root-aware matching, shell semantics and role profiles. Preserve contextual masking and redact terminal-sync output on both sinks. Correct the PTY golden's continuation-cell spaces because its raw input contains adjacent wide glyphs; cursor-gap assertions remain unchanged. Behavioral and permission-scan/profile/redaction controls fail when neutralized and pass restored; native Windows decoder control exposes the former unaligned-slice abort. Full Linux gate still reports baseline image/fixture failures, recorded in the delivery evidence for head follow-up. Co-authored-by: alfonso-aft <289616620+alfonso-aft@users.noreply.github.com>
…er-logs Co-authored-by: alfonso-aft <289616620+alfonso-aft@users.noreply.github.com>
Address both descriptor review findings on (#536). Enumerate open FDs in the parent with Linux procfs or macOS libproc, retain close_range CLOEXEC on Linux, and make the async-signal-safe fallback visit only captured descriptors. Document atomic CLOEXEC as the invariant for descriptors opened after the snapshot. Keep the two high-FD test claims and marker assertions, but move inheritable setup into isolated test processes before enumeration and select the FD from the actual hard limit. Cover sparse fcntl work, lower limits, explicit insufficient-limit skips, and late atomic-CLOEXEC opens. Numeric-sweep, fixed-target and cleanup-omission mutations redden their named regressions; restored tests pass on Linux and native macOS, including FD 245744 on macOS. Focused guards, binary tests and Windows compile pass. Full Rust gate was run and remains red on five environmental or parallel-run checks; three pass individually. No guard assertion was relaxed. Co-authored-by: alfonso-aft <289616620+alfonso-aft@users.noreply.github.com> (cherry picked from commit 854f34a37ead09a85ea2267ef158217b375329ec)
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.
Accepted agent delivery; branch-keyed search descriptor included.
Summary by cubic
Hardens bash rewriting, file watching, and logging so shell commands start with a cleaner environment, the watcher stays responsive under event bursts, wide characters render correctly in terminal sessions, and logs redact secrets more reliably.
Performance
CLOEXEC(close_rangeon Linux), so cleanup no longer sweeps unused numbers or depends on the hard descriptor limit.Correctness
ghp_,gho_, etc.).Written for commit 838abaf. Summary will update on new commits.


Confidence Score: 5/5
The PR appears safe to merge; no new blocking issue was established.Summary
This PR reduces repeated shell parsing, fixes wide-character output, improves log redaction, and updates file watching.
The follow-up changes focus on inherited file descriptors:
No new actionable issues were established. Both earlier threads were unnumbered and are resolved. The current code addresses their reported causes: fixed descriptor
70_000is gone, and the fallback no longer scans up to the hard limit.Reviews (2) · Last reviewed commit: "mason: bound descriptor cleanup to paren..." · Reviewed by Greptile