Watch
0
0
Fork
You've already forked hyperhive
0
Commit graph hyperhive/docs/4-implementation
Author SHA1 Message Date
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
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
21ea65af1b k8s: pods resolve the swarm names of host-run services to the hive bridge 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
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
8f7c45d40f add a default archetype, preselected by the clients 2026-11-27 19:40:19 +01:00
atlas
eabcaab930 swarm-controller: move the agents concern into its own module
Refs #6897
2026-11-27 18:24:57 +01:00
atlas
6d0c0dc391 swarm-controller: move the secrets concern into its own module
Refs #6897
2026-11-27 17:35:19 +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
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
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
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
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
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
iris
bbdd32c2e0 swarm-ui: one stream hook, and one rule for confirming a change
Part of the unification order in the UI sweep issue (steps e and f).

The terminal, turn-state and message feeds each opened an EventSource, tracked
connecting/open/reconnecting/closed, probed the session when the browser gave
up, and reconnected through an attempt counter. openStream (no Preact, source
injected, tested with a fake) and useEventStream now own that; each feed keeps
only what it does with a message.

A change confirmed itself three ways: a toast, inline, or nothing. The design
guide now says forms confirm inline, actions on a card in a refreshing list
confirm with a toast, and a change the page already shows says nothing. Fire
now, saving a schedule and removing an egress entry gain the toast they lacked.
2026-11-26 01:02:34 +01:00
iris
25965341e0 frontend: one tone vocabulary for badges, hints, banners and toasts
Part of the unification order in the UI sweep issue (step b).

A badge named its tones positive/warning/negative, a hint muted/warn/error/ok,
a banner info/warning/error and a toast info/ok/error. They now all take the
shared Tone: neutral, info, ok, warn, error (a badge adds accent for a selected
choice). Warn is amber everywhere (a hint used yellow), info is cyan everywhere
(a toast used purple). A test pins the list against each component's CSS.
2026-11-25 21:47:01 +01:00
iris
c205c6115b frontend: one scale for z-index, corner radius and the floating-box shadow
z-index ran through eleven values (1 to 1100), border-radius through about
twenty and floating boxes had six different shadows, with no names, so each new
box picked its own. theme.css now defines --z-bar, --z-popover, --z-skip,
--z-modal, --z-toast, --radius-sm, --radius-md, --radius-pill and --shadow-pop,
and every stylesheet and the toast host use them. Corners and shadows move by
a pixel or two at most; the stacking order is unchanged. css-vars.md lists them.
2026-11-25 21:29:08 +01:00
damocles
0876ff4de8 review-classifier: a re-request after a title or description edit runs again instead of reposting the old verdict 2026-11-25 20:48:45 +01:00
iris
5dfff854d5 swarm-ui: show a spinner on a busy submit button instead of swapping its label
Twenty save, link, create, send, run, load and log-in buttons changed their label to
"saving…" or similar while a request ran, so the button changed width under the
cursor. They now use Button's busy prop like the message box and the broadcast
dialog do: a spinner covers the label, which keeps its space. No behaviour
change; the buttons are disabled while busy as before.
2026-11-25 20:48:30 +01:00
iris
79f2d4bd4d swarm-ui: open the terminal, group and flow pages for a malformed address
A name or id that isn't valid percent-encoding (for example /agents/%E0%A4%A/terminal)
made decodeURIComponent throw while the page rendered, leaving a blank page. The
segment now stays as typed, as the agents page already did, so the page opens
(a terminal for that name, disconnected). A tested helper does the decoding.
2026-11-25 20:48:10 +01:00
iris
c7e559a09e swarm-ui: lock the backend configuration box when its stored text could not be read
Only a 404 means nothing is stored. Any other failed read used to leave an empty,
editable box with save enabled, so saving one line replaced a configuration that
was never read. The box now stays locked behind an error with a retry button.
The decision is a small tested function, and the swarm-ui doc describes it.
2026-11-25 20:47:35 +01:00
iris
ff7215a4b1 agent: let the screen page keep reload, the address bar and its own buttons
The page forwarded every key to the remote desktop and cancelled it, so F5 and
Ctrl+R could not reload, though the disconnect message tells the operator to
reload, and Enter or Space on the fit and debug buttons did nothing. F5, F12,
Ctrl/Cmd+R, Ctrl/Cmd+L and any key pressed on a button now go to the browser;
the rest still go to the remote desktop. The filter is a small module with a
test, bundled for the page as static/screen-keys.js, and the agent-page doc
describes it.
2026-11-25 19:50:22 +01:00
iris
5de0ff59f4 swarm-ui: mount the create-agent form only while its dialog is open, and list the internet setting
The dialog rendered its form even when closed, so every visit to the agents page
or the start page fetched the hive, permission and archetype lists, a half-filled
form was kept, and the hint to reopen the form for a fresh archetype list was
wrong. It now mounts per open. The summary lists the unrestricted internet box
like every other setting, and create another clears it with the rest. The
swarm-ui doc says both.
2026-11-25 19:49:31 +01:00
iris
975b43ce0e frontend: delete the tab strip, the side panel and the rebuild-queue stylesheet nothing uses
The shared tab-strip helper and its styles, the side-panel custom element, and the
dashboard's system-sections.css (rules for markup the job graph replaced) have no
importer or element left; AppShell took over the tab strip. Their package exports
and the two CSS imports go with them. The dashboard, agent and swarm-ui bundles
still build.
2026-11-25 19:38:02 +01:00
iris
928fe568dd grafana: make the hive degraded alert name the critical warning
The alert read the per-hive degraded gauge, so it could not say which warning
raised it and sent the operator to a second alert. It now reads the critical
warning series, one instance per kind, and the summary names the kind. The
docs and the module-eval check follow. The message text is not in the alert,
only in the hive-c0re log.
2026-11-25 18:51:10 +01:00
iris
09de25b0ed swarm-ui: let a paused schedule's fire now send its message as a broadcast
Fire now was disabled on a paused schedule because the controller fires nothing
while it is paused. It is enabled now and, after a confirmation, sends the
schedule's message to its agents through the broadcast route, leaving the
schedule paused with its start unchanged. A toast says who got it, and the error
banner names the agents that did not.
2026-11-25 18:29:57 +01:00
iris
48ce818bb7 swarm-ui: replace an agent's message box with a reconnect bar when its terminal stream is closed
A closed stream showed only a small red dot and a quiet badge in the top row, so
a terminal that had given up looked like a live one. The pill the operator types
in is now swapped for a red bar that says disconnected and holds the reconnect
button; the form stays mounted underneath so an unsent message survives. A
subagent terminal has no message box and keeps its reconnect badge.
2026-11-25 17:30:52 +01:00
maia
38296934e3 telemetry: say the recheck timer acts while the unit stays failed
The prose lint flags 'it is failed' as passive voice and 'it is' as a
contraction candidate.
2026-11-24 16:46:31 +01:00
maia
912b2d9570 swarm-otel: a timer starts the receiver-socket check again while it is failed
swarm-otel-sockets probes once at activation. On a fresh swarm the
collector opens its sockets only after authelia answers, which is after
the operator unseals the store, so the probe failed and stayed failed
after ingest worked: the only red unit on the swarm.

swarm-otel-sockets-recheck.timer now starts it again each minute, and
only while it is failed (an ExecCondition on systemctl is-failed), with
a restart that does not block. The check itself gets no Restart: a
oneshot's start job stays pending through an automatic restart, so a
switch would wait on it for as long as the collector is down, and the
failed check is what the switch reports. full-setup waits for the check
to be active after the collector has recovered, and the module-eval case
pins the timer, the condition and the absence of a Restart.

Closes #6836
2026-11-24 16:41:04 +01:00
atlas
870a0a6697 swarmctl bao init: save bao's raw output before parsing, and accept null key lists 2026-11-24 15:38:31 +01:00
iris
479cdd6efb swarm-ui: say why the model dropdown has no models, and let it retry
The model list read swallowed every failure, so a swarm that timed out
answering /api/models looked the same as one with no models: the dropdown
held only the agent's own value and "other…", with nothing to say why.
The failure now shows as a warning with the controller's reason and a
retry button, and the answer is read through a parser that ignores any
shape but a list of names.
2026-11-24 10:39:29 +01:00
atlas
cd040afa0e swarmctl login: find the sso provider from the gateway's published metadata 2026-11-23 23:19:45 +01:00
iris
519ed2f134 swarm-controller: keep the known models in memory, and let the controller watch agent-inference
GET /api/models listed the agent-inference bucket on every request with
keys(), which needs the nameless ephemeral consumer subject
CONSUMER.CREATE.KV_agent-inference. The controller's NATS grant had that
subject for the status, permissions and bash task buckets but not for
this one, so NATS refused the create and the client waited out its
timeout: the request hung every time.

The controller now follows the bucket with a watch that replays each
key's current value first, keeps each agent's models in memory beside the
reported ones, and answers the request from there without reading the
bucket. The grant adds the one create subject the watch needs, with a
policy test like the other buckets'.
2026-11-23 21:53:44 +01:00
iris
e4cab003d1 swarm-ui: edit an agent's inference in place, and move the resource caps to access
The inference section was one wrapping line of badges, with the CPU and
memory caps among them, and an edit button that opened the same fields in
a dialog. The editor is now the section itself: a line says what the
agent runs on now and where it comes from, and the fields sit in one row
where there is room, with save, reset and clear below. Unsaved edits are
kept per agent. The claude login and API key row stays below. The caps
are not inference settings, so they become a row of the access section.
2026-11-23 19:25:53 +01:00
iris
ef4c9214f7 swarm-ui: fold an agent's long activity lists, and list subagents as rows
On a busy agent the activity section grew long: the todos and bash tasks
ran to dozens of rows, and the subagents were one wrapping line of badges.
Each list now shows its first five rows with a "show all N" button;
expanded, the rows scroll in a bounded box. The subagents are one row each
(name, model and effort, state and age), running first and the rest dimmed,
as in the menu on the terminal page, and a picked subagent stays in view
when the list is folded.
2026-11-23 18:19:53 +01:00
maia
1448168569 credential-delivery: reflow the two paragraphs the retry sentence joined 2026-11-23 13:11:31 +01:00
maia
dad288d555 swarm-otel, swarm-grafana: a delivery unit fails on no value yet
The collector's and Grafana's OIDC delivery units exited 0 when the store
held no value, so systemd did not retry them. On a fresh swarm authelia's
mint writes the secret about 30 s after the first read, and only the
refresh timer, ten minutes on, read it again. Both units now exit 75, and
the store retry they already carry asks every 30 s until the mint lands.

Closes #6790
2026-11-23 12:43:37 +01:00
atlas
480855dfaf swarm-otel: scrape the authenticated targets only once the collector has its client secret
An empty secret file made the prometheus receiver request a token for each published target every scrape; authelia's per-address limit then refused every client behind that address. Without a secret the collector starts on the config minus those jobs. full-setup asserts the limiter never fired.
2026-11-23 12:28:12 +01:00
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
argus
8a0615ccfc review classifier: it reads the PR's title and description, and a rule on closing keywords
The controller reads the PR's title and description with the rest of it and
puts both in the run's shared context, ahead of the commits. An empty
description reads as `(none)`. `TryOut` carries them as optional fields, so a
controller that sends none still gets its run answered.

New rule `closes-only-finished-issues`: a description that carries a closing
keyword for an issue and also says the PR leaves part of it undone is a
violation, because the keyword closes the issue when the PR merges.
2026-11-23 08:53:16 +01:00
atlas
90a1e523fb swarm-otel: delete a sender-set sender and hive from datapoints and log records 2026-11-23 08:23:01 +01:00
iris
ded017953b swarm ui: the instructions section holds the AGENTS.md editor itself
The section shows the editor, with save, undo and the conflict handling,
instead of an edit badge that opens it in a dialog. It loads when the section
is first opened and keeps an unsaved edit while the section is mounted, so the
kept-edit wrapper the dialog needed goes away.
2026-11-23 08:19:17 +01:00