Fixes eight reported defects in the native tensor-parallel path:
- #278 VERIFY admits host memory in a symmetric vote before allocating
and broadcasting baseline input tensors.
- #280 require_record_consensus canonicalizes inside the poison-protected
exchange and compares canonical payloads.
- #282 EXCISE votes on fallible digest preparation before the next
collective.
- #285 preflight, model session, PROBE and EXCISE vote on rank-local
preparation failures before the next collective, including the
evidence-directory preparation that previously allocated before its
all_reduce.
- #275 postcondition and VERIFY digest sets stream the full declared
operation range (up to MAX_EXCISE_OPERATIONS) while preserving
existing identities.
- #281 preflight source identity digests stream inventory records
instead of using one 64 KiB control record.
- #286 the evidence checker requires an integer schema_version and
checkout/source inventories are bounded and streamed.
- #276 standalone operation planning uses bounded chunked finite checks.
Each fix has CPU/Gloo regression tests, including one-rank fault cases.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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>
If the layout gather or record comparison raised, the exception skipped
AgreedTopologyRefusal, and execute_preflight then ran filesystem recovery.
Every layout-admission exception now becomes the terminal
AgreedTopologyRefusal. A local construction failure enters the gather with
an invalid record, so its peer is poisoned in the same exchange. Ordinary
failure evidence still runs only after successful admission. The docs now
place layout admission before lifecycle identity consensus.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The two-host refusal used local config fields, but lifecycle consensus binds
only the stored config digest, which a dataclasses.replace does not
recompute. One rank could refuse while its peer entered staging.
Every rank now gathers a fixed-size record of its actual layout (backend,
device kind, world and local sizes, observed launcher geometry) through the
poison-protected record gather before lifecycle consensus and staging. If
any rank refuses or the records differ, every rank raises the terminal
AgreedTopologyRefusal with no storage side effects. run_preflight,
execute_preflight and the live session share this single admission point.
Regressions cover the stale-digest counterexample, two-host refusal, and
unchanged one-host and CPU success and failure paths.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
execute_preflight caught the agreed two-host refusal as an ordinary failure
and then ran its filesystem recovery: the rank-0 attempt directory,
terminal receipts and shared evidence. On independent host storage that
produced asymmetric CLEANUP_INCOMPLETE and EVIDENCE_UNAVAILABLE outcomes.
A dedicated AgreedTopologyRefusal (LMS_TOPOLOGY_UNSUPPORTED) now passes
through execute_preflight, the CLI and the live model session without
touching attempt, receipt, evidence or cleanup storage. One-host and
CPU-protocol failure handling is unchanged. Tests drive both mocked ranks
through every wrapper, forbid the storage helpers, and keep the one-host
receipt and evidence path as a must-not-regress check.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The archived topology commits predate the merged EXCISE, VERIFY and
EXPORT stages. A cross-stage audit for the one-GPU-per-host layout found:
- Live preflight and LOADED evidence use attempt storage shared by the
ranks (rank-0 directory, nonce file, file receipts). They now refuse the
two-host GPU layout after configuration consensus and before any
staging access (LMS_TOPOLOGY_UNSUPPORTED; the model session reports
LMS_TP_PLAN_UNSUPPORTED).
- Canonical EXPORT assumes one shared destination tree across writer
ranks. It now refuses the layout with a voted
LMS_EXPORT_TOPOLOGY_UNSUPPORTED before any resource or filesystem work.
- PROBE admitted host memory only on rank 0. Each rank now admits its own
working set through the existing unanimous vote.
- The evidence checker reconstructs each attempt's topology from
fixed-size redacted records. EXPORT's attempt hash binds the VERIFY
binding set, and part 5's per-attempt hardware and mount checks are kept.
EXCISE, rank journals, VERIFY and the launcher are code-level compatible
and are covered by new mocked tests. Docs describe the refusals.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit de990f633e151f329ef5e844ed55f60a9a0b247c)
Ported for #244 (part 5/6). Internal-only content from the archived
commit was dropped: .aiwg records and the internal security-docs test.
Doc and policy conflicts keep upstream wording and add only the export
references. The new Gloo test file carries the gloo marker and a
duration entry. Marked experimental in user docs.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(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.