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

7,046 commits

Author SHA1 Message Date
atlas
c316851466 k8s: pods resolve the swarm names of host-run services to the hive bridge 2026-11-28 09:59:08 +01:00
atlas
24aa9dbc4e vm-tests: k8s-node boots a node through deploy.k8s.enable 2026-11-28 09:59:08 +01:00
atlas
408cfa7353 k8s: deploy.k8s.enable runs a single-node k3s that holds the service images 2026-11-28 09:59:08 +01:00
maia
af7cdda9f7 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-28 09:59:08 +01:00
atlas
8021d8395a docs: describe swarmctl migrate, the all-local swarm's move onto k8s 2026-11-28 09:59:08 +01:00
atlas
cf3627718e 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-28 09:59:08 +01:00
atlas
70fe505b9b vm-tests: a k3s node harness, and the swarm images boot as pods 2026-11-28 09:59:08 +01:00
atlas
b9687c54f2 swarm-controller: alerts and jobq-graph handlers take their own sub-state via FromRef 2026-11-28 09:50:47 +01:00
flake-bot
b7650259c9 nix flake update 2026-11-28 09:49:02 +01:00
maia
c12e231d32 fix(matrix): the deferred starter logs the state its boot ended in
A degraded guest still starts the services, and now the journal says so next
to the start. The VM test pins the line.
2026-11-28 09:48:50 +01:00
maia
3919de6358 fix(matrix): queue tuwunel's start after the guest's boot is over
The deferred starter was a oneshot that ran `systemctl start --no-block
tuwunel` inside the boot transaction. A --no-block start still queues a
start job, so the guest's job queue stayed non-empty for as long as
tuwunel's start took, and the container (Type=notify, --notify-ready=yes,
one minute) never reported ready and was killed at its limit.

The starter is now Type=simple, so its own start job ends at the fork. It
waits for `systemctl is-system-running --wait` and only then queues the
service. The VM test waits for the daemon to reach `activating` instead of
asserting it the moment the container's start ends.
2026-11-28 09:48:50 +01:00
atlas
19640f3bf8 container-deferred-start: assert the control unit's end state instead of reset-failed 2026-11-28 09:48:50 +01:00
atlas
ba0f9c6264 start tuwunel after the container is up, under its own 30 min limit 2026-11-28 09:48:50 +01:00
iris
7ae1b42fd9 swarm-ui: an agent icon loads when it scrolls into view
Every card fetched its icon on page load, so a roster of 80 made 80 requests
before the first scroll. The image is lazy now; the first screen's still load at
once.
2026-11-28 09:48:36 +01:00
iris
c1d182daa0 swarm-ui: the two retry buttons that said try again say retry
Eight failed reads offer a retry button; the claude login dialog and the
instructions editor worded the same action try again.
2026-11-28 09:48:24 +01:00
iris
f6a0bb4bb3 swarm-ui: the three toasts that didn't match read like the rest
Two toasts started with a capital and ended with a full stop (the stored login
dialog's and the login delete's), and the API key removal had no tone. They are
short lowercase phrases with the ok tone now, and the design guide says so.
2026-11-28 09:48:07 +01:00
iris
963ec65bbc swarm-ui: a toast waits while the pointer is on it
A toast left after four seconds (eight for an error) whether it had been read or
not. The countdown stops while the pointer rests on it and runs on for at least
1.5 seconds after the pointer leaves.
2026-11-28 09:47:54 +01:00
iris
868b8743d8 swarm-ui: the browser chrome takes the theme's background colour
The theme-color meta was a fixed mauve, so a phone's status bar and an installed
app's title bar stayed mauve under every theme, light ones included. The theme
effect sets it from the computed --bg after each change, and again when the OS
scheme changes under auto.
2026-11-28 09:47:36 +01:00
iris
bcb432caf4 swarm-ui: three press targets show a hover state
The selection bar's link buttons, an expandable card's head and a toast all take
the pointer cursor and gave no other sign. The links underline on hover and
focus, the head tints its title, and the toast darkens its border.
2026-11-28 09:47:13 +01:00
damocles
73ef63a5e5 matrix daemon: stay up when the primary account is down and say why in the tools 2026-11-28 09:46:56 +01:00
iris
9fdde2ec63 swarm-ui: menus, popovers, toasts and dialogs fade in, with one motion guard
Dialogs, toasts, popovers, dropdowns and the filter popover appeared with no
transition, and the header menu had a keyframe of its own. theme.css holds
--enter and --fade, off under reduced motion and the motion setting's reduce,
and each floating box uses them.
2026-11-28 09:46:32 +01:00
iris
fdeb95a61b shared: buttons answer hover, press and keyboard focus
.ui-button had a pointer cursor and nothing else: no hover, no pressed state and
no focus style of its own. Each variant gets a hover fill, a press nudge and a
purple focus ring, with the transition off under reduced motion.
2026-11-28 09:46:01 +01:00
iris
76d2c5e788 swarm-ui: a finished bash task and a stale subagent read in the muted colour
Both rows dimmed with opacity: 0.6, which took their muted id and age to 2.65:1
on the page. They use the muted colour now, which holds 4.7:1.
2026-11-28 09:45:37 +01:00
iris
c77904362d swarm-ui: an agent card is no longer a button around buttons
The card row had role=button and tabindex=0 and held the terminal button, the
wanted menu and the login button, which axe reports as nested interactive
controls and which a screen reader can't walk. The row is no control now; the
agent's name is a real button, so Tab, Enter and Space open the agent, and a
press anywhere on the card still does. Picking stays one checkbox per card.
2026-11-28 09:45:23 +01:00
iris
7e6972a191 shared: a busy button keeps its accessible name
The busy state hid the label with visibility: hidden, which takes it out of the
accessibility tree, so axe reports a button with no name while it works. The
label is opacity: 0 now; the button stays aria-busy and disabled.
2026-11-28 09:44:40 +01:00
iris
ad8263740b swarm-ui: a relative-time label wakes when its text changes, not every second
Each <RelativeTime> ran its own one-second interval and redrew each tick, though
"5m ago" holds for a minute and "3h ago" for an hour. Every label now sets a
timeout for the moment its text next changes (next-change.ts), so a list of
timestamps in minutes redraws once a minute.
2026-11-28 09:44:26 +01:00
iris
5b597b782f swarm-ui: text on badge and button fills reaches 4.5:1 in the default themes
axe found the neutral badge, the primary button and a selected card's message
under AA in hyperhive light (4.39:1 and 3.82:1) and in the Mocha themes. A
light palette now lightens the --purple-dim fill, the Mocha palettes darken it,
and the muted text keeps more of the text colour.
2026-11-28 02:38:01 +01:00
atlas
5e81895a3b swarm-controller: accounts handlers take their own sub-state via FromRef 2026-11-28 01:51:56 +01:00
iris
e701be870a swarm-ui: with an agent open, the list's filters sit behind one filter button
An open agent narrows the list to a column, where the filter boxes and menus
took three rows. They now stack in a popover under one button that shows how
many filters are active; the full-width list keeps them in the bar.
2026-11-28 01:14:01 +01:00
atlas
8d8fcb59cf swarm-controller: one test constructor for AppState fixtures 2026-11-28 00:00:26 +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