A symlink loop at the Tombstone store path crashes sync on Python 3.12 #85
Labels
No labels
boundary:crosses
bug
enhancement
epic
needs-info
needs-triage
ready-for-agent
ready-for-human
svd:go
svd:hold
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
dev/messages-mind-mcp#85
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Found by the #84 Half-A spec (open risk 1), out of its scope.
Problem
A symlink loop at the Tombstone store path crashes
syncon Python 3.12.tombstones.open_tombstonesconnects withpath.resolve().as_uri()(tombstones.py:101). On 3.12,resolve()raisesRuntimeErroron a loop, and theexceptattombstones.py:126does not catch it.path_statuseslstat, so a looped path reaches line 101. The CLI then printssync=error code=internaland the real cause is lost. #84 fixes the same crash for the Mirror path instore.open_writer(create=False).Acceptance criteria
open_tombstonesbuilds its URI withoutresolve()(for examplepath.absolute()), and mapsRuntimeErrorandValueErrorto a coded error.store.tombstone_pathasserts a code (notinternal) on Python 3.12, and a retry in the loop if the code is retried at start.resolve()on a store path for the same gap.Blocked by
store.py,sync.pyand the sync tests)Filed under: #84 architect gate, open risk 1 (operator grant "file tickets", 2026-11-15)