Unit 15 of 15 · about 5 hours · measure

Raw histories, evidence labels, an independent reproduction package and a skeptical defense

The checkpoint asks for claims labeled by evidence level and reproducible by someone else. This unit turns a pile of runs into a defense that survives expert review.

You'll be able to

  • Label every claim proved, model-checked within bounds, simulated, locally measured or inferred, with the bound or setup attached.
  • Assemble an independent reproduction package: raw histories, environment manifest, seeds, configs and check commands.
  • Defend the architecture and the invariant against simpler alternatives, comparing at least three architectures quantitatively under workload, failure, consistency, cost and evolution constraints.

Covers

Raw histories and immutable environment manifestProved, model-checked, simulated and measured labelsIndependent reproduction packageSkeptical architecture and invariant defense
1

Read

In this order, only the parts listed

0 of 4 done

  1. How Amazon Web Services Uses Formal Methods: effort framingHow Amazon Web Services Uses Formal Methods (Newcombe et al., 2015)

    Effort framing for the defense: model sizes beside bugs found as anecdotes, and the design-tool (not post-hoc proof) framing for why the spec exists

    Anecdotes, not benchmarks. Cite them to explain why industry models designs, never to predict your own effort or bug count.

  2. Chapter 13: Trust, but Verify, revisitedDDIA 2e - Chapters 9, 10 and 14 Review

    Printed p. 575: state which assumption each claim needs and what a violation would look like in practice

    One page only. Each label in your defense inherits one assumption from this page's system-model discussion.

  3. Replicated Log and Stream Processor: defense questions and rubricReplicated Log and Stream Processor - Final Capstone

    Design-defense questions (linearization point, losable acknowledged writes, quorum and term safety, effectively-once scope, liveness-only timing, ML-data mapping) and the rubric's reproducibility criterion

  4. MIT 6.5840 final project: the write-up shapeMIT 6.5840 - Verification Lecture and Final Project

    The document rule (about 3 pages: problem solved, design, implementation) as the shape of the defense document

2

Focus on

  • Labels are exact: proved (theorem, assumptions and proof, and whether it is mechanized), model-checked within named bounds, simulated under a named scheduler and faults, locally measured with setup and uncertainty, or inferred from named evidence.
  • Raw histories outlive summaries. Keep message, state, WAL and processor traces plus the environment manifest; a plot without its trace is not reproducible.
  • The reproduction package runs without you: pinned versions, one command per claim, expected verdicts (not expected numbers) for exact checks.
  • The defense answers why-not-simpler for every mechanism. Each ablated alternative from the previous unit is the simpler design you already measured against.
Common mistakes · 3
  • Labeling a TLC run proved. Model-checked within bounds is the label; the bound travels with it.
  • Shipping the plots without the traces. Summaries illustrate; only raw histories plus manifest plus seeds reproduce.
  • Defending against imaginary alternatives. The alternatives are the ablations you ran; cite their measured losses.
3

Try it yourself

Closed-book, before checking anything

Closed-book, label six capstone claims (one per design-defense question) with evidence levels plus bounds or setups, and list the reproduction package contents that back each label.
4

Quiz yourself

Answer first, then mark it. Missed ones go to Review.

0 got · 0 missed

  1. 1.What are the five evidence labels, and what travels with each?Answer

    Proved (the theorem, its assumptions and the proof, mechanized or not), model-checked (the bound: managers, values, queues, state count), simulated (scheduler, fault set, seeds), measured (machine class, versions, workload, concurrency, runs, spread), inferred (the claims it reasons from).

  2. 2.What makes a reproduction package independent?Answer

    Pinned versions, raw histories, environment manifest, seeds and one command per claim with expected verdicts, runnable without the author present.

  3. 3.Under your acknowledgment contract, which acknowledged writes can still be lost?Answer

    Answer from the contract and the fault model: for example, writes acknowledged when locally durable but not yet replicated are lost if that storage is permanently lost first. A write below the required threshold should not have been acknowledged at all.

  4. 4.A reviewer proposes dropping your mechanism for the simpler baseline. How do you answer?Answer

    With the ablation that already compared them: the measured difference, the regions where each wins, and the preserved negative if the mechanism loses somewhere.

You're done when

Every capstone claim carries a label with its bound or setup, the package reproduces each exact verdict on a second checkout, three architectures are compared quantitatively, and each mechanism has a measured why-not-simpler answer.

Only when you can do this without notes.

Leads to

Notes

Resources · 4 for this unit, 11 more in the section
  • MIT 6.5840 - Verification Lecture and Final ProjectMIT PDOS · required

    Study the Spring 2026 verification lecture and IronFleet reading, then use the final-project guidance to frame a bounded real-system extension, evaluation and report. Course grading and staff review are unavailable to self-study, so use the roadmap defense rubric.

  • How Amazon Web Services Uses Formal Methods (Newcombe et al., 2015)Amazon Science · support

    Read it for why industrial teams specify designs in TLA+ and which bugs model checking found that testing missed. Its effort figures are anecdotes, not benchmarks.

  • DDIA 2e - Chapters 9, 10 and 14 ReviewMartin Kleppmann and Chris Riccomini · required

    Revisit uncertainty, consistency, consensus and responsible system design while extracting the final contract. Use the book to challenge assumptions and alternatives, not to replace executable evidence.

  • Replicated Log and Stream Processor - Final CapstoneRoadmap-Final · support

    Finish the protocol and invariant specification, deterministic fault campaign, bounded real-code extension, fallback, ablations, workload regions, negative result, operations dossier and independent reproduction package.

Also in this section

  • TLA+ Video CourseLeslie Lamport · primary

    Complete lectures 1 to 10 (lectures 8, 9 and 10 have two parts each) and check the corrections page, while specifying a reduced transaction, workflow or replicated-log model from the capstone. Run TLC after every extension, report the model bounds with every result, and retain the first meaningful counterexample rather than polishing only the final model.

  • TLA+ ExamplesTLA+ Foundation · support

    Check specifications/transaction_commit/ (TCommit.tla, TwoPhase.tla, PaxosCommit.tla with their .cfg files) with TLC alongside the lectures, and read the Paxos specifications for depth. specifications/TwoPhase/ is a hardware handshake, not transaction commit.

  • Cambridge Concurrent and Distributed Systems Notes (Kleppmann) - CRDTs and CollaborationUniversity of Cambridge (Martin Kleppmann) · support

    Use Section 8.1 (operation-based and state-based CRDTs, operational transformation) for the CRDT unit, and work Exercise 21 (prove the operation-based map CRDT converges) and Exercise 22 (its multi-value variant).

  • A Comprehensive Study of Convergent and Commutative Replicated Data Types (Shapiro et al., 2011)INRIA report (Berkeley course copy) · support

    Read Sections 1 to 3 (state-based and operation-based definitions, the semilattice and delivery conditions) and one example type for your implementation, not the whole catalog.

  • Learn TLA+Hillel Wayne · support

    Use the core lessons and the examples as a second explanation when a lecture stalls, and as the PlusCal reference if you write algorithms rather than raw actions.

  • Hypothesis - Stateful TestingHypothesis · required

    Use RuleBasedStateMachine against a reference model for property-based state-machine tests of your extension, keep the failing seeds and shrunk examples, and plant a bug to show the machine detects it.

  • Jepsen - Consistency Models and AnalysesJepsen · required

    Use the framework's generator, client, nemesis and checker roles to design the campaign, Knossos for single-register linearizability and Elle for transactional anomalies on recorded histories, and the public analyses for fault models. A simplified local checker must declare its object, model and completeness limits.

  • Elle: Inferring Isolation Anomalies from Experimental Observations (Kingsbury and Alvaro)arXiv · required

    Read how Elle infers version orders from list-append and register histories and detects cycles for G0 to G2. It needs complete histories, and a clean run is not a proof of serializability.

  • FoundationDB: A Distributed Unbundled Transactional Key Value Store (Zhou et al., 2021)FoundationDB · support

    Read the simulation-testing section (deterministic single-threaded simulation, fault injection, seed replay) as the model for your own scheduler, and the architecture for unbundled transactions.

  • HLD Handbook - CRDTs, Multi-Region and Architecture Trade-offsHLD Handbook · support

    Read the CRDT, multi-region, distributed SQL and relevant case-study chapters only after the formal core passes. Use its design prompts to prepare the final comparison and defense.

  • CMU 15-721 - Selected Advanced Database Systems UnitsCarnegie Mellon Database Group · depth

    Select at most one lecture group that informs your extension: #02 and #03 (data formats and encoding), #08 (scheduling and coordination) or #17 to #22 (system analyses such as BigQuery, Databricks, Snowflake, DuckDB and Redshift), with their papers. The course project needs a group, cloud credits and staff sign-off, so there is no runnable self-study project.