Repository navigation
Use shared output-writer checks in the active hook (T49) - #211
Merged
Merged
Conversation
This was referenced Oct 14, 2026
erickb336
marked this pull request as ready for review
October 14, 2026 02:39
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.
Closes #99
Sage task T49
The active hook now uses shared output-writer checks. Both the chief and child agents refuse recognized output commands aimed at the logbook. Ordinary scratch outputs and reads retain their behavior.
This completes the remaining hook portion of #99. Shared API branch-write protection already merged in #198; shared output-file classification merged in #204/#206. The hook adapter preserves its fail-closed import and parse behavior. This changes only writes() in the hook; Claude #140's lead changes and test-file reorganization remain untouched.
Final head:
d7e6cce2a6df86980b0d292a45a7c694f3638357, including main748b267.Validation:
npm run build: 286 generated files; committed the generated hook.npm run check: all checks pass.5b2385afails behaviorally: a chief curl output aimed at the logbook passes instead of being denied.npm test -- --test-concurrency=1: tests 1185, pass 1185, fail 0, cancelled 0, skipped 0.All command strings go to the hook parser only. Fake ps, pgrep and kill are first on PATH for every test. No attack command was executed. The host sandbox was not tested, so this PR does not claim that it blocks these paths. This does not enable automatic Sage or resolve native required-hook failure behavior.