gatelineAPI reference
interface InboxItem {
    bouncedBy: null | BounceFact[];
    costLimitUsd?: null | number;
    detail: string;
    escalation: null | EscalationFact;
    escalationIndex: null | number;
    gate: null | "G0" | "G1" | "G2" | "G3";
    inflight: null | { role: string; since: number };
    kind: InboxKind;
    packet: string[];
    packetRefs: ArtifactRef[];
    paused: null | PausedFact;
    pausedReason?: null | string;
    problems: string[];
    question: null | string;
    reviewable: boolean;
    roundCap: null | RoundCapFact;
    since: null | number;
    slug: string;
    source: string;
    sourceName: string;
    staged: null | StagedFact;
    superseded: boolean;
    title: string;
    unreadable: null | StateProblem;
    waitingOn: null | WaitingOn;
}

Properties

bouncedBy: null | BounceFact[]

kind=gate: the packet's artifacts that fail their contract (R3), or null when none does.

costLimitUsd?: null | number

kind=paused: the run's current budget.cost_limit_usd, for a resume that must raise it (#96).

detail: string

Kept for one release (#411 step 8) — see title.

escalation: null | EscalationFact

kind=escalation: the entry as facts.

escalationIndex: null | number

Escalation index into state.escalations, when kind=escalation.

gate: null | "G0" | "G1" | "G2" | "G3"
inflight: null | { role: string; since: number }

The gate's producing role holds an open ledger entry opened after the packet landed: a new artifact is coming and this one is superseded (#159). since is epoch seconds, the dispatch's own at. Null on every other item, and on a gate whose producer is at rest.

kind: InboxKind
packet: string[]

Run-relative artifact paths that make up the card's packet.

Kept for one release beside packetRefs (docs/SEAM.md §8.5): the wire change is additive, and the views move off paths in their own changes. New code reads packetRefs.

packetRefs: ArtifactRef[]

The packet as references, one per packet path and in its order (#415). Attached once, from packet, as deriveReadiness returns — so the two can never disagree. Built from the path alone, so a review's reviewOf is null; the run detail route resolves it against the run's reports.

paused: null | PausedFact

kind=paused: the pause as facts.

pausedReason?: null | string

kind=paused: the recorded reason, so the resume affordance can ask for what the reason needs (#96).

problems: string[]
question: null | string

kind=gate: the gate's question, from the profile's gate table. Null on every other kind.

reviewable: boolean

False → the card offers no decision. Two causes, told apart by problems: a non-empty problems is the bounce view (R3, the packet fails its contract); an empty one alongside inflight is the producer being out (#159).

roundCap: null | RoundCapFact

kind=round-cap: the breach as facts.

since: null | number

Epoch seconds when this began waiting (commit time of the trigger), or null.

slug: string
source: string

The repository's id (docs/MULTI-REPO.md §6): what URLs, logs and copies carry.

sourceName: string

The repository's display name (§6.2): the config name, else the id's last segment. Presentation only (#497). Attached once, from the source, as deriveReadiness returns.

staged: null | StagedFact

kind=staged: the staging as facts.

superseded: boolean

kind=gate: true when waitingOn is in flight — the packet on the card is about to be replaced (#159).

title: string

Kept for one release (#411 step 8): sentences core composed for the inbox row, which every surface then reused. Nothing in web or the CLI reads them; views compose their own lines from the facts below.

unreadable: null | StateProblem

kind=malformed: why no state came of state.yaml, as a fact (#435). Only its parser case carries words, and they are the parser's; problems holds the same diagnostic for the CLI and the bounce contract.

waitingOn: null | WaitingOn

kind=gate: the producing role holding an open dispatch newer than the packet, or null.