Repository navigation
Description
Problem
Shipped agent scripts need to know whether a comment on an issue or PR was written by a registered Fullsend bot. They have no way to get that answer under ADR 0107, so they recognise the bot by its GitHub App name instead.
- Triage. Step 2e of fullsend-ai/agents
agents/triage.md(fix(triage)!: carry causes as structured state across re-triage runs agents#2079) trusts an earlier triage analysis only when its author is aBotwhose App is<owner>-triage,fullsend-ai-triageor${FULLSEND_APP_SET}-triage. - Review.
scripts/lib/review-ops.lib.shtrusts the review App the same way, with-review, and pr-review: trust the same review App names as the review scripts, not a hard-coded slug agents#2050 asks the same ofpr-review's lookup of its prior risk assessment.
ADR 0107 and Authorization v2 require more than a naming convention. A bot counts only when its verified identity resolves to an exact registered actor.bot_role, through the mint or an equivalent trusted lookup. A name list also lets anyone who can register an App with a matching slug pass as the triage or review bot.
The resolver exists (internal/botidentity, the mint's POST /v1/bot-role), but only fullsend dispatch uses it (internal/cli/dispatch_botrole.go). A harness pre- or post-script can't call the mint itself. The lookup authenticates with the job's GitHub Actions OIDC token, and fullsend run withholds ACTIONS_ID_TOKEN_REQUEST_URL and ACTIONS_ID_TOKEN_REQUEST_TOKEN from child scripts (oidcDenyKeys in internal/cli/run.go, ADR 0073), which is correct.
What should change
Give host-side harness scripts the ADR 0107 bot-role result for a comment, without giving them the OIDC token. On GitLab and Jira one account can post for several roles, so the question is which role produced a comment, not which role a login holds (agreed in review on #9661):
fullsend bot-role --entity <entity.id> --comment <action id>, available to pre- and post-scripts underfullsend run.<entity.id>is the canonicalfullsend:entity:v1:…ID from the normalized entity spec, and<action id>is the comment's actionidfrom the same spec.- The answer means the same as the snapshot's
entity.comments[].actor.bot_role: the registered role of the comment's current-revision actor, so an edit by someone else answers for the editor. It prints the role orno_match, and a lookup that cannot be completed exits non-zero with empty stdout. - Only comments on the run's own entity are answered, and
fullsend runexports that entity's ID to the scripts. - GitHub resolves the actor through the mint (ADR 0107) with the runner's own OIDC token. GitLab and Jira exit non-zero until signature verification (#9263) or an equivalent trusted lookup exists there.
The entity-context-snapshot in ADR 0141 will carry bot_role for every admitted comment and can answer the same question once it exists.
Done when
- A harness pre- or post-script on GitHub can learn the registered Fullsend bot role of a comment's current-revision actor on the run's own entity, keyed by the canonical entity ID and the comment's action ID, without access to the OIDC token.
- A comment last edited by someone other than its bot author answers for the editor, and a comment on another entity is refused.
- A lookup failure, and any lookup on GitLab or Jira, is distinguishable from
no_match(non-zero exit, empty stdout), so callers fail closed. - Docs say how scripts use it, so fullsend-ai/agents can replace the App-name lists in triage step 2e (fix(triage)!: carry causes as structured state across re-triage runs agents#2079),
review-ops.lib.shandpr-review(pr-review: trust the same review App names as the review scripts, not a hard-coded slug agents#2050) withbot_role == "triage"or"review"checks.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
fullsend-ai-triage commentedon Nov 17, 2026
🤖 Finished Triage · ✅ Success · Started 2:20 PM UTC · Completed 2:22 PM UTC
Commit:
3e8fae6· View workflow run →Runtime: claude · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $0.22
fullsend-ai-triage commentedon Nov 17, 2026
Triage found this ready for implementation. Findings beyond the issue text:
internal/botidentityalready separates a lookup failure (wrapsErrLookup) from a successful no-match (empty role), which matches the "fail closed" requirement.internal/cli/dispatch_botrole.goalready builds the mint resolver, including mint URL resolution and OIDC fetch, so a script-facing entry point can reuse it. The parentfullsend runprocess keeps the OIDC variables whileoidcDenyKeysstrips them from children, so a subcommand that runs the lookup inside the runner's own process boundary respects ADR 0073 only if the token is never forwarded to the script.Proposed test case
Next steps:
/fs-code— agent creates a PR to implement this issue/fs-code <your instruction>— agent implements with your specific guidancefix(triage): stage text only for trusted records; cite fullsend's ADRs
test(fullsend-ai#9602): close the bot-role token alias leak; add --bo…
chore(fullsend-ai#9602): close the bot-role token alias leak; add --b…
docs(fullsend-ai#9602): close the bot-role token alias leak; add --bo…
test(fullsend-ai#9602): fail bot-role on a stdout write error
fix(fullsend-ai#9602): fail bot-role on a stdout write error
docs(fullsend-ai#9602): document the bot-role helper env pair
128 remaining items
chore(fullsend-ai#9602): answer the jflowers review threads on PR 9661
docs(fullsend-ai#9602): answer the jflowers review threads on PR 9661
test(fullsend-ai#9602): answer the round-12 maintainer review findings
docs(fullsend-ai#9602): answer the round-12 maintainer review findings
chore(fullsend-ai#9602): answer round-13 threads: truncation, rename,…
chore(fullsend-ai#9602): answer round-14 threads: shared constants, r…
test(fullsend-ai#9602): answer round-15 threads: assert inside httpte…
test(fullsend-ai#9602): paginate edit history, README wording, 90s ti…
chore(fullsend-ai#9602): paginate edit history, README wording, 90s t…
docs(fullsend-ai#9602): paginate edit history, README wording, 90s ti…
chore(fullsend-ai#9602): say REST honours the next-global-ID header too
docs(fullsend-ai#9602): say REST honours the next-global-ID header too
Merge pull request fullsend-ai#9661 from tpouyer/chore/9602-let-harne…