Files
stack/packages/plugins/usage/cliproxy-queue/index.mjs
T
jason.woltje 3692fca522 fix(row333 R3): per-key quota follows the agent's key lineage across rotation and re-issue (#1831)
Ruling 1: model records keep a bounded previous list (64 ids, oldest dropped)
of ids that left by rotation, grace expiry or re-issue; a fire removes the
record. A tokens.keys leaf matches and counts every id in the lineage that
holds it. Lineage ids are unique host-wide. An orphaned leaf limits nothing,
logs one value-free line when it becomes orphaned, and the Console usage
view lists it.
Ruling 2: an agent with no model key under a key quota refuses
key-quota-no-model-key, passed through the broker, launcher and stop reason.
Ruling 3: covered by the lineage; no mayLaunch change.
Ruling 4: the usage module receives a frozen { readUsageQueue } only.
Ruling 5: every telemetry fixture wait races a 5 s real-timer deadline.
2026-11-02 17:54:07 -06:00

6 lines
371 B
JavaScript

// P5: telemetry only. The bus's management client sanitizes at the HTTP boundary.
// Row 333 R3 (#1831): the bus hands this module one function, readUsageQueue, and nothing else,
// so no credential value, key write or limit-check authority crosses this interface.
export const interfaceVersion = 1;
export function read({ readUsageQueue }) { return readUsageQueue(); }