Watch
0
0
Fork
You've already forked hyperhive
0
Commit graph hyperhive/docs/4-implementation
Author SHA1 Message Date
maia
4159d01abe docs: turning the node on restarts the store, so unseal before the re-grant
node.md named the second grant-bootstrap and nothing before it. The
first activation with deploy.k8s.enable adds a pod listener to the
store's configuration, which restarts container@swarm-bao. A shamir
store comes back sealed, the units that read it fail, and
grant-bootstrap cannot log in until an operator unseals it. A pkcs11
store unseals itself.

node.md now has the order for a swarm that already runs: unseal on a
shamir store, then grant-bootstrap once, then restart the policy units,
as setup.md does. Only node.md changes.

Closes #6844
2026-11-27 21:29:38 +01:00
atlas
0f0ed38d4b remove swarmctl migrate, migrate.json and the migrate docs 2026-11-27 21:29:38 +01:00
atlas
31f5438d36 k8s: the hyperhive namespace enforces pod security restricted
No pod in the namespace has a hostPort any more, and the census found nothing else that restricted refuses. The namespace now carries the restricted level for enforce, warn and audit, so the API server refuses a pod that drifts. The bao-login test's probe pods get the container security context restricted asks for. The controller switch test shows the API server admitting a compliant pod and refusing the same pod with a host port, a kept capability or privilege.
2026-11-27 21:29:38 +01:00
atlas
d93d4c07f6 k8s: the queue's client port is a loadbalancer service
The queue's client port was a hostPort on 0.0.0.0, which Pod Security baseline and restricted forbid. It is a LoadBalancer Service now, which k3s's service load balancer binds on every address of the node with a hostPort of its own in kube-system, so hives on other hosts keep their URL. No node port is allocated. The stt policy allows the load balancer's pods in place of the queue's, and the prune unit waits for them to go before the host unit starts. The egress published-port rule and the raw-table rules apply to the load balancer's hostPort as to the pod's.
2026-11-27 21:29:38 +01:00
atlas
e7ccc41652 egress: the forward chain accepts the flows the host publishes for the agents
On a host with the egress intercept on, the forward chain rejected an agent's traffic to the queue once the queue ran as a pod: the pod's hostPort rewrites the destination to the pod, and the packet then leaves the bridge for the cluster. The chain now accepts TCP that the host's NAT redirected whose original destination is the bridge's address at a published port, which the queue adds when it runs in the cluster. Everything else from the bridge to the cluster stays refused. The nats switch test runs with the intercept on.
2026-11-27 21:29:38 +01:00
atlas
e29a8e71f3 k8s: the queue's exporter is a ClusterIP service only the node reaches
The exporter's metrics port was a hostPort on the bridge's address, which Pod Security baseline and restricted forbid. It is a ClusterIP Service now, and the pod has a NetworkPolicy that admits the client port from any source and nothing else, so only the node reads the exporter, as the raw-table rules made it. The gateway's /metrics location dials the Service by name through nginx's resolver. The raw-table rules no longer name the exporter's port.
2026-11-27 21:29:38 +01:00
atlas
9a72d07c05 k8s: the controller's listener is a ClusterIP service the host dials by name
The controller's api port was a hostPort on the node, which Pod Security baseline and restricted forbid. It is a ClusterIP Service now, behind a NetworkPolicy that admits only the node. The host's resolver (the hive's dnsmasq) forwards cluster.local to CoreDNS, and the gateway dials the Service by name through nginx's resolver. tcp.hostAddress goes.
2026-11-27 21:29:38 +01:00
atlas
2c1dc695c5 k8s: stt's pod runs in a user namespace of its own 2026-11-27 21:29:38 +01:00
atlas
2259b5f27b k8s: stt's pod gets a network policy: dns and four host ports out, nothing in 2026-11-27 21:29:38 +01:00
atlas
d8baa66666 k8s: the controller pod keeps no volume; the state gate goes 2026-11-27 21:29:38 +01:00
atlas
8b4ae09b45 k8s: the queue's pod mounts the host unit's store in place 2026-11-27 21:29:38 +01:00
atlas
6ac4e9b87d k8s: stt and ci-metrics start without a state gate 2026-11-27 21:29:38 +01:00
atlas
d6d30df90b docs: migrate status reads the gate from the pod's status 2026-11-27 21:29:38 +01:00
atlas
22db35102a docs: say what the nats pod does and doesn't isolate 2026-11-27 21:29:37 +01:00
atlas
a2cb2346d8 docs: the start gate describes what the pod runs 2026-11-27 21:29:37 +01:00
atlas
7ff98d3c70 docs: the queue in the cluster 2026-11-27 21:29:37 +01:00
atlas
74dcb9b369 docs: the controller's runtime, hostPort hop, listener leaf, state and rev rollout 2026-11-27 21:29:37 +01:00
atlas
72b437832d docs: the review classifier and the claude login minter run in the cluster with deploy.<service>.runtime 2026-11-27 21:29:37 +01:00
atlas
ee0af28978 docs: the CI run poller's runtime, cursor volume, own telemetry route and CA ConfigMap 2026-11-27 21:29:37 +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
49f5e70e3f docs: the speech-to-text service's runtime, limits and cache volume 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
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