Remote / An event-sourced domain behind Remote

One reservation, all the way round

pnpm --filter foldkit-example-writes-domain loop runs this model in memory and prints who held what (test/loop.test.ts pins it):

2. ada reserves 3: the page predicts before anything is sent
  page     shows {"reserved":5,"revision":1}; the write is pending
3. the adapter sends the command; the aggregate decides and records an Event
  domain   {"_tag":"StockReserved","quantity":3,"reservedAfter":5,"revisionAfter":2}
  page     shows {"reserved":5,"revision":2}; the write is applied
  remote   holds the row to the receipt "Product/p1@2"
4. a read while the View is behind keeps the row, and names it behind
  adapter  answers behind ["Product:p1"]
  page     shows {"reserved":5,"revision":2}
5. the View catches up: a read at the receipt answers, and the hold ends
  page     shows {"reserved":5,"revision":2}
  remote   holds 0 rows to a receipt