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

    Type Alias SweepRequest

    Arguments for one sweep pass; every field optional, falling back to the worker's construction-time defaults. now defaults to the clock, limit to WorkerDefaults.limit and then DEFAULT_SWEEP_LIMIT.

    type SweepRequest = {
        archive?: ArchiveJobOptions;
        dispatcher?: Dispatcher;
        economy?: Pick<Economy, "submit">;
        feed?: ReconcileFeed;
        float?: FloatFeed;
        limit?: number;
        now?: number;
        only?: ReadonlyArray<SweepName>;
        options?: CallOptions;
        orphans?: OrphanJobOptions;
        retention?: RetentionJobOptions;
        windows?: ReadonlyArray<Range>;
    }
    Index

    Archival mover (src/worker/archive.ts); absent, archive is skipped — moving history to cold storage is the host's opt-in, and the sink plus checkpoint-age bound are the host's to set.

    dispatcher?: Dispatcher

    Transport the relay job delivers outgoing events through; absent, the relay job is skipped and pending outbox rows wait for a later run.

    economy?: Pick<Economy, "submit">

    Economy the inbox-apply job submits each stored inbound Operation through, so the money move runs through the same invariants and idempotency a direct caller hits. createWorker binds one; absent both, drainInbox is skipped.

    Settlement-report source for the reconcile job; absent (or with no windows), reconcile is skipped — a host with no provider report has nothing to compare.

    float?: FloatFeed

    External float source for the treasury tie-out's coverage half; absent, floatCoverage is skipped — the internal backing check in treasury runs regardless.

    limit?: number

    Per-job cap on due items claimed this pass.

    now?: number

    The tick every job sweeps at, in epoch milliseconds.

    only?: ReadonlyArray<SweepName>

    Narrows the run to just these jobs — the lever behind a supervisor's targeted re-drive (e.g. only: ['relay'] to push a backlog without sealing a checkpoint). A job left out reports its idle summary, the same shape an absent optional dependency produces.

    options?: CallOptions

    Per-call options; an AbortSignal here cancels a running job.

    Multi-node orphan-session sweep (src/worker/orphans.ts); absent, orphans is skipped — enumerating and settling crashed epochs is the multi-node host's opt-in.

    Secondary-table retention (src/worker/retention.ts); absent, retention is skipped — deleting replay-guard rows and settled-session journal history is the host's opt-in, and each horizon is the host's to set.

    windows?: ReadonlyArray<Range>

    The settlement windows the reconcile job compares, each reconciled independently.