Watch
0
0
Fork
You've already forked hyperhive
0
Commit graph

6,850 commits

Author SHA1 Message Date
atlas
ad30b7ea31 reconcile tick: create a placed agent whose deploy event was missed
The swarm's deploy event is core NATS. The wanted-state declaration lands
before the build, so its create fails on no record, and only the event
re-drives it; a hive that missed the event had nothing to retry.

wanted.rs now remembers which agents the last declaration places with a
container. Each tick, a placed agent with no container whose record says
the builder pushed its closure gets its first deploy through
JobQueue::insert_first_deploy_if_idle, which queues nothing while any node
targets the agent. Record reads and creates back off like restarts, in a
history of their own.
2026-11-19 12:28:42 +01:00
atlas
887ea26c56 swarm-nats: the units the responder requires uphold it
A start job of swarm-nats-auth that fails on a dependency (the server, or
the container's trust bundle, failing first) leaves the unit inactive
rather than failed, so Restart=always never applies. Its recovery was a
set of one-shot host kicks; when the last of them still found a
dependency down, the responder stayed dead and the queue refused every
client (nightly full-setup, runs 8058 and 7917).

upheldBy the units it requires: whichever comes up last starts it.
2026-11-19 12:26:13 +01:00
atlas
7c2f7443fb semi-spread: wait for the pushed repo, bound the settle, name swarm faults
The test created its agents 0.5 s after pushing hyperhive/hyperhive, while
the forge still read the repo as empty, so the create's update_meta failed
and the next try came on the controller's 10-minute round. It now waits for
the two forge reads update_meta makes.

settle_hive_agents waited 3600 s, the CI job's own limit, so a stall was
killed rather than reported. It now waits 1200 s and also stops on a swarm
fault: a build the builder did not push to the cache, or an update_meta or
build_meta failure no later round got past. Timeouts and faults dump the
swarm builder's journal from heavyduty too.

Refs #6627
2026-11-19 12:25:39 +01:00
atlas
70a8ef77a7 squid vm test: the web node's nginx serves its certificate with addSSL 2026-11-19 12:25:07 +01:00
atlas
891a1cd5b1 antispoof vm test: nft is on the host's PATH 2026-11-19 12:24:44 +01:00
atlas
29ca381114 images: slim OCI images of the swarm daemons from nix 2026-11-19 12:23:54 +01:00
maia
ffbd2f4dea swarm-controller: an opt-in plain /healthz and /readyz listener a kubelet can probe 2026-11-19 12:23:17 +01:00
atlas
c78d73ccd1 ephemeral-rootfs vm test: the drop-in runs the check from /run/hive-rootfs-check 2026-11-19 10:59:45 +01:00
atlas
439cb28c8c hive-forge: ci-rerun takes repeatable --input key=value for workflow dispatch
The dispatch goes out as a raw API POST so a forge rejection of an input
reaches the caller with its response body.
2026-11-19 10:52:33 +01:00
maia
96cb25a040 swarm-controller: a stop signal ends the startup secret-store reads
The queue client secret and the webhook secret are read at start through
a retry schedule of about a minute. Neither heard SIGTERM, because the
shutdown signal was only installed once the controller began serving, so
a stop during a store outage waited out the schedule or the unit's stop
timeout.

main installs the signal first and passes it to queue_identity::init and
webhook::load. A stop that arrives first ends the read and exits 0.
2026-11-19 10:37:23 +01:00
maia
7df2d646ff swarm-controller: a TokenStore test double covers token mint and rotation
The forge token paths (ensure_*_forge_token, replace_token, observe_agent,
observe_hive) took the concrete SecretStore, so none of them could run
without OpenBao. They now take a TokenStore trait, implemented by
SecretStore, with a FakeTokens double in the store tests.

ensure_hive_forge_token keeps its order: the account and team steps, then
the store login, then the token.
2026-11-19 09:38:13 +01:00
maia
b0239914b8 readiness follows a cached store check instead of a constant or a login per probe 2026-11-19 08:43:43 +01:00
maia
2eacb83b21 a removed hive's OIDC client secret is deleted with its other store credentials 2026-11-19 08:42:46 +01:00
maia
b21a3e3632 seven daemons log through hive-log so the log store gets their severities 2026-11-19 08:36:10 +01:00
maia
c7d37ca455 grant-bootstrap re-applies the granter and restarts failed policy units; setup treats a refused granting unit as not done 2026-11-19 08:17:02 +01:00
maia
ae37c228b1 swarm daemons exit 0 when told to stop while still waiting for the store at startup 2026-11-19 08:06:36 +01:00
flake-bot
5dd39ba88c nix flake update 2026-11-19 08:05:59 +01:00
atlas
12e797e7e3 auto-update: a rebuild is live until its whole subtree is terminal
rebuild_live checked only MetaSync, which finishes in 0.2 s, so the next
5-min pass queued a second rebuild while the first still held the stop,
swap and start. It now covers MetaSync, AgentWindow, Prebuild,
StopForUpdate, Swap and RebuildBookkeeping. AgentWindow is also the brace
of a pause window, so an open pause skips that agent's pass too; the docs
say so and a test pins it.
2026-11-19 08:05:01 +01:00
atlas
36515c289d reconcile: start a stopped harness inside a running container
hive-priv gains AgentHarness { agent_name, action: probe | start }, which
runs systemctl -M h-<name> against the fixed unit hive-agent.service.
run_reconcile and the 1-min tick read the unit for a running wanted-up
agent and start it when it is inactive or failed. A hive-priv without the
op reads as unknown state and leaves reconcile container-only.
2026-11-19 08:03:56 +01:00
maia
ca734f8ea0 bash OOM order: the stale +1000/task (0) comments say 900 and 1000 2026-11-19 08:03:07 +01:00
maia
dfe8f9eac0 memory-cap: keep the header comment under the block limit 2026-11-19 08:03:07 +01:00
maia
22105fe423 bash OOM order: subagent test expects 900, const asserts for clippy 2026-11-19 08:03:07 +01:00
maia
77f33a23d8 bash tasks are the OOM killer's first victims: score 1000, subagent runs 900, MemoryHigh on the bash daemon 2026-11-19 08:03:07 +01:00
iris
d4dc8b48b1 swarm ui: the context limit zones line up with their handles and legend
The zones were drawn by percentage of the full track, but a range input's thumb travels its own range less one thumb width, and the range starts at 5. So the colour edges sat off the handles. The zones now follow the thumb's travel (a tested helper in soft-context), and the Firefox thumb has the same size as the other. The legend bars had no colour either, as the item rule reset the border colour; their rule is now more specific.
2026-11-18 23:22:03 +01:00
argus
db036f076f review classifier: presentational layout math needs no test
tests-with-behaviour now counts a small UI helper that only maps a value to a
position, size or colour that CSS draws as thin glue, like component wiring.
2026-11-18 22:14:19 +01:00
damocles
0ae6b911ac hive-bash-mcp: test the command counter against an in-memory exporter 2026-11-18 20:53:12 +01:00
damocles
fc8ec13620 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
damocles
076df804e4 hive-bash-mcp: count bash commands over OTEL in the daemon, drop the sqlite hand-off 2026-11-18 20:53:12 +01:00
iris
9ec67d7a18 swarm ui: a send error sits under the badges with a solid fill
The error over the terminal took the newest rows. It now sits at the top, under the badges, and has an opaque tint so the rows behind do not show through the text.
2026-11-18 20:48:20 +01:00
argus
1498ea4290 review classifier: docs describe the current state, not what was removed
A new negative rule: text added under docs/, in a README or a doc comment
that documents something that no longer exists ("nothing reads this file
now", "older versions wrote X"). Migration pages, changelogs and
removed-option messages are exempt. The rules-file test lists the new name.
2026-11-18 20:09:39 +01:00
maia
188dbcea8b swarm-victorialogs: own network namespace, gateway over a unix socket 2026-11-18 19:17:58 +01:00
atlas
c21b158884 swarm daemons: opt-in /healthz and /readyz listener, and /readyz on the controller 2026-11-18 19:06:04 +01:00
damocles
377bc1d5df docs: subagent leftover kill without passive voice 2026-11-18 18:52:37 +01:00
damocles
2689efebcf hive-agent-sock: kill what a subagent run leaves in its cgroup after it ends 2026-11-18 18:52:37 +01:00
damocles
566758483d hive-agent: count a todo miss only on a turn that ran to the end 2026-11-18 13:35:54 +01:00
atlas
4c8be5400d hive-c0re: wait on the shared shutdown_signal 2026-11-18 09:45:21 +01:00
atlas
a8775f1a7a queue consumers: stop taking messages on sigterm and exit 0 2026-11-18 09:45:21 +01:00
atlas
a089da25a5 swarm-logs-auth, swarm-metrics-auth, swarm-authelia-bridge, swarm-controller: drain http on sigterm 2026-11-18 09:45:21 +01:00
atlas
39c29b64e3 swarm-secret-client: add shutdown_signal, serve_bounded and InFlight 2026-11-18 09:45:21 +01:00
flake-bot
e0002095ba nix flake update 2026-11-18 09:44:42 +01:00
maia
a3682a5e9a ship the cache's init units' journal from a host with no collector, with the cache's own client 2026-11-18 09:43:57 +01:00
damocles
5e5ff64b3c hive-agent: keep the last turn's context size in the harness state file and drop the turn sqlite writes 2026-11-18 03:09:14 +01:00
damocles
7bd93ecfde hive-matrix-mcp: test direct messages, replies and anchored reads 2026-11-17 09:03:53 +01:00
flake-bot
2df691bfe6 nix flake update 2026-11-17 06:49:39 +01:00
iris
8cb7f3b6e1 swarm ui: the agent terminal's message box is frosted glass 2026-11-17 06:49:30 +01:00
iris
3a846c8c45 swarm ui: the terminal's status badges overhaul
The connection is a light on the agent's icon instead of a "live" badge, the
model and the effort are one badge, the context badge has an icon, subagents
and a new bash tasks badge are an icon and a count, and an agent's tab shows a
drag grip on hover.

It also removes two things the overhaul replaces: the cost badge, and the
"split" badge with its menu in group panes (splitting is by dragging a tab, or
from the subagents list).
2026-11-17 06:49:03 +01:00
atlas
e9e71a09ac bao-grants: allow the hive forge token delete in the hives metadata check 2026-11-17 06:48:05 +01:00
atlas
b6dc46d315 document the hive cut-off 2026-11-17 06:48:05 +01:00
atlas
11fec06a50 cut off hives that left the roster: forge token, team seat, token secret, login role 2026-11-17 06:48:05 +01:00
iris
f8a0388457 agent_icon: the subject's docs no longer mention a writer that publishes directly 2026-11-17 06:47:48 +01:00