WFDASH-WEBAPP/docs/superpowers
Dave 62faa390d5 docs(spec,plan): a failed write is compensated, so a retry is safe
The ledger row is written first on purpose, so a crash cannot leave the
audit trail behind the cached total. But when the quantity write then
fails, the ledger sat ahead of the quantity - and the operator was told
to retry, which wrote a second ledger row for the same change and
double-counted it.

A failed quantity write now reverses its own ledger row, so SUM(change_qty)
still reconstructs current_qty and a retry is safe.
2026-11-05 22:36:37 +02:00
..
plans docs(spec,plan): a failed write is compensated, so a retry is safe 2026-11-05 22:36:37 +02:00
smoke-tests
specs docs(spec,plan): a failed write is compensated, so a retry is safe 2026-11-05 22:36:37 +02:00