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

    Type Alias SupervisorConfig

    The tuning surface: per-signature thresholds and windows plus the shared guardrail knobs (actionCooldownMs, maxActionAttempts). Every duration is in milliseconds. Passed as a partial through SupervisorPorts.config; unset fields keep the defaultSupervisorConfig values.

    type SupervisorConfig = {
        actionCooldownMs: number;
        anomalyEscalationThreshold: number;
        anomalyThreshold: number;
        anomalyWindowMs: number;
        deadlockMetric: string;
        deadlockThreshold: number;
        deadlockWindowMs: number;
        inboxDeadLetterThreshold: number;
        inboxReviveLimit: number;
        maxActionAttempts: number;
        outboxBacklogAgeMs: number;
        retryExhaustionThreshold: number;
        retryExhaustionWindowMs: number;
        sealLatencyMs: number;
        sealLatencyWindowMs: number;
        stallGraceMs: number;
        stuckSagaAgeMs: number;
        watchdogs: ReadonlyArray<{ everyMs: number; signal: string }>;
        webhookReplayThreshold: number;
        webhookReplayWindowMs: number;
    }
    Index
    actionCooldownMs: number

    Minimum spacing between two lever actions — tracked per saga for the stuck-saga pass, per signature for the outbox and inbox passes.

    anomalyEscalationThreshold: number

    At or above this many rejections in the window, the velocity pass escalates instead of advising.

    anomalyThreshold: number

    RISK_DENIED rejections in the window at or above which the velocity pass reports.

    anomalyWindowMs: number

    The velocity-anomaly window; also the minimum spacing between two anomaly reports.

    deadlockMetric: string

    The meter name the deadlock-storm pass sums, engine.retry by default.

    deadlockThreshold: number

    Retry volume in the window at or above which the storm pass reports.

    deadlockWindowMs: number

    The deadlock-storm window; also the minimum spacing between two storm reports.

    inboxDeadLetterThreshold: number

    New dead-letter signals at or above which the inbox pass opens a revive episode.

    inboxReviveLimit: number

    Most dead inbox rows one revive episode flips back to pending.

    maxActionAttempts: number

    Lever attempts (per the same tracking) before the pass escalates permanently instead of acting.

    outboxBacklogAgeMs: number

    Backlog age at or past which the outbox pass re-drives the relay.

    retryExhaustionThreshold: number

    Exhausted budgets in the window at or above which the exhaustion pass escalates.

    retryExhaustionWindowMs: number

    The retry-exhaustion window; also the minimum spacing between two exhaustion reports.

    sealLatencyMs: number

    A completed checkpoint seal at or past this duration counts as slow.

    sealLatencyWindowMs: number

    The slow-seal window; also the minimum spacing between two slow-seal reports.

    stallGraceMs: number

    How long the oldest unanswered pool acquire waits before the stall pass escalates.

    stuckSagaAgeMs: number

    A non-terminal saga counts as stuck once its last update is at least this old.

    watchdogs: ReadonlyArray<{ everyMs: number; signal: string }>

    Signals the host declares as periodic; the silence pass escalates past twice each cadence.

    webhookReplayThreshold: number

    Dropped duplicates in the window at or above which the replay pass reports.

    webhookReplayWindowMs: number

    The replay-storm window; also the minimum spacing between two storm reports.