Skip to content

Phase 1, Slice 2: Agent identity — Every session's agent has an identity and credential #2453

Closed
2 of 2 issues completed

Description

@ChrisJBurns

Design: credentials-and-lifecycle.md: (4) Agent-instance JWT-SVID · agent-definitions.md: Registering instances

Problem

A session's agent is not registered and has no credential, so no grant can name it.

Delivers

Real registration of each session's main agent under the shared agent identity, with a real credential the broker can verify.

Tickets

#2475 can be built and tested in parallel with #2474 against a fake of the interface, once PR #2473 (which rewrites the same files) merges.

Merge order: #2474 merges first. Until it lands, the real broker refuses registration, so merging #2475 first would fail every session start with the flag on.

How AS-1 checks the agent: settled. AS-1 asks the broker through stacklok/toolhive#6899's in-process check, as the design intends, so the credential stays as designed (see #2474). Two details to confirm with the ToolHive owners, not blocking: the session key the check receives (expected: the broker session ID) and that its act.sub format check accepts ag_ identifiers.

Testable result

Every real Mecatl session ends up with a registered agent holding a valid credential, which the broker verifies and maps to the agent's ag_ identifier.

Done when

Both tickets are merged and the slice test passes.

Sub-issues

Sub-issues

2 of 2 Issues completed
Loading 2 sub-issues

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions