gatelineAPI reference
interface Dispatcher {
    adapter: string;
    managesOwnWorkspace?: boolean;
    abortAll(): number;
    adapterFor(role: string): string;
    dispatch(req: DispatchRequest): Promise<DispatchOutcome>;
    manifestFor(role: string): undefined | HeadlessManifest;
}

Implemented by

Properties

adapter: string
managesOwnWorkspace?: boolean

True when this dispatcher creates its own workspace and harvests its own work (the remote runner). The engine then creates no local checkout and, on a harvest handoff, folds the harvested branch instead of running its own local harvest(). Unset for HeadlessDispatcher (local checkout, local harvest).

Methods

  • Operator force-drain (#150): SIGKILL every live harness process group. Each aborted dispatch resolves through the normal failure path, so its closing commit lands and the task is freed for a retry — killed work, closed books. Returns how many groups were signalled.

    Returns number

  • The adapter that would run this role (routing dispatchers differ per role).

    Parameters

    • role: string

    Returns string

  • The manifest of the adapter that would run this role, when this dispatcher carries one — registry.ts's resolveModel() reads it to spell the resolved model the way that adapter actually invokes it. Undefined for a dispatcher with no manifest (RemoteDispatcher, a test double), which resolveModel() treats as "use the registry's own default".

    Parameters

    • role: string

    Returns undefined | HeadlessManifest