tarlatan
    Preparing search index...

    Function correctionLimit

    • The open session's correction limit (v0.2.0 design, "The correction limit"): maxCorrections plus the counts of the session's grants of rounds, each an owner's rounds grant. Only the open session's own grants count, so a grant never carries into the next session. The design flags the sum as an invented, trivial algorithm.

      The limit saturates at Number.MAX_SAFE_INTEGER (coordinator's ruling on dogfood-7, finding F4). A log tarlatan writes never exceeds it, though it may reach it, since the GrantRounds rule refuses a grant that would pass it; a log edited by hand, with grants whose sum passes it, folds to exactly Number.MAX_SAFE_INTEGER, so the limit is never inexact and the refusals that carry it still validate.

      Parameters

      • 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;
            }[];
        }

      Returns number