Watch
0
0
Fork
You've already forked hyperhive
0
Commit graph hyperhive/hive-agent/src
Author SHA1 Message Date
iris
50d318c92a fix two references to removed things in the stats page removal 2026-11-16 19:55:48 +01:00
iris
37f036ee7d remove the unused reminder rollup request and the stale references to the stats page 2026-11-16 19:07:08 +01:00
iris
6ed714a0a7 remove the agent's stats page and its endpoint 2026-11-16 19:00:52 +01:00
iris
5175d3663e swarm: set the fresh-session threshold per agent 2026-11-16 10:50:13 +01:00
iris
49ee678117 name what is true in three more comments, and test the old event log's removal 2026-11-16 08:06:47 +01:00
iris
cb9fbfc9da hive-agent: the /clear-todos tests set a harness dir, as the bus reads one 2026-11-16 08:06:47 +01:00
iris
cbda9c162f drop the sqlite event log nothing reads, and the comments naming routes that are gone 2026-11-16 08:06:47 +01:00
iris
6289b8d64b remove the agent's live terminal page and the endpoints only it used 2026-11-16 08:06:47 +01:00
iris
fb9d4b5040 swarm: /clear starts an agent's next turn on a fresh session 2026-11-16 03:21:20 +01:00
iris
b239500f88 swarm: an agent's open todos, mirrored to the queue and served by the controller 2026-11-16 01:21:52 +01:00
damocles
dc0d08b7fb add a /clear-todos command that marks the agent's todos done 2026-11-16 01:06:02 +01:00
damocles
d54b59df7e hive-agent: read a skill's file only when the skill names change 2026-11-15 22:11:51 +01:00
damocles
8cc99020a8 hive-agent: guard the unreported-window tests' harness dir 2026-11-15 21:50:26 +01:00
damocles
e076290eb1 hive-agent: HIVE_CACHE_TTL_SECS=0 disables the cache heuristic, and the harness warns at start when it is off 2026-11-15 21:50:26 +01:00
damocles
49719842b0 publish the agent's skills to the agent-commands bucket 2026-11-15 21:31:07 +01:00
damocles
c45615a555 hive-agent: tests for the unknown-window paths, and the two vale errors 2026-11-15 21:08:51 +01:00
damocles
1bfee54414 hive-agent: no hard-coded context window sizes, the window is what the API reports 2026-11-15 21:08:51 +01:00
damocles
7dd988a9e8 rustfmt the soft context limit change 2026-11-15 17:21:13 +01:00
damocles
1e03979836 swarm: a soft context limit per agent, as a percent of the window, applied at turn end 2026-11-15 17:21:13 +01:00
damocles
186038718c hive-agent: test that a leftover active_model in the harness state file is ignored and kept 2026-11-15 16:13:47 +01:00
damocles
05c193859f hive-agent: stop writing active_model to the harness state file, nothing reads it 2026-11-15 16:13:47 +01:00
damocles
183e55dd80 hive-agent: let an agent compact from 40% context usage instead of 66% 2026-11-14 12:35:27 +01:00
atlas
cf360b74b9 remove the hivectl-only quota verbs and the trollshell status feed 2026-11-13 16:14:41 +01:00
damocles
03b9c39498 hive-agent: test the todo socket server's error replies, bind and a full socket round trip 2026-11-13 09:23:29 +01:00
atlas
a437f9ccd5 drop hive and agent response fields the frontend never reads 2026-11-13 08:55:41 +01:00
atlas
36c7781245 remove hive and agent apis nothing calls: build-log routes, /api/compact, host.sock list, mcp.sock wake 2026-11-13 03:09:24 +01:00
damocles
cb5fb3c730 todos: the new test no longer sits under another test's doc comment 2026-11-12 14:20:00 +01:00
damocles
e3bf401f6e harness stores: a failed lookup is not no-row, bulk done is one transaction, the reminder cap is checked with the insert 2026-11-12 14:20:00 +01:00
damocles
423860cadc transcribe_audio: wait for the service's reply deadline, cap the read, say what each failure is 2026-11-12 12:18:18 +01:00
damocles
eff209f756 agents can transcribe an audio file: the transcribe_audio tool, through the harness and the speech-to-text service 2026-11-12 12:18:18 +01:00
damocles
93d9c56e2b web ui: bulk mark-done shares one deadline and takes at most 200 ids 2026-11-11 22:07:37 +01:00
damocles
c0eb6780ec templates: the agent system prompt is a Jinja template, rendered through hive-template
system.md carries {{ label }}-style variables and an {% if not archetype %} block in place of the config:repo / config:archetype marker pairs, so prompt.rs drops its line filter, marker parsers and string replaces. The rendered prompt is byte for byte the old one for a custom agent, an archetype agent and an empty archetype name, with and without hive, swarm, docs and operators. hive-template now drops a block tag's own line.
2026-11-11 09:04:42 +01:00
iris
2acde41e54 docs: the hive dashboard and agent page shrink to overviews
The hive dashboard and the per-agent page lose their control-by-control UI
description and endpoint tables from the handbook. The full text moves to
4-implementation/web-ui/dashboard.md and agent-page.md, and the handbook pages
keep what an operator needs to find and use them. Code comments that named the
old sections point at the new pages.
2026-11-11 01:50:55 +01:00
iris
0ae34b1cd0 docs: persistence and config changes become one operator page
The operator parts of the persistence and config-changes pages merge into
agents/persistence.md. The sqlite tables, state dirs, mounts and migrations move
to 4-implementation/agent-state/persistence.md, and the deploy path, meta flake,
deploy markers, startup migrations, root container, system messages and
autoupdate move to 4-implementation/agent-state/config-changes.md. Links, code
comments and nix comments that named the old sections point at the new pages.
2026-11-11 01:50:35 +01:00
atlas
e5c55257f8 a hive-side pause holds against the swarm's declared state until an operator resumes
the harness writes the reason into the pause marker when it pauses itself and reports it as paused_by_hive in its turn-state header. swarm-controller declares such an agent paused (only if declared up) and shows the reason on the agents status row and the swarm ui card.
2026-11-10 06:49:16 +01:00
iris
4b1012056c hive-agent: order a stored login by when the store wrote it, not by its number
A delete removes the leaf's metadata, so the KV number restarts at 1. A login
made right after a delete, before the next poll, was version 1 again and
looked no newer than the recorded 1, so it never installed. The version file
now records the store's write time next to the number and a later write
installs whatever its number. A record from before the time was kept falls
back to the number and gets its time when the same number is read again.
2026-11-09 23:03:08 +01:00
iris
a2c9e9a8d4 hive-agent: a logged-in agent polls the swarm login, and logs out when it is deleted
wait_for_login read the store leaf only while the agent waited for a login.
A logged-in agent now reads it every 5 minutes, and a paused one once before
it resumes, so a login made or deleted in the swarm UI reaches an agent that
never failed. A newer version is installed; a store that answers nothing
stored after a version was installed means the stored login was deleted, and
the agent is logged out as /api/logout does it, with the recorded version
forgotten so the next login installs. A read that fails changes nothing.
2026-11-09 23:03:08 +01:00
damocles
a0a3f9a70c hive-agent: test the in-agent socket's request dispatch 2026-11-09 22:16:48 +01:00
damocles
1c3b5e52cf drop the host side of the agent broker send
Remove the agent-side Send and AckUntil requests, their hive-c0re handlers
(handle_send with its 4 KiB size cap, handle_ack_until) and Broker::ack_until.
Everything that existed only for them goes with them: the OkWarn response
(its sole producer was Send's reserved-name warning), Recv's max parameter
and RECV_BATCH_MAX (the harness never asked for more than one message),
OPERATOR_SEND_REFUSAL, and the MESSAGE_MAX_BYTES / check_size limit (the
reminder timer keeps its own copy of the cap, so its comment is reworded).

Messages.remaining stays on the wire (default on read) because a harness
built before this change still requires it. Update the conventions docs.
2026-11-08 08:56:39 +01:00
atlas
319dd6a808 alert when claude usage runs ahead of the clock, per account 2026-11-08 02:05:50 +01:00
damocles
9457f49684 test the wake prompt and the Messaging permission after the tool removal 2026-11-08 01:40:10 +01:00
damocles
c5fba26d62 drop the remaining pointers at the removed send/recv tools 2026-11-08 01:40:10 +01:00
damocles
bffb2c07a8 drop the hyperhive send/recv/ack_until tools: agents message over matrix 2026-11-08 01:40:10 +01:00
iris
d516bb890c remove the forge links from the hive dashboard and the agent page
Each agent row on the hive dashboard, and the agent page's link menu, linked
to the agent's forge profile and its config repo. Both are gone, with what
only they used:

- hive-agent no longer builds the two links, the `Forge` link kind, or the
  `forge_public_url` field of its state, and no longer reads
  `HIVE_FORGE_PUBLIC_URL`. The agent page's link menu and the dashboard row's
  icon strip (which skips a forge link an agent not yet rebuilt still sends)
  drop their forge handling.
- hive-c0re's dashboard state no longer carries `forge_public_url`.
- `HIVE_FORGE_PUBLIC_URL` is no longer forwarded to agents through the meta
  flake (the forwarded-variable list, its test fixture, the controller's
  settings and the VM test), so the next meta flake render differs by that
  one line. hive-c0re still reads it for the forge URL a hive publishes, so
  `swarm.forge.publicUrl` stays, with its description corrected.
- The docs stop describing the links.
2026-11-07 13:43:44 +01:00
iris
0e84fe8bc4 docs: the handbook follows the three layers: swarm, hives, agents
The handbook's sections were agent-lifecycle, integrations, swarm, tools,
trust-boundary and web-ui, which do not follow how the system is built, so a
reader could not tell which layer a page is about. Its pages now sit in
swarm/, hives/ and agents/, with the accounts an agent can hold outside the
system in external-accounts/.

- swarm/: forge, matrix and the knowledge repo join the swarm pages, and so
  does the swarmctl reference.
- hives/: the dashboard, hivectl and its reference, and the operator/agent
  boundary, with a README that takes over the old web-ui and tools pages.
- agents/: the roster, persistence, config changes, the agent's own web page
  (was web-ui/agent) and the security model, with a README.
- external-accounts/: GitHub and GitLab.

Pages are moved whole; none is split yet. Every reference follows: relative
links in the docs, `docs/2-handbook/...` paths in code comments, the nix
checks that regenerate the CLI references and the ignore list, and docs/README.md,
whose handbook section is now by layer.
2026-11-07 12:19:36 +01:00
damocles
fca7f669f5 hive-agent: poll, do not sleep, for the positive case in the accept-limit test 2026-11-07 09:41:00 +01:00
damocles
e9940be983 hive-agent: cap concurrent connections on the in-agent todo socket 2026-11-07 09:41:00 +01:00
damocles
4b08dde82e docs: two comments no longer mention the removed send allow-list 2026-11-07 09:26:24 +01:00
damocles
934ba3a9c5 hive-agent: test the state status computation 2026-11-07 08:32:11 +01:00
damocles
ac3b3cfcd3 hive-agent: the agent has no login flow of its own, credentials come from the swarm 2026-11-07 08:32:11 +01:00