Skip to content

docs(agent-identity): record the registration decisions settled in implementation - #2495

Merged
ChrisJBurns merged 1 commit into
mainfrom
docs/agent-identity-registration-decisions
Oct 23, 2026
Merged

ChrisJBurns merged 1 commit into
mainfrom
docs/agent-identity-registration-decisions

Conversation

@ChrisJBurns

@ChrisJBurns ChrisJBurns commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

Updates the agent identity design where implementation settled a decision differently, or filled a gap the design left open. It records only lasting decisions; interim choices are left out.

Changes

  • Broker session incarnation (agent-definitions.md, credentials-and-lifecycle.md "Pauses and restart"): a broker session has no incarnation of its own. It carries its root host session's incarnation, which is also the main agent's.
  • Root registration rule (registration check 4, and "Registering instances"): a registration with no parent runs in the broker session's root host session, with that host session's incarnation.
  • Incarnation format (check 5, check 6, implementation.md): an incarnation is exactly inc_ and 26 lowercase base32 characters, or legacy_ and 64 hex characters. The rule "a legacy_ incarnation is no longer than an inc_ one" is dropped, because older snapshots' legacy_ values are 71 bytes. The longest subject stays under 2,000 bytes.
  • Re-registration error (the failures table and the failure matrix): re-registering a SPIFFE ID with a different owner, host session, or parent fails with ALREADY_EXISTS, not PERMISSION_DENIED. This matches the existing "registration repeated" row.
  • SVIDs after a reopen (SVID check 8, and the lifetimes table): an SVID verifies only while its instance is registered to the session it was issued in. A reopened session does not revive SVIDs issued before it closed.

For the design author (@jhrozek ) to review, especially the incarnation wording, which follows his confirmation.

Testing

Docs only. matlatl check . --strict is clean on a clean checkout of this branch.

API compatibility

None: design documentation only.

…plementation

- A broker session has no incarnation of its own: it carries its root
  host session's incarnation, which is also the main agent's. A
  registration with no parent runs in the broker session's root host
  session, with that incarnation.
- An incarnation is exactly inc_ and 26 lowercase base32 characters, or
  legacy_ and 64 hex characters. The rule that a legacy_ incarnation is
  no longer than an inc_ one is dropped: older snapshots' legacy_ values
  are 71 bytes. The longest subject stays under 2,000 bytes.
- Re-registering a SPIFFE ID with a different owner, host session, or
  parent fails with ALREADY_EXISTS, not PERMISSION_DENIED.
- An SVID verifies only while its instance is registered to the session
  it was issued in, so a reopened session does not revive SVIDs issued
  before it closed.

Co-authored-by: Mecatl <[email protected]>
@ChrisJBurns
ChrisJBurns merged commit 9e70cda into main Oct 23, 2026
31 checks passed
@ChrisJBurns
ChrisJBurns deleted the docs/agent-identity-registration-decisions branch October 23, 2026 15:41
@toolhive-release-app toolhive-release-app Bot mentioned this pull request Oct 26, 2026
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants