Watch
0
0
Fork
You've already forked hyperhive
0

remove the unused reminder rollup request and the stale references to the stats page

This commit is contained in:
iris 2026-11-16 19:07:08 +01:00
commit 37f036ee7d
3 changed files with 26 additions and 117 deletions

View file

@ -22,7 +22,8 @@ pub fn tasks_dir() -> PathBuf {
/// Per-agent turn-stats sqlite — the harness writes one row per claude
/// turn here; the runner appends normalised bash-command heads to its
/// `bash_commands` table for the /stats "favorite tools" view.
/// `bash_commands` table, which the harness reads for its OTEL bash-command
/// counter.
#[must_use]
pub fn turn_stats_db() -> PathBuf {
harness_dir().join("hyperhive-turn-stats.sqlite")

View file

@ -608,8 +608,8 @@ async fn run_task(mut task: TaskFile, socket: &Path, cgroups: Option<&RunCgroups
// full command stays on disk in the task file for `status`/`view`
// instead.
upsert_bash_todo(socket, &id, format!("bash task `{id}` running")).await;
// Best-effort: tally the normalised command head for the /stats
// "favorite tools" view. Counted once per execution, regardless of
// Best-effort: tally the normalised command head for the OTEL
// bash-command counter. Counted once per execution, regardless of
// exit status. Never fails the task.
crate::stats::record_command(&task.cmd);

View file

@ -1,6 +1,6 @@
//! Capture of normalised shell-command "heads" per bash task into the
//! per-agent turn-stats sqlite (`bash_commands` table), backing the
//! "favorite tools" doughnut on the /stats page.
//! per-agent turn-stats sqlite (`bash_commands` table), read by the
//! harness for its OTEL bash-command counter.
//!
//! Best-effort: a missing db, a lock, or a parse miss is logged and
//! swallowed — recording a stat never affects task execution. The