Home/Documentation/Operations Runbook

Running NIRVQ: the operations runbook

The day-to-day and incident procedures for the reference system: who does what, the epoch-rotation procedure step by step, backup and restore, and the four incident runbooks — written against the reference build, with its simulated boundaries labelled.

ROLES 4 INCIDENT RUNBOOKS 4 BOUNDARY REFERENCE BUILD — SIMULATED HSM

Roles

RoleResponsibilityExplicitly cannot
OperatorRuns the sealing service and key service; executes rotations and burns through the governed proceduresHold the anchor alone, or burn an epoch unilaterally
CustodianHolds one share of the threshold anchor under the dual sharings — (7,4) plus (5,3) for VAULTReconstruct S_3 below threshold, or act outside a customer-gate token
CuratorVotes on governance actions at 5-of-9 (standard), 7-of-9 (serious), 8-of-9 (most severe)Change the constitution a client has pinned without a new pinned version
VerifierAnyone with the public keys and the transparency log; checks Passport history independently— verification needs no permission and no key-service access

In the reference build, custodians are simulated (local processes, not separate organisations) and the HSM boundary is simulated. The procedures below are written so that replacing those boundaries with real ones changes the custody mechanics, not the procedure.

Standing duties

  • Watch the beacon. Heartbeats are signed every 60 minutes. A beacon older than 24 hours is silence — start Runbook 1; do not improvise.
  • Enforce the immune-feed client rule. Act on a revocation only when all four checks pass: signature verifies, artefact matches, grade permits the ladder, and the entry is valid against the pinned constitution.
  • Monitor the decapsulation budget. On the TEST backend the budget is observable; on real KEMs both slots are metered (D-20 — FO checker: both limbs landed and wired, fix wave Dec 6, 2026) — treat unexplained opening-failure volume as a signal to investigate manually.
  • Never seal on a quarantined epoch. A quarantined epoch continues opening under monitoring only. Un-quarantine is operator-reviewed only (CC-A2 ruling): a named reviewer and reason are required, the decision is attested, and there is no automatic expiry.
  • Use read-only serve where mutation must be impossible. serve --read-only refuses epoch-create, seal, rewrap, and burn with 403 after auth; open and GETs still work (TR-01 guardrail).
  • Keep the TEST backend out of production paths. Tooling that must run on real KEMs calls require_real_kems().

Procedure: epoch rotation

Rotation is the routine that keeps the fleet ahead of algorithm ageing. It is also the rehearsal for the emergency version of the same move.

  1. Announce. Governance records the rotation and the beacon carries the direction in its next heartbeat.
  2. Create the new epoch. store.create_epoch(new_id) generates fresh material. An epoch ID is never reused for different key material.
  3. Re-wrap the fleet. Every live envelope in the old epoch is re-wrapped header-only to the new epoch — body ciphertext, body_digest, object_id, and nonce_b unchanged, byte for byte.
  4. Verify every successor. The normative four steps, per envelope: open with new keys and verify the tag; transiently unwrap and decrypt inside the boundary; confirm object_id and body_digest match the predecessor; discard plaintext and erase the DEK.
  5. Check the registry. The no-burn rule: the live registry must show a verified successor for every live envelope in the old epoch. One missing successor stops the burn.
  6. Burn the old epoch. Through the burn machine (steps 0–5, n−1 rule). If share accounting is incomplete, the outcome is recorded as RETIRED-WITH-UNACCOUNTED-SHARES — never papered over.
  7. Confirm the tombstone. Opening an old-epoch envelope now returns ERR-OPEN-FAILED via the tombstone path, indistinguishable from a cryptographic failure.

Procedure: backup & restore

  • Epoch material is backed up per epoch, wrapped under that epoch's backup KEK. A backup that mixes epochs cannot be partially restored, and is not made.
  • Envelopes themselves are self-protecting bytes — back them up wherever ciphertext belongs (object store, database, offline media). Losing an envelope loses the object; losing epoch material loses every object in the epoch.
  • Test restores by replay. A restore is proven by importing the epoch and opening a known envelope — the same mechanism the KAT vectors use (import_epoch is a test/restore path, never a production shortcut). A backup that has never been replayed is a hope, not a backup.
  • Stored keys inside test vectors are fixtures only — never production keys, never restored into a live store.

Incident runbooks

Runbook 1 — Beacon silence (over 24 hours)

  1. Confirm the silence is real: check the beacon through an independent channel, not the possibly-failed path itself.
  2. Trigger the Fallback Covenant — the pre-agreed procedure clients and custodians follow on sustained silence. The covenant exists so that nobody improvises a new trust decision during an incident.
  3. Freeze non-essential lifecycle operations (no burns, no constitution changes) until liveness is restored or the covenant's own steps direct otherwise.
  4. Record everything in the Passport log as it happens; the post-incident review reads the log, not memories.

Runbook 2 — A revocation lands on the immune feed

  1. Apply the four-part client rule before acting on anything.
  2. Identify the ladder: Ladder E (emergency) and Ladder S (standard) run on different clocks; the artefact's grade (R0–R5) gates which ladder it may use.
  3. If reproduction is incomplete, the Precautionary Tier holds for 14 days, renewable once — protection first, verdict second.
  4. If the revoked artefact is an epoch or a parameter set in live use, begin the rotation procedure for affected objects; the revocation names the artefact, the procedure does the rest.

Runbook 3 — Epoch quarantine (budget event)

  1. Stop sealing on the epoch immediately; opening continues under monitoring.
  2. Page the Chief Cryptographer — this is the specified escalation, not a courtesy.
  3. Preserve the failing ciphertexts and request metadata for analysis; a decapsulation-oracle campaign is evidence, not noise.
  4. Prepare a successor epoch. If the campaign is confirmed hostile, rotate (full procedure above) rather than waiting for the budget to reset.
  5. Un-quarantine only by operator review (CC-A2 ruling): a named reviewer and a recorded reason, attested on the epoch; healthy and burned epochs are refused, and the tripwire re-arms from 0. There is no automatic expiry.
Runbook 4 — Suspected anchor compromise: the honest gap

If the anchor is suspected compromised, the response is: rotate the fleet to a new anchor epoch, verify successors, burn the old anchor epoch, and record the event through governance. What the reference system cannot yet do is detect a silent compromise on its own: ACSP scenarios S1/S2 fail — a silent attacker went undetected. Until that detection limb is built, anchor-compromise detection depends on out-of-band signals (custodian reports, governance intelligence), and this runbook says so rather than pretending a sensor exists.

Deployment shape (reference)

[ Client / CLI ] ──► [ Sealing service (F7) ] ──► [ Object store (SQLite / files) ] │ ├─► [ Key service + epoch store ] ├─► [ Passport log (append-only) ] ├─► [ Beacon client ] ├─► [ Immune feed client ] └─► [ Governance / burn machine ]

The reference key service is a single-process, in-memory store. Production concurrency, persistence, HSM latency, an external transparency service, and a real threshold ceremony with independent custodians are Phase 1 engineering — listed here so an operator never mistakes the reference topology for a production one.