spec run server metric reporting

This commit is contained in:
npc0-hue
2026-08-10 18:57:07 +08:00
parent bd444f04b9
commit 89eaf1e3c6
5 changed files with 114 additions and 0 deletions
@@ -0,0 +1,11 @@
## 1. Run metric reporting
- [x] 1.1 Extend the Run worker's client boundary and reporting cycle for signed metric batch ingestion with its current registration session.
- [x] 1.2 Add generic supervised-process online-state derivation and optional local host/workspace utilization collection.
- [x] 1.3 Invoke bounded reporting after autonomous startup and successful heartbeats without coupling failure to control, job, log, or artifact loops.
## 2. Verification
- [x] 2.1 Add deterministic runtime coverage for session-scoped requests, running/exited process state, optional collector failures, and degraded upload behavior.
- [x] 2.2 Run `go test ./...` in `run/`, `scripts/check-structure.sh`, and `openspec validate report-run-server-metrics --strict`.
- [ ] 2.3 Build the Windows Run package, deploy it to the configured Qinghuo server, and confirm the platform receives a non-pending metric observation.