@pwngh/economy-lab
    Preparing search index...

    Interface OutboxMessage

    One stored outbox row: an event plus the bookkeeping for delivering it (see OutboxStore).

    interface OutboxMessage {
        attempts: number;
        correlationId: string | null;
        event: EconomyEvent;
        id: string;
        reason: string | null;
        status: "pending" | "relayed" | "dead";
    }
    Index
    attempts: number

    Delivery attempts so far; at the configured cap the relay dead-letters the row.

    correlationId: string | null

    Correlation id of the request that enqueued this event, or null for worker-born events. Transport provenance lives here because the relay reads the envelope in another process; domain facts about the posting stay in its meta.

    id: string
    reason: string | null

    Why the relay gave up, set when the row goes 'dead'; null otherwise.

    status: "pending" | "relayed" | "dead"

    'pending' is the only status claimBatch ever hands back; 'relayed' and 'dead' are terminal.