hive-agent: warn + emit an OTEL gauge on a grown CLAUDE.md

This commit is contained in:
damocles 2026-08-26 18:17:46 +02:00 committed by mara
commit 2e6f38dc6c
4 changed files with 219 additions and 0 deletions

View file

@ -9,6 +9,7 @@
//! Single bin crate: the module tree below (formerly this crate's `lib.rs`,
//! before lib + bin were collapsed into one) plus the serve loop.
mod claude_md_watch;
mod db_migrate;
mod disk_watch;
mod events;
@ -527,6 +528,9 @@ fn spawn_todo_socket(
// Same shape, different signal: nudge on a crowded state-dir
// top level instead of disk pressure.
tokio::spawn(state_entry_watch::run(store.clone(), todo_wake.clone()));
// Same shape again: nudge (and feed an OTEL gauge) on a
// grown CLAUDE.md instead of a grown state dir.
tokio::spawn(claude_md_watch::run(store.clone(), todo_wake.clone()));
Some(store)
}
Err(e) => {