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

6,966 commits

Author SHA1 Message Date
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
flake-bot
da5c52e4c8 nix flake update 2026-11-24 08:26:30 +01:00
atlas
cd040afa0e swarmctl login: find the sso provider from the gateway's published metadata 2026-11-23 23:19:45 +01:00
maia
c1851f37cc swarm-bao: move the agent PKI and SSH CA units out
swarm-bao-agent-pki (the agent PKI mount, its root and role, and the
listener's trust in it, with the restart of openbao) and
swarm-bao-agent-ssh-policy (the agent SSH CA mount and its role) are
their own module, with the bindings only they use. The mount names, the
cached agent CA, the listener bundle and the unit timeouts the host
module also reads join lib/swarm-bao-shared.nix.

Refs #6820
2026-11-23 22:40:45 +01:00
maia
e88de09d72 swarm-ci-metrics: move the settings and pass logic out of main and test it
main read the environment inline and held the per-repo pass, the
certificate gauges and the verdict, so none of it could run in a test.
Each is now a function with its inputs as arguments:

- Env::read takes a lookup closure in place of std::env (same read
  order), var names a missing setting by its full variable.
- finish, skip_counts, wanted_repo, walk_done, trimmed and cert_gauges
  hold the branches that were inline.
- A pass talks to the forge, the identity provider and the collector
  through a Remote trait. Live is the daemon's HTTP implementation, and
  the tests' stand-in answers from memory, so no test opens a socket.
- post_request builds the collector request and refused the refusal
  text, so both are tested without a connection.

x509-cert becomes a dev-dependency (the workspace already pins it) for
the test certificate. Behaviour is the same.

Refs #6811
2026-11-23 22:36:45 +01:00
maia
e8a6a4dfdb swarm-bao: point the moved leaf comments at ../ files 2026-11-23 22:05:10 +01:00
maia
a5a0b4a489 swarm-bao: move the per-principal reader policy units out
The 17 swarm-bao-*-policy units that write a service's own policy and
cert-auth role (Grafana, the collector, the queue and store responders,
the CI runner and poller, the classifier, the builder, the cache, the
archive, the claude login minter, the notification router, stt and the
forge publisher) are their own module, with the reader lists and the unit
shape they use. The stanzas, leaves and unit helpers the host module also
reads join lib/swarm-bao-shared.nix.

Refs #6820
2026-11-23 21:59:17 +01:00
maia
5dacfdb320 swarm-bao: move the operator viewer login and the shared bindings out
swarm-bao.nix held 5,146 lines in one module. Move two pieces out, with
no change to what it renders:

- lib/swarm-bao-shared.nix: the bindings more than one concern reads
  (the TLS directory, the granter's login and unit shape, the leaves
  several grants name, the CLI wrapper). swarm-bao.nix and the sibling
  modules import it and inherit what they use.
- swarm-bao-operator-viewer.nix: the store's browser-UI login (the
  operator viewer policy, the oidc auth config and its role), gated as it
  was on the store and its server certificate.

Refs #6820
2026-11-23 21:54:32 +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
maia
bceaf31f36 swarm-stt: move the settings and request handling out of main and test it
main read the environment through closures built inline and held the
per-request admission and answer inside the receive loop, so none of it
could run in a test. Each is now a function:

- env_var and env_number read through a lookup closure in place of
  std::env, and main wraps std::env::var.
- request_agent, admit and respond hold the admission and the answer of
  one request; answer takes any Engine instead of Whisper.
- stored_value holds the check on the stored client secret.

Tests run settings, admission and answers against a fake engine.

Closes #6811
2026-11-23 21:03:05 +01:00
damocles
9412bb568a hive-agent-mcp: test the tool output rendering and the in-agent socket dial 2026-11-23 20:49:59 +01:00
iris
4fe54c87c8 swarm-ui: compute the inference editor's stored boxes once per read, not every render
The remember effect ran on every render because the stored draft was
rebuilt each time. It is now memoised on the read.
2026-11-23 19:34:53 +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
maia
9237948c2c egress-pin: say a vb- veth on the bridge that has no link_index
parse_ports drops a bridge port whose listing has no numeric link_index
without a line, and the unenslaved check cannot see it because it is on
the bridge. A sweep now names such a veth after the usual 60 s grace,
keyed by its ifindex so a restart is a new finding. Diagnostics only: no
binding changes.

Refs #6646
2026-11-23 10:29:37 +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
atlas
ea84d746dd docs and option text: describe the sender stamp, drop the hive label 2026-11-23 00:48:56 +01:00
atlas
c529bab9ea module-eval: grafana and swarm-otel cases follow the sender stamp 2026-11-23 00:48:56 +01:00
atlas
2306b60473 grafana: alerts and the log-absence rule key on agent and sender, not hive 2026-11-23 00:48:56 +01:00
atlas
7796f53874 dashboards: filter agents by agent and hosts by host.name, drop the hive variable 2026-11-23 00:48:56 +01:00
atlas
22c4d16a20 swarm-otel: stamp sender from the authenticated client id, not a hive 2026-11-23 00:48:56 +01:00
iris
ab329e5793 swarm ui: an agent's details are an identity card and sections by question
The details pane showed the agent's name, then status, message and wanted
rows with no card, then a folded status section repeating the state, and a
single settings section of eleven rows of different kinds.

The pane now opens with one identity card: icon and name, the wanted menu,
badges for freshness, turn state, context and a needed login, the whole
status message, and the hive, links and config PR. Below it the folded
sections answer one question each: terminal, activity (todos, subagents and
background tasks together), instructions, inference (which now holds the
claude login and API key), access, and accounts. The terminal page's popover
shows the card without the name and the four settings sections.
2026-11-23 00:47:36 +01:00
atlas
9909e63c2d keep storage detail out of the matrix handbook 2026-11-22 23:38:33 +01:00
atlas
28d847cb7e keep the operator matrix admin grant record in nats kv, not on disk 2026-11-22 23:33:40 +01:00
iris
c24f3c3d88 swarm ui: remove the config PR filter from the agents page
The filter bar no longer offers a filter on an agent's config PR. A
filter saved on it before is dropped by the table's existing handling of
columns that no longer exist.
2026-11-22 22:31:44 +01:00
iris
6a18bf1e02 swarm ui: the agents page uses more of the width with an agent selected
With a selected agent the shell's 90em column left a wide screen mostly
empty. The page now raises that cap to 160em while two columns are
showing, and the details take three parts to the list's one (the list keeps
at least 24em). The cap and the columns move with the same easing.
2026-11-22 21:50:52 +01:00
damocles
b6d0790eb4 grafana: the claude usage panel keeps the history from before the account label as an unlabelled account 2026-11-22 21:37:22 +01:00
maia
0bb48f90ae docs: gateway.md states the forge as it is, not the options it lost
The removed-option messages carry that history; the page describes the current state.
2026-11-22 20:52:35 +01:00
maia
57ca9433a7 docs: the forge has no raw port and is not an infra container on the host netns
ci.md named a raw forge port that no longer exists; network.md's map listed infra containers as sharing the host netns, which the forge no longer does.
2026-11-22 20:52:35 +01:00
maia
6e2abcb0a5 module-eval: the forge no longer shares the host netns
Two service containers share it now, bao and the queue; fourteen have a netns of their own.
2026-11-22 20:52:35 +01:00
maia
fc70f538ac forge: its own netns, HTTP on a unix socket, git over HTTPS only
The hive-forge container leaves the host netns and listens on no TCP port: Forgejo serves HTTP on a unix socket the gateway proxies to, and the built-in SSH server is off. The httpPort, sshPort and openFirewall options are removed with a message each.
2026-11-22 20:52:35 +01:00
damocles
e1434e677b grafana: the claude usage dashboard shows subscription usage per account against the elapsed share of its window 2026-11-22 20:41:31 +01:00
damocles
57e06c9ec8 swarm-queue-client: the readyz test holds its stand-in server's port instead of freeing and rebinding it 2026-11-22 20:30:17 +01:00
damocles
e0a5f737ac hive-matrix-mcp: resolve a bare server name through matrix-sdk's discovery before connecting 2026-11-22 19:59:21 +01:00
maia
b8851743e8 egress: the forward chain refuses by default where the intercept is on
egress.forward defaults to reject while egress.intercept.enable is on (a
hive controller host turns it on) and to log otherwise, because reject
without the intercept would refuse all web traffic and an assertion
already forbids it. log stays an explicit choice.

The hive-squid VM test runs its log-mode half on the base node, so the
base pins forward = log at mkDefault priority and the reject
specialisation overrides it. A module-eval case covers the default on a
controller host, on a host without the intercept, and an explicit log.
2026-11-22 19:47:38 +01:00
damocles
d88a0cc526 hive-matrix-mcp: add a leave_room tool 2026-11-22 19:24:42 +01:00
iris
56ed2e07da swarm ui: select several agents on the agents page and broadcast to them
Select mode picks agents from the list: the select button in the filter
card, a press on an agent's icon, or a long press on a card starts it. In
it a card toggles a tick instead of opening its details, and the card's own
controls stop answering. A bar at the foot of the list has select all shown,
clear, broadcast and done; Escape leaves the mode.

Broadcast opens a dialog with the picked agents and a message box, sending
through the existing broadcast endpoint; the composer's send and result
parts are now shared with the swarm page's broadcast card. A full send shows
a toast and ends select mode; a partial one keeps the result with a retry
for the agents that failed.
2026-11-22 18:58:50 +01:00
iris
7bdaea7954 swarm ui: agents page opens an agent's details beside the list
Selecting an agent card opens its details in a column on the right of the
agents list, at /agents/<name>, instead of unfolding the card in place. The
list is full width until an agent is selected, then narrows and the details
slide in. A narrow screen shows the details alone, with a back button. A
card's message is cut to one line.

The shell treats /agents/<name> as the agents page, so the nav tab stays lit
and the page is not rebuilt on each selection.
2026-11-22 18:58:05 +01:00
iris
2d3da56907 hive ui: hide the shell's page heading, which the dashboard showed as a second title 2026-11-22 18:27:25 +01:00
iris
8e2844ec92 swarm-ui: select a pane's name badge in a terminal group to open the agent's details 2026-11-22 18:16:23 +01:00
iris
91e2d26133 frontend: remove the stylix overlay and add hyperhive and Catppuccin light and dark themes 2026-11-22 17:55:10 +01:00
damocles
989d1d578c hive-agent: keep an own /knowledge clone current from the swarm knowledge event 2026-11-22 17:48:23 +01:00
iris
ff4e42f1ae swarm-ui: opening a dialog no longer scrolls the page to the top 2026-11-22 17:25:48 +01:00
damocles
44b248bf6d hive-agent: drop the legacy todos/reminders db migration 2026-11-22 16:59:24 +01:00