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
atlas 64dfe0d205 cache-miss pass pushes a record the builder did not push
A meta build whose attic push failed (attic or its token not up yet) is
recorded with cached false and the deploy goes ahead. Nothing sent that
build again until internal/meta moved, so the create for that agent
failed on every hive and a rebuild was silently never pending.

The controller's cache-miss pass now also takes a record from the head
with cached false: it sends the same build without asking the cache, with
the pass's existing backoff (30 min doubling to 12 h), and rewrites the
record with cached true once the push lands, under the same
compare-and-set guard as a path change. The push.rs module doc no longer
claims the next build pushes again.

Mixed versions: controller-only, same wire type and builder request. An
old controller leaves an uncached record as before; a builder needs no
change.

Closes #6173
2026-11-07 09:05:45 +01:00
..
builder the builds list keeps the swarm's deploy builds too 2026-10-30 02:06:07 +01:00
forge only the controller's own comments carry the marker, and a cleared comment says resolved 2026-10-26 23:16:53 +01:00
matrix_account move links, adminSync.ignoreUsers and scrapeTargets under their service's deploy namespace 2026-11-01 20:47:23 +01:00
review_classifier review-classifier: a requested review runs even on a draft pr 2026-11-02 18:45:36 +01:00
routes docs: sort the top-level directories into five sections by what the reader wants 2026-11-06 18:46:57 +01:00
agent_archetype.rs pin the declared closure once per rebuild and seed the marker from the running closure 2026-11-02 07:55:10 +01:00
agent_control.rs swarm-controller: split main.rs into jobq, routes and startup modules 2026-10-18 13:44:43 +02:00
agent_custom.rs controller: turn an archetype agent into a custom one 2026-11-01 22:44:28 +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 swarm-wire: take agent_icon's wire types 2026-10-18 22:50:02 +02:00
agent_identity.rs mint a live agent's missing store identity from the renewal pass, and log the step a mint stopped at 2026-10-29 08:27:11 +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 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
agent_permissions.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
agent_renewal.rs re-read the declaration before a mint, and mint for a current certificate whose role is missing 2026-10-29 11:42:32 +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_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 controller: turn an archetype agent into a custom one 2026-11-01 22:44:28 +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 swarm-builder: log each archetype eval's elapsed time, wait 5 minutes 2026-10-25 18:42:44 +01:00
attic_copy.rs copy the cache's pull facts to each hive and create them in the in-swarm cache 2026-10-28 01:19:56 +01: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
backend_egress.rs derive per-agent egress entries from operator-linked accounts 2026-10-30 12:28:51 +01:00
backend_env.rs swarm-controller: keep retrying the forge webhook secret and registration after a startup outage 2026-11-06 09:21:59 +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 cache-miss pass pushes a record the builder did not push 2026-11-07 09:05:45 +01:00
claude_login.rs swarm-controller: split main.rs into jobq, routes and startup modules 2026-10-18 13:44:43 +02: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: the notification router tells a PR's author when CI on it fails or is cancelled 2026-11-06 22:01:22 +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 agents get a todo when assigned to an issue or PR, rewritten when unassigned and cleared on close 2026-10-22 07:28:53 +02:00
github_account.rs swarm-controller: keep retrying the forge webhook secret and registration after a startup outage 2026-11-06 09:21:59 +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 comment once on a merged config pr when its swarm build fails 2026-10-26 23:16:53 +01:00
inference.rs the agent state stream sends a new client the latest header first 2026-11-01 01:59:09 +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 read the running rev and the hyperhive flake from /etc files, not the unit 2026-11-06 11:35:48 +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-controller: keep retrying the forge webhook secret and registration after a startup outage 2026-11-06 09:21:59 +01:00
main.rs swarm-controller: keep retrying the forge webhook secret and registration after a startup outage 2026-11-06 09:21:59 +01:00
matrix_account.rs docs: sort the top-level directories into five sections by what the reader wants 2026-11-06 18:46:57 +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-builder: an agent option whose eval failed is left out of the reply, not read as its default 2026-11-06 11:36:32 +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 read the running rev and the hyperhive flake from /etc files, not the unit 2026-11-06 11:35:48 +01:00
notify_flows.rs swarm: the notification router tells a PR's author when CI on it fails or is cancelled 2026-11-06 22:01:22 +01:00
notify_router_api.rs swarm-controller: POST /api/notify/dry-run runs a draft flows document 2026-10-25 11:00:38 +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
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 keep authelia's oidc client secrets in the store, not on disk 2026-10-30 16:57:58 +01:00
read_policy.rs retry a refused shared policy write at controller startup 2026-11-06 09:19:07 +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: a requested review runs even on a draft pr 2026-11-02 18:45:36 +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
startup.rs swarm-controller: keep retrying the forge webhook secret and registration after a startup outage 2026-11-06 09:21:59 +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 retry a refused shared policy write at controller startup 2026-11-06 09:19:07 +01:00
subagent_term.rs subagents publish their model and effort as headers on every row, and the swarm shows them 2026-10-28 21:55:02 +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 docs: sort the top-level directories into five sections by what the reader wants 2026-11-06 18:46:57 +01:00
wanted.rs swarm-wire: take wanted's wire types 2026-10-18 22:50:02 +02:00
webhook.rs swarm: the notification router tells a PR's author when CI on it fails or is cancelled 2026-11-06 22:01:22 +01:00