From 50d318c92a260746b473a540f7eccb09b48e90a7 Mon Sep 17 00:00:00 2001 From: iris Date: Mon, 16 Nov 2026 19:55:48 +0100 Subject: [PATCH] fix two references to removed things in the stats page removal --- docs/4-implementation/swarm/telemetry.md | 2 +- hive-agent/src/vacuum.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/4-implementation/swarm/telemetry.md b/docs/4-implementation/swarm/telemetry.md index 7709c1ce6..fbbc60bae 100644 --- a/docs/4-implementation/swarm/telemetry.md +++ b/docs/4-implementation/swarm/telemetry.md @@ -57,7 +57,7 @@ Grafana start — see [`credentials.md`](../../2-handbook/swarm/credentials.md). `nix/host-modules/swarm-grafana/dashboards/`; edits made in the UI aren't kept. -- `agents`: per-agent resource usage and Claude Code activity. The **activity** tab ends with a **Busiest agents** table: turns, input, output and cache-read tokens, and cost for each agent in the range, busiest first. The **turns** tab holds what each agent's own `/stats` page shows about turns: average turn duration, cache hit rate and tokens per turn, turns per hour by agent and by model, the turn duration over time (median, 95th percentile and mean), and the mix of wake sources and results. It also has the tools called, the commands bash tasks ran, reminders per hour, the first-turn context size and fresh sessions per agent: everything the `/stats` page shows, except the per-bucket token bars the **cost** tab covers. The duration percentiles are right from the first deploy that includes the histogram bounds in `hive-agent`; before it, they read a flat 10 seconds. +- `agents`: per-agent resource usage and Claude Code activity. The **activity** tab ends with a **Busiest agents** table: turns, input, output and cache-read tokens, and cost for each agent in the range, busiest first. The **turns** tab holds what the retired per-agent stats page showed about turns: average turn duration, cache hit rate and tokens per turn, turns per hour by agent and by model, the turn duration over time (median, 95th percentile and mean), and the mix of wake sources and results. It also has the tools called, the commands bash tasks ran, reminders per hour, the first-turn context size and fresh sessions per agent: everything that page showed, except the per-bucket token bars the **cost** tab covers. The duration percentiles are right from the first deploy that includes the histogram bounds in `hive-agent`; before it, they read a flat 10 seconds. - `attic`: the swarm binary cache. Agents whose latest closure this hive can pull, and why not; the builder's pushes and push failures; closures hive-c0re pulled and deploy steps it refused; the cache's size and store-path count. It reads the closure-pullable gauge, the `swarm-builder` and `hive-c0re` logs, and the `hyperhive.attic.cache_bytes` and `hyperhive.attic.cache_nars` gauges, which a timer in the `swarm-attic` container (`swarm-attic-cache-size`) reads from atticd's database every five minutes and pushes through the container's forwarder. atticd itself exports no metrics and its logs don't reach the log store, so the board has no cache request or hit panel. Filter by hive and agent. - `archive`: the restic backups of every agent to the swarm archive. Per agent: time since the last successful backup (red over two hours, twice the default hourly schedule), the last run's result, duration and bytes added, then snapshots, repository size and the last prune and the last check. Failures and recent runs come from the `hive-archive-backup`, `swarm-archive-prune` and `swarm-archive-check` logs. The numbers are the `hyperhive.archive.backup.*` gauges, which each hive's backup unit pushes after every agent, the `hyperhive.archive.prune.*` and `hyperhive.archive.repo.*` gauges, which the prune unit pushes after every repository when its host runs a hive, and the `hyperhive.archive.check.*` gauges from the check unit. A hive that predates them shows no data for its agents; the log panels work regardless. Filter by hive and agent. - `authelia`, `bao`, `queue`: the identity provider, the secret store and the NATS queue. diff --git a/hive-agent/src/vacuum.rs b/hive-agent/src/vacuum.rs index 7d8b38d34..9c9fe9e7b 100644 --- a/hive-agent/src/vacuum.rs +++ b/hive-agent/src/vacuum.rs @@ -23,7 +23,7 @@ const VACUUM_INTERVAL: Duration = Duration::from_hours(1); /// Keep completed bash-task files this long before deleting their trio. const BASH_KEEP_SECS: i64 = 48 * 3600; /// Keep delivered (soft-deleted, `sent_at` set) reminder rows this long -/// before reaping them — same window as `STREAM_KEEP_SECS`. +/// before reaping them. const REMINDER_KEEP_SECS: i64 = 14 * 24 * 3600; /// Keep acked (agent-dismissed) todo rows this long before reaping them — /// see `todos.rs`'s module doc for why acking doesn't delete outright. Long