atlas
98501d2d88
take the agent-create and forge-token responses from swarm-controller-api
...
swarmctl decoded POST /api/agents and POST /api/agents/{name}/forge-token
into hand-written copies of the controller's private response structs.
Both now live in swarm-controller-api, so a field renamed on one side is a
compile error on the other. Wire format and OpenAPI schema are unchanged.
The request side stays mirrored: CreateAgentRequest carries inference
settings and an ArchetypeRef (swarm-queue-client types) and Permission
(hive-sh4re), and the permissions body is a list of Permission. Where
those types live is #5471 's decision.
Files:
- swarm-controller-api/src/agents.rs, lib.rs: the two responses, with
round-trip tests whose literals come from the tests that move here.
- swarm-controller/src/main.rs: imports them; the struct definitions and
create_agent_warning_tests (now in the api crate) go.
- swarmctl/src/agent.rs: imports them; the mirrors and their decode tests
go, and the module doc says only the request is mirrored now.
- swarmctl/src/permissions.rs: its doc pointed at agent.rs for why it
mirrors; that reason no longer covers Permissions, so it gives its own.
- swarmctl/README.md, swarm-controller-api/README.md, CLAUDE.md: which
bodies are shared and which are mirrored.
Part of #5472
2026-10-18 00:14:02 +02:00
..
builder
swarm-controller: record builder runs with nix's tail and link the status to them
2026-10-17 23:51:35 +02:00
forge
keep the operator list under one key and read it with one direct get
2026-10-17 13:10:05 +02:00
matrix_account
matrix: back up agents' room keys with a controller-minted recovery passphrase
2026-10-14 02:09:57 +02:00
review_classifier
review classifier: re-post a clean verdict on a same-head re-request
2026-10-17 12:38:06 +02:00
agent_archetype.rs
archetypes: build an archetype agent from its archetype's module on the hive
2026-10-17 16:27:21 +02:00
agent_control.rs
swarm: cancel an agent's turn from the swarm queue
2026-10-15 08:26:46 +02:00
agent_icon.rs
swarm: let an agent publish its own icon
2026-09-28 13:47:37 +02:00
agent_identity.rs
swarm-secret-client: agents may list their own subtree; controller rewrites agent policies
2026-10-01 17:43:28 +02:00
agent_input.rs
swarm: cancel an agent's turn from the swarm queue
2026-10-15 08:26:46 +02:00
agent_limits.rs
swarm-controller: record builder runs with nix's tail and link the status to them
2026-10-17 23:51:35 +02:00
agent_login.rs
swarm UI: an agent that needs a Claude login shows it on its card
2026-10-14 20:07:46 +02:00
agent_permissions.rs
retry the remaining plain schedules with backon
2026-10-17 16:33:21 +02:00
agent_renewal.rs
swarm-queue-client: re-read a held OIDC client secret when the IdP refuses it
2026-10-13 19:16:04 +02:00
agent_state_stream.rs
swarm UI: an agent that needs a Claude login shows it on its card
2026-10-14 20:07:46 +02:00
agent_status.rs
swarm UI: an agent that needs a Claude login shows it on its card
2026-10-14 20:07:46 +02:00
alerts.rs
swarm UI: an alerts page, read by the controller with a Viewer Grafana token from bao
2026-10-15 15:16:21 +02:00
archetypes.rs
archetypes: prefill the create form from flake-declared agent archetypes
2026-10-17 12:57:20 +02:00
auth.rs
swarm options: no swarm.* value depends on a deploy option or this host's hive
2026-10-04 18:13:47 +02:00
builder.rs
swarm-controller: record builder runs with nix's tail and link the status to them
2026-10-17 23:51:35 +02:00
claude_login.rs
swarm UI: log an agent into claude from its card; the credentials go to bao and the agent picks them up
2026-10-15 13:26:29 +02:00
config_pr.rs
swarm-builder: build each agent config PR head and post a commit status
2026-10-14 03:30:46 +02:00
forge.rs
swarm-controller: record builder runs with nix's tail and link the status to them
2026-10-17 23:51:35 +02:00
forge_account.rs
swarm-controller: record builder runs with nix's tail and link the status to them
2026-10-17 23:51:35 +02:00
github_account.rs
swarm-controller: record builder runs with nix's tail and link the status to them
2026-10-17 23:51:35 +02:00
inference.rs
allow a max_subagents of 0: no subagents for the agent
2026-10-15 22:00:00 +02:00
issue_report.rs
swarm-controller: bound the issue-report forge calls with the forge deadline
2026-10-15 13:30:34 +02:00
linked_accounts.rs
swarm-controller: record builder runs with nix's tail and link the status to them
2026-10-17 23:51:35 +02:00
main.rs
take the agent-create and forge-token responses from swarm-controller-api
2026-10-18 00:14:02 +02:00
matrix_account.rs
swarm-controller: record builder runs with nix's tail and link the status to them
2026-10-17 23:51:35 +02:00
otel_http_client.rs
swarm-controller: get its otlp pushes past the collector, log failures
2026-10-17 09:44:33 +02:00
pulls.rs
swarm-ui, swarm-controller: the review try-out's repo and PR fields offer the repos and PRs to pick
2026-10-12 19:05:37 +02:00
queue_identity.rs
retry: share one backon helper for the client secret reads and convert the remaining doubling tables
2026-10-17 12:31:29 +02:00
read_policy.rs
retry the remaining plain schedules with backon
2026-10-17 16:33:21 +02:00
review_classifier.rs
swarm-controller: the review classifier reads a diff with 200 lines of context
2026-10-15 12:43:12 +02:00
schedules.rs
share the forge and schedule wire types through swarm-controller-api
2026-10-17 23:27:14 +02:00
status.rs
gateway: serve the hive dashboard on <hive>.hives.<swarm> behind authelia, drop htpasswd
2026-10-15 21:44:27 +02:00
store.rs
fix doc-comment pointers broken by the module-eval split
2026-09-20 04:31:08 +02:00
subagent_term.rs
swarm-controller: end a dead replay, clamp stale resume ids, test on a real server
2026-10-11 23:26:24 +02:00
term_stream.rs
swarm-controller: end a dead replay, clamp stale resume ids, test on a real server
2026-10-11 23:26:24 +02:00
test_nats.rs
swarm-controller: let each test nats-server bind its own port
2026-10-14 16:33:19 +02:00
vcs_metrics.rs
drop the remaining HYPERHIVE_OTEL_METRIC_INTERVAL_MS readers
2026-10-17 08:00:14 +02:00
wanted.rs
swarm-controller: first credential-renewal pass waits for the queue connection
2026-09-30 15:46:56 +02:00
webhook.rs
swarm-builder: build each agent config PR head and post a commit status
2026-10-14 03:30:46 +02:00