Provider usage readers reference
This page is the operator’s field reference for the usage readers. The user-facing vocabulary (class, scope, freshness, the chat rows) is on Provider usage reference.
The declared reader set
Section titled “The declared reader set”The provider table in sc-provider-quota-calendar is the ONE source: each declaration
names a reader, the providers it reads, its class, where it reads, its ladder position and
its ToS note. A reader that is declared but not implemented in a build is reported as
implemented: false — the console never implies a reader the build does not ship.
| Ladder | Meaning |
|---|---|
official |
An official provider endpoint |
headers |
Rate-limit headers on traffic we already sent |
harness_local |
The vendor’s own client inside the harness |
back_door |
A vendor-client endpoint called with the credential we already hold |
own_metering |
Our own arithmetic, always class estimate |
definition |
A window declaration with no observation |
A reader never issues a completion to obtain a reading. A paid probe is never issued.
Stores
Section titled “Stores”| Store | Scope | Default | Written by |
|---|---|---|---|
provider_usage_reader_switches |
Instance-wide, one row per reader | enabled (an absent row) | PUT /api/operator/v1/usage-readers/{reader} |
usage_alert_thresholds (instance setting) |
Instance-wide | 80,95 |
PUT /api/operator/v1/usage-alert-thresholds |
provider_usage_reader_state |
One row per (credential, reader) | created on first attempt | the ingest path |
provider_usage_threshold_notices |
One row per announced crossing | — | the announcing sweep |
provider_rate_limits |
One row per (credential, model, level, dimension) | empty | the ingest path; each successful read replaces the credential’s whole set |
An absent switch row is a decision, not a gap: the readers are ON unless an operator says otherwise. That is why the store never seeds rows.
The notification claim
Section titled “The notification claim”The unique key of provider_usage_threshold_notices is
(credential_id, credential_kind, window_type, scope, threshold_percent, window_anchor).
window_anchor is the window INSTANCE: the provider’s stated reset, else the window’s own
start. The announcing path inserts with ON CONFLICT DO NOTHING and announces only when
its own insert landed, so:
- a reader tick, a task-boundary read, a refresh and N replicas all observing one crossing produce exactly ONE notice;
- a new window, or a reset the provider moves, re-arms both thresholds;
- a claim is pruned after the reading retention (90 days, owner decision D8).
Settings that pace or block a usage read
Section titled “Settings that pace or block a usage read”| Value | Built-in | Operator value | Where |
|---|---|---|---|
| Notification thresholds | 80,95 |
yes | usage_alert_thresholds instance setting |
| Reader switch | on | yes | provider_usage_reader_switches |
| Read-through minimum interval, backoff, single-flight | owned by the read-through seam (S4) | per its own settings | logged by that seam |
| Reading retention | 90 days | — | migration 848’s retention function |
Every value that paces or blocks is settable from outside, and one boot log line names the values in force.
Authorization
Section titled “Authorization”| Surface | Bar |
|---|---|
GET /api/workspaces/{id}/usage/manage |
Workspace admin |
POST /api/workspaces/{id}/usage/refresh |
Workspace admin |
usage.get (MCP) |
Workspace admin, resolved as the human who launched the session’s task |
/api/operator/v1/usage-readers* |
Operator credential |
/api/operator/v1/usage-alert-thresholds |
Operator credential |
A member cannot spend a reader’s own rate limit by pressing refresh, and a project credential can never reach a workspace usage read.