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
| Role | Responsibility | Explicitly cannot |
|---|---|---|
| Operator | Runs the sealing service and key service; executes rotations and burns through the governed procedures | Hold the anchor alone, or burn an epoch unilaterally |
| Custodian | Holds one share of the threshold anchor under the dual sharings — (7,4) plus (5,3) for VAULT | Reconstruct S_3 below threshold, or act outside a customer-gate token |
| Curator | Votes 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 |
| Verifier | Anyone 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-onlyrefuses 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.
- Announce. Governance records the rotation and the beacon carries the direction in its next heartbeat.
- Create the new epoch.
store.create_epoch(new_id)generates fresh material. An epoch ID is never reused for different key material. - 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, andnonce_bunchanged, byte for byte. - 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_idandbody_digestmatch the predecessor; discard plaintext and erase the DEK. - 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.
- 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. - Confirm the tombstone. Opening an old-epoch envelope now returns
ERR-OPEN-FAILEDvia 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_epochis 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)
- Confirm the silence is real: check the beacon through an independent channel, not the possibly-failed path itself.
- 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.
- Freeze non-essential lifecycle operations (no burns, no constitution changes) until liveness is restored or the covenant's own steps direct otherwise.
- 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
- Apply the four-part client rule before acting on anything.
- 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.
- If reproduction is incomplete, the Precautionary Tier holds for 14 days, renewable once — protection first, verdict second.
- 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)
- Stop sealing on the epoch immediately; opening continues under monitoring.
- Page the Chief Cryptographer — this is the specified escalation, not a courtesy.
- Preserve the failing ciphertexts and request metadata for analysis; a decapsulation-oracle campaign is evidence, not noise.
- Prepare a successor epoch. If the campaign is confirmed hostile, rotate (full procedure above) rather than waiting for the budget to reset.
- 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.
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)
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.
