Capacity Status
{mode} for the degraded chip; same source as the agent's capacity_status SSE. Reads dana:cap:mode set by the capacity controller. Returns 'normal' when the controller has not yet run or Valkey is unreachable (fail-open).
curl -X GET "https://loading/v1/capacity/status"{}Revoke Share DELETE
Owner revoke: flip is_public=false. Effective within one 60s ISR window. The caller must be authenticated (any valid key); IDOR guard is enforced by checking that the share's session belongs to the calling user_id.
Usage Current GET
A5 usage popover payload. Reads the gateway's own Valkey keys via enforcement helpers. The key read path is IDENTICAL to _precheck_app in enforcement.py so the numbers the popover shows always match what the gateway enforces. Returns (all fields required by the A5 contract): context_tokens_used : int current session context usage (0; updated by SSE) context_max : int model context window (1 000 000) session_4h_used : int tokens spent in the current 4 h window session_4h_cap : int effective 4 h cap (= session_4h * combined_mult) session_4h_reset_at : str ISO-8601 UTC when the 4 h window rolls over weekly_used : int tokens spent this week (since last Saturday 00:00 Tehran) weekly_cap : int weekly cap (= weekly + boosts_sum) weekly_reset_at : str ISO-8601 UTC of next Saturday 00:00 Tehran plan : str plan_id (free | pro | max5 | max20 | …) off_peak_active : bool true inside 01:00-07:00 Tehran (tmult > 1.0) capacity_multiplier : float combined = min(max(tmult * lmult, 1.0), max_mult)