Cotal TypeScript packages
    Preparing search index...

    Type Alias LifecycleMapping

    LifecycleMapping: (
        | { op?: never; state: "active"
        | "retired" }
        | { op: { kind: "retirement"; opId: string }; state: "retiring" }
    ) & {
        actor: string;
        currentCredentialId?: string;
        lastTakeoverOpId?: string;
        lifecycleUid: string;
        managerInstance: string;
        owner: string;
        processEpoch: number;
    }

    The lifecycle.<owner>.<actor> head value (§13.1, amended). One incarnation of an alias. mappingRevision is NOT here: it is the head key's STORE revision (§13.1), returned beside the mapping by the leader read. currentCredentialId stays ABSENT until the (3) normative ledger mints under the reopened gate (an active head naming a released credential before the ledger exists would be exactly the unledgered mint §13.1 forbids).

    state: active is the ONLY current state. retiring = the terminal barrier's op-bound containment phase (non-current, NOT replaceable). retired = terminal AND asserts the completed barrier (only then may activation replace the alias, with a fresh UID). The retirement op intent is REQUIRED at retiring and absent otherwise, as parseLifecycleHead enforces it; carried in the type so a reader that has checked the state reads the op without re-deriving the rule.

    Type Declaration

    • { op?: never; state: "active" | "retired" }
    • { op: { kind: "retirement"; opId: string }; state: "retiring" }
    • actor: string
    • OptionalcurrentCredentialId?: string

      The public credential fingerprint + authority epoch — absent until the ledger slice.

    • OptionallastTakeoverOpId?: string

      The opId of the takeover operation that LAST advanced this epoch (SPEC 13.1: the epoch advance and its op stamp are ONE CAS, so a completion is bound to exactly one operation). A resuming barrier confirms the completed head carries ITS opId; a LOSING concurrent takeover finds a foreign opId and refuses, never claiming the winner's completion. Absent at initial activation (epoch 1), present from the first takeover.

    • lifecycleUid: string

      The never-reused, space-globally reserved lifecycle UID of THIS incarnation.

    • managerInstance: string

      The minting/supervising authority.

    • owner: string
    • processEpoch: number

      The fenced process epoch (§13.1: live authority binds it; advanced only by the takeover barrier).