3.0.1 · AVAILABLE

Delegation recovery operations

Independent custody, verified backups and fail-closed authority activation for self-hosted operators.

Separate operational custody

The supported public CLI is cmd/clavex-delegation-recovery, built from the released source on an operator workstation. The current public release schema is 217; its delegation prerequisites remain the authentic earlier public migrations. Keep operator/reviewer tools and credentials out of application pods.

go build -o bin/clavex-delegation-recovery ./cmd/clavex-delegation-recovery

Use a dedicated non-owner PostgreSQL login with USAGE on identity and membership in clavex_delegation_operator. Do not combine it with clavex_delegation_runtime, owner or broad application permissions. Use authenticated PostgreSQL TLS for remote connections. The CLI reads CLAVEX_DELEGATION_OPERATOR_DSN; protect it outside Git/process output.

Keep the installation pin and -journal under independently governed parent directories, outside PostgreSQL/Redis/application restore domains. The journal must support exclusive creation and durable file/directory synchronization, mode 0700. Do not roll it back with the database or serialize concurrent operators through different journals. Pin the reviewer's Ed25519 public key with -reviewer-key; its private signing key remains under separate reviewer custody.

Controlled sequence

  1. Read status with the current installation pin. Use close for planned maintenance to close new SQL admission. Inventory and independently isolate every writer, stop its DB connections and prevent restart/reconnection. Check prepared transactions, released effects and resources that accept delegated tokens. SQL closure alone is not fleet/resource isolation.
  2. Obtain and apply an independently signed quarantine receipt for the resulting CLOSING fence. Take a consistent protected backup with role/grant/ownership recovery data after writer quiescence. Verify checksum and restore. Retain Redis/operator evidence under their own rules.
  3. For an actual restore, keep the isolation barrier. Read restored status against the external pin; do not trust a restored ACTIVE row as authority to resume. Give the reviewer the verified backup digest and observed restored fence.
  4. Provision the approved fresh Redis continuity value and obtain a new independently reviewed prepare receipt/lineage. Only a confirmed commit emits the new pin. Install that exact pin on every writer while SQL remains RECOVERING.
  5. Independently prove delegated resource-token invalidation, or verified expiry at all accepting resources including clock allowance. Check installed pins/Redis continuity and obtain a separate signed reopen receipt. Confirm ACTIVE before reopening access. Old epochs do not authorize new issuance; require new binding/approval, fresh source authentication and consent as applicable.

CLI contract

Use -action, -pin and, for signed transitions, -reviewer-key, -receipt, -journal. The supported actions include status, close, quarantine, prepare, reopen. Keep CLAVEX_DELEGATION_RECOVERY_REDIS_URL scoped and protected; the CLI reads process/continuity evidence rather than granting itself arbitrary Redis write authority.

Receipt IDs and fresh lineages are reserved durably before SQL commits. An ambiguous response is not permission to retry a receipt blindly: maintain isolation, inspect the SQL fence and independent journal, then obtain fresh evidence/receipt for a new attempt. A stale pin, receipt, epoch or rolled-back journal must fail closed.

Receipt verification

A receipt has payload and signature, standard base64. The independent Ed25519 reviewer signs the exact bytes clavex:a2d:self-hosted-recovery:v1, a newline and the decoded payload. The payload binds the transition profile standard-stop-world-v1, receipt/action, installation/lineage/epoch, exact fence state/change time, short validity and isolation/evidence attestations. prepare/reopen additionally bind the fresh lineage/continuity, backup and resource/pin evidence required by their action.

Never forge a positive isolation or resource attestation to make the command succeed. The CLI verifies signed statements and SQL ordering; actual fleet/resource behavior remains an independent operator/reviewer responsibility. Retain the protected backup and custody required to decrypt it. Do not use a destructive reset, forced migration number or an unproven image-only rollback.

Acceptance limits

Actual non-owner installation-role recovery, signed receipt/journal behavior, backup/restore and authenticated laboratory data were exercised in REL-04, with earlier unchanged consent/resource invalidation evidence retained. These tests are not proof that a particular customer's external fleet is isolated. The final additive wallet migration does not replace the required recovery rehearsal for your installation.

Clavex 3.0.1 is publicly available. Release scope · Evidence and limitations · Editions and licensing