Cotal TypeScript packages
    Preparing search index...

    Interface ForkRequest

    interface ForkRequest {
        actor: string;
        child: string;
        entries: readonly JournalEntry[];
        file?: string;
        fromStepKey: string;
        newProgramHash?: string;
        now: () => number;
        parent: string;
        pins: RunPins;
        source: string;
        worktreeBranches?: boolean;
    }
    Index
    actor: string
    child: string

    The child's run id. Allocated by the caller, because minting an id is not this file's decision.

    entries: readonly JournalEntry[]
    file?: string
    fromStepKey: string

    A journal key string, e.g. /checkpoint:approve#0. Not a sequence number: it survives edits.

    newProgramHash?: string

    The newProgramHash fork option. Accepted only to be REFUSED: the run record carries no program hash to pin — a declared but unbuilt capability this branch does not invent — so a fork "pinned to" one would record nothing at all and the caller would have been told it happened.

    now: () => number
    parent: string
    pins: RunPins

    Read back from the parent's run record. Never re-derived: see the header.

    source: string

    The program the parent was running.

    worktreeBranches?: boolean

    Worktree branches for the child. There is no worktree plane in this tree, so asking for one is refused.