fw-09 step 02 — Build every race deliberately

Tasks

  1. Out-of-order responses. A then B for the same key; A resolves last. Show A's data winning. Fix with a dispatch-time sequence number.
  2. Prove timestamps insufficient. Construct the four-timestamp case and explain why arrival, client clock, and server time all fail.
  3. Dedup + cancellation. Three subscribers share one request; one unsubscribes. Does the request abort? Decide, and justify.
  4. Refetch storm. Window focus triggers 50 simultaneous refetches. Measure; then bound it.
  5. GC race. An entry collected while a component is mid-mount.
  6. Cross-tab. Two tabs, same key, one mutates.

Done when

  • All six races reproduced deterministically
  • Sequence-number fix implemented, with the timestamp argument written out