Skip to content

docs(agent-identity): record which source tiers hold global definitions - #2874

Merged
rdimitrov merged 1 commit into
mainfrom
docs/definition-origins
Nov 18, 2026
Merged

rdimitrov merged 1 commit into
mainfrom
docs/definition-origins

Conversation

@rdimitrov

Copy link
Copy Markdown
Member

Summary

Records the design decision that #2526 left open: which of the harness's definition source tiers count as the operator's global definitions for the identity broker.

The answer is explicit only, which is what the definition loader already reads (#2829). The new paragraph in "Loading definitions" in docs/drafts/agent-identity/agent-definitions.md says:

  • explicit is the global source: the directories the operator names with --agents-dir, read in the harness's precedence order. A missing configured directory fails broker startup.
  • project is excluded because it comes from a repository, and the broker does not load repository definitions (the design already says this).
  • user is excluded because in mecak8s it is the service account's home directory, which the operator does not configure as a definition source.
  • driver is excluded because driver definitions arrive over gRPC without a file, so there are no source bytes for the source content digest.

This matches the harness, where only explicit definitions get a ceiling of their own. Adding a tier later is additive.

Issue relationship

Closes #2526. Part of #2550.

Type of change

  • Bug fix
  • New feature
  • Refactoring (no behavior change)
  • Dependency update
  • Documentation
  • Other (describe):

Test plan

  • Markdown changed: docs generation/link checks (task docs)

Changes

File Change
docs/drafts/agent-identity/agent-definitions.md Which source tiers hold global definitions, and why

User-facing change

None. This is a design draft; the loader already behaves this way.

Special notes for reviewers

  • This needs a review from the design's author before merge, as the ticket asks.
  • If driver should count, the open part is how its source content digest works without file bytes. That would be a follow-up, not a change to this PR.

🤖 Generated with Claude Code

The broker's definition loader reads only the explicit tier, the
directories the operator names with --agents-dir. Record that choice in
"Loading definitions" and why the project, user, and driver tiers are
not global definition sources.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@rdimitrov
rdimitrov marked this pull request as ready for review November 18, 2026 22:24
@rdimitrov
rdimitrov merged commit 929e919 into main Nov 18, 2026
64 checks passed
@rdimitrov
rdimitrov deleted the docs/definition-origins branch November 18, 2026 22:46
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.

Minimal definition loader, including built-in definitions

2 participants