NEC-314: A canvas kept a conflict copy no edit caused: two vaults rewrote 36 order keys at once #313
No reviewers
Labels
No labels
area:docs
area:identity
area:ops
area:plugin
area:server
channel:community
channel:direct
channel:owned
channel:press
channel:social
e2ee-constrained
gate:at-ga
gate:pre-ga
marketing
parity
relay:absent
relay:planned
relay:requested
relay:supported
risk:additive
risk:contract
risk:none
usability
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
Nectenda/nectenda!313
Loading…
Reference in a new issue
No description provided.
Delete branch "worktree-nec-314-a-canvas-kept-a-conflict-copy-no-edit-ca"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Task: NEC-314 — https://projectron.nerchure.com/tasks/334
When two vaults captured a canvas at once, an order write gave new stacking keys to every card outside the longest run that kept its base order, even where the document's keys already gave the value's order. The colliding writes made SAFE-A14 keep a conflict copy nobody's edit caused (canvas hardness seed 1584194348). applyOrder now keeps any key that already sits where the value has it (new rule SAFE-A49), and an apply that rewrites more than three existing keys logs the value, base and document order by id. The replay's log showed the remaining rewrites come from Obsidian's own stacking arriving as the edit's value, which SAFE-A49 cannot stop. That follows up as NEC-324, so this is a partial mitigation; sync-limitations.md says so. Canvas hardness hour passed (seed 1203436989, 60 min, 255 rounds, B on Obsidian 1.13.7). Rides along NEC-327: a markdown-links e2e test now waits for both links before reading them.
Spec:
docs/changes/NEC-314-order-keys-rewritten/spec.mdAlso fixes NEC-327: markdown-links e2e reads the reading view's links before Obsidian has drawn them
Changelog
A canvas edited in two vaults at once no longer rewrites the stacking of cards that were already in the right order, so fewer conflict copies appear when nobody made a conflicting edit.
950b8d05a4846b7d7c18