Repository navigation
fix(agt): withhold Claude Code stderr with stdout at the result gate - #521
Open
aaronormerod wants to merge 1 commit into
Open
aaronormerod wants to merge 1 commit into
aaronormerod wants to merge 1 commit into
Conversation
A deny replaced stdout and delivered stderr. Add `outputs.companions` to the hookmap: text fields that are not copies of the leaf. A withholding replaces them, a redaction leaves them. PostToolUse declares stderr. Part of GenAI-Security-Project#375 Signed-off-by: aaronormerod <137795541+aaronormerod@users.noreply.github.com>
aaronormerod
requested review from
GangGreenTemperTatum,
afogel,
artmaro,
bar-capsule,
fewdisc,
mamicidal,
rocklambros and
sclintonowasp
as code owners
November 8, 2026 13:12
|
Thanks for this. It is queued rather than ignored. A lead has not reviewed this pull request yet. A lead will read it when they have time, and we can't promise a date. Nothing here is rejected. If a check below fails, please fix it. A pull request that waits a long time may be closed, and you can reopen it later. |
This branch has not been deployed
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.
What changed
Adds
outputs.companionsto the hookmap. A result-gate deny now withholds Bash stderr with stdout.Which issue does this implement
Part of #375. A redaction still leaves stderr as produced. Evaluating stderr through the policy is the follow-up.
Base branch
integration, because this touches the specification, schemas, a referenceimplementation, an adapter, tests, or CI
main, because every changed path is on the documentation lane allowlist inCONTRIBUTING.md
Type of change
I tested this
uv run pytest -vpasses on my machineuv run mkdocs build --strictpasses on my machinebun testinreference-implementations/agtalso passes: 1316 pass, 4 skip. 33 new tests, mutation-checked. Not run in a live Claude Code session.Checklist
git commit -s(required by the DCO)Security
This closes a leak where a deny delivered stderr in clear.