Cotal TypeScript packages
    Preparing search index...

    Function kvServeIssuanceGate

    • The durable serve-issuance gate (§13.1) over the durable endpoint families — the real-KV implementation of core's EpIssuanceGate seam: core's serve mint (mintCreds, profile endpoint-serve) fences its release on the epgate.<endpoint>.<instanceId> key and stages its per-JWT row under epcred.<endpoint>.<instanceId>.<credentialId> — the SAME observe/stage/commit/revoke protocol the in-memory smoke seam models, over the real KV.

      NOT YET WIRED to a production mint path (fact H3): today its only caller is the session-ledger smoke. Wiring the endpoint-family authority connection that mints serve credentials — with the matching epgate.>/epcred.> grants, the freeze/enumerate/revoke barrier half, and stale-credential reconnect denial — is the post-D14 daemon-composition slice; the standing writer/barrier connections carry neither epgate.> nor epcred.> today. This module provides the durable seam so that wiring is a composition, not a rewrite. It closes the recorded D13/D14 durable-KEY gate (the endpoint-qualified families are normative, SPEC 13.9/13.12).

      Mapping to the NORMATIVE closed row schema (§13.1): the staged row's identity/lineage/state/exp become the CredentialLedgerRow (lifecycleUid is the endpoint instance's instanceId). Its gate-coordinate fields (generation/processEpoch/registrationRevision/nameAuthorityRevision) and the holder nkey (credentialKey) are NOT persisted on the row: the closed schema refuses unknown fields, the coordinates are pinned by the GATE key the commit CASes (one key, §13.1), and revocation/eviction route by credentialId/holderPrincipal, never nkey. commit is the pinned identical-bytes TOUCH at the observed revision — a barrier that moved the gate since observation makes the mint LOSE, the session adapter's exact discipline.

      Consumes the BRANDED SessionAuthStore (openSessionAuthStore), never a raw {kv, space} pair: the space bond is constructed, not asserted, so a caller can never pair another bucket's KV with a desired space label and fence/stage against the wrong store.

      Parameters

      Returns EpIssuanceGate