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

7,038 commits

Author SHA1 Message Date
atlas
b0f81028c2 vm-tests: k8s-runtime-switch moves the CI run poller with the router and the speech-to-text service 2026-11-27 21:29:37 +01:00
atlas
cd1fe02b1f k8s: deploy.ci-metrics.runtime moves the CI run poller between its timer and the cluster 2026-11-27 21:29:36 +01:00
atlas
e1c1bad51a k8s: a pod's requests are explicit, so its limits cap and reserve nothing 2026-11-27 21:29:36 +01:00
atlas
aa9b7d80a0 vm-tests: k8s-runtime-switch moves the speech-to-text service with the router 2026-11-27 21:29:36 +01:00
atlas
49f5e70e3f docs: the speech-to-text service's runtime, limits and cache volume 2026-11-27 21:29:36 +01:00
atlas
68580a8725 k8s: deploy.stt.runtime moves the speech-to-text service between its container and the cluster 2026-11-27 21:29:36 +01:00
atlas
38adddaf4a vm-tests: k8s-runtime-switch moves the router between its container and the cluster and back 2026-11-27 21:29:36 +01:00
atlas
30567ad28f k8s: deploy.notify-router.runtime moves the router between its container and the cluster 2026-11-27 21:29:36 +01:00
atlas
40519f9123 k8s: a pod's public CA files come from a ConfigMap, not a Secret 2026-11-27 21:29:36 +01:00
atlas
5ad353d417 vm-tests: k8s-bao-login runs a pod's ServiceAccount login against the real store 2026-11-27 21:29:36 +01:00
atlas
7fff98687c k8s: pods log in to the secret store with their ServiceAccount token
The store gets a listener for the pods that asks for no client certificate,
open on the pod network's interfaces only, and a jwt auth mount with one
role per in-cluster service. The rendered pods run under a ServiceAccount
with a projected token in place of their client certificate.
2026-11-27 21:29:36 +01:00
atlas
55c7745894 swarm-secret-client: log in with a service-account token under BAO_AUTH=jwt 2026-11-27 21:29:36 +01:00
atlas
a5046c767e vm-tests: a running collector keeps its cursor when it switches to the static user 2026-11-27 21:29:36 +01:00
atlas
4ec7513b1b k8s: pod logs and metrics reach the hive collector 2026-11-27 21:29:36 +01:00
atlas
42bc6e7f2a vm-tests: k8s-node pod reaches the hive bridge's listeners by swarm name 2026-11-27 21:29:36 +01:00
atlas
21ea65af1b k8s: pods resolve the swarm names of host-run services to the hive bridge 2026-11-27 21:29:36 +01:00
atlas
2c416db049 vm-tests: k8s-node boots a node through deploy.k8s.enable 2026-11-27 21:29:36 +01:00
atlas
53e43a990d k8s: deploy.k8s.enable runs a single-node k3s that holds the service images 2026-11-27 21:29:36 +01:00
maia
0328954a78 vm-nightly: run the k8s-swarm-images test in the nightly matrix
The vm-test-list lint, added on main, requires every test in nix/vm-tests.nix
to be in the nightly matrix.
2026-11-27 21:29:36 +01:00
atlas
689e10f7aa docs: describe swarmctl migrate, the all-local swarm's move onto k8s 2026-11-27 21:29:36 +01:00
atlas
d2acf3080a k8s: render the in-cluster services' manifests from their units
services.hyperhive.k8s.enable renders a Deployment (swarm-controller,
swarm-notify-router) or CronJob (swarm-ci-metrics) per service this host
deploys into system.build.k8sManifests. The renderer reads each evaluated
unit: its environment, LoadCredential ids, state and runtime directories,
ExecStart and timer. Files the unit names are mounted at the same paths, so
the environment carries over as it is. Secrets are referenced by name only.

No unit changes. checks: k8s-manifests-all-local (kubeconform -strict,
offline schemas) and module-eval-k8s; the allLocal fixture turns the
rendering on.
2026-11-27 21:29:36 +01:00
atlas
5a884a8d09 vm-tests: a k3s node harness, and the swarm images boot as pods 2026-11-27 21:29:36 +01:00
atlas
352af3ea59 swarm-controller: move the deploy concern into its own module
Refs #6897
2026-11-27 21:25:28 +01:00
atlas
05e59c1e8c hive-matrix: the fallocate probe works inside tuwunel's sandbox
Refs #6885
2026-11-27 20:38:14 +01:00
atlas
8f7c45d40f add a default archetype, preselected by the clients 2026-11-27 19:40:19 +01:00
maia
a74d23d313 swarmctl: stop the login-callback port test from racing other tests
`the_callback_listens_on_the_requested_port_or_a_free_one` bound port 0,
dropped the listener, then bound the number it got. Another test's bind in
between could take the port, so the test failed at random and turned
unrelated PRs red (run 9104 on #6931).

The test is now three. Port 0 gives a free loopback port. A port in use is an
error naming it, checked against a listener the test keeps open, so nothing
can take the port in between. The named port is honoured: the one step that
needs a released port retries on "address in use" only, and any other error or
a wrong port fails at once.

Closes #6933
2026-11-27 19:06:29 +01:00
atlas
eabcaab930 swarm-controller: move the agents concern into its own module
Refs #6897
2026-11-27 18:24:57 +01:00
maia
26ac7acb25 deploy: drop the rename shims of controller.links, adminSync.ignoreUsers and otel.scrapeTargets
The three `swarm.*` options moved under their service's deploy namespace on
2026-11-01, so their `mkRenamedOptionModule` shims are past the four-week
window. The `core-toggle` eval case that sets the old names on purpose printed
`Obsolete option ... is used` in every `nix flake check` log, from the shim of
`swarm.otel.scrapeTargets`.

The shims go, and so do the case's settings, assertions and rename-warning
entries for these three. The case keeps the other nine renames. The
`swarm-otel-identity` checks read `scrapeTargets` through the old
`swarm.otel` path, which only the shim provided, so they now read
`deploy.swarm-otel.scrapeTargets`. No config, example or doc names the old
paths.

Closes #6929
2026-11-27 18:14:39 +01:00
atlas
6d0c0dc391 swarm-controller: move the secrets concern into its own module
Refs #6897
2026-11-27 17:35:19 +01:00
atlas
7c7c94d184 hive-matrix: turn off tuwunel's log preallocation on btrfs and zfs
Refs #6885
2026-11-27 17:35:04 +01:00
damocles
82710f4fa8 memory-cap: give claude a heap ceiling of at most 3 GiB instead of 75% of the container cap 2026-11-27 17:22:17 +01:00
iris
608eb9dcd9 shared: a dropdown that would run past the window's right edge hangs from the right of its trigger
The state menu on an agent card that fills the width hung from the
trigger's left edge, so the window cut the list off. The list now measures
itself when it opens and flips to the trigger's right edge when it would
overflow.
2026-11-27 17:10:27 +01:00
iris
dd17b20dac grafana: draw the forge change-size panels as bars that follow the time range
Average change size and the lines added and deleted panels drew one-line spikes:
the counters only exist while a repo is active and the rate over the short
rate interval left a gap everywhere else, so isolated pushes were hairlines, and
one repo's bulk import set the scale for the rest. They now draw bars of at most
40 buckets that follow the time range, and the average is the bucket's lines over
its merges on a logarithmic axis. No docs change: observability.md documents the
metrics, not the panels.
2026-11-27 17:03:29 +01:00
atlas
a9df331469 swarm-controller: move the forge concern into its own module
Refs #6897
2026-11-27 16:45:16 +01:00
damocles
ca16980a06 subagent: split session.rs into state, config, run, goal and status modules, and its tests by topic 2026-11-27 16:44:39 +01:00
atlas
cd8feedf73 swarm-controller: move the observability concern into its own module
Refs #6897
2026-11-27 14:21:35 +01:00
atlas
9b2ba275d8 swarm-controller: move the accounts concern into its own module
Refs #6897
2026-11-27 13:13:28 +01:00
atlas
237cdaffaa swarm-controller: move the review concern into its own module
Refs #6897
2026-11-27 12:17:26 +01:00
maia
b52fc0ec8e docs: use the contractions vale asks for in the egress endpoints paragraph
Closes #6902
2026-11-27 11:45:43 +01:00
maia
b56fbaed39 egress: say the forward-chain comment's agent_allow also holds the swarm endpoints
Closes #6902
2026-11-27 11:45:43 +01:00
maia
ecfc21b962 egress: let every agent reach the swarm's own endpoints under forward reject
With the egress intercept on, the forward chain rejects what `agent_allow`
does not hold, and `agent_allow` only held an agent's ssh connections. An
agent whose secret store, queue, logs or metrics endpoint is not on the
bridge was refused, so no agent started on a hive away from the swarm host.

hive-c0re's egress worker now also renders a `* <ipv4> <port>` line for each
endpoint URL it hands to agents (HIVE_AGENT_BAO_ADDR, HIVE_AGENT_LOGS_QUERY_URL,
HIVE_AGENT_METRICS_URL, HIVE_AGENT_NATS_URL), resolved like the ssh hosts.
`hive-priv egress-pin` expands a `*` line to the MAC of every agent port. An
older hive-priv skips the line, as it skips any unknown name.

Closes #6902
2026-11-27 11:45:43 +01:00
damocles
e77758d0d0 matrix-ctl: restart the homeserver when it loaded another registration, not when the file is newer, and never while it starts 2026-11-27 08:29:56 +01:00
maia
72b05d269c docs: no "cannot" in the swap paragraph
vale flags Microsoft.Contractions on "cannot". Reworded to "no signal reaches it".
2026-11-27 04:25:13 +01:00
maia
eb963fa545 hive-priv: describe the current drop-in only, not the removed exception
The test doc and the swap-usage metric text described the old behaviour. They now say what the drop-in does and what a restart applies.
2026-11-27 03:46:35 +01:00
maia
9ecc100798 hive-priv: one swap line, not lines, in the drop-in test text
The test message and a doc comment still said "swap lines" from the dropped two-line plan; the drop-in has the one MemorySwapMax=0 line.
2026-11-27 03:43:03 +01:00
maia
dfd4212e10 hive-priv: no agent container swaps, budgeted or not
The container drop-in wrote MemorySwapMax=0 only next to a finite
MemoryMax=. A container with MemoryMax=infinity kept host swap, so a
container over its memory share paged out and every process that
touched a paged-out page slept in D, out of reach of a signal.

limits_dropin_body now writes MemorySwapMax=0 for every container. The
OOM killer inside the container's cgroup takes over: subagent runs
(+900) and bash tasks (+1000) die before the agent's own session
(-500), as before. Docs say so.
2026-11-27 03:40:04 +01:00
damocles
8bd33a3482 subagent: log the name reservation lifecycle (reserve, track, release, freed) 2026-11-27 03:19:29 +01:00
iris
025d39d141 swarm-ui: the inference editor fills the section, and the login and API key get a row each
The editor stopped at 60em, and the claude login row packed the login and
the API key badges into one wrapping line. The width cap is gone, and the
API key has its own row beside the login's.
2026-11-26 21:05:47 +01:00
damocles
897f8af77d subagent and bash daemons: the runs' memory ceiling sits on their cgroup node, not on the unit 2026-11-26 14:23:34 +01:00
flake-bot
648076419f nix flake update 2026-11-26 04:01:03 +01:00