Skip to content

Consolidate platform actor authorization into one behavior matrix #8414

Closed

Description

@ifireball

What is missing

Platform authorization behavior is currently spread across several behavior
features, including fork authorization, dispatch scenarios, and platform
trigger tests. The expected result for each actor type is therefore difficult
to inspect in one place, and related coverage can drift without making the
authorization model visibly incomplete.

Issue #8413 is adding the provider-backed bot-role lookup behavior needed by
ADR 0107. The remaining work is to exercise the complete default platform actor
authorization model through one coherent behavior-test matrix.

What should happen

Add one canonical platform authorization behavior specification covering actors
attempting to trigger a harness and the expected result for each case.

The matrix should cover, as applicable to each transition:

  • human actors with insufficient, observation-level, and write-level forge
    permissions;
  • recognized bot actors with an authorized registered role;
  • the installed but unregistered e2e bot identity;
  • successful bot lookup no-match and lookup failure;
  • the forge-authoritative label-added exception;
  • fork pull-request actors;
  • event content or CEL claims that must not create authorization.

Each row must verify the observable dispatch result, not only event parsing:

  • authorized rows run a minimal probe harness;
  • denied rows produce an empty dispatch matrix and no agent run;
  • control executions prove that the harness and trigger were loaded, so a
    missing dispatch cannot be mistaken for an authorization denial;
  • lookup and infrastructure failures remain distinguishable from expected
    authorization failures.

Converge the existing default platform authorization scenarios into this
canonical feature where they test the same authorization contract. Remove
duplicate assertions or make the ownership of each remaining feature
explicit. Keep OWNERS authorization separate because it is an alternate
provider, not the default platform-level authorization path. Keep
agent-specific trigger behavior, mint scope behavior, runtime tests, and
non-GitHub authorization outside this matrix unless they directly exercise the
same default platform authorization contract.

Go implementation scope

This issue also owns the Go changes needed to consume the mint-backed bot-role lookup in GitHub gha-event dispatch: wire botidentity.MintResolver and ApplyBotRoleResult before both CEL routing and harness dispatch authorization, preserve the label-added exception, and deny no-match or lookup failure before CEL. A lookup failure must become a denied route result rather than a CLI error that lets the workflow fall back to bash routing. Cover the Go path with focused tests and the observable behavior matrix above.

Workflow-only OIDC permissions and mint URL delivery are the prerequisite in #8814; no Go changes belong in that issue.

Context

This is a follow-up child of #8329
and complements #8413,
which provides the bot-role lookup behavior consumed by this matrix.

The result should leave the repository with one clear, reviewable behavior
specification for default platform actor authorization, including both
successful and failed dispatch outcomes.

Activity

  1. self-assigned this
    on Oct 14, 2026
  2. fullsend-ai-triage commented on Oct 14, 2026

    @fullsend-ai-triage

    🤖 Finished Triage · ✅ Success · Started 8:51 AM UTC · Completed 8:53 AM UTC

    Commit: 64ba7df · View workflow run →

    Runtime: claude · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $0.20

  3. added
    blocked
    on Oct 14, 2026
  4. fullsend-ai-triage commented on Oct 14, 2026

    @fullsend-ai-triage

    The scope here is clear, but it can't start until the bot-role lookup behavior it builds on has landed. The bot rows of the matrix (recognized role, the unregistered e2e identity, no-match versus lookup failure) depend on the lookup API and behavior tests from #8413. The implementation PR for that, #8415, is open and not yet merged. It adds the resolver, the mint lookup endpoint, and the pre-CEL bot gate branch. It doesn't consolidate the default platform authorization scenarios, so it doesn't resolve this issue.

    Once #8415 merges, this issue should be ready to pick up. Re-triage then, or mention the issue again, to move it forward.

    Blocked by:

  5. fullsend-ai-triage commented on Oct 26, 2026

    @fullsend-ai-triage

    🤖 Finished Triage · ✅ Success · Started 7:44 AM UTC · Completed 7:46 AM UTC

    Commit: 15136eb · View workflow run →

    Runtime: claude · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $0.12

  6. fullsend-ai-triage commented on Oct 26, 2026

    @fullsend-ai-triage

    The two blockers from the earlier triage are now cleared: the bot-role lookup PR (#8415) has merged and #8413 is closed, so the resolver and mint lookup endpoint this work builds on are in the repository.

    This issue is still blocked by #8814, which is open with no fix in flight. That issue adds the id-token: write permission and delivers the mint URL to the route and harness-dispatch jobs in the reusable dispatch workflow. Without that, the Go wiring for the mint-backed bot-role lookup in gha-event cannot work in real workflow runs, and the bot rows of the behavior matrix cannot be verified end to end. Both this issue and #8814 describe that dependency.

    Once #8814 lands, this issue is ready to pick up: re-triage or mention it again to move it forward.

    Blocked by:

  7. ifireball commented on Oct 26, 2026

    @ifireball
    MemberAuthor

    /fs-triage

  8. fullsend-ai-triage commented on Oct 26, 2026

    @fullsend-ai-triage

    🤖 Finished Triage · ✅ Success · Started 1:05 PM UTC · Completed 1:07 PM UTC

    Commit: c9e1d8e · View workflow run →

    Runtime: claude · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $0.21

  9. added
    triaged
    and removed
    blocked
    on Oct 26, 2026
  10. 1 remaining item

  11. ifireball commented on Oct 26, 2026

    @ifireball
    MemberAuthor

    /fs-code

  12. fullsend-ai-coder commented on Oct 26, 2026

    @fullsend-ai-coder
    Contributor

    🤖 Finished Code · ✅ Success · Started 1:24 PM UTC · Completed 1:40 PM UTC

    Commit: c9e1d8e · View workflow run →

    Runtime: claude · Model: opus → claude-opus-5-5 · Effort: high · Cost: $3.84

  13. added 4 commits that reference this issue on Oct 26, 2026
  14. added 4 commits that reference this issue on Nov 2, 2026
  15. added a commit that references this issue on Nov 2, 2026
  16. ifireball commented on Nov 3, 2026

    @ifireball
    MemberAuthor

    PR #8824 merged this work. It wires the mint-backed bot-role lookup into GitHub gha-event dispatch before CEL and harness authorization, and denies lookup failures before CEL.

    The behavior matrix covers human actors on GitHub and GitLab, registered and unregistered GitHub role bots, lookup no-match and failure outcomes, and positive controls. The scenarios are split across the platform actor, bot actor, and bot-role lookup features, with focused Go tests for the dispatch gate.

    This completes #8414. GitLab bot-role resolution remains separate work under #8329; Forgejo is deferred.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

triaged

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions