Watch
0
0
Fork
You've already forked hyperhive
0
hyperhive/swarm-controller/src
Repository files (latest commit first)
Filename Latest commit message Latest commit date
iris 1a31a4cd5a swarm: set an agent's config repo avatar from its icon
The agent module exposes the PNG nix renders from the agent's icon as the
read-only option services.hyperhive.agent.iconPng, which the forge and matrix
avatar syncs now share. When the builder reads an icon it builds that one
attribute with nix build and sends the file, base64, next to the SVG in the
meta build reply, so the builder runs no renderer of its own.

After recording the icon, the controller sets the avatar of
agent-configs/<agent> from the PNG as the forge admin, removes the avatar when
the icon is removed, and leaves it alone when the builder sent no PNG. A marker
per repo holds the image's fingerprint, so a build whose icon did not change
makes no forge call; a forge that refuses the avatar does not fail the build.
An old builder sends no PNG, so it changes nothing.
2026-11-23 10:11:16 +01:00
..
builder the builds list keeps the swarm's deploy builds too 2026-10-30 02:06:07 +01:00
forge swarm: set an agent's config repo avatar from its icon 2026-11-23 10:11:16 +01:00
matrix_account keep the operator matrix admin grant record in nats kv, not on disk 2026-11-22 23:33:40 +01:00
review_classifier review classifier: it reads the PR's title and description, and a rule on closing keywords 2026-11-23 08:53:16 +01:00
routes swarm-controller: an opt-in plain /healthz and /readyz listener a kubelet can probe 2026-11-19 12:23:17 +01:00
agent_archetype.rs archetype flows behave like the built-ins: switch off per archetype or per agent, board cards, duplicate 2026-11-11 21:40:17 +01:00
agent_commands.rs swarm: /clear starts an agent's next turn on a fresh session 2026-11-16 03:21:20 +01:00
agent_config_repo.rs swarm-controller: archive a destroyed agent's config repo, unarchive it when the name is created again 2026-11-14 13:29:39 +01:00
agent_control.rs swarm: /clear starts an agent's next turn on a fresh session 2026-11-16 03:21:20 +01:00
agent_custom.rs controller: turn an archetype agent into a custom one 2026-11-01 22:44:28 +01:00
agent_cutoff.rs disable a destroyed agent's identity entity and delete its login role 2026-11-16 17:09:08 +01:00
agent_entity.rs name the agent's entity before narrowing its role, and test hive provisioning against a fake store 2026-10-27 10:11:02 +01:00
agent_icon.rs the harness no longer publishes the agent's icon; the controller is its only writer 2026-11-17 06:47:48 +01:00
agent_identity.rs keep the signing policy on a role rewrite through one tested helper; route helper for build_app 2026-11-16 20:31:18 +01:00
agent_input.rs the swarm controller streams every inter-agent message from the agents' terminal rows 2026-10-18 17:27:53 +02:00
agent_limits.rs swarm-controller: keep retrying the forge webhook secret and registration after a startup outage 2026-11-06 09:21:59 +01:00
agent_login.rs a hive-side pause holds against the swarm's declared state until an operator resumes 2026-11-10 06:49:16 +01:00
agent_permissions.rs agent ssh connections: declare per agent, render into the agent's ssh config 2026-11-20 03:10:41 +01:00
agent_renewal.rs disable a destroyed agent's identity entity and delete its login role 2026-11-16 17:09:08 +01:00
agent_role_ttl.rs bring existing agent cert roles to the 1h token ttl on controller start 2026-10-29 14:22:23 +01:00
agent_ssh.rs gate ssh signing per agent: ssh permission, signing policy on the login role, ca key endpoint 2026-11-16 20:31:18 +01:00
agent_state_stream.rs the agent state stream sends a new client the latest header first 2026-11-01 01:59:09 +01:00
agent_status.rs a hive-side pause holds against the swarm's declared state until an operator resumes 2026-11-10 06:49:16 +01:00
agent_todos.rs swarm: an agent's open todos, mirrored to the queue and served by the controller 2026-11-16 01:21:52 +01:00
agents_md.rs swarm-controller: split main.rs into jobq, routes and startup modules 2026-10-18 13:44:43 +02:00
agents_md_initial.rs swarm: unrestricted_internet flag on the agent permissions record, unset reads as on, create writes false 2026-10-27 14:44:41 +01:00
alerts.rs swarm-controller: split main.rs into jobq, routes and startup modules 2026-10-18 13:44:43 +02:00
archetypes.rs an archetype carries its own notification-router flows for its agents 2026-11-11 21:40:17 +01:00
archive_access.rs swarm-archive: grant only once an archive is up; keep logins across a gap in placements 2026-11-10 08:18:45 +01:00
attic_copy.rs swarm: a deploy goes out only once its closure is cached and the hive has its cache facts 2026-11-07 12:28:44 +01:00
auth.rs bridge waits out a slow authelia; controller retries a bridge 503 2026-11-11 00:31:16 +01:00
backend_egress.rs derive per-agent egress entries from operator-linked accounts 2026-10-30 12:28:51 +01:00
backend_env.rs 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
backend_secrets.rs 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
bash_task.rs swarm-controller: say what entry_of does 2026-11-15 19:51:37 +01:00
builder.rs the builds list keeps the swarm's deploy builds too 2026-10-30 02:06:07 +01:00
cache_miss.rs the builder reads an agent's icon from its config and the controller writes the swarm's copy 2026-11-16 23:01:08 +01:00
claude_login.rs swarm ui: show when an agent's claude login was stored, and delete it 2026-11-09 22:22:29 +01:00
config_drift.rs queue the build of a config head that moved without a webhook build 2026-11-02 17:56:35 +01:00
config_pr.rs queue the build of a config head that moved without a webhook build 2026-11-02 17:56:35 +01:00
egress_allow.rs derive per-agent egress entries from operator-linked accounts 2026-10-30 12:28:51 +01:00
egress_deny.rs squid blocks a runtime deny list from the controller in every egress mode, ahead of the allow list 2026-11-04 22:16:35 +01:00
forge.rs swarm: set an agent's config repo avatar from its icon 2026-11-23 10:11:16 +01:00
forge_account.rs swarm-controller: keep retrying the forge webhook secret and registration after a startup outage 2026-11-06 09:21:59 +01:00
forge_events.rs an agent gets one todo when its pr starts conflicting with the target branch 2026-11-11 09:12:05 +01:00
github_account.rs agents keep their github token in /run, fetched on every start, not in the state dir 2026-11-15 14:08:57 +01:00
gitlab_account.rs swarm-controller: keep retrying the forge webhook secret and registration after a startup outage 2026-11-06 09:21:59 +01:00
held_deploys.rs swarm: a failed facts copy counts in the held-deploys gauge 2026-11-07 12:59:50 +01:00
inference.rs swarm-controller: GET /api/models lists the model names the swarm already knows 2026-11-22 13:46:01 +01:00
issue_report.rs swarm-controller: split main.rs into jobq, routes and startup modules 2026-10-18 13:44:43 +02:00
jobq.rs cut off hives that left the roster: forge token, team seat, token secret, login role 2026-11-17 06:48:05 +01:00
link_egress.rs add external gitlab accounts: stored in bao, linked per agent, allowed in squid, usable with glab 2026-11-02 16:44:56 +01:00
linked_accounts.rs 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
main.rs keep the operator matrix admin grant record in nats kv, not on disk 2026-11-22 23:33:40 +01:00
matrix_account.rs swarm-controller: stop minting the per-hive matrix sender account and token nothing reads 2026-11-12 15:38:34 +01:00
message_stream.rs agent_permissions, agent_term and subagent_term take their wire contracts from swarm-wire 2026-10-19 18:30:44 +02:00
meta_build.rs swarm: set an agent's config repo avatar from its icon 2026-11-23 10:11:16 +01:00
meta_fanout.rs retry every failed meta build each round, a timeout included, and drop the attempt count 2026-10-26 18:52:33 +01:00
meta_flake.rs keep the mirror hint off forge errors, forward the hyperhive mirror from any controller host 2026-11-09 13:07:41 +01:00
notify_flows.rs destroying an agent clears its per-agent archetype-flow switch-offs 2026-11-11 21:40:17 +01:00
notify_router_api.rs templates: one Jinja language (hive-template) for the notify router's flows, flows document version 2 2026-11-11 03:40:22 +01:00
observability_grant.rs order grant mirror writes by direction, re-mirror every five minutes, gate on the agent's own harness 2026-11-01 18:40:36 +01:00
otel_http_client.rs swarm-controller: get its otlp pushes past the collector, log failures 2026-10-17 09:44:33 +02:00
pause_hold.rs pause_hold: pin the undeclared-agent case and fix the test comment 2026-11-10 06:49:16 +01:00
pr_conflicts.rs pr conflicts: bound the forge list and skip branches no pr targets 2026-11-11 09:12:05 +01:00
pr_report.rs swarm ui: a pull requests card on the reports tab 2026-11-07 11:46:05 +01:00
proxy_credential.rs log the proxy-credential, cache-miss and users-file passes at info, with counts in the message 2026-10-28 19:57:53 +01:00
pulls.rs swarm-controller: split main.rs into jobq, routes and startup modules 2026-10-18 13:44:43 +02:00
queue_identity.rs swarm-controller: a stop signal ends the startup secret-store reads 2026-11-19 10:37:23 +01:00
read_policy.rs cut off hives that left the roster: forge token, team seat, token secret, login role 2026-11-17 06:48:05 +01:00
request_reviewer.rs request the review classifier's review when a PR's head moves 2026-10-24 17:23:36 +02:00
review_classifier.rs review classifier: it reads the PR's title and description, and a rule on closing keywords 2026-11-23 08:53:16 +01:00
schedules.rs controller gates logs and metrics on the hive capability and mirrors the grant 2026-11-01 18:40:35 +01:00
ssh_connections.rs agent ssh connections: declare per agent, render into the agent's ssh config 2026-11-20 03:10:41 +01:00
startup.rs keep the operator matrix admin grant record in nats kv, not on disk 2026-11-22 23:33:40 +01:00
status.rs docs: sort the top-level directories into five sections by what the reader wants 2026-11-06 18:46:57 +01:00
store.rs swarm-controller: a TokenStore test double covers token mint and rotation 2026-11-19 09:38:13 +01:00
subagent_term.rs swarm: an agent's open todos, mirrored to the queue and served by the controller 2026-11-16 01:21:52 +01:00
tcp_tls.rs gateway reaches the controller over tls with its own client leaf when the tcp listener is on 2026-11-20 19:24:20 +01:00
term_stream.rs agent_permissions, agent_term and subagent_term take their wire contracts from swarm-wire 2026-10-19 18:30:44 +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 swarm-controller: count default-branch merges and lines per repo 2026-11-08 18:11:27 +01:00
wanted.rs a hive-side pause holds against the swarm's declared state until an operator resumes 2026-11-10 06:49:16 +01:00
webhook.rs swarm-controller: a stop signal ends the startup secret-store reads 2026-11-19 10:37:23 +01:00