Skip to content

workflows: Trust our own bot's authored content - #28

Merged
cgwalters merged 1 commit into
mainfrom
trust-app-bot
Jul 30, 2026
Merged

cgwalters merged 1 commit into
mainfrom
trust-app-bot

Conversation

@cgwalters

Copy link
Copy Markdown
Member

Fixes the gap discovered while retrying issue #24's failed drafter run:
relabeling the auto-created fallback issue (#26) resulted in a silent
no-op because gh-aw's integrity filtering treats plain issues authored
by our own cgwaltersbot[bot] as untrusted on this public repo (PRs get
a pass for this, issues don't).

Adds min-integrity: approved + trusted-users: ["cgwaltersbot[bot]"]
to all three workflows' tools.github config, and documents it in
README.md alongside the other App-token gotchas.

This doesn't change the recommended recovery path for a rejected
push (fix label order on the original issue, or apply the bundle
manually) — it just means relabeling a fallback issue is no longer a
silent dead end if someone tries it.

gh-aw filters GitHub content by integrity: on a public repo, plain
issues not authored by an OWNER/MEMBER/COLLABORATOR (or a first-party
bot) default below the 'approved' threshold and are silently dropped
before the agent sees them. Pull requests get a pass for this (any
non-fork PR on a public repo counts as approved), but issues don't -
including the fallback issues cgwaltersbot[bot] itself files when a
safe-output push is rejected.

This bit us concretely: relabeling fallback issue #26 to retry the
task after fixing the label order resulted in a no-op, because the
agent's GitHub MCP gateway filtered out the issue body describing what
to do, and it correctly reported it couldn't read the resource rather
than guessing.

List the bot in tools.github.trusted-users (which requires
min-integrity to be set explicitly) on all three workflows so its own
output counts as trusted input. This doesn't change the recommended
recovery path (fix label order on the original issue, or apply the
bundle manually) - it just means relabeling a fallback issue is no
longer a silent dead end if someone tries it anyway.

Assisted-by: Claude Sonnet 5 <[email protected]>
@cgwalters
cgwalters merged commit ec65cf6 into main Jul 30, 2026
7 checks passed
@cgwalters
cgwalters deleted the trust-app-bot branch July 30, 2026 15:50
@cgwalters cgwalters mentioned this pull request Jul 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant