Commit Graph
9 Commits
Author SHA1 Message Date
Joseph MaglyandClaude Opus 5.5 8dd6add995 fix(distributed): TP2 hardening before two-GPU qualification
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>
2026-10-18 20:53:20 -04:00
Joseph MaglyandClaude Opus 5.5 a258c16cd1 fix(distributed): keep failed layout admission storage-free
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>
2026-10-08 20:14:25 -04:00
Joseph MaglyandClaude Opus 5.5 6a9f7dba1d fix(distributed): vote on the actual staging layout before preflight
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>
2026-10-08 19:50:14 -04:00
Joseph MaglyandClaude Opus 5.5 f26530c22c fix(distributed): make the two-host preflight refusal terminal on every path
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>
2026-10-08 19:16:59 -04:00
Joseph MaglyandClaude Opus 5.5 4eb1a4cd4b fix(distributed): refuse live two-host stages that need shared storage
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>
2026-10-08 18:51:24 -04:00
Joseph MaglyandClaude Opus 5.5 0492ebaa35 feat(distributed): admit closed two-host TP2 topology
(cherry picked from commit 37f407850916ebe76575d73112c4d26fe08bf421)

Ported for #244 (part 6/6). Internal-only content from the archived
commit was dropped: .aiwg records and the internal security-docs test.
Doc and test conflicts keep upstream wording and add only the topology
references; internal tracker numbers were replaced with upstream framing.
Marked experimental in user docs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-08 18:22:31 -04:00
Joseph MaglyandClaude Opus 5.5 1b936c1dfc feat(distributed): add deterministic probe distill stages
(cherry picked from commit f9a289e267889c297cefcdc67eea92c4b8eb8d4d)

Ported for #244 (part 2/6). Internal-only content from the archived
commit was dropped: .aiwg records and the internal security-docs test.
Marked experimental in user docs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-07 14:00:29 -04:00
Joseph MaglyandClaude Opus 5.5 52c906b4a3 fix(distributed): fail evidence setup symmetrically and close API allowlist
Rank 0 evidence-directory creation now feeds a collective vote so a
mkdir failure fails every rank promptly instead of leaving the peer
blocked in a barrier. The public API fingerprint helper accepts only the
reviewed critical-module allowlist. Declare the TP runner labels for
actionlint.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-07 11:57:56 -04:00
Joseph MaglyandClaude Opus 5.5 8066e59c73 feat(distributed): add exact Llama native TP loader
(cherry picked from commit 4caf45b04a8faa55f191b22c069f58714236689b)

Ported for #244 (part 1/6). Internal-only content from the archived
commit was dropped: .aiwg records, internal runner-policy routing, and the
internal security-docs test. Marked experimental in user docs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-07 11:23:27 -04:00