Commit Graph
6 Commits
Author SHA1 Message Date
Lauri Ojansivu 13c8d563ea Lift the sprint card cap: chunked rollover plans and History, daily rows.
A sprint over 10,000 cards was refused at start and close. With the
snapshot rows already outside the sprint document, the rest now is too:

- The rollover plan of a close goes to its own collection,
  scrumRolloverRows, in chunks bounded by rows and bytes; the sprint keeps
  only rolloverPending: true. A chunk is applied, its cards read at once,
  and removed; the mark is cleared when none is left. A plan kept in the
  sprint document before this is still finished as it was.
- A Scrum History batch too large for one row is recorded as several rows
  sharing a batchId, each at most 1,000 records and 3 MB a side. A record
  is in exactly one row, and undo and redo walk the whole batch, with or
  without a request ID, so one undo still reverses a whole close.
- Daily burndown observations keep their rows in scrumSnapshotRows too.
- No 10,000-card limit is left: snapshot inputs, daily capture, scope
  replay, the daily report and the transfer read every card.

Undoing a batch re-hashed its whole History row and sent its whole plan as
a selector before every record write, so a 1,500-card undo took four
minutes. The row is now checked whole when the operation begins and by
its identity fields after that, and the worker check uses the plan's
identity and the worker's random id - nothing ever rewrites a pending
plan. A 10,500-card sprint closes in 8 s and undoes in 44 s.

Thanks to xet7 !
2026-10-03 01:47:19 +03:00
Lauri Ojansivu 16b17c4943 Persist Scrum History completion before checkpoint cleanup
Bind immutable private receipts to the original operation, actor, source hash and checkpoint plan. Reconcile uncertain cleanup from saved completion without rewriting History or deleting successor work. Reject damaged evidence and changed plans.

Cover false and lost acknowledgements, restart replay, finalization corruption and browser privacy with Node, MongoDB, full-app and Chromium tests. Public request identities and cross-document coordination remain unfinished.

Thanks to xet7 !
2026-09-28 23:33:45 +03:00
Lauri Ojansivu 3b7eaedeeb Verify Scrum History checkpoint cleanup from stored state
Read the board checkpoint after conditional deletion. Reject false acknowledgements, unreadable results and successor checkpoints; reconcile a lost reply only after confirmed absence.

Cover cleanup failures and retries in unit and full-app tests, preserving the undo timestamp and one restoration event. Document remaining cross-document and restart coordination limits.

Thanks to xet7.
2026-09-28 22:03:42 +03:00
Lauri Ojansivu eb91a68a5a Bind Scrum recovery ownership to the exact persisted checkpoint plan 2026-09-28 17:02:33 +03:00
Lauri Ojansivu 2bbc13456f Refuse superseded Scrum redo checkpoints before replaying writes 2026-09-28 16:59:05 +03:00
Lauri Ojansivu 0d582c9c0a Verify Scrum undo finalization before removing recovery checkpoints
Check source integrity, conditional write results and persisted undo state. Preserve undo timestamps across retries and delete only the matching operation checkpoint. Test failed writes, damaged final state, replacement checkpoints and recovery in Node and Chromium.

Thanks to xet7 !
2026-09-28 01:07:15 +03:00