Cotal TypeScript packages
    Preparing search index...

    Interface MeshHandlerBinding

    Who this handler acts as, and where. All of it is the DRIVER's identity, not the program's.

    interface MeshHandlerBinding {
        caller: EpCaller;
        defaultCheckpointTimeout: string;
        endpoint: string;
        epoch: number;
        holder: { id: string; lifecycleUid: string };
        instanceId: string;
        runId: string;
        space: string;
    }
    Index
    caller: EpCaller

    The caller triple this run's durable ACTIONS ride: goal facts key on epf.<e>.goal.<owner>.<actor>.<uid>.<goalId>.result, so the triple that submits a spawn must be the triple that reads its terminal back after a crash — on any host, at any epoch. It is therefore RUN-STABLE by contract: derive it from the run id (the run-command derivation), never from the process identity, or a resumed run polls a subject its own submission never wrote.

    defaultCheckpointTimeout: string

    The deadline a checkpoint gets when the program names no timeout.

    MANDATORY, because mintCheckpoint requires a future deadline and there is no such thing as a checkpoint that waits forever on this plane: an unbounded pause is a run that can never be reconciled, and picking a silent constant here would be this file deciding a pin. It is read ONLY at the first mint — a resume finds the checkpoint already minted, and the recorded deadline is the authority from then on, so changing this never moves a pause already taken.

    endpoint: string

    The endpoint hosting the driver — the manager daemon.

    epoch: number
    holder: { id: string; lifecycleUid: string }

    MANDATORY, and the reason is worth keeping next to it: a checkpoint's resume is holder-bound, so an omitted holder would make the token a BEARER credential resumable by anyone who learns it (SPEC 13.6/13.10).

    instanceId: string
    runId: string

    WHICH RUN this handler performs for.

    It is here rather than on EffectContext because the effect context deliberately carries the step's identity and nothing about the run: requestId already folds the run in, and a handler that needed to name the run for recovery would be recovering by something other than the recorded identity. A NOTICE is keyed by its run, though — it is filed onto the run — so the run is part of what this handler is bound to. A drive is already shaped that way: the caller hands drive() a run id and a handler together.

    space: string