Narrow Surface Area
Fewer than 1,000 lines of consensus-critical code.
Problem
Immutable code is unfixable code. How does the protocol manage that risk?
Solution
Fewer than 1,000 lines. Formally verified. Audited on cadence.
The waterfall is implemented in fewer than 1,000 lines of consensus-critical code. The surface is narrow by design. The implementation is formally verified for the safety properties (priority preservation, no skipped tier, no double-distribution). The audit trail covers every commit to the consensus-critical files. Independent re-audit is on a published cadence.
Discussion
Narrow is the operative word. A system with ten thousand lines of immutable consensus-critical code is wrong before the immutability is wrong. The waterfall does one thing — distribute available collateral in priority order, with verifiable guarantees on tier-respect — and does that thing in a deliberately small contract surface.
The same principle applies in Chapter 6: the regulatory perimeter is narrow by design. The fewer load-bearing surfaces a protocol has, the easier it is to keep them right.
See Also
- § 5.2 · Immutable in Code — the property the narrow surface is built around
- Ch. 6 · The Regulatory Perimeter — the regulatory analog of narrow surface