tarlatan
    Preparing search index...

    Interface PrepareInput

    What a plan prepares from: the open session, its state and the snapshot taken, if any.

    interface PrepareInput {
        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;
            }[];
        };
        snapshot: Option<SnapshotCheck>;
        state:
            | NoSession
            | SessionEnded
            | OpenNoAttempt
            | AttemptIncomplete
            | Interrupted
            | AwaitingHandoff
            | Rejected;
    }
    Index
    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;
        }[];
    }
    state:
        | NoSession
        | SessionEnded
        | OpenNoAttempt
        | AttemptIncomplete
        | Interrupted
        | AwaitingHandoff
        | Rejected