feat: add agent run heartbeat to slo reports

This commit is contained in:
Your Name
2026-07-02 12:41:04 +08:00
parent 054379ac98
commit f9a385f333
5 changed files with 158 additions and 6 deletions
+15
View File
@@ -203,6 +203,21 @@ oldestRunningHeartbeatAgeMs=0 when no running rows
runningWithoutHeartbeatCount=0 during normal operation
```
Runtime SLO report should also expose the same heartbeat summary:
```bash
node /Users/john/Project/Memind/scripts/runtime-slo-report.mjs
```
Expected SLO fields:
```text
runtime.toolQueueSlo.heartbeatMs=30000
runtime.toolQueueSlo.oldestRunningHeartbeatAgeMs=0 when no running rows
runtime.toolQueueSlo.runningWithoutHeartbeatCount=0 during normal operation
failures=[] unless heartbeat age exceeds MEMIND_AGENT_RUN_HEARTBEAT_STALE_MS
```
Apply only when the listed running rows are known stale:
```bash