gatelineAPI reference
interface GovernorConfig {
    budgetEnforcement?: boolean;
    log?: (line: string) => void;
    maxConcurrentDispatches?: number;
    minWakeIntervalMs?: number;
    now?: () => Date;
    offerTtlMs?: number;
    repositories?: Record<string, { spendLimitUsd?: null | number }>;
    spendLimitUsd?: null | number;
    spendWindowMs?: number;
}

Hierarchy (View Summary)

Properties

budgetEnforcement?: boolean

Budget enforcement (#109). False keeps metering (reports are still accepted) but disables both spend checks, the machine's and every repository's ceiling. The concurrency cap still applies: it is a resource limit, not a budget. Default true.

log?: (line: string) => void
maxConcurrentDispatches?: number

The most dispatches running at once across the process; 0 or negative is uncapped. Default 2.

minWakeIntervalMs?: number

The least time between two wakes of one repository. A wake that would come sooner is sent when the interval has passed, not dropped. It bounds how fast two repositories that keep releasing unlaunched grants could wake each other. Default 1 second; 0 turns it off.

now?: () => Date
offerTtlMs?: number

How long a slot is held for a woken repository whose tick has not finished. Default 2 minutes.

repositories?: Record<string, { spendLimitUsd?: null | number }>

Per-repository spend ceilings, beneath the machine's. register can set them too.

spendLimitUsd?: null | number

The machine's spend limit per window, across every repository; null or absent is none.

spendWindowMs?: number

The rolling window the spend limits measure over. Default 24 hours.