Make Run runtime state authoritative

This commit is contained in:
npc0-hue
2026-08-06 10:07:01 +08:00
parent d8d07914da
commit 0875a1b17e
10 changed files with 324 additions and 12 deletions
@@ -0,0 +1,9 @@
## 1. Runtime State Reconciliation
- [x] 1.1 Queue generated Run status reconciliation on registration when stored server state may be stale
- [x] 1.2 Project `process.status` execution results into server lifecycle state using Run `processState`
## 2. Verification
- [x] 2.1 Add service tests for stale running correction and active-job dedupe
- [x] 2.2 Run targeted Go tests, `openspec validate make-run-runtime-state-authoritative --strict`, and `scripts/check-structure.sh`