Expand description
5h-block burn status — the engine half of the live dashboard (ROADMAP B2) and the native popover gauge (C1). Pure: derives burn rate, % of limit, ETA-to-limit, and a projected block total from a snapshot + a clock.
Our 5h window is ROLLING (the oldest turn ages out), not a fixed aligned
block, so “projected total” and “ETA” are honest estimates of the current
trajectory, not guarantees. resets_at is the oldest in-window turn + 5h
(when the window first frees), which we use to recover the window start.
Structs§
- Block
Status - Burn snapshot for one agent’s active 5h window.
Enums§
- Tier
- Quota tier for color-coding a gauge (green < 50% ≤ yellow < 80% ≤ red).
Constants§
- WIN_
SESSION_ SECS - Length of the rolling session window, seconds (5h).
Functions§
- block_
status - Compute the active-block burn status for an agent, or
Nonewhen the 5h window is empty (no active block).