Skip to content

quotaBlockReason

quotaBlockReason(session, review, gate, now): BlockReason | null

Defined in: src/blocked.ts:103

Pure detector: decides whether an idle session is quota-exhausted and which kind. Returns a BlockReason of shape: "quota" with the matching quotaKind and tail set to the relevant findings array, or null when not exhausted.

Session

ReviewVerdict | null

PlanGate | null

number

BlockReason | null