feat(kpi): expand KPI runtime monitoring, prompt advisory envelopes, and missing field resiliency

This commit is contained in:
operator
2026-10-06 20:02:48 +00:00
parent b824f6d405
commit ae4df2f29c
13 changed files with 1702 additions and 85 deletions
+11
View File
@@ -23,6 +23,8 @@ Add `--json` to any command for machine-readable output when parsing results in
## Common Commands
- `box fleet status` / `box fleet cdp <node>` — health table / CDP endpoint plus SSH forward.
- `box fleet heal <node>` — diagnose + fix + verify a node (lock, watchdog timer, Warp tunnel, egress, relay).
- `box watchdog status` / `box watchdog run <node|relay>` — timer states + evidence / trigger an immediate watchdog run.
- `box thread list [<agent>]` — threads for one agent, or all fleet sidechats when omitted.
- `box thread view <agent> <thread_id|main> --limit N` — recent messages from one thread.
- `box dm log -n N [--agent X] [--filter TEXT]` — recent DM activity.
@@ -30,6 +32,13 @@ Add `--json` to any command for machine-readable output when parsing results in
- `box lookup summary|fleet|threads|unread|approvals` — seamless one-shot lookups.
- `box job list` / `box job log` — scheduled jobs and execution events.
- `box harvest status` / `box followup list` — harvest watermarks / pending nudges.
- `box muse-choices on|off|status|logs|reconcile` — Muse TUI A/B/C auto-answer daemon switch, state, and per-pane logs.
- `box runtime list|send|launch` — Muse CLI tmux runtimes: live state + approval posture, send-keys input, auto-approved launches.
- `box tmux tally` / `box tmux auto [status|on|off|watch|once|logs|match]` — multi-socket Tmux worker tally, regex auto-approver daemon & guardrails.
- `box onboard connects` / `box onboard-tui` — fleet & client onboarding inventory, CDP ports, OTP salvage & 4-surface TUI.
- `box invite status|code <node>|redeem <node> <CODE>` / `box usage [--node N]` — invite codes and usage limits.
- `box kpi status|report <node>|routes|spawn-worker` — fleet KPI tracking, spend/limit metrics, route health, runtime preservation advisories, and background worker spawning.
- `box chromebox permissions <node> list|get <t>|set <t> <v>|describe <tab>` — settings-menu toggles (readback-verified sets).
## Rules
@@ -37,3 +46,5 @@ Add `--json` to any command for machine-readable output when parsing results in
- Never paste multi-KB logs or dumps into chat; write payloads under `logs/` and send a short path pointer instead.
- Avoid blocking commands in automated runs: `box fleet watch`, `box dm tail`, `box approvals watch`, `box dm chat` (interactive REPL).
- `box` probes CDP per node and can take several seconds; use generous timeouts and `--json` for scripted use.
- Preserve runtime and quota limits: prefer spawning subagents (`jobs/`, `subagent_tracker`) or background workers (`box kpi spawn-worker`) over long conversational prose to avoid `VANITY_IDLE` flags.