You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add a trusted GitLab actor-ID to ADR 0107 bot role resolver from role registry and rotation state #9064
featureFeature-category issue awaiting human prioritizationready-for-triageTriggers triage agent dispatchtriagedTriaged but awaiting human prioritization
Part of ADR 0107 bot authorization for GitLab events (parent tracking issue #8329; original scope in #9059). The poller currently resolves every actor through project membership. It needs a reusable, trusted lookup that maps an exact numeric GitLab user ID to a canonical ADR 0107 bot role.
What should happen
Add a small shared reader (likely in or alongside internal/gitlabroles, reading rotation state types from internal/repos) that builds an exact numeric-ID to role map from FULLSEND_GITLAB_ROLE_REGISTRY (role policy) and FULLSEND_GITLAB_ROLE_ROTATION (account IDs: managed_user_id and supplied_user_id), including current and overlapping identities during rotation. Prefer this recorded mapping over runtime account enumeration.
For this scope assume the shared Analyst credential identity maps to the ADR 0107 role review. The Analyst account is shared by review, triage and retro, and account identity alone cannot tell them apart, so all of them resolve to review.
Verify the actor is a bot or service account before assigning a bot role. A supplied credential can belong to a human, so its owner ID alone must not grant bot authorization.
Return distinct outcomes: verified match (role), verified no-match (empty role, verified), and lookup failure (unverified). The latter two both deny at the gate, but must stay distinguishable.
Treat credentials flagged ambiguous (see the legacy project-access-token sub-issue) as no canonical role, and deny.
The registration must come only from administrator-controlled installation state, never repository or event content.
Open question for the implementer
Confirm the poller and dispatcher CI jobs can read the rotation variable at runtime. If they cannot, determine how the trusted mapping reaches them.
Acceptance
Unit tests cover: registered Analyst ID, rotation with old and new IDs, an unregistered bot, a human-owned supplied credential, ambiguous credential, missing or malformed state (lookup failure), and no-match.
Open question for maintainers/implementer (not the reporter): the scaffolded GitLab CI scripts in the repo currently reference the role registry variable but not the rotation variable. Confirm whether poller and dispatcher jobs can read the rotation variable at runtime, and if not, decide how the trusted mapping reaches them. This should be settled before wiring in Enforce ADR 0107 bot authorization in the GitLab poll and webhook event path before routing #9065.
Design reminders: keep the three outcomes (match, verified no-match, lookup failure) distinct even though the last two both deny; verify bot/service-account status before assigning a role; and since the ambiguity flag may not exist in state yet, make the resolver fail closed on unknown or absent flags in a way that is compatible with Persist or resolve the legacy project-access-token bot user ID to a registered GitLab role for ADR 0107 #9063.
Proposed test case:
Table-driven resolver tests:
- registered Analyst ID -> verified match, role 'review'
- rotation overlap (old + new IDs) -> both resolve to same role
- unregistered bot ID -> verified no-match (empty role)
- human-owned supplied credential -> denied
- ambiguous-flagged credential -> no role, denied
- missing/malformed registry or rotation state -> lookup failure (unverified)
- zero/negative IDs -> never match
Next steps:
/fs-code — agent creates a PR to implement this issue
/fs-code <your instruction> — agent implements with your specific guidance
featureFeature-category issue awaiting human prioritizationready-for-triageTriggers triage agent dispatchtriagedTriaged but awaiting human prioritization
Activity
fullsend-ai-triage commentedon Nov 3, 2026
🤖 Finished Triage · ✅ Success · Started 9:48 AM UTC · Completed 9:50 AM UTC
Commit:
c7652ad· View workflow run →Runtime: claude · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $0.13
fullsend-ai-triage commentedon Nov 3, 2026
Triage notes for the implementer:
Proposed test case:
Next steps:
/fs-code— agent creates a PR to implement this issue/fs-code <your instruction>— agent implements with your specific guidance