hive-agent: export a per-file line count for subagent role files
A role file is read into every subagent dispatch that names it, and nothing measured its size. A new watch on the same 15-minute tick as claude_md_watch records `hyperhive.agent.subagent_role.lines`, one series per `<role>.md` under the state dir's `subagent_roles/`, labelled `role` with the file stem. Metric only: no todo, no threshold. Fixes #4558
This commit is contained in:
parent
74b63dd031
commit
f19a9f546e
4 changed files with 123 additions and 6 deletions
|
|
@ -30,6 +30,7 @@ mod schedule_timer;
|
|||
mod serve_common;
|
||||
mod state_entry_watch;
|
||||
mod stats;
|
||||
mod subagent_role_watch;
|
||||
mod swarm_agent_icon;
|
||||
mod swarm_agent_state;
|
||||
mod swarm_inference;
|
||||
|
|
@ -519,6 +520,7 @@ async fn serve_main<S: Surface>(socket: &Path, poll_ms: u64) -> Result<()> {
|
|||
// hive-c0re, because the files are agent-owned — see `vacuum` module docs.
|
||||
tokio::spawn(crate::vacuum::run());
|
||||
tokio::spawn(claude_usage_watch::run());
|
||||
tokio::spawn(subagent_role_watch::run());
|
||||
// Log web_ui::serve's error instead of dropping it. A bare
|
||||
// `tokio::spawn(web_ui::serve(...))` discards the JoinHandle, so
|
||||
// any Err (e.g. EACCES from `bind_unix` when HIVE_WEB_SOCKET points
|
||||
|
|
|
|||
Loading…
Reference in a new issue