Cotal TypeScript packages
    Preparing search index...

    Type Alias CheckpointRaw

    CheckpointRaw:
        | {
            answerId?: string;
            artifact?: string;
            at: number;
            by?: string;
            outcome: "resolved";
            value?: unknown;
        }
        | { at: number; outcome: "expired" }

    WHAT HAPPENED, which is all a handler is allowed to decide.

    A handler never chooses whether an expiry is returned or thrown. It reports the raw outcome, the interpreter journals THAT, and the disposition is computed from today's source afterwards, on the live path and the replay path alike (see applyCheckpointPolicy).

    Written the other way round the reapply rule cannot work at all, and this package shipped it that way for a day: a handler that throws L4007 makes the journal record failed, and a replay under an edited proceed then has nothing but an error to reinterpret. A policy applied before the journal is a policy baked into the record.

    Type Declaration

    • {
          answerId?: string;
          artifact?: string;
          at: number;
          by?: string;
          outcome: "resolved";
          value?: unknown;
      }
      • Optional ReadonlyanswerId?: string

        Which answer the settle accepted. Every resolver presents as the run driver, so the arbiter has to NAME its choice: a principal cannot discriminate between two answers.

        NOTHING IN THIS PACKAGE SETS IT. The binding between an answer id and a settle fact lives in the substrate the mesh handler talks to, which is a v0.4 delta this package does not carry; the field is here so the journal preserves what a production handler reports rather than dropping it, and the simulator deliberately never invents one. Read an absent answerId as "this handler does not name its answers", never as "the answer was anonymous".

      • Optional Readonlyartifact?: string
      • Readonlyat: number
      • Optional Readonlyby?: string
      • Readonlyoutcome: "resolved"
      • Optional Readonlyvalue?: unknown
    • { at: number; outcome: "expired" }