gatelineAPI reference
interface RunLoopConfig {
    awaitStartup?: boolean;
    codeMonitor?: CodeTreeMonitor | CodeMonitorLike;
    debounceMs?: number;
    heartbeatMs?: number;
    log?: (line: string) => void;
    onSupersede?: (status: CodeTreeStatus) => void;
    scheduler?: Scheduler;
    staleProbe?: () => Promise<string[]>;
    stopWaitMs?: number;
}

Properties

awaitStartup?: boolean

Whether runLoop resolves only after its startup pass has finished (default true, as before #502). startOrchestrators passes false, so one repository's slow or hung first pass does not hold up the others, or the handle a caller needs to install its signal handlers.

Self-supersede (#141): watches the code tree (the checkout that owns this running module, not any configured run source) for a git pull out from under the process. Absent for a viewer-only/npm-installed process with no code repo to watch (resolveCodeRepo returns null) — the loop then behaves exactly as it did before #141.

debounceMs?: number
heartbeatMs?: number
log?: (line: string) => void
onSupersede?: (status: CodeTreeStatus) => void

Fired exactly once, after the heartbeat write, when the monitor confirms a clean fast-forward past startHead.

scheduler?: Scheduler

When present, every tick also reconciles orchestrator.yaml's schedules (§4.6).

staleProbe?: () => Promise<string[]>

Advisory staleness check run on heartbeat ticks; returned lines are logged (#150).

stopWaitMs?: number

How long stop() waits for the pass that is running before it drains without it (default STOP_WAIT_MS; #502). See STOP_WAIT_MS.