Watch
0
0
Fork
You've already forked hyperhive
0
hyperhive/swarm-controller/src/forge
Repository files (latest commit first)
Filename Latest commit message Latest commit date
atlas 23e0c313b8 swarm-controller: sweep agents' legacy hyperhive-* forge tokens at start
Before b5d07d4d, hive-c0re minted a new `hyperhive-<unix-seconds>` token
for an agent on every spawn and rebuild and never revoked one, so every
live agent's forge user carries a pile of write-scoped tokens nothing
holds. Nothing in the tree lists or deletes them.

On each start, swarm-controller now walks the store's hive-agent-*
roster (the one the swarm-agent mint pass walks), and for every agent
whose swarm-agent token that pass would keep, deletes each token named
exactly `hyperhive-<digits>`. It logs the count per agent and a total.

- `core` is refused by name in both the roster filter and the per-user
  delete: hive-c0re still names core's live admin token
  `hyperhive-<unix-seconds>`.
- An agent whose swarm-agent token is not current is skipped, because
  consumers fall back to `<state>/forge-token`, the last hyperhive-*
  token, until the swarm token is fetched.
- A failed list or delete is logged and skipped; the sweep does not
  retry and never blocks startup. A second start deletes nothing.

Tokens on forge users of agents no longer on the store roster (already
destroyed) are not reached.

Closes #4644
2026-09-29 22:13:32 +02:00
..
agent_token.rs swarm-controller: sweep agents' legacy hyperhive-* forge tokens at start 2026-09-29 22:13:32 +02:00
legacy_tokens.rs swarm-controller: sweep agents' legacy hyperhive-* forge tokens at start 2026-09-29 22:13:32 +02:00
objects.rs swarm-controller: own the swarm-wide forge objects; hive-c0re stops creating them 2026-09-25 08:36:05 +02:00
site_admin.rs swarm-controller: make an existing forge user a site admin 2026-09-25 08:29:56 +02:00