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 !
A sprint's start and close snapshots kept one row per card inside the
sprint document, so a sprint over about 15,000 cards could not be closed.
The rows now go to their own collection, scrumSnapshotRows, in immutable
chunks of 2,000 named by sprint, kind, snapshot time and chunk number, so a
retried start or close, an undo or a redo finds the same rows. The sprint
keeps a header and the report's totals, computed from all rows.
The board data computes each sprint's report on the server and sends only
snapshot headers: from the stored totals, or for an assigned-only reader
from the rows they may see. The scope replay, the transfer export and the
board copy read the rows from wherever they are kept; the transfer import
writes them back as chunks through the import journal. Snapshots stored
inline before this keep working.
Thanks to xet7 !
Scrum History judged "the record has the expected values and revision"
as proof of which record it was. One deleted and recreated under the
same _id - a restore by someone else - passed that test, so a retried
undo could delete a record from another lifetime. Maintainer decision
of 2026-09-30: every Scrum sprint, release and event now carries a
random incarnation per lifetime, set where it is created (the Scrum
methods, a board transfer import's plan, and a Scrum History restore).
A new checkpoint records the incarnation each target has and, for a
record it creates, the one it will have, chosen before writing so a
replay recognizes its own insert; the write-state check refuses any
other lifetime. History content never carries an incarnation, so a
restore always starts a new lifetime, and an update never unsets it.
Checkpoints and records from before incarnations keep working as they
did, and their completion identity is unchanged.
Unit tests cover every state with and without incarnations and the
planned lifetimes; a full-app test creates, undoes and redoes a sprint,
then replaces it with an identical record of another lifetime mid-undo:
the retry refuses and leaves it, where the previous code deleted it.
562 server tests pass.
Thanks to xet7 !
Normal imports enter the recoverable cleaning phase before deleting private plan rows. Propagate cleanup failures and keep the destination guarded until deletion is acknowledged, so offline recovery can finish partial cleanup.
Three Node suites and two Chromium native-import/board-copy scenarios pass. MongoDB tests inject interruptions at every cleanup boundary and resume through the maintenance implementation.
Thanks to xet7 !
Stage private per-document recovery steps before destination writes and retain board-level pending state through marker cleanup. Preserve stable IDs and exact before/after values for interrupted writes. Public coordinated replay and rollback remain unfinished.
Introduce version 2 while accepting version 1 imports. Remap snapshot references, retain measured epochs and partial-data notices, bound transfer sizes, and prevent collectors from observing unfinished imports.
Thanks to xet7 !
Validate before import side effects, allocate destination planning IDs and remap cards, lists, fields, users and snapshots. Preserve source provenance and expose bounded loss reports to board administrators without granting permissions.
Thanks to xet7 !