Skip to content

[claude] Make fw-headless sync commit the CRDT and its merge base atomically #2512

Description

@myieye

[Claude, autonomous]

Placeholder. The real write-up is on branch atomic-fw-headless-sync:

In one paragraph: a sync that dies part way through leaves the CRDT advanced and {project}_snapshot.json (the merge base) untouched. The next sync re-applies work already done, and its second pass — a plain state push with no authorship input — writes the leftovers into fwdata over the top of FieldWorks users' edits. The branch runs the CRDT side of a sync against a staged copy of the database and moves the staged database and its merge base into place as one journalled step, so an interrupted sync costs time and nothing else. The merge base also records which CRDT commit it was read from, so staleness becomes a checkable claim.

The branch is one commit for now; it is meant to be split before review.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions