Source identities and EXCISE aggregates keep their merged bounded-record
encodings in this PR (tracked in #275 and #281). Correct the export doc and
risk-map descriptions that claimed otherwise.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Brings the ported canonical export up to the rules from parts 3 and 4:
- Every rank-local step that can raise is followed by a unanimous control
vote before the next collective. This covers reconstruction, file I/O,
safetensors write and reload, digests, validation, fault hooks and record
construction. EXPORT votes use [17_000_000, 24_000_000).
- Tensor, file and index aggregates use streamed, domain-separated,
length-prefixed digests (streamed_contract_digest), so every advertised
limit works. Oversized HF indexes are refused before any write.
- One combined, voted host admission covers reconstructed tensors, gather
buffers, serialization and reload copies, chunked digest and finite
checks, metadata and the still-live VERIFY state.
- VERIFIED revalidation uses the guarded #274 helpers and logical roots, and
requires the released journal.
- Cancellation and the deadline are rechecked before promotion and before
return. Files are rehashed at the final gate. Cleanup or confirmation
failure quarantines as LMS_EXPORT_STATE_UNCERTAIN, and strict backup
cleanup never restores a partially deleted backup.
- Single-tensor output uses indexed naming. The HF index payload helper
is shared with checkpoint_writer, with identical output.
- Docs use the upstream #244 framing and are marked EXPERIMENTAL.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit de990f633e151f329ef5e844ed55f60a9a0b247c)
Ported for #244 (part 5/6). Internal-only content from the archived
commit was dropped: .aiwg records and the internal security-docs test.
Doc and policy conflicts keep upstream wording and add only the export
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>