Add STATE-WP-0078 for ops_run read projection on the hub.
State Hub remains non-claim authority; surface open/failed ops runs for fleet visibility after ACTIVITY-WP-0026.
This commit is contained in:
parent
c113605fc0
commit
72c8f80b1f
1 changed files with 91 additions and 0 deletions
91
workplans/STATE-WP-0078-ops-run-read-projection.md
Normal file
91
workplans/STATE-WP-0078-ops-run-read-projection.md
Normal file
|
|
@ -0,0 +1,91 @@
|
|||
---
|
||||
id: STATE-WP-0078
|
||||
type: workplan
|
||||
title: "Ops run read projection for fleet visibility"
|
||||
domain: infotech
|
||||
repo: state-hub
|
||||
status: ready
|
||||
owner: grok
|
||||
topic_slug: state-hub
|
||||
priority: low
|
||||
created: "2026-08-03"
|
||||
updated: "2026-08-03"
|
||||
depends_on:
|
||||
- ACTIVITY-WP-0026
|
||||
related:
|
||||
- ACT-ADR-005
|
||||
- STATE-WP-0074
|
||||
---
|
||||
|
||||
# STATE-WP-0078 — Ops run read projection
|
||||
|
||||
## Origin
|
||||
|
||||
ACT-ADR-005: State Hub remains the **work-record** read model on coulombcore.
|
||||
It may **project** activity-core `ops_run` state for fleet ops UI without becoming
|
||||
the claim authority.
|
||||
|
||||
## Goal
|
||||
|
||||
Expose open/failed/recent ops runs to operators and agents via State Hub
|
||||
summary/API **read paths**, fed from activity-core (edge/NATS/pull) — so
|
||||
coulombcore-oriented agents see automation health without claiming work.
|
||||
|
||||
## Tasks
|
||||
|
||||
### T01 — Contract with activity-core
|
||||
|
||||
```task
|
||||
id: STATE-WP-0078-T01
|
||||
status: todo
|
||||
priority: medium
|
||||
```
|
||||
|
||||
Agree payload shape with ACTIVITY-WP-0026 (id, definition, target_repo, state,
|
||||
lease, updated_at, last_error). Document whether pull (hub polls actcore) or
|
||||
push (actcore posts progress summary) is v1.
|
||||
|
||||
**Done when:** short contract note in `docs/` or linked from ACT-ADR-005.
|
||||
|
||||
---
|
||||
|
||||
### T02 — Read API + summary field
|
||||
|
||||
```task
|
||||
id: STATE-WP-0078-T02
|
||||
status: todo
|
||||
priority: medium
|
||||
```
|
||||
|
||||
Minimal:
|
||||
|
||||
- `GET /ops-runs/summary` or extend `/state/summary` with `ops_runs: { open, claimed, failed_24h }`
|
||||
- No claim/complete endpoints on State Hub
|
||||
|
||||
**Done when:** MCP/summary consumers can show stuck automation.
|
||||
|
||||
---
|
||||
|
||||
### T03 — Edge/federation notes
|
||||
|
||||
```task
|
||||
id: STATE-WP-0078-T03
|
||||
status: todo
|
||||
priority: low
|
||||
```
|
||||
|
||||
Document coulombcore vs railiance: claim on railiance actcore-api; visibility
|
||||
may lag if edge relay down — alert preference.
|
||||
|
||||
**Done when:** cluster-operating-model or ops doc updated.
|
||||
|
||||
## Acceptance
|
||||
|
||||
- [ ] Hub does not claim ops_runs
|
||||
- [ ] Operators see automation backlog on primary hub views
|
||||
- [ ] No Forgejo/Gitea dependency
|
||||
|
||||
## Out of scope
|
||||
|
||||
- Moving claim API to State Hub
|
||||
- Workplan file generation for daily ops
|
||||
Loading…
Add table
Add a link
Reference in a new issue