Time, Identity, Membership and Failure

A timeout is evidence, not proof of death. Logical order, process incarnation and fencing let the system act safely even when clocks, networks and failure detectors disagree.

Section 2 of 9 · 12 units · about 50 hours

0/12

By the end you can Given a fault history, classify known, concurrent and unknowable order, demonstrate membership convergence with measured false-suspicion trade-offs, and prove that a stale actor cannot commit after authority moves.

Units

Build it

Mini project · about 14 to 20 hours

Restart-safe clocks, membership and fenced authority

Extend loglab with clocks, durable actor identities, heartbeat detectors, gossip membership and a fenced lease service. Replay deterministic schedules on your machine before any timing run, keeping membership convergence separate from exclusive authority and naming the assumptions needed for progress.

  1. 1Add injectable wall and monotonic clocks in clock/, with skew, drift, jumps and uncertainty intervals. Check Lamport stamps, vector comparisons and per-key dotted versions against an independently constructed happens-before graph and causal event sets; retain concurrency, context-subsumption and member-replacement fixtures.
  2. 2Implement HLC updates and restart-safe IDs with durable clock pairs and identity epochs. Check HLC transitions against the paper's Figure 5 and IDs against a set oracle across restart and dual-incarnation schedules; retain bound-violation alerts and separate Gossip Glomers Unique ID Generation results.
  3. 3Build configurable fixed-threshold and accrual detectors in member/. Replay recorded arrivals under delay, observer and peer pauses, overload, burst loss and partitions; compare suspicion decisions with independent distribution calculations, defining startup and deviation floors, and retain seeds and ground-truth liveness labels.
  4. 4Implement bounded gossip dissemination using net/. Check fixed schedules against a set-union convergence oracle, then pass Gossip Glomers Broadcast through its partition challenge under Maelstrom; retain run directories and explain duplicate contacts relative to the no-repeat rumor-growth model without claiming ordering or durability.
  5. 5Add versioned membership views with join, leave and fresh-identity replacement. Compare reordered Suspect, Alive and Confirm transitions with an independent original-SWIM transition table; retain stale-view and incarnation tests, terminal-report handling and seeds, explicitly separating gossip views from authority configurations.
  6. 6Implement lease acquire, renew and release with owner-token checks and durable resource-side fencing. Against a sequential grant model, test expiry, pauses, delayed renewal, partitions and restart; retain stale writes before and after token installation, the activation boundary and a fixed-configuration majority-authority fixture.
  7. 7Extend campaigns with asymmetric reachability, correlated failures, clock jumps, split-brain attempts and healing; assert fencing after every transition and retain identical replays plus a minimized failure. After correctness gates, compare detector delay against false suspicion across thresholds and windows; report repeated gossip-convergence and traffic measurements.
What you hand in
  • The clock/ and member/ components, deterministic timer integration, restart-safe identity contract and resource-side fencing boundary.
  • Causal and transition oracles, replayable fault histories, public-suite results and a minimized regression with seeds and explicit schedules.
  • Detector trade-off curves and gossip cost report from retained traces, separating simulated progress from process timings and authority guarantees.
How to check it
  • Self-grade with the rubric below
  • Gossip Glomers 2: Unique ID Generation

    Keep Maelstrom results separately; your restart and dual-incarnation tests establish guarantees this network-only challenge does not check.

  • Gossip Glomers 3a to 3c: Broadcast

    Run the single-node, multi-node and partition challenges; retain raw histories without treating their convergence checks as ordering or membership-authority tests.

How it's graded

Causality and identity

Pass: Own graph and event-set oracles validate clocks, concurrency and dotted-context replacement. Figure 5 checks validate HLC cases; restart and dual-incarnation tests catch reused identities independently of Maelstrom.

Great: Planted clock-state loss and dot-subsumption defects fail before repair; out-of-envelope resets explicitly delimit the normal causality guarantee.

Detector evidence

Pass: Own fixed-trace decisions match independent distribution calculations. Curves count live-peer false-suspicion episodes and crash-to-suspicion delay separately, with consistent warmup and retained seeds, versions and arrival traces.

Great: Repeated matched comparisons retain a model-mismatch regime; observer-pause guards are tested without claiming they detect remote pauses or prove death.

Membership and authority

Pass: Own transition-table tests cover stale reports and replacement; set-union checks establish convergence under stated delivery assumptions. Sequential grant checks and durable resource fences reject backward tokens after activation despite incorrect suspicion.

Great: A planted stale-view or fence-persistence defect yields a minimized regression; traces explain why a pre-installation stale write is not retroactively fenced.

Determinism and scope

Pass: Own replay diffs are empty for retained schedules; per-transition safety checks precede repeated timing runs with versions and workloads. Reports separate simulated ticks, process measurements, bounded non-progress and conditional convergence.

Great: The minimized counterexample preserves the violated predicate and environmental assumptions; correlated and asymmetric faults expose a gap missed by independent-node campaigns.

Resources