Repository navigation
Spec 12 Commitment
Source: spec/12-commitment.md at commit a9f0d61. The file is the source of truth; this page is a summary.
Status: draft 0.3 (2026-11-16), normative. 01 §14.19 B binds here, and this chapter is its full statement.
Draft 0.2 described a client-visible fill, a durable execution, a final execution and a settled trade in four places, with different words. This chapter is now the one place that says, for each stage, what can still undo an execution, what evidence authorizes it, and who bears the loss. An execution moves through EXECUTED → DURABLE → FINAL → SETTLED. Only two mechanisms can undo it: a revert or a CHAIN bust. Both end at FINAL.
- Four stages in one order. No API merges two stages (§0 item 1, §1).
- Two undo mechanisms. A revert means the final log does not contain the execution. A bust (CHAIN only) keeps the execution in the log, and compensating transfers reverse it. Nothing else can undo an execution (§0 item 2).
-
Fate is fixed at
FINAL. A revert is impossible after it. A bust can still execute after it, but only on a verdict that was final no later than the execution (§0 item 3, §3). -
SETTLEDnever undoes anything. A settlement failure is a custody incident under 09, not aBust(§0 item 4). -
Two independent faults are needed to undo an
EXECUTEDrecord, with one named exception: revert case (c), an in-box power loss inside a ≤ 100 ns window (§0 item 5, §2). - 07 §9.6 is the exhaustive list of revert causes, cases (a)–(e). §2 gives the evidence and the cost for each one. Cases (a)–(c) are void with no compensation. In case (d) the withholding session keeps its losses. In case (e) the sequencer operator is slashed (CHAIN) (§2).
-
Notification. Every reverted execution gets a
DC_REVERTand anMD_TRADE_BUSTbefore theDC_FINALthat covers its step (§2). -
Busts. The only cause is a packet that failed
tag_com. The busted session's bond pays first, then the insurance fund. Second-order effects stand (§3). - What a client may rely on at each stage, in one table. VYRN publishes this table and never a shorter claim (§4).
The rates are budgets taken from 07 §9.6. None is measured.
| Item | Value | § | Kind |
|---|---|---|---|
EXECUTED |
≤ LAT_MAX_NS
|
§1 | budget |
DURABLE |
~0.6 ms | §1 | budget |
FINAL |
≤ FINALITY_MAX_MS
|
§1 | budget |
| Revert (a) rate | ≈ 2 × 10⁻¹⁴ events/yr | §2 | budget |
| Revert (b) rate | ≈ 0.19 fills/yr at average load | §2 | budget |
| Revert (c) rate / window | ≈ 2 × 10⁻⁴ /yr, ≤ 100 ns per response | §2 | budget |
Bust record after the bad packet is sent |
≤ 9.16 ms | §3 | from 09 §5.9 (budget) |
CMT_STAGES |
4 | Local definitions | definition |
-
- Decisions in one table
-
- The four stages
-
- Reverts
-
- Busts (CHAIN only)
-
- What a client may rely on, stage by stage
-
- Benchmarks and tests owned here
- Interfaces to other chapters
- Local definitions
- Requests to 01
- Open questions
- §14.19 B is the binding source, and the chapter follows it: void reverts (item 4), who pays for a bust (item 5), and the case (c) exception (item 6).
-
§14.13 item 3 sets the order of the separate attestations. It defines durability as "held by ≥ F + 1 replicas", while §1 uses 07's
DUR_QUORUMof Q voters. The chapter's Request to 01 asks 01 to pick one.
No crate yet; the rulings bind through 01 §14.19.
The chapter lists 2 open questions. See Open Questions.
Overview
Working on VYRN
Spec
- 00 Index
- 01 Conventions
- 02 Requirements
- 03 Architecture
- 04 Protocol
- 05 Engine
- 06 Platform
- 07 Replication
- 08 Epochs
- 09 Chain
- 10 Accounts, Risk, MD
- 11 Build
- 12 Commitment
- 13 Availability
- 14 Envelope
Engine crates
Other crates
- vyrn-nic
- vyrn-log
- vyrn-data
- vyrn-consensus
- vyrn-replica
- vyrn-epoch
- vyrn-chain
- vyrn-md
- vyrn-sim
- vyrn-bench
Binaries
- vyrn-seq (stub)
- vyrn-validator (stub)
- vyrn-admin
Outside Rust
Reflects main at a9f0d61.