Watch
0
0
Fork
You've already forked hyperhive
0

remove the hive dashboard's stats page and the price table behind it

The ST4TS page (/stats.html), GET /api/stats-hive, hive-c0re's hive_stats
rollup and the modelPrices option that only fed its cost estimate are
gone. Each agent's own /stats page and the turn-stats database it reads
are unchanged. Setting modelPrices now fails evaluation with a message
saying so.
This commit is contained in:
iris 2026-11-02 23:15:51 +01:00 • committed by mara
commit 5e9a22cb38

View file

@ -11,8 +11,8 @@
//! `note` (failure detail for `result_kind = "failed"`).
//!
//! Lives in the harness dir (`HYPERHIVE_HARNESS_DIR`) as
//! `hyperhive-turn-stats.sqlite`; the dashboard reads it read-only and no
//! vacuum sweeps it. Schema is
//! `hyperhive-turn-stats.sqlite`; the agent's own `/stats` page reads it
//! and no vacuum sweeps it. Schema is
//! intentionally append-only — every column has a default so future
//! additions don't break old readers; new columns land via
//! `ALTER TABLE ... ADD COLUMN ... DEFAULT ...` in the migration
@ -164,8 +164,8 @@ impl TurnStats {
}
let conn = Connection::open(path)
.with_context(|| format!("open turn_stats db {}", path.display()))?;
// Not WAL: hive-c0re reads this db read-only as another uid, which
// fails on a WAL database whose sidecars it cannot create.
// Rollback journal, not WAL: the default, and what every existing
// database already uses.
conn.busy_timeout(crate::sqlite_writer::BUSY_TIMEOUT)
.context("set turn_stats busy_timeout")?;
conn.execute_batch(SCHEMA)