hive-agent: keep the last turn's context size in the harness state file and drop the turn sqlite writes
This commit is contained in:
parent
7bd93ecfde
commit
5e5ff64b3c
1 changed files with 261 additions and 629 deletions
|
|
@ -325,9 +325,9 @@ async fn cmd_serve(
|
|||
// now run agent-side in the harness (`hive_agent::vacuum`): the files are
|
||||
// agent-owned, so host-side deletes hit PermissionDenied / readonly-db
|
||||
// under privsep. See issue tracker "perms borked".
|
||||
// (turn-stats.sqlite has no vacuum — it's one tiny row per turn,
|
||||
// ~hundreds of KB, and pruning it would just lose trend
|
||||
// history for no gain.)
|
||||
// (hyperhive-turn-stats.sqlite has no vacuum: it holds only the bash
|
||||
// command heads now, small, and the legacy stats viewer reads what older
|
||||
// harnesses left in it.)
|
||||
// Slow per-container disk sampler: hive-priv measures each agent's state/
|
||||
// + work/ + writable rootfs every 30 min, cached so a sample only reads
|
||||
// cgroup files. Feeds `disk_bytes` to the OTEL exporter. See
|
||||
|
|
|
|||
Loading…
Reference in a new issue