Repository navigation
Description
What happens
GitLab source events enter through two built-in drivers:
- The scheduled/event polling path runs
Poller.Run. - The native webhook fast path runs
Poller.RunWebhook.
Both use Poller.toNormalizedEvent and the same poll dispatch spine. This issue covers both. Jira events sent to GitLab with jira-poll --target-forge gitlab have Jira as their source and are outside this scope.
The shared converter classifies bot actors but resolves every actor's actor.role through GitLab project membership. It does not carry ADR 0107's actor.bot_role or actor.role_verified in the GitLab dispatch event. Bot events that pass the existing GitLab filtering rules therefore still rely on project membership instead of exact registered bot identity. The GitLab path currently routes through dispatch.HarnessRouter, not the CEL dispatch adapter.
What should happen
Implement ADR 0107 bot authorization in the shared GitLab event path:
- Resolve positively identified GitLab bots against a trusted, project-scoped registration of exact account identity to canonical role. Keep this registration in administrator-controlled installation state, not repository or event content.
- Carry the lookup result in the GitLab dispatch event: bots retain
actor.role: noneand includeactor.bot_roleandactor.role_verifiedas appropriate. - Deny non-label bot events with a successful no-match or lookup failure before
dispatch.EventRouter(currentlyHarnessRouter) and pipeline dispatch. Do not fall back to project-membership authorization for bots. Distinguish no-match from lookup failure; both deny. - Preserve the existing human permission mapping and the current bot-event loop filters. Registration must not admit every bot-authored comment or transition by itself.
- Preserve label-added authorization only when GitLab provides the authoritative actor-to-transition evidence required by ADR 0107; otherwise use the ordinary authorization gate.
- Cover both polling and webhook entry paths, including registered bots, unregistered bots, lookup failure, human controls, and the label case. Denied rows must prove no agent dispatch; positive controls must prove the harness ran.
- Update the authorization and normalized-event documentation. If GitLab later moves to the CEL dispatch adapter, keep bot authorization ahead of CEL evaluation.
Context
This is a child of #8329 and implements the non-mint provider requirement in ADR 0107 for GitLab. GitLab role credential lifecycle work in #7496 is related but separate.
Sub-issues
Collapse Sub-issuesSub-issues
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
fullsend-ai-triage commentedon Nov 3, 2026
🤖 Finished Triage · ✅ Success · Started 7:24 AM UTC · Completed 7:26 AM UTC
Commit:
f6e35de· View workflow run →Runtime: claude · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $0.12
fullsend-ai-triage commentedon Nov 3, 2026
Re-triage after the added implementation guidance. No open PR addresses this issue, and nothing new blocks it. The earlier findings still hold: the shared converter in
internal/poll/convert.goresolves every actor through project membership, and the normalized-event schema already supports and validatesbot_role/role_verified, so the poller is the missing producer.How the new guidance maps onto the code
VarGitLabRoleRegistry,VarGitLabRoleRotation). The registry code is ininternal/gitlabroles, while rotation state withManagedUserID/SuppliedUserIDlives ininternal/repos. The implementation will likely need a small shared reader that turns these into an exact numeric-ID → role map, covering current and overlapping IDs during rotation.bot_roleis assigned, because a supplied credential can belong to a human. Bots stay atactor.role: none.analyst == review, events from the shared Analyst account (used by review, triage and retro) are treated asreview.role_verified: false) must stay distinguishable from no-match (verified, emptybot_role). Both deny non-label dispatch before routing, with no membership fallback.Proposed test case
This issue is categorized as a feature, so it is not auto-promoted. A maintainer can start implementation with
/fs-code.Next steps:
/fs-code— agent creates a PR to implement this issue/fs-code <your instruction>— agent implements with your specific guidancePrevious run
Re-triage found no new blockers, and no open PR addresses this issue. The earlier triage findings still hold:
bot_role/role_verified, so the poller is the missing producer.Proposed test case:
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 notes (net-new context only):
internal/poll/convert.goresolves every actor, bot or human, via project membership (resolveActorRole) and builds the actor with only ID, kind and role.internal/normeventalready defines and validatesbot_role/role_verified(a setbot_rolerequiresrole_verified: true), so the poller is the missing producer.internal/gitlabrolestoday maps role names to credential references, not exact bot account identity to role. The trusted registration may need a small extension. It must stay administrator-controlled installation state (not.fullsend/config.yaml, harness files or MR content), per the existing registry trust rules.role_verified: falsevstruewith emptybot_role), and both deny non-label dispatch before CEL. Label-added authorization stays only where the actor is bound to the label transition, which the webhook builder and poll label-event snapshot already do.Proposed test case:
Next steps:
/fs-code— agent creates a PR to implement this issue/fs-code <your instruction>— agent implements with your specific guidancefullsend-ai-triage commentedon Nov 3, 2026
🤖 Finished Triage · ✅ Success · Started 8:10 AM UTC · Completed 8:12 AM UTC
Commit:
438c5de· View workflow run →Runtime: claude · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $0.17
ifireball commentedon Nov 3, 2026
/fs-triage Please make the implementation approach in this issue more concrete:
review.FULLSEND_GITLAB_ROLE_REGISTRYfor role policy andFULLSEND_GITLAB_ROLE_ROTATIONfor account IDs (managed_user_id/supplied_user_id), including current and overlapping identities during rotation. Prefer this recorded mapping over runtime account enumeration.actor.bot_role. A supplied credential can belong to a human, so its owner ID alone must not grant bot authorization. Keep bots atactor.role: none; deny unknown bots and lookup failures without falling back to project-membership authorization.review,triage, andretro. Under theanalyst == reviewassumption, treat those events asreview; GitLab account identity alone cannot distinguish which agent acted.fullsend-ai-triage commentedon Nov 3, 2026
🤖 Finished Triage · ✅ Success · Started 9:37 AM UTC · Completed 9:39 AM UTC
Commit:
c7652ad· View workflow run →Runtime: claude · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $0.16
ifireball commentedon Nov 3, 2026
/fs-triage consider if this can be implemented in one agent run or should be split to sub issues
fullsend-ai-triage commentedon Nov 3, 2026
🤖 Finished Triage · ✅ Success · Started 9:43 AM UTC · Completed 9:46 AM UTC
Commit:
c7652ad· View workflow run →Runtime: claude · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $0.19
fullsend-ai-triage commentedon Nov 3, 2026
This issue bundles three pieces of work that are too large for one agent run and span different areas of the code: install-time state, a trusted identity resolver, and the dispatch-path enforcement with its test matrix and docs. The implementation guidance from the earlier comments has been carried into the sub-issues.
Sub-issues:
internal/reposrotation state), and flag ambiguous credential reuse for denial.review, and distinguishes no-match from lookup failure. One open point is flagged for the implementer: confirming the poller and dispatcher jobs can read the rotation variable at runtime.bot_roleandrole_verifiedin the shared converter, deny non-label bot events before routing with no membership fallback, keep the label-added exception and existing loop filters, run the full test matrix on both paths, and update docs. This depends on the other two.The first two are independent of each other and can proceed in parallel. This remains a child of the #8329 effort, and the related GitLab role credential lifecycle work does not block any of them. No open PR currently addresses this issue.
Split into: