Expose hours query param on /legacy-meter/summary and weekly-review; capture_legacy_meter_evidence.py defaults to --hours 8 (--days 7 for weekly retirement gate). Re-capture post-deploy evidence with tighter window.
56 lines
No EOL
2.3 KiB
Markdown
56 lines
No EOL
2.3 KiB
Markdown
# railiance01 State Hub deploy — workstream caller migration
|
|
|
|
Date: 2026-07-09
|
|
Workplan: STATE-WP-0070 T01
|
|
Blocked: `git pull` on railiance01 failed with `.git/FETCH_HEAD` permission denied.
|
|
|
|
## Why
|
|
|
|
Legacy-meter shows ~150k weekly `GET /workstreams/*` calls. Local migrations
|
|
(≥ `b05ca2c`) moved fix-consistency and activity-core to `/workplans/`. The
|
|
railiance01 sweep host was still at `050cbbc` when checked via SSH.
|
|
|
|
## Target revisions
|
|
|
|
| Repo | Minimum commit | Notes |
|
|
| --- | --- | --- |
|
|
| `state-hub` | `7e68f9e` | Caller migrations + identity headers + workplan-index 410 |
|
|
| `activity-core` | `5a92923` | `/workplans` resolver + progress `workplan_id` only |
|
|
|
|
## Steps (operator on railiance01)
|
|
|
|
```bash
|
|
# 1. Fix checkout permissions if needed (example — adjust user/group)
|
|
sudo chown -R "$(whoami):$(id -gn)" ~/state-hub/.git ~/activity-core/.git
|
|
|
|
# 2. Pull both repos
|
|
cd ~/state-hub && git fetch origin main && git pull --ff-only origin main
|
|
git log -1 --oneline # expect 7e68f9e or newer
|
|
|
|
cd ~/activity-core && git fetch origin main && git pull --ff-only origin main
|
|
git log -1 --oneline # expect 5a92923 or newer
|
|
|
|
# 3. Optional: one-shot consistency sweep against workstation hub via tunnel
|
|
# (API must reach the hub — typically http://127.0.0.1:8000 through ops-bridge)
|
|
statehub fix-consistency --all --remote --api-base http://127.0.0.1:8000
|
|
|
|
# 4. Verify legacy-meter attribution (from any host with hub API access)
|
|
python ~/state-hub/scripts/capture_legacy_meter_evidence.py
|
|
# Default 8-hour window; use --days 7 for weekly cadence
|
|
# Expect component bucket state-hub.fix-consistency; declining GET /workstreams/*
|
|
```
|
|
|
|
## Verification checklist
|
|
|
|
- [x] `state-hub` and `activity-core` at target commits on railiance01
|
|
(`state-hub` `1382992`, `activity-core` `1a06368` via forgejo/main reset)
|
|
- [x] Consistency sweep completes without C-00 automation errors
|
|
(`POST /consistency/sweep/remote-all` exit_code 0, 2026-07-08T23:08Z)
|
|
- [x] Weekly legacy-meter review shows `state-hub.fix-consistency` (not only `unknown`)
|
|
(`docs/evidence/legacy-meter-weekly-review-20260709.json`, 5 attributed calls)
|
|
- [ ] `GET /workstreams/*` counts trend down in 8-hour capture windows post-deploy
|
|
(default `capture_legacy_meter_evidence.py`; weekly `--days 7` for retirement gate)
|
|
|
|
## Rollback
|
|
|
|
`git checkout <previous-sha>` in each repo; no schema migration involved. |