-
Notifications
You must be signed in to change notification settings - Fork 0
fix(chore-style): forbid create_issue in autofix mode; agent must open PR #39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
norrietaylor
wants to merge
1
commit into
main
Choose a base branch
from
fix/issue-30-autofix-mode-tool-gating
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add runtime enforcement for mode/tool mismatch, not just prompt prose
This block confirms the system still permits
create_issueside effects inautofixwhen the agent miscalls the tool. That means the#30failure mode can recur under model drift. Please add an execution-time guard (before safe-output processing) that rejects mismatched tool types byinputs.modeso wrong outputs fail closed instead of being applied.🤖 Prompt for AI Agents
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Acknowledged — the model-drift concern is real. Runtime enforcement was investigated in the original PR work and is blocked upstream in gh-aw today; the rationale is captured both in the Why no
max:gating section of the PR body and in the inline YAML comment insafe-outputs:in everychore-style-*source file.Short version: every supportable gh-aw expression form for a templated
max(the natural gating point) renders into the safe-outputs JSON env var with characters that actionlint refuses (&&→&&; nested\"insidefromJSON()breaks the expression lexer). gh-aw'ssafe_outputs_config_generation.gouses plainjson.Marshal(HTML-escaping on) instead of the project's ownMarshalCompactNoHTMLEscape. Fixing this is a 1-line gh-aw upstream change and out of scope for this PR.Tracking the upstream side and a complementary fixture-based CI defense in a new issue rather than blocking this PR. The current prose+forbidden-list contract is the strongest defense available without an upstream change; adding a runtime parse-and-fail step inside the chore lock would require either hand-editing the generated lock files (against repo conventions — see CLAUDE.md) or duplicating the chore logic into a wrapper-side validator, both of which trade more surface area for marginal extra safety.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@norrietaylor, thanks for the thorough write-up — the constraint is clear and well-documented. The root cause (json.MarshalHTML-escaping insafe_outputs_config_generation.goproducing&&that actionlint can't lex) is a genuine upstream blocker, and the prose-contract approach is the right call given that hand-editing generated lock files is out per CLAUDE.md. I'll withdraw the original concern for this PR.Would you like me to open the tracking issue for the two follow-up items you mentioned?
safe_outputs_config_generation.gofromjson.Marshalto the project'sMarshalCompactNoHTMLEscapesomax:can be gated with a templated expression.create_issueis never invoked wheninputs.mode == autofix(and vice versa), catching model-drift regressions without requiring the upstream change.Just say the word and I'll create it and link it back to this PR and
#30.✏️ Learnings added