Repository navigation
Description
What is missing
The behavior-test suite now has a real GitHub mint matrix in
e2e/behaviour/features/platform/mint-scope.feature, backed by
pkg/behaviourtest/steps/mint_probe.go.
ADR 0107 needs equivalent executable coverage for provider-backed bot-role
lookup. Without this, an implementation could continue deriving roles inside
the authorization gate, rely on hardcoded bot names, or treat mint permission
as dispatch authorization without being caught by behavior tests.
What should happen
Add a GitHub bot-role lookup API and implementation covered by a behavior-test
matrix using real mint-accessible GitHub App identities.
The matrix should cover:
- a registered app identity resolving to its exact canonical Fullsend role;
- the existing
e2eApp, which is installed in the test organization and
accessible to the suite but is not included in the test mint's registered
role set, producing a successful no-match for the target repository; - an identity registered for a different target not matching the current
repository; - provider/API lookup failure;
- the corresponding
actor.kind,actor.role,actor.bot_role, and
actor.role_verifiedresults; - non-label dispatch being allowed only for a recognized bot role;
- successful no-match and lookup failure being distinguishable and denied
before CEL authorization.
The test must use the existing test-organization App inventory. It must not
require creating a new unauthorized App, depend on production
fullsend-ai-* App names, or accept a role claimed by event content.
Minted credentials and private material must not be written to artifacts or
logs. The test should retain only sanitized lookup results and dispatch
outcomes.
Context
This is the GitHub lookup/test slice of #8329,
which tracks the complete ADR 0107 implementation.
The test should follow the existing mint-probe pattern: real provider
authentication, a scenario outline or equivalent example matrix, and explicit
failure handling so infrastructure errors cannot pass as expected lookup
denials.
Non-GitHub lookup behavior remains deferred until a non-GitHub behavior-test
environment exists.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
fullsend-ai-triage commentedon Oct 14, 2026
🤖 Finished Triage · ✅ Success · Started 7:03 AM UTC · Completed 7:05 AM UTC
Commit:
f75a156· View workflow run →Runtime: claude · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $0.23
fullsend-ai-triage commentedon Oct 14, 2026
Your responses settle the open points from the previous round, and the scope below now reflects them. No open or merged PR addresses this issue, and #8329 stays the owner of the shared resolver contract.
Updated scope
The API shapes proposed earlier are otherwise unchanged: the forge-neutral BotRoleResolver, the OIDC-bound POST /v1/bot-role endpoint, the outcome-to-actor-field mapping, and the extended mint-probe steps.
Matrix after the scope change
As you requested, this is not auto-promoted. Run
/fs-codewhen you approve the shapes, or add guidance to the command.Labels: The needs-design label no longer fits: the API shapes were proposed and the maintainer's answers resolve the open design points.
Next steps:
/fs-code— agent creates a PR to implement this issue/fs-code <your instruction>— agent implements with your specific guidancePrevious run
This re-triage responds to the request to propose the API shapes. These are proposals for maintainer approval, not decisions. The earlier points still apply, and #8329 should own the shared resolver contract.
1. Forge-neutral resolver contract. Put it in a small package that does not import mintcore, so the dispatch path and
pkg/behaviourtestcan both use it:A single helper maps the three outcomes onto the actor fields from ADR 0107:
kindrolebot_rolerole_verifiedAdd
BotRole string(omitempty) andRoleVerified *booltonormevent.Actor. The pointer keeps "not applicable" distinct fromfalse.IsAuthorizedthen gets a non-label bot branch that requires a non-emptyBotRole, and the label exception stays untouched.2. Mint lookup surface (GitHub). Add an OIDC-authenticated
POST /v1/bot-roleto mintcore, next to/v1/token:{"actor_login": "<slug>[bot]", "repo": "owner/repo"}. The mint bindsrepoto the OIDCrepositoryclaim, so a caller cannot ask about another target.{"outcome": "recognized", "role": "review"}or{"outcome": "no_match"}. Any 401/5xx or transport error is a lookup failure.ROLE_APP_IDS. This avoids hardcoded bot names. Target scoping should reuse the mint's existing installation and foreign-grant checks.internal/, likeinternal/mintclient.3. Behavior-test surface. Extend the mint-probe harness (same leased repo, probe workflow and control request) with these steps:
<identity>is a symbolic name (registered:review,unregistered-e2e,other-target,forced-failure,claimed-in-event) that the step resolves to real logins at runtime. Discover the e2e login at runtime instead of hardcoding it. For the forced-failure row, send a subject request with deliberately invalid credentials while the control request in the same run still succeeds. That keeps it distinct from an infrastructure error, which fails the scenario.Open points for maintainers:
e2etest App and that the installed one is the production-named App. That conflicts with the no-production-names requirement, so confirm the discovery approach.pkg/behaviourtestmay import the dispatch gate without pulling mintcore into its graph must be checked againstTestBehaviourtestDepsExcludeMintcore..embedsync and must respect the WASM size limit.harness-fields.mdand the Authorization v1 banner.This feature is not auto-promoted. Please confirm or adjust the shapes before dispatching the code agent.
Next steps:
/fs-code— agent creates a PR to implement this issue/fs-code <your instruction>— agent implements with your specific guidancePrevious run (2)
Triage assessment: the expected outcomes are already pinned down by ADR 0107 and the Authorization v1 decision table (recognized role, successful no-match with role_verified true, lookup failure with role_verified false, both denied before CEL on non-label paths), and the mint-probe feature and steps give a clear pattern to follow. No open PR currently addresses this issue.
Points for whoever picks it up:
Proposed test matrix:
Next steps:
/fs-code— agent creates a PR to implement this issue/fs-code <your instruction>— agent implements with your specific guidanceifireball commentedon Oct 14, 2026
/fs-triage suggest the shapes of the APIs that need to be designed, I will inovke the code agent upon approval, or request fixes in further comments
fullsend-ai-triage commentedon Oct 14, 2026
🤖 Finished Triage · ✅ Success · Started 8:01 AM UTC · Completed 8:04 AM UTC
Commit:
f75a156· View workflow run →Runtime: claude · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $0.37
14 remaining items
fix(#8413): honor rate-limit resets and retry transient GitHub failur…
feat(#8413): add GitHub bot-role lookup and behaviour matrix
ifireball commentedon Oct 20, 2026
Scope update for PR #8415: I requested reset-aware recovery after BT exhausted the shared GitHub installation quota in this /fs-fix instruction. Keep the resulting
internal/forge/githubprimary-limit wait in this PR, with its production-wide effect on GitHub forge calls and its caller-context/65-minute bound. The BT repo-allocation quota pacing is also in scope. The PR description now discloses both changes. This scope decision does not waive the required BT check or remaining review fixes.docs(#8413): name the role response field in the bot-role doc
fix(#8413): trace bot-role lookup stages with sanitized upstream detail
feat(#8413): add GitHub bot-role lookup and behaviour matrix
fix(#8413): address review feedback on PR #8415
feat(#8413): add GitHub bot-role lookup and behaviour matrix
fix(#8413): address review feedback on PR #8415
fix(#8413): authenticate the /apps lookup with an installation token
fix(#8413): address remaining review threads on PR #8415
feat(#8413): add GitHub bot-role lookup and behaviour matrix
Merge pull request fullsend-ai#8415 from fullsend-ai/agent/8413-bot-r…