Watch
0
0
Fork
You've already forked hyperhive
0
hyperhive/nix/module-eval
Repository files (latest commit first)
Filename Latest commit message Latest commit date
atlas 0f7b403803 agents get a todo when assigned to an issue or PR, rewritten when unassigned and cleared on close
A new swarm service, swarm-notify-router, in its own container on the host
that sets deploy.notify-router.enable (defaulted on by allSwarmServices where
the host has the router's store leaf, like the claude login minter).

- swarm-controller registers instance-wide hooks for `issues` +
  `issue_assign` and `pull_request` + `pull_request_assign`, updates the
  event list of a hook already registered with fewer (leaving its active flag as it is), and keeps each
  verified body unchanged in the SWARM_EVENTS stream on
  $SWARM.events.forge.<X-Forgejo-Event-Type>, deduped by X-Forgejo-Delivery.
  A delivery the stream did not keep answers 503.
- swarm-notify-router drains its durable consumer on that stream, runs its
  flows (source -> match -> todo sink, stored as nodes plus edges and checked
  to be a tree) and queues each op on $SWARM.router.todo.<agent> in the
  work-queue stream ROUTER_TODOS. Built-in flows: assigned, unassigned (same
  key, rewritten) and closed (prefix-clears every holder's router todos). A
  per-issue snapshot in its notify-router-state bucket holds the last
  assignees and the todo holders; only agents in the agent-status bucket get
  ops, and an assignee that was not one is left out of the snapshot so the
  next assign event retries it. After the first event that must be retried,
  the rest of the batch is nakked so redelivery keeps stream order.
- hive-agent creates its own durable consumer todo-<agent> and applies each
  op to its todo store as subsystem `router`, then acks; a refused op stops
  the rest of its batch the same way. The store's (subsystem, key) dedup
  makes a redelivery harmless. New Todos::clear_prefix.
- swarm-nats-auth: a --notify-router-client arm; the controller may publish
  $SWARM.events.forge.*; each agent gets three {agent} templates (extended
  consumer create whose filter the server checks, MSG.NEXT, ACK).
- Credentials: a notify-router store leaf minted by glue-bao-tls, a
  swarm-notify-router bao policy (read on its own queue client secret), an
  authelia machine client, the secret publisher entry, a journal forwarder
  route. No manual step.

hive-forge-notify is unchanged, so agents also still get forge's own
notifications.

Refs #5571
2026-10-22 07:28:53 +02:00
..
agent-forge-bao.nix agents fetch the hive CA from bao at boot instead of the meta flake embedding it 2026-10-19 20:15:13 +02:00
agent-github-bao.nix module-eval: restore seven zero-cost literal-pin cases 2026-10-17 08:00:29 +02:00
agent-icon.nix nix: split module-eval into per-subsystem checks 2026-09-20 04:25:54 +02:00
agent-matrix.nix module-eval: evaluate shared fixture configs once 2026-10-13 08:14:50 +02:00
agent-memory.nix subagent, bash: run each subagent run and bash task in its own cgroup 2026-10-13 12:25:27 +02:00
agent-otel.nix hand agents the dashboard port, pinned claude and otel labels at container start 2026-10-22 07:11:46 +02:00
agent-plugins.nix module-eval: drop 18 redundant cases and merge assertion-only hosts 2026-10-17 08:00:29 +02:00
agent-queue-bao.nix add swarm-metrics, an agent CLI for the metrics store 2026-10-17 10:10:17 +02:00
agent-runtime.nix module-eval: drop 18 redundant cases and merge assertion-only hosts 2026-10-17 08:00:29 +02:00
agent-user.nix module-eval: restore seven zero-cost literal-pin cases 2026-10-17 08:00:29 +02:00
bao-basics.nix hive-tls owns the per-host list of locally fronted service domains 2026-10-17 23:26:53 +02:00
bao-controller.nix module-eval: drop 18 redundant cases and merge assertion-only hosts 2026-10-17 08:00:29 +02:00
bao-grants.nix agents get a todo when assigned to an issue or PR, rewritten when unassigned and cleared on close 2026-10-22 07:28:53 +02:00
bao-matrix-reader.nix module-eval: drop 18 redundant cases and merge assertion-only hosts 2026-10-17 08:00:29 +02:00
bao-otel-collector.nix every hive runs its otel collector, and agents export to it by default 2026-10-19 18:35:17 +02:00
builder.nix the meta flake takes docs from the pinned hyperhive input 2026-10-18 20:09:14 +02:00
ci-metrics.nix trust the swarm services ca in swarm-ci-metrics 2026-10-17 23:28:03 +02:00
core-toggle.nix agents fetch the hive CA from bao at boot instead of the meta flake embedding it 2026-10-19 20:15:13 +02:00
forge-placement.nix drop option renames and removals older than two weeks 2026-10-16 22:04:57 +02:00
grafana.nix hive-c0re: hive warnings reach the operator as metrics and alerts, not a banner 2026-10-21 17:52:53 +02:00
hive-otel.nix every hive runs its otel collector, and agents export to it by default 2026-10-19 18:35:17 +02:00
hive-tls.nix tls: a CA root change no longer restarts the store or bounces containers 2026-10-21 22:00:13 +02:00
journald-severity.nix module-eval: assert the severity table once, not once per tier 2026-09-20 14:23:56 +02:00
lib.nix every hive runs its otel collector, and agents export to it by default 2026-10-19 18:35:17 +02:00
matrix-core.nix move the hive's vhosts and matrix discovery out of the gateway 2026-10-17 15:07:33 +02:00
name-guards.nix module-eval: drop 18 redundant cases and merge assertion-only hosts 2026-10-17 08:00:29 +02:00
nats-authelia.nix agents get a todo when assigned to an issue or PR, rewritten when unassigned and cleared on close 2026-10-22 07:28:53 +02:00
nats-tls.nix swarm-nats gateway cert reloads nginx without blocking the switch 2026-10-20 21:20:24 +02:00
secret-publisher.nix swarm-authelia: run the secret publisher and a journal forwarder inside the container 2026-10-17 00:28:16 +02:00
shared.nix every hive runs its otel collector, and agents export to it by default 2026-10-19 18:35:17 +02:00
snapshot-store.nix module-eval: restore seven zero-cost literal-pin cases 2026-10-17 08:00:29 +02:00
swarm-otel-core.nix swarm-otel: the upstream export is a swarm-otel deploy option 2026-10-21 10:25:26 +02:00
swarm-otel-identity.nix swarm-authelia: run in its own network namespace 2026-10-21 22:10:23 +02:00
swarm-services-switch.nix agents get a todo when assigned to an issue or PR, rewritten when unassigned and cleared on close 2026-10-22 07:28:53 +02:00