Skip to content

Switch on real loading and registration #2553

Closed as not planned
Closed as not planned

Description

@ChrisJBurns

Depends on: #2526, #2527 (including the per-agent call check), #2534, #2535, #2536
Removes shortcut: shared agent identity

Problem

Real loading and registration are built but switched off, so every grant still names the shared agent identity.

Design

What

Turn on the per-agent identity from #2527:

Every registration names the source and the revision the loader (#2526) reports. Exact definition versions (#2547 to #2549) and the full loader (#2551) come later and change only where the revision comes from.

The phase 1 call sites (session start, MCP call) stay where they are, with one server change:

  • the server's returned-agent check (the suffix /inst/<incarnation> in registerIdentityAgent, internal/adapter/server/identity_broker.go) moves to the broker package's Registration.Matches(RegisterAgentRequest) from Per-agent registration and identities, switched on #2527, because per-agent IDs carry the definition and parent chain;
  • the server keeps the held-agent comparison.

How it fits

Every grant now names the specific agent that acted, such as Alice's main agent, instead of the shared agent identity.

Done when

In the fixture:

  • each session's main agent has its own SPIFFE ID and ag_ identifier;
  • every grant carries the agent's ag_ identifier in act.sub, never a SPIFFE path (Mecatl's actor-token validator #2534), and the log names it;
  • the broker refuses an agent not registered to the call's broker session without calling AS-1;
  • AS-1 refuses an agent whose session belongs to another user than the grant's;
  • the server checks each returned agent with Registration.Matches, and no other call site outside startup wiring changed.

Activity

  1. ChrisJBurns commented on Nov 18, 2026

    @ChrisJBurns
    ContributorAuthor

    Merged into #2527.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions