Skip to content

feat(llm): federation for a spot on Agent Substrate, with an identity token the core signs - #39

Merged
den-vasyliev merged 2 commits into
mainfrom
feat/actor-federation
Nov 29, 2026
Merged

den-vasyliev merged 2 commits into
mainfrom
feat/actor-federation

Conversation

@den-vasyliev

Copy link
Copy Markdown
Contributor

What

A spot that runs as an Agent Substrate actor could reach the model only with a key the egress puts on the request. --llm-auth=federation with the new --anthropic-identity-token-from-core needs no key anywhere: at every exchange the spot asks the core for an identity token over its link (GET /v2/messenger/spot/link/identity-token, the core's ADR-123) and exchanges it at Anthropic for a short-lived access token it keeps in memory.

  • internal/triggers: Link.IdentityToken.
  • internal/llm: federation takes a token source in place of the file (option.WithFederationTokenProvider), with nothing read from the environment.
  • internal/config: the flag and its rules; --runtime=substrate takes injected or this mode.
  • docs/spec: sections 8 and 12.

Checked

make check passes. Run on a test cluster against a core that signs the token: repeated wakes each made their exchange and their turn.

Not in this change

A task actor has no link and cannot use this mode; run such a spot with --max-tasks=0.

@den-vasyliev
den-vasyliev merged commit 988f95a into main Nov 29, 2026
3 checks passed
@den-vasyliev
den-vasyliev deleted the feat/actor-federation branch November 29, 2026 02:10
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.

1 participant