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>
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>
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>
Native TP load set ParameterManifestEntry.local_value_digest and
replicated_value_digest with model._tensor_digest (sha256 of raw bytes),
while EXCISE (_build_operation_plan) and VERIFY (_logical_state_roots with
require_manifest_values) compare probe_contracts.tensor_digest (dtype +
shape + bytes). The pristine-digest check could therefore never pass on
the native TP path: both ranks of llama-tp-local-gpu on 2x A100 failed
EXCISE with "mutable parameter storage or pristine digest changed".
Load now uses probe_contracts.tensor_digest and the raw-bytes helper is
deleted; hashing failures keep LMS_RUNTIME_PROFILE_MISMATCH. A CPU
contract test builds the manifest through the real load-validation path
and feeds it to the real EXCISE admission and VERIFY value checks
(accept unchanged, reject one-element mutation), plus BF16/FP32 digest
identity.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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>
Mark the multi-process Gloo test files with a new gloo marker. pr-core
keeps the same risk-map selection but runs the gloo and non-gloo parts
in two concurrent pytest processes with separate coverage data, JUnit
files, logs and temp roots. Each exit status is collected per PID; an
empty side (exit 5) is allowed unless both are empty. Coverage is
combined before the unchanged changed-line check.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(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>
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>
(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>