Files
OBLITERATUS/docs/distributed-excise.md
T
Joseph MaglyandClaude Opus 5.5 5ee711aace fix(distributed): make consensus primitives fail symmetrically
A rank-local preparation failure in gloo_all_gather_records,
require_consensus_digest or unanimous_vote now still joins the same
fixed-shape all_gather with a poison payload; the failing rank re-raises its
own error and every peer raises ContractError, so no rank can leave for a
different collective. The fixed-buffer/identical-bytes boundary is documented
as the process-fault limit handled by the bounded timeout and rank-loss path.

EXCISE now checks cancellation and the deadline after the final operation
before returning COMMITTED, and public rollback's ABORTING/ABORTED lifecycle
emissions are covered by quarantine handling.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-08 11:45:37 -04:00

3.9 KiB

EXPERIMENTAL distributed EXCISE and rollback candidate

The EXPERIMENTAL TP2 stack accepted in issue #244 adds an internal mutation adapter over the exact live Llama BF16 TP2 session and the DISTILLED capability. It is not a supported operator workflow and it cannot publish a checkpoint. A successful call leaves the model in the private MUTATING stage with an active rollback journal. A later VERIFY stage must either verify and accept that state or roll it back; that stage remains future work.

run_live_distributed_excise() accepts only the exact experimental TP2 profile (#244). It re-observes host, staging, and device capacity, binds the configuration, distilled result, logical manifest, operation order, and pristine roots across both ranks, and rejects unsupported storage before mutation. Version 1 admits the bias-free, untied, even-sharded matrix roles declared by that profile: attention input/output and MLP input/output. Quantized, packed, tied, biased, uneven, non-finite, renamed, missing, or unknown storage is refused; those are not enabled options.

For each admitted logical parameter, both ranks:

  1. create an exclusive rank-local safetensors journal in a private directory;
  2. compute a detached placement-aware update using global coefficient, selective-row, norm, regularization, and norm-cap semantics;
  3. vote that the update is finite and agrees with the coordinator's sequenced, digest-bound commit decision;
  4. copy the update only after unanimous preparation; and
  5. prove the resulting logical tensor root before advancing to the next operation.

Column-sharded input projections and row-sharded output projections use the manifest's explicit direction axis, including square matrices where shape alone is ambiguous. No complete model is gathered. The test oracle may reconstruct one tiny logical tensor solely to compare the distributed result with the existing complete-tensor projection contract.

Any cancellation, deadline, collective failure, rank loss, changed input, failed preparation, failed commit, corrupt journal, or postcondition mismatch kills the whole attempt. Both ranks check cancellation and the deadline before each operation and after the final operation, before returning a committed result. If every rank is still alive after mutation begins, the adapter validates all journal entries before copying any of them, restores every pristine shard, proves the global roots, and removes the journals. A failed or uncertain rollback is quarantined and cannot return a usable result. Retry must start from a newly loaded source; journals are not a resume format.

The CPU/Gloo E1 test oracle exercises successful commit and exact rollback, configuration/direction/manifest drift, unsupported ties and layouts, non-finite values, resource denial, cancellation, timeout, rank exit, and injected journal/prepare/commit/rollback/cleanup failures. It checks the enabled norm-preservation, regularization, global selective projection, and norm-cap settings against complete tensors. Existing local and Accelerate paths remain unchanged.

The conditional llama-tp-local-gpu lane now also exercises the exact native CUDA/NCCL transaction, compares all seven selected-layer logical matrices with complete-tensor references, verifies private journals and postconditions, and then proves exact rollback. That lane is currently not_qualified; a skip or unavailable two-GPU runner is noncoverage, not qualification evidence.

This experimental candidate exposes only its live transaction and rollback capability. It does not establish VERIFY acceptance, REBIRTH, publication, a broader adapter, residual-risk acceptance, or a support row. A support claim requires all applicable gates to pass on one signed exact head, including physical multi-host and over-one-host-capacity evidence (E3/E4).