tarlatan
    Preparing search index...

    Function status

    • Builds the status report (see the module comment) from reads alone. A missing ledger reads as no rows, and ledgerFound says so. Fails only when the log or the ledger cannot be read.

      Parameters

      Returns Effect<
          {
              armedWaivers: {
                  claude: Option<string & Brand<"WaiverId">>;
                  codex: Option<string & Brand<"WaiverId">>;
              };
              briefs: { briefIntact: boolean; opId: string & Brand<"OpId"> }[];
              correctionLimit: Option<number>;
              coverage: string;
              evidenceCaveat: string;
              headMoved: Option<HeadMoved>;
              holds: readonly (
                  Approval
                  | Quota
                  | Uncertain
                  | Failure
                  | Drift
                  | Protected
              )[];
              incomplete: {
                  grantId: string & Brand<"GrantId">;
                  opId: string & Brand<"OpId">;
              }[];
              keptRefs: KeptRefsListed
              | KeptRefsIncomplete
              | KeptRefsSkipped;
              launches: {
                  evidence:
                      | ProcessesListed
                      | NothingListed
                      | EvidenceUnavailable
                      | LaunchUnknown;
                  finished: boolean;
                  launched: Option<Launched>;
                  opId: string & Brand<"OpId">;
              }[];
              ledgerFound: boolean;
              noKeptEndTree: never[]
              | readonly (string & Brand<"OpId">)[];
              pinsMatch: { claude: boolean; codex: boolean };
              reports: {
                  handoffIntact: boolean;
                  opId: string & Brand<"OpId">;
                  rawIntact: boolean;
              }[];
              state: | NoSession
              | SessionEnded
              | OpenNoAttempt
              | AttemptIncomplete
              | Interrupted
              | AwaitingHandoff
              | Rejected;
              worktree: | { detail: string & Brand<"Revision">; passed: true }
              | { detail: string; passed: false };
          },
          ProjectLogError
          | LedgerError
          | LedgerBusy,
          never,
      >