Chapter 08 · ~15 min
Now you're dangerous
Operating a chain that has a committee — and changing it without ever mixing histories.
What you’ll walk away with
- The on-call reflex: every question becomes “what does the committee think?” — and the first tool is always counting
- Why restarts are boring because of the vote journal, and why rolling back finality isn’t risky — it’s a category error
- How the system changes shape — protocol versions, committees, wire bytes — as three different coordination problems, each with a loud failure mode
- Metrics literacy: which dashboard lines are weather, and which one means adversary
3:47 am
Before the committee, a page about the sequencer meant the sequencer — one process, and everything behind it, down. Your mental model could be a single box. Now four machines run the chain, one of them can be on fire without anything being wrong, and a perfectly healthy chain can be producing no blocks at all. The old reflex — “restart the thing” — is wrong often enough to be dangerous.
The new reflex fits in one question: what does the committee think? This chapter is that question, cashed out into checks, procedures, and the short list of numbers worth knowing by heart.
The first tool is counting
Chapter 2’s table returns, wearing a pager:
committee n | you can lose | at quorum loss |
|---|---|---|
| 4 | 1 | chain pauses; resumes on its own when a node returns |
| 5 | 1 | same |
| 7 | 2 | same |
Three operational readings of that table. First, one down validator is a non-event: the chain doesn’t blink, and the node catches up by itself when it returns. Second, a stopped validator alarms on nothing by itself — it’s the surviving committee’s view (staleness, quorum arithmetic) that tells you whether the loss matters. Third, when you do lose quorum, the chain pauses — and that pause is chapter 2’s asymmetry doing its job: the system chooses to be slow rather than risk being wrong. Restore a node; the chain resumes with no ceremony. Nothing forked. Nothing ever needs “re-syncing to the right history”, because there is exactly one.
Restarts are boring on purpose
kill -9 a validator and bring it back: this is a tested path, not an incident —
the chaos rig practices it thousands of times, on purpose, against production
containers. What makes it boring is layered:
- The journal. The engine writes every vote to disk before broadcasting it; a restart replays the journal, so the validator cannot accidentally contradict its past votes. A crash is never equivocation — no conflicting vote ever exists, so nothing can become chapter 5’s “signed confession”, and the evidence counters you’ll meet below stay zero.
- The pipeline replays. On startup the node re-executes the write-ahead-log
range every downstream component still needs — you’ll see
Replaying WAL blocks from X until Y.in its logs — and each consumer picks up from its own watermark. - Speculation is rebuilt, not mourned. Overlays died with the process; the ancestry walk from chapter 7 re-executes forward from the last state it holds, and the validator votes again promptly.
- The certificate trail heals. The finality store’s certified watermark briefly trails after a restart, then one live certificate covers the gap — a certificate vouches for its whole recorded ancestry.
One number bounds all of this: the catch-up window (≈ epoch_retention × epoch
duration). A validator down longer than that outlives its peers’ retained consensus
storage; the remedy is a floor restart — wipe the consensus directory, keep the
chain data, re-bootstrap from the node’s own finality floor. Documented, guarded,
and calm.
The category error
Here is a sentence that should now sound wrong: “we may need to roll back the finalized block.” Roll it back where? A quorum signed it; certificates naming the committee exist on every validator and in every finality store; peers built on it. There is no procedure for un-finalizing a block for the same reason there’s no procedure for un-sending an email that half the company already replied to. Finality isn’t a risky thing to undo — it’s not a thing that has an undo. That’s what your users are paying for.
Two honest consequences follow. First, deposits get slower: under consensus, L1 inputs are ingested only from finalized L1 blocks (~13 minutes on Ethereum), because a BFT-finalized block is irrevocable — the single sequencer’s deep-reorg remedy (roll back and re-sequence) no longer exists, so the chain must never ingest an L1 fact that can vanish. Second, the rollback that is supported is a mode change, not a history change: return the chain to single-sequencer operation. Stop the validators, pick the one with the highest write-ahead-log tip, restart it with consensus off plus an explicit acknowledgment flag. Acknowledging deletes nothing — consensus-era blocks are ordinary history to the resumed sequencer, and the certificates stay durable. (The one subtlety: finality runs slightly ahead of each node’s disk, so a stopping committee’s logs can differ by a block or two at the tip — hence “highest tip”, and a few hundred milliseconds of in-flight blocks as the honest cost of a disaster procedure.)
Changing a running system
Change is where operating a committee differs most from operating a box. Three different things change on three different contracts, and each fails loudly by design:
The protocol version is a flag day. consensus.protocol_version is baked into
the network’s handshake and vote signing — a certificate aggregates many signatures
over one encoding, so the version is a committee-wide fact that cannot be negotiated
per connection. Two versions refuse to pair, loudly, instead of misreading each
other’s bytes. The discipline: deploy binaries gradually (safe, routine), then
activate together — a coordinated restart with a deliberate, brief halt window in
the middle. The /status chain fingerprint doubles as the flip’s progress tracker:
a half-flipped committee shows two fingerprints.
Committees change at epoch boundaries. The validator set is fixed within an epoch and changes only by scheduled append, deployed ahead of time. Step through one change end to end — including the sprint, the handoff, and the sharp edge:
(Where does the schedule itself live? Today’s baseline is configuration deployed by
operators; the repo also carries an on-chain validator registry with a staged
rollout — shadow mode derives committees from chain state and compares them
against config until the evidence says flipping to contract mode is safe. The
enabling docs map the whole option space; /status tells you which mode a chain
runs.)
Released bytes never change. Wire formats — replay records, the consensus block envelope, finality certificates — are immutable once released: golden tests pin every encoding byte-for-byte, and evolution means new versions, never edits. Even upgrading the consensus library itself is a fixed, gated procedure (survey, migrate, regression ladder, soak) whose first commandment is that the goldens pass unmodified. A dependency bump can break a build; it must never be able to move released bytes.
Reading the weather
Metrics literacy, distilled to the lines that matter — the full alarm table with remedies lives in the operating doc, and it’s the page to bookmark:
- Block staleness vs the idle heartbeat is the liveness signal. And know this before your first quiet night: an idle chain is not a quiet chain — between heartbeats, leaders decline their turns and views nullify about once per leader timeout, forever. View churn on a chain producing nothing is designed idle, not distress.
- Skipped views are a weather report. A crashed leader costs its turns; the chain pays latency, never safety. Elevated-and-regular is normal life.
withholdvsinvalidverdicts — chapter 7’s distinction, now on your dashboard. Withhold means “my node lags” (L1 view, backlogged commits, clock skew) and clears itself with the cause. Invalid on an honest committee is the signature of a state-transition divergence — freeze rollouts first.- Evidence counters are the one alarm that means adversary. Conflicting votes are a signed confession naming the culprit. Even then: safety already held (the budget), and the response is scheduling the member out — calm, at a boundary.
- The certified watermark is the quiet end-to-end gauge: it tracking the tip proves the whole proof trail is being written; a persistent stall means the certificate stream broke, not the chain.
Now practice. The deck below pages you five times — real scenarios, assembled from the alarm table. For each: read the page and the dashboard excerpt, pick what to check first (exploring wrong options costs nothing — that’s the point of a drill), then make the call. Missions:
- Play all five pages. Before each first click, say your check out loud.
- Count how many of the five ended with “restart something” as the right first move. (Spoiler: it’s the answer remarkably rarely.)
- Page 2 is the one to internalize before your first quiet night on call.
- After page 5, notice your own calm: even the adversary case ended in an append to a schedule.
The four things to keep
- Count first. One validator down is a non-event; quorum lost is a pause, not a fork; a stopped node alarms on nothing by itself — the survivors’ view is the truth.
- Restarts are boring by construction: journal replay means crash ≠ equivocation, WAL replay rebuilds the pipeline, the ancestry walk rebuilds speculation, one live certificate heals the proof trail.
- Un-finalizing isn’t dangerous, it’s meaningless — the supported rollback is a mode change back to a single sequencer, honest about its few hundred milliseconds of tail.
- Change = coordination with loud failures: version flips are flag days, committees change by early-deployed appends at epoch boundaries, released bytes are immutable forever.
Where this lives in our stack
- The pager’s companion is docs/src/consensus/operating.md — the alarm table (signal → healthy → alarm → first response), timing numbers worth knowing by heart, the settlement-failover drill, and the flag-day runbook. The triage deck above is that table, shuffled.
- Procedures live in docs/src/consensus/enabling.md: committee schedules and the promotion path, observers, the on-chain registry’s staged rollout, storage retention and floor restarts, idle chains, rolling back, migrating. The startup guards it describes are why misconfiguration fails a process instead of mixing histories.
- Library upgrades have their own discipline — docs/src/consensus/upgrading.md — including the worked example of the first one executed under it.
- The immutability rule is enforced, not aspirational: lib/wire/tests/ golden fixtures (the repo’s contributor docs state the policy: released encodings are never edited, only versioned), and the simulation corpus runs nightly at depth (.github/workflows/nightly-consensus.yml).
- “How we practice being paged” is real: tools/chaos/ — a seeded fault schedule against production containers, with a watcher asserting the properties this guide taught you and a README worth reading in full.
Next: you now know how to operate the machine — but why should N independent operators trust it enough to run it at all? Because with a committee, “we’ll hotfix it” stops being a plan: a chain-halting bug means a coordinated multi-organization deploy, negotiated while the chain is down. The next chapter is how this codebase answers that — six layers of tests, from a smoke check that the library even turns to the chaos rig, a fuzzer for operational reality that practices being paged so you rarely are.