Skip to main content

Module live

Module live 

Source
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§

BlockStatus
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 None when the 5h window is empty (no active block).