Files
OBLITERATUS/docs/distributed-excise.md
Joseph MaglyandClaude Opus 5.5 2ef2a76792 feat(distributed): verify collective edits fail closed
(cherry picked from commit 2fbc38cd512f1130b4931ba5a7ffaf2e666d3008)

Ported for #244 (part 4/6). Internal-only content from the archived
commit was dropped: .aiwg records and the internal security-docs test.
Doc conflicts keep upstream wording and add only the VERIFY 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>
2026-10-08 11:53:55 -04:00

71 lines
4.1 KiB
Markdown

# EXPERIMENTAL distributed EXCISE and rollback candidate
The **EXPERIMENTAL** TP2 stack accepted in
[issue #244](https://github.com/elder-plinius/OBLITERATUS/issues/244) adds an
internal mutation adapter over the exact live Llama BF16 TP2
[session](distributed-model-load.md) and the
[`DISTILLED` capability](distributed-probe-distill.md). 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. The
**EXPERIMENTAL** [VERIFY adapter](distributed-verification.md) must either
accept that state after unanimous bounded quality evidence or prove journal
rollback.
`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 starts through a complete new preflight and immutable-source load with
fresh run, rendezvous, and staging identities; 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 to the VERIFY adapter. A successful VERIFY result remains private
and does not authorize 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).