Watch
0
0
Fork
You've already forked hyperhive
0
hyperhive/docs/4-implementation
Repository files (latest commit first)
Filename Latest commit message Latest commit date
iris 33fdd5205e swarm: an agent's backend secrets get a store leaf of their own, and its backend environment reads back
The credentials of an agent's backend (ANTHROPIC_API_KEY and the like) move to their own leaf, swarm/agents/<agent>/backend-secrets, written through new PUT, GET and DELETE routes on /api/hives/{hive}/agents/{agent}/backend-secrets. GET says only whether any are stored. The backend environment at backend-env now reads back as stored through GET on its route, so it holds configuration only.

The agent's hive-agent-backend-env unit now runs on every agent with a store, reads both leaves and writes the configuration and then the secrets into the one file the harness and the subagent daemon load, so a secret wins over a variable of the same name. It removes the file when the store holds neither. The harness counts an agent whose environment holds ANTHROPIC_API_KEY or ANTHROPIC_AUTH_TOKEN as API-billed, so it tries the key instead of waiting for a Claude login; a real 401 still sets needs-login. The controller's policy may delete the new leaf.

Tests: the secret-client path, the controller routes, the script test of the unit with a stub bao, the module-eval cases and the harness's mode check. Docs: the swarm UI routes, the credentials reference and the API-key provider page.
2026-11-20 20:36:33 +01:00
..
agent-state docs: drop the turn-stats sqlite section and stale mentions, point the grafana check at the daemon 2026-11-18 20:53:12 +01:00
agent-tools docs: ci-log --job past the last job is an error 2026-11-20 09:10:13 +01:00
crates docs: sort the top-level directories into five sections by what the reader wants 2026-11-06 18:46:57 +01:00
k8s images: slim OCI images of the swarm daemons from nix 2026-11-19 12:23:54 +01:00
networking document the controller tcp listener and its two leaves 2026-11-20 19:24:20 +01:00
scheduler docs: the repo's own CI checks move from the CI runner page to the project process docs 2026-11-20 02:15:46 +01:00
swarm swarm: an agent's backend secrets get a store leaf of their own, and its backend environment reads back 2026-11-20 20:36:33 +01:00
trust-boundary reconcile: start a stopped harness inside a running container 2026-11-19 08:03:56 +01:00
turn-loop swarm: an agent's backend secrets get a store leaf of their own, and its backend environment reads back 2026-11-20 20:36:33 +01:00
web-ui swarm: an agent's backend secrets get a store leaf of their own, and its backend environment reads back 2026-11-20 20:36:33 +01:00