Commit Graph
7 Commits
Author SHA1 Message Date
Joseph MaglyandClaude Opus 5.5 cdde845a99 Restore original collective limits; size reapers for unchecked intervals
Review r2: "stage budgets + one stalled collective" only holds where a
cooperative deadline is checked. PROBE's DISTILL tail, surgery's
post-EXCISE restoration and VERIFY's rollback run unchecked.

Restore the pre-PR process-group timeouts (VERIFY 4 s; PROBE, surgery and
model 5 s). The observed flake was the 5 s EXCISE stage budget, and the
original collective limits held under the same load. Each reaper is now
checked stage budgets + (collectives outside stage clocks + each unchecked
interval + each stage's longest overshoot interval) x collective timeout +
one stalled collective + exit. Counts are named constants with production
source pointers: model 45 s, PROBE 520 s, surgery 695 s, VERIFY 914 s,
VERIFY rank-exit setup 638 s. The short oracles are unchanged from r2.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-22 20:21:19 -04:00
Joseph MaglyandClaude Opus 5.5 0e63f44532 Restore the short rank-loss oracle and fix the model reaper
Review r1:
- The model gloo ordinary worker runs three sequential gathers, so its
  reaper is now 3 x collective + exit (120 s) instead of 60 s.
- VERIFY rank_exit had inherited the 30 s ordinary collective limit and
  the 240 s reaper, so a hung survivor could still pass. It gets back its
  own 4 s group limit, an 18 s failure reaper that starts after setup,
  and an in-rank assertion that the survivor fails within 12 s of the
  verify_before boundary. A reaper-killed survivor now fails the test.

State the reaper policy at each file's constants: a collective timeout
bounds one stalled wait, so each reaper covers the stage budgets in its
window plus one stalled collective plus cleanup.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-22 20:08:49 -04:00
Joseph MaglyandClaude Opus 5.5 f4bc236351 Give live gloo tests load-tolerant stage budgets
On a contended host (load ~16, nice 10) three live VERIFY tests failed
with LMS_EXCISE_TIMEOUT: the 5 s EXCISE setup budget, which those tests
do not exercise, ran out during spawn, torch import and rendezvous. The
same file passed 71/71 alone.

Name the budgets, raise only the ones that are not under test (ordinary
EXCISE/VERIFY/PROBE stages and collectives), and derive each outer
reaper from the stage budgets it must outlast. Timeout, rank-loss and
hang oracles keep their short limits and unchanged assertions. Healthy
runs do not wait longer.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-22 19:50:15 -04:00
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 5d343f0ad3 fix(distributed): keep EXCISE collectives symmetric and journals owned
- Vote after each rank-local preparation step (clone, direction copy,
  finite projection result) so a local failure cannot desynchronize the
  projection collectives.
- Bind directions to the stored DISTILLED summary digests instead of
  re-hashing the current tensors.
- Clean up a journal whose creation failed after entries were written,
  surface cleanup failures as LMS_EXCISE_STATE_UNCERTAIN, close
  descriptors on rejected opens, and fsync the parent directory on
  journal creation and removal.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-07 18:16:44 -04:00
Joseph MaglyandClaude Opus 5.5 67dda15683 fix(distributed): harden excise failure evidence
(cherry picked from commit 9dcae3a30aac5c74c0eaa567d9682b1aadba3003)

Ported for #244 (part 3/6).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-07 17:35:39 -04:00
Joseph MaglyandClaude Opus 5.5 52e42cc181 feat(distributed): add transactional excise rollback
(cherry picked from commit ba6e1bb45a964dd0980b2e1440debd93cf94da45)

Ported for #244 (part 3/6). Internal-only content from the archived
commit was dropped: .aiwg records and the internal security-docs test.
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>
2026-10-07 17:35:33 -04:00