STATE-WP-0070: identity headers, archive 0069, phase-2 workplan
Some checks failed
CI Smoke / host-smoke (push) Successful in 0s
CI Smoke / container-smoke (push) Has been cancelled

Add X-StateHub-Component to fix-consistency and other State Hub REST callers for
legacy-meter attribution. Archive STATE-WP-0069; open STATE-WP-0070 for
meter-gated phase-2 retirement. Task POST bodies use workplan_id only.
This commit is contained in:
tegwick 2026-07-09 00:39:09 +02:00
parent 2f06751d4f
commit bb6bec9f10
10 changed files with 198 additions and 17 deletions

View file

@ -47,4 +47,22 @@ python scripts/capture_legacy_meter_evidence.py --days 7
```
Expect `GET /workstreams/*` window counts to fall after deploy + one full
fix-consistency sweep cycle on all hosts.
fix-consistency sweep cycle on all hosts.
## Identity headers (2026-07-09)
Scripts now send `X-StateHub-Component` for legacy-meter attribution:
| Component key | Caller |
| --- | --- |
| `state-hub.fix-consistency` | `scripts/consistency_check.py` |
| `state-hub.custodian-cli` | `custodian_cli.py` |
| `state-hub.cleanup-stale-tasks` | `scripts/cleanup_stale_tasks.py` |
| `state-hub.validate-repo-adr` | `scripts/validate_repo_adr.py` |
| `state-hub.dashboard.workstreams-list` | dashboard data loader |
| `state-hub.dashboard.workplan-detail` | dashboard detail loader |
| `state-hub.dashboard.token-summary` | token summary loader |
**Remote deploy note:** railiance01 `~/state-hub` was at `050cbbc` (pre-migration);
`git pull` failed with permission denied on `.git/FETCH_HEAD` — operator action
required to update the sweep host.