the-custodian/activity-definitions/legacy-meter-8h-capture.md
codex 7e4c6f2ab4
All checks were successful
CI Smoke / host-smoke (push) Successful in 0s
CI Smoke / container-smoke (push) Successful in 9s
chore(activity-def): add legacy-meter-8h-capture for STATE-WP-0073
2026-07-09 09:29:41 +02:00

1.7 KiB

id name type version enabled owner governance status created trigger context_sources
legacy-meter-8h-capture Legacy-Meter 8h Capture activity-definition 1.0 true custodian custodian active 2026-07-09
type cron_expression timezone misfire_policy
cron 0 */8 * * * UTC skip
type query required params bind_to
state-hub legacy_meter_weekly_review true
hours evidence_sinks
8
type event_type author workplan_id
state-hub-progress legacy_meter_8h_capture activity-core 44e2e123-9934-4b5e-8b50-1bac548c5b70
context.legacy_meter_weekly_review

ActivityDefinition: Legacy-Meter 8h Capture

Purpose

STATE-WP-0073 retirement-gate monitoring for STATE-WP-0070 phase-2 legacy retirement. Runs every eight hours (UTC) and posts a compact legacy_meter_8h_capture progress event with window usage and retirement candidates.

Complements the Monday weekly review (weekly-legacy-meter-review) which uses a 7-day window. Seven consecutive zero-usage 8h windows unlock per-key 410 retirements.

Trigger

0 */8 * * * UTC — 00:00, 08:00, and 16:00 daily. misfire_policy: skip.

State Hub invocation

The legacy_meter_weekly_review resolver issues:

  • GET /legacy-meter/weekly-review?hours=8

On success, activity-core posts progress with event_type: legacy_meter_8h_capture and probe detail in detail.probe.

Manual evidence files (for git-backed audit) remain on the workstation:

python ~/state-hub/scripts/capture_legacy_meter_evidence.py

Output contract

  • One State Hub progress event per run (legacy_meter_8h_capture)
  • No LLM call; no workplan file edits
  • ActivityRun context_snapshot retains review summary for audit