6 Commits
Author SHA1 Message Date
Joseph Magly f8de9e3888 Merge main 11c7137 into fix/612-613-checkpoint-snapshot 2026-11-24 18:04:11 -05:00
Joseph Magly fa719ec885 docs(checkpoints): avoid a backticked project name the docs checker runs as a CLI example
scripts/check_checkpoint_docs.py treats inline code that starts with the
project name as a CLI example and parses it, so the runbook wording added for
#626 failed test_checkpoint_documentation_contract_passes_offline.
2026-11-24 15:52:06 -05:00
Joseph Magly 3cdc3ce065 fix(checkpoints): stop naming the quarantined PyPI project in install hints
The checkpoint adapter reason rendered `install_extra=obliteratus[<extras>]==<version>`,
and the refusal-recovery pilot printed `install obliteratus[recovery]`. pip
resolves both against an index, where the `obliteratus` project is
quarantined with no installable files. The reason keeps its `install_extra=`
key with bare extra names and adds `install_hint` (source checkout
`uv sync --locked --extra ...`) and `project_version`, within the schema's
2048-character limit. The pilot gives the same source-checkout guidance.

Fixes #626
2026-11-24 15:33:00 -05:00
Joseph Magly d92f8b9804 fix(checkpoint): fail closed on duplicate DCP and DeepSpeed shard basenames
The DCP (.metadata, *.distcp) and DeepSpeed zero-rank detectors scanned
every inventoried file instead of the duplicate-checked name map, so after
the #612 change two sibling DCP sets (or duplicated zero_pp_rank_* files)
merged into one component instead of failing closed as before. Detectors now
select from the name map through shared basename predicates, and a guard test
fails if any detector consumes a basename the duplicate check does not cover.
2026-11-24 15:30:44 -05:00
Joseph Magly 5d534fbb71 fix(checkpoint,snapshot): scope basename ambiguity to components; restore expanded buffers
Checkpoint inspection now fails on a repeated basename only for names the
format probes resolve (weights, shards, indexes, adapter/model config,
producer metadata); other files are inventoried by relative path.

Snapshot restore writes expanded (stride-0) resident buffers through a
non-overlapping view, keeping layout and identity. Values that vary along an
expanded axis are rejected before any write, and other internally
overlapping layouts are refused at snapshot creation.

Fixes #612
Fixes #613
2026-11-24 14:43:22 -05:00
Joseph Magly 985c9e9363 feat: add safe distributed checkpoint intake and preflight 2026-09-04 19:43:53 -04:00