Commit Graph
4 Commits
Author SHA1 Message Date
Joseph Magly 086f6368aa test: set explicit permissions for unsafe evidence fixtures 2026-10-29 10:01:54 -04:00
Joseph MaglyandClaude Opus 5.5 37c2631916 fix(distributed): wait out unsettled preflight record publication (#305)
Private records are published by linking a fully written temporary file to
the target name and then unlinking the temporary name. A peer polling for
terminal evidence (or the coordinator polling receipts/acknowledgements)
can open the target inside that window, see st_nlink == 2, and get a raw
ContractError. _wait_for_evidence only retried FileNotFoundError, so the
non-coordinator rank escaped execute_preflight with an uncoded error (CI
saw {'LMS_RESOURCE_ADMISSION_DENIED', None}); on the success path the same
race made one rank fail while the coordinator published "preflighted".

Readers now raise PrivateRecordPending (a ContractError) for an extra link,
bounded pollers retry it like an absent record until their deadline, and
_wait_for_evidence converts any other read failure to the stable
LMS_EVIDENCE_UNAVAILABLE code so no rank leaves without a code.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 16:43:16 -04:00
Joseph Magly 79b8ffd46f test: add boundary coverage from the archived 0.2.0 candidate
(cherry picked from commit 261d65333d29e1f78e530e74ac091547832c46d0)

Adapted for upstream: omitted the 0.1.3 -> 0.2.0 version bumps in
obliteratus/__init__.py, pyproject.toml, and the uv.lock version line;
this commit keeps test additions only (subject renamed accordingly). The
test_checkpoint_inspection.py tweak is kept as a test addition: it reads
__version__ dynamically so it passes at 0.1.3. No added test failed on
upstream (474 passed across the ten touched files), so nothing was
dropped.
2026-10-05 18:08:18 -04:00
Joseph Magly 985c9e9363 feat: add safe distributed checkpoint intake and preflight 2026-09-04 19:43:53 -04:00