gatelineAPI reference

A paused run, as facts (#433). The instruction is the view's.

interface PausedFact {
    budget: null | { limit: null | number; spent: null | number };
    cause: null | string;
    freeText: boolean;
    handEdit: null | HandEdit;
    reason: null | string;
}

Properties

budget: null | { limit: null | number; spent: null | number }

budget.cost_spent_usd and budget.cost_limit_usd, as recorded; null when the run has no budget.

cause: null | string

The engine's own line for the pause, verbatim, when the record has it: for budget-exhausted, the newest escalation rule DB wrote (it pauses on projected spend, which the counts alone would misstate); for escalation, the last resolved escalation's line. Null otherwise.

freeText: boolean

reason is not one of the engine's tokens (PAUSED_REASONS): a human's free-text hold reason (approve-and-hold), to be quoted as a passage rather than as a token.

handEdit: null | HandEdit

For reason escalation: the hand edit owed, or null.

reason: null | string

The recorded paused_reason, verbatim, or null when none is recorded.