Skip to content

fix(workspace): citizen sync resolves all staged conflicts shared-wins (modify/delete included) - #2142

Merged
joelteply merged 1 commit into
canaryfrom
fix/citizen-sync-shared-wins-all
Aug 3, 2026
Merged

joelteply merged 1 commit into
canaryfrom
fix/citizen-sync-shared-wins-all

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

Round 2: the #2135 debris sweep created modify/delete conflicts (shared deleted files the personas' autosaves had modified) which -X theirs never auto-resolves — the sync failed forever on exactly the files it was built to clear. The gitlink salvager generalizes to shared-wins for every staged conflict; persona versions survive in autosave history. 12/12 tests incl. both regressions.

🤖 Generated with Claude Code

https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

…s — modify/delete included (#49 tail, round 2)

Round 2 of the stranded-sync glass box: the #2135 debris sweep DELETED
conway/wordstats from shared while every citizen's autosave had modified them —
'-X theirs' never auto-resolves modify/delete, so the sync now failed forever on
the very files it was meant to clear (verified live post-deploy 18:17).

Generalize the gitlink-only salvager to resolve EVERY staged conflict
shared-wins: theirs-stage present -> adopt shared's version (files and gitlinks
via checkout FETCH_HEAD); theirs-stage absent -> shared deleted it, deletion
wins the tree. The persona's versions survive in her autosave history —
preserve-first is the commit, not the tree. Merge-failed-without-staging still
aborts loud. Probe renamed workspace.sync.conflicts_resolved. New regression
pins the modify/delete shape incl. history-preservation.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
@joelteply
joelteply enabled auto-merge (squash) August 3, 2026 18:20
@joelteply
joelteply merged commit d1f74c4 into canary Aug 3, 2026
1 check passed
@joelteply
joelteply deleted the fix/citizen-sync-shared-wins-all branch August 3, 2026 18:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant