Watch
0
0
Fork
You've already forked hyperhive
0
hyperhive/frontend/packages/dashboard/src
Repository files (latest commit first)
Filename Latest commit message Latest commit date
atlas 98ccc31e2b container stats: measure agent disk usage through hive-priv, unknown on failure
The disk sampler ran `du -sxb` as the unprivileged hive-core user over
each agent's state/, work/ and container rootfs. hive-core cannot read
the rootfs or all of the agent-owned files, so `du` failed and each
failed path silently counted as 0: the dashboard showed a few MB for
agents using over 13 GB.

Add a hive-priv `MeasureAgentDisk { agent_name }` op. hive-priv
validates the name, derives the three paths itself (the request carries
no path), skips the ones that don't exist, and runs one
`du -s -x -b -c -P` as root with a 10 min timeout. A timeout, a non-zero
exit or output without a `total` line is an error.

hive-c0re calls it every 30 min instead of running `du` every 5 min:
each pass walks every agent's full tree as root on the disk the agents
work on, and the sizes move slowly. A failed measurement is cached as
None, so `disk_bytes` is null, the OTel storage.usage sample is omitted
and the dashboard shows "unknown", never 0.

`Coordinator::agent_work_dir` had no other caller and is removed.

Closes #4956
2026-10-05 18:56:46 +02:00
..
agent-menu treefmt: apply prettier 2026-09-02 15:25:07 +02:00
builds.css treefmt: apply prettier 2026-09-02 15:25:07 +02:00
builds.html treefmt: apply prettier 2026-09-02 15:25:07 +02:00
builds.js dashboard: SCH3DUL3S is a read-only list with a removal banner 2026-10-04 21:23:30 +02:00
call.js dashboard: drop the approvals queue 2026-10-04 23:55:32 +02:00
colors.css refactor(frontend): base16 theme contract in a swappable colors.css 2026-06-08 21:24:07 +02:00
common.css dashboard: drop the approvals queue 2026-10-04 23:55:32 +02:00
common.js dashboard: drop the approvals queue 2026-10-04 23:55:32 +02:00
core.css treefmt: apply prettier 2026-09-02 15:25:07 +02:00
core.html swarm-ci-runner: run the forge CI runner as a swarm service 2026-10-05 13:55:37 +02:00
core.js container stats: measure agent disk usage through hive-priv, unknown on failure 2026-10-05 18:56:46 +02:00
dashboard.css dashboard: drop the approvals queue 2026-10-04 23:55:32 +02:00
dashboard.html dashboard: drop the approvals queue 2026-10-04 23:55:32 +02:00
flow.css docs: retire the stray top-level web-ui.md, fold it into web-ui/README.md 2026-09-07 15:49:52 +02:00
flow.html treefmt: apply prettier 2026-09-02 15:25:07 +02:00
flow.js docs: retire the stray top-level web-ui.md, fold it into web-ui/README.md 2026-09-07 15:49:52 +02:00
home.css treefmt: apply prettier 2026-09-02 15:25:07 +02:00
home.js treefmt: apply prettier 2026-09-02 15:25:07 +02:00
index.html dashboard: drop the approvals queue 2026-10-04 23:55:32 +02:00
logs.css treefmt: apply prettier 2026-09-02 15:25:07 +02:00
logs.html swarm-ci-runner: run the forge CI runner as a swarm service 2026-10-05 13:55:37 +02:00
logs.js swarm-ci-runner: run the forge CI runner as a swarm service 2026-10-05 13:55:37 +02:00
permissions.js treefmt: apply prettier 2026-09-02 15:25:07 +02:00
schedules.js dashboard: SCH3DUL3S is a read-only list with a removal banner 2026-10-04 21:23:30 +02:00
state.js dashboard: remove the Y3R C4LL questions pane (ask/answer removal, frontend) 2026-08-29 20:35:27 +02:00
stats.css fix(stats): move window selector into the page header tab bar 2026-07-26 17:21:21 +02:00
stats.html treefmt: apply prettier 2026-09-02 15:25:07 +02:00
stats.js treefmt: apply prettier 2026-09-02 15:25:07 +02:00
stream-worker.js treefmt: apply prettier 2026-09-02 15:25:07 +02:00
swarm.js dashboard: drop the approvals queue 2026-10-04 23:55:32 +02:00
system-sections.css treefmt: apply prettier 2026-09-02 15:25:07 +02:00
tabs.js dashboard: drop the approvals queue 2026-10-04 23:55:32 +02:00
theme.css refactor(frontend): base16 theme contract in a swappable colors.css 2026-06-08 21:24:07 +02:00
util.js dashboard: drop the approvals queue 2026-10-04 23:55:32 +02:00