fix(legacy-meter): capture evidence over 7 days, not an 8-hour band
capture_legacy_meter_evidence.py fell back to hours=8 whenever --days was omitted, and --hours itself defaulted to 8. Every unattended capture sampled 06:00Z-14:00Z while writing a file named weekly-review with cadence: weekly. 39 of 40 captures ran this way; only 2026-07-08 used a true 7-day window. Calls outside the band were never sampled, so interfaces with live callers reported as retirement candidates -- GET /tasks/?workstream_id was flagged on 2026-08-19 despite traffic on 2026-08-18. Default the script to days=7; keep --hours for spot checks, documented as not retirement evidence. Adds corrected capture for 2026-08-20 and records the residual gap (candidate rule ignores last_seen_at) against STATE-WP-0079-T05. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
parent
5fe38fa9d8
commit
be7f2632c3
4 changed files with 1793 additions and 22 deletions
|
|
@ -131,6 +131,22 @@ state_hub_task_id: "02e508ed-3cde-4487-907e-d324a8a877d6"
|
|||
Complete retirement of suggestions, workstream aliases, and other `retire`
|
||||
inventory items once meters/callers allow. Keep historical rows archive-readable.
|
||||
|
||||
**Blocker identified (2026-08-20):** the legacy-meter evidence this task gates
|
||||
on was being captured over an 8-hour band, not a week —
|
||||
`capture_legacy_meter_evidence.py` fell back to `hours=8` whenever `--days` was
|
||||
omitted, so 39 of 40 captures sampled only 06:00Z–14:00Z. Interfaces called
|
||||
outside that band read as unused. Three candidates on the 2026-08-19 capture had
|
||||
live callers, including `GET /tasks/?workstream_id` (seen 2026-08-18).
|
||||
|
||||
Script default corrected to `days=7`; corrected capture
|
||||
`docs/evidence/legacy-meter-weekly-review-20260820.json`.
|
||||
|
||||
**Remaining work for this task:** the candidate rule in
|
||||
`api/services/legacy_meter.py` keys only on in-window calls and ignores
|
||||
`last_seen_at`, so `GET /workstreams/` (144 086 all-time calls, quiet 9 days)
|
||||
still reports as a candidate. Require a minimum quiet period scaled to call
|
||||
volume before retiring. See `docs/retirement-cutover-slice-plan.md` § E2.
|
||||
|
||||
## Stabilization window and archive prep
|
||||
|
||||
```task
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue