hyperhive/hive-c0re/src
Repository files (latest commit first)
Filename Latest commit message Latest commit date
atlas dc394b459d feat(hive-c0re): offer this hive's readiness to the swarm
The controller reads per-hive status out of a JetStream KV bucket and
nothing was writing one, so every hive rendered `never_reported`. This is
the half that makes the read path mean anything.

A hive offers; the controller never reaches down to collect. The gateway
has gone down in a way where every recovery channel ran through the one
broken thing, so a status path that depended on the controller would go
dark exactly when it is needed to diagnose the controller's own network.

What it publishes is what the hive already says about itself —
`warnings::readiness()`, the same value `/health/ready` serves. Nothing
here stamps a time: freshness is derived by the reader from when the value
landed, so a hive cannot make itself look fresher than it is, and a hive
with a wrong clock skews only its own payload.

The key is this hive's `hiveName`, which `swarm.nix` already asserts is a
key of `swarm.hives` — so a hive that evaluates at all publishes under a
name the roster knows, rather than by convention.

Publish first, then wait: a hive that has just come up is the one whose
status someone is looking at, and sleeping first would make every restart
read stale for a full interval. The interval is one decision with the
controller's staleness threshold, not two — a ratio of 2 means one lost
publish still reads fresh and two consecutive misses read stale.

Failures go to the dashboard banner through SweepHealth, debounced, at
`warn` and deliberately not `crit`: `crit` is what makes this hive report
itself degraded, and a hive that cannot reach the queue is not unhealthy —
the swarm's view of it is. Publishing `degraded` because the publish
failed would be both false and self-erasing on the next tick.
2026-08-16 13:12:59 +02:00
..
agent_config fix(#3245): resolve broken intra-doc links in hive-c0re 2026-08-14 00:25:35 +02:00
dashboard refactor(hive-c0re): one producer for the readiness verdict 2026-08-16 13:12:59 +02:00
forge fix(#3245): resolve the remaining intra-doc links in hive-c0re 2026-08-14 00:25:35 +02:00
job_queue job_queue: submit boot-time forge/matrix/webhook/knowledge sweeps as DAG nodes 2026-08-14 02:23:05 +02:00
lifecycle mount the applied config repo, not the proposed one 2026-08-13 19:31:17 +02:00
socket_server fix(#3245): resolve the remaining intra-doc links in hive-c0re 2026-08-14 00:25:35 +02:00
stats refactor(hive-c0re): one producer for the readiness verdict 2026-08-16 13:12:59 +02:00
stores fix(#3245): resolve broken intra-doc links in hive-c0re 2026-08-14 00:25:35 +02:00
workers fix(c0re): name the remote and branch on the knowledge pull 2026-08-14 19:50:56 +02:00
actions.rs refactor(#2916): destroy submits a DAG instead of an imperative teardown 2026-08-14 00:24:45 +02:00
container_view.rs fix(#3245): resolve broken intra-doc links in hive-c0re 2026-08-14 00:25:35 +02:00
coordinator.rs fix(#3245): resolve broken intra-doc links in hive-c0re 2026-08-14 00:25:35 +02:00
dashboard_events.rs hive-sh4re: split inbox, container, journal, and schedule wire shapes into their own modules 2026-08-10 23:26:15 +02:00
gateway_nginx.rs fix(3179): the gateway's config files get their own state dir 2026-08-12 10:29:27 +02:00
loose_ends.rs hive-sh4re: split inbox, container, journal, and schedule wire shapes into their own modules 2026-08-10 23:26:15 +02:00
main.rs feat(hive-c0re): offer this hive's readiness to the swarm 2026-08-16 13:12:59 +02:00
matrix.rs fix(#3245): resolve the remaining intra-doc links in hive-c0re 2026-08-14 00:25:35 +02:00
meta.rs remove certFingerprint + HYPERHIVE_PEERS plumbing (hyperhive#3294) 2026-08-15 19:55:29 +02:00
migrate.rs refactor(#2916): drop the two obsolete startup migrations 2026-08-02 01:41:37 +02:00
paths.rs fix(3179): the gateway's config files get their own state dir 2026-08-12 10:29:27 +02:00
priv_client.rs feat(3088): move the gateway's nginx + dnsmasq onto the host 2026-08-11 18:01:03 +02:00
questions.rs hive-sh4re: split inbox, container, journal, and schedule wire shapes into their own modules 2026-08-10 23:26:15 +02:00
server.rs refactor(#2916): destroy submits a DAG instead of an imperative teardown 2026-08-14 00:24:45 +02:00
snapshot_push.rs refactor(#2862): one snapshot store per swarm, not one per peer 2026-07-31 22:15:37 +02:00
swarm_status.rs feat(hive-c0re): offer this hive's readiness to the swarm 2026-08-16 13:12:59 +02:00
webhook_secret.rs chore(#2510): bump indicatif/tower-http/hmac/sha2 to latest majors 2026-07-16 10:42:30 +02:00