tarlatan
    Preparing search index...

    Interface LaunchPlan<E>

    One launch command: the rules' command, the role and client it launches, the owner's --waive, and the steps that differ by role. Errors of type E stop the command like any other failure.

    interface LaunchPlan<E> {
        afterHandoff: (
            session: {
                attempts: readonly {
                    brief: Option<BriefRecorded>;
                    endedByOwner: Option<StepEndedByOwner>;
                    finished: Option<Finished>;
                    intent: Intended;
                    launched: Option<Launched>;
                }[];
                corrections: number;
                findings: readonly FindingsRecorded[];
                opened: SessionOpened;
                overrules: readonly {
                    findingId: string;
                    reviewOpId: string & Brand<"OpId">;
                    rulingId: string & Brand<"RulingId">;
                }[];
                reports: readonly ReportRecorded[];
                reviewedTree: Option<string & Brand<"Revision">>;
                roundsGranted: readonly { count: number; note: string }[];
                rulings: readonly {
                    id: string & Brand<"RulingId">;
                    supersededBy: Option<string & Brand<"RulingId">>;
                    supersedes: Option<string & Brand<"RulingId">>;
                    text: string;
                }[];
            },
            handoff: string,
        ) => Effect<void, StateFileFailed | E>;
        argv: (brief: string, files: AttemptFiles) => readonly [string, string];
        command: Implement | Review | Correct;
        decode: (
            lines: readonly StdoutLine[],
            handoff: Option<string>,
        ) => DecodedAttempt;
        finishedExtras: (
            input: FinishedInput,
        ) => readonly (
            | Approved
            | PreApproved
            | Waived
            | WaiverExpired
            | Released
            | Adopted
            | Reconciled
            | ProtectedReleased
            | SessionOpened
            | ReportRecorded
            | FindingsRecorded
            | RulingAdded
            | FindingOverruled
            | RoundsGranted
            | BriefRecorded
            | SnapshotTaken
            | SnapshotKept
            | HandoffApproved
            | HandoffRejected
            | ReviewChecked
            | StepEndedByOwner
            | SessionClosed
            | Intended
            | Launched
            | Finished
            | CommitRecorded
            | ReviewQueued
            | Unwound
            | TrancheEnded
            | LedgerBound
            | WorktreeIntended
            | WorktreeCreated
            | Rebased
            | BaseRequested
            | UnwindRequested
            | RestoreRequested
            | RequestCompleted
            | HoldCreated
        )[];
        handoff: (
            files: AttemptFiles,
            lines: readonly StdoutLine[],
        ) => Effect<Uint8Array<ArrayBufferLike>, StateFileFailed | E>;
        observe: (
            fold: {
                armedWaivers: {
                    claude: Option<string & Brand<"WaiverId">>;
                    codex: Option<string & Brand<"WaiverId">>;
                };
                state: | NoSession
                | SessionEnded
                | OpenNoAttempt
                | AttemptIncomplete
                | Interrupted
                | AwaitingHandoff
                | Rejected;
            },
        ) => Effect<HandoffFacts, E>;
        prepare: (input: PrepareInput) => Effect<Prepared, E>;
        provider: "claude" | "codex";
        role: "implementer" | "reviewer" | "corrector";
        snapshot: (
            session: {
                attempts: readonly {
                    brief: Option<BriefRecorded>;
                    endedByOwner: Option<StepEndedByOwner>;
                    finished: Option<Finished>;
                    intent: Intended;
                    launched: Option<Launched>;
                }[];
                corrections: number;
                findings: readonly FindingsRecorded[];
                opened: SessionOpened;
                overrules: readonly {
                    findingId: string;
                    reviewOpId: string & Brand<"OpId">;
                    rulingId: string & Brand<"RulingId">;
                }[];
                reports: readonly ReportRecorded[];
                reviewedTree: Option<string & Brand<"Revision">>;
                roundsGranted: readonly { count: number; note: string }[];
                rulings: readonly {
                    id: string & Brand<"RulingId">;
                    supersededBy: Option<string & Brand<"RulingId">>;
                    supersedes: Option<string & Brand<"RulingId">>;
                    text: string;
                }[];
            },
        ) => Effect<Option<SnapshotCheck>, E>;
        waive: boolean;
    }

    Type Parameters

    • E
    Index
    afterHandoff: (
        session: {
            attempts: readonly {
                brief: Option<BriefRecorded>;
                endedByOwner: Option<StepEndedByOwner>;
                finished: Option<Finished>;
                intent: Intended;
                launched: Option<Launched>;
            }[];
            corrections: number;
            findings: readonly FindingsRecorded[];
            opened: SessionOpened;
            overrules: readonly {
                findingId: string;
                reviewOpId: string & Brand<"OpId">;
                rulingId: string & Brand<"RulingId">;
            }[];
            reports: readonly ReportRecorded[];
            reviewedTree: Option<string & Brand<"Revision">>;
            roundsGranted: readonly { count: number; note: string }[];
            rulings: readonly {
                id: string & Brand<"RulingId">;
                supersededBy: Option<string & Brand<"RulingId">>;
                supersedes: Option<string & Brand<"RulingId">>;
                text: string;
            }[];
        },
        handoff: string,
    ) => Effect<void, StateFileFailed | E>

    Publishes what follows from the handoff's text, before batch F (a review's findings draft); not run when the handoff is not UTF-8.

    argv: (brief: string, files: AttemptFiles) => readonly [string, string]

    The client's argv from the brief and the attempt's files (a fixed profile).

    command: Implement | Review | Correct
    decode: (
        lines: readonly StdoutLine[],
        handoff: Option<string>,
    ) => DecodedAttempt

    The decoded output classification reads, from the lines and the handoff's text; none when the handoff's bytes are not UTF-8 (review finding R04).

    finishedExtras: (
        input: FinishedInput,
    ) => readonly (
        | Approved
        | PreApproved
        | Waived
        | WaiverExpired
        | Released
        | Adopted
        | Reconciled
        | ProtectedReleased
        | SessionOpened
        | ReportRecorded
        | FindingsRecorded
        | RulingAdded
        | FindingOverruled
        | RoundsGranted
        | BriefRecorded
        | SnapshotTaken
        | SnapshotKept
        | HandoffApproved
        | HandoffRejected
        | ReviewChecked
        | StepEndedByOwner
        | SessionClosed
        | Intended
        | Launched
        | Finished
        | CommitRecorded
        | ReviewQueued
        | Unwound
        | TrancheEnded
        | LedgerBound
        | WorktreeIntended
        | WorktreeCreated
        | Rebased
        | BaseRequested
        | UnwindRequested
        | RestoreRequested
        | RequestCompleted
        | HoldCreated
    )[]

    The events batch F appends after Finished and ReportRecorded, from the attempt's classified outcome and what was decoded: a usable review's FindingsRecorded; none for other roles. Pure.

    handoff: (
        files: AttemptFiles,
        lines: readonly StdoutLine[],
    ) => Effect<Uint8Array<ArrayBufferLike>, StateFileFailed | E>

    The handoff bytes once the leader exited, from its files or its output lines; empty when the client gave none.

    observe: (
        fold: {
            armedWaivers: {
                claude: Option<string & Brand<"WaiverId">>;
                codex: Option<string & Brand<"WaiverId">>;
            };
            state: | NoSession
            | SessionEnded
            | OpenNoAttempt
            | AttemptIncomplete
            | Interrupted
            | AwaitingHandoff
            | Rejected;
        },
    ) => Effect<HandoffFacts, E>

    The handoff facts before the rules; runs after the settle step and stages nothing.

    prepare: (input: PrepareInput) => Effect<Prepared, E>

    The brief, round and consent events, from recorded files only.

    provider: "claude" | "codex"
    role: "implementer" | "reviewer" | "corrector"
    snapshot: (
        session: {
            attempts: readonly {
                brief: Option<BriefRecorded>;
                endedByOwner: Option<StepEndedByOwner>;
                finished: Option<Finished>;
                intent: Intended;
                launched: Option<Launched>;
            }[];
            corrections: number;
            findings: readonly FindingsRecorded[];
            opened: SessionOpened;
            overrules: readonly {
                findingId: string;
                reviewOpId: string & Brand<"OpId">;
                rulingId: string & Brand<"RulingId">;
            }[];
            reports: readonly ReportRecorded[];
            reviewedTree: Option<string & Brand<"Revision">>;
            roundsGranted: readonly { count: number; note: string }[];
            rulings: readonly {
                id: string & Brand<"RulingId">;
                supersededBy: Option<string & Brand<"RulingId">>;
                supersedes: Option<string & Brand<"RulingId">>;
                text: string;
            }[];
        },
    ) => Effect<Option<SnapshotCheck>, E>

    Step 2, once every prerequisite passed: the snapshot taken, none when the plan takes none.

    waive: boolean