Skip to content

Spec 12 Commitment

Amp edited this page Nov 18, 2026 · 1 revision

Spec 12: Execution 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.

What the chapter decides

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.

Key decisions

  • 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).
  • SETTLED never undoes anything. A settlement failure is a custody incident under 09, not a Bust (§0 item 4).
  • Two independent faults are needed to undo an EXECUTED record, 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_REVERT and an MD_TRADE_BUST before the DC_FINAL that 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).

Key numbers

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

Section map

    1. Decisions in one table
    1. The four stages
    1. Reverts
    1. Busts (CHAIN only)
    1. What a client may rely on, stage by stage
    1. Benchmarks and tests owned here
  • Interfaces to other chapters
  • Local definitions
  • Requests to 01
  • Open questions

Where 01 §14 overrides or refines this chapter

  • §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_QUORUM of Q voters. The chapter's Request to 01 asks 01 to pick one.

Implemented by

No crate yet; the rulings bind through 01 §14.19.

Open questions

The chapter lists 2 open questions. See Open Questions.

Clone this wiki locally