Snapshot behavior-metadata key sets independently from registered callbacks because Torch combines global and local metadata during invocation. Cover global metadata affecting a local hook and preserve mismatch in exported receipts.
Keep allocation failures terminal through quantized experts, adapter selection, Bayesian evaluation and refinement helpers. Route folded-writer errors and warnings promoted to errors through public cleanup before verification or export.
Exercise exact exception causes, failed-operation counts, rollback, cleanup and no-export behavior across recipe variants. Fixes#389.
Include local and global forward/pre-forward hook callbacks, ordering and behavior flags in reset verification. Retain callback references so identity checks cannot be defeated by equality overrides or object ID reuse.
Add 22 regressions including exported mismatch receipts and unchanged-hook controls. Refs #390.
Qualify all four Qwen scan and convolution fallbacks and reject Hub replacements on every model submodule. Keep unbounded compiled kernels unknown in strict mode and document the remaining source and hardware qualification gaps.
Refs #384
Propagate memory exhaustion through the public cleanup boundary and fail partial projection passes before verification or export. Exercise attention, FFN, SAE and module lookup failures with real tiny-model projections.
Update the rollback CPU-allocation guard to follow the bounded snapshot helper; the old Tensor.to spy failed on unchanged main.
Fixes#389
Search float direction indices across all extracted source layers and include that domain in persisted study identity. Apply informed attention scaling to the warm-start maximum. Penalize the squared harmless activation component removed by the optimized RDO direction so preservation has a gradient. Add behavioral regressions.
Add browser-local spatial activation replay with orbit, zoom, token travel, paused/reduced motion, and model-layer destinations. Render measured signed values faithfully with illustrative depth, and clean up retained-node listeners and detached scenes. Add runtime lifecycle, navigation, payload, and real Gradio regression coverage.
Add a responsive amber control rack, signed activity chart and token map, ordered intervention cards, and measured comparison outputs. Preserve editor selection and one-sided clamp bounds across recipe changes; cover display escaping and callback flows.
Add scoped native MLP channel controls, strict versioned recipes, and isolated Neuron Lab sessions with inspection, ordered editing, comparison, cancellation, and immutable exports. Cover arithmetic, lifecycle, real offline model forwards and Gradio callbacks; document the CPU reference boundary.
Codex r1 on #380: iter(source) only mapped TypeError, so an __iter__
raising OSError, csv.Error or StopIteration (directly or as a PEP 479
RuntimeError) still leaked. Apply the same narrow provider-error and
cause-checked RuntimeError mapping at initialization; normal exhaustion
in next() is unchanged.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Follow-ups from the #379 review:
- A StopIteration raised inside the live discovery generator (for
example from distribution.metadata["Name"]) became a RuntimeError under
PEP 479 and escaped the contract mapping. Only the converted form is
mapped; unrelated RuntimeErrors still surface.
- OSError and other provider errors raised while iterating a caller
supplied distribution source now map to ContractError.
- An OSError from os.close in _regular_file_digest no longer escapes the
finally block raw; a failed close never reports a digest.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
installed_package_set_digest() normalized csv/Key/Type/Unicode errors from a
distribution's metadata, version and METADATA/RECORD reads, but an unreadable
metadata file (OSError, e.g. PermissionError) or a provider whose lookup
exhausts an iterator (StopIteration) escaped the contract instead of
surfacing as LMS_DEPENDENCY_DRIFT. Catch both.
Tests: a provider raising PermissionError/OSError from METADATA/RECORD reads
and StopIteration from .version and .metadata maps to ContractError.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Review r2:
- The exempt checkout egg-info path was fully resolved, so a symlink to
another checkout's or a user-site egg-info resolved to that install and
exempted it. Canonicalize only the checkout root and append
obliteratus.egg-info unresolved; a symlinked egg-info, or one resolving
outside the checkout, raises ContractError.
- A RECORD field over csv.field_size_limit made distribution.files raise
csv.Error outside the normalization. Catch it wherever RECORDs are
parsed, so it maps to LMS_DEPENDENCY_DRIFT.
Tests: a symlinked checkout egg-info pointing at an external install that
is also visible (and one pointing back inside the checkout); an oversized
RECORD field for obliteratus and a third-party distribution, directly and
through both GPU candidate tiers; the site-containment guard on its own.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Review r1: the exemption dropped any obliteratus.egg-info outside the
prefix sites, so a user-site, system-site or other-checkout install could
hide behind an approved digest. Exempt only the canonical
<checkout>/obliteratus.egg-info of the source tree this module runs from
(model_identity.py parents[2]); from an installed wheel that path is
inside a site dir and nothing is exempt. Every other visible obliteratus
distribution fails closed again.
A malformed RECORD made distribution.files raise ValueError outside the
normalization; it is now ContractError, so model_session reports
LMS_DEPENDENCY_DRIFT.
Tests: conflicting external egg-info (dir and file, before and after the
wheel on sys.path), symlinked checkout paths, prefix egg-info from a wheel,
malformed RECORD -> LMS_DEPENDENCY_DRIFT on both GPU candidate tiers, and
PEP 660 / .egg-link editable layouts failing closed.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A non-editable install from a checkout leaves an untracked, gitignored
obliteratus.egg-info in the source root. The llama-tp gate and its TP
workers run with the checkout on sys.path, so importlib.metadata also
discovered that egg-info. installed_package_set_digest() enumerates every
visible distribution, so the stale build artifact broke the live package
identity (LMS_DEPENDENCY_DRIFT) before any hardware evidence was written.
model_identity now locates exactly one .dist-info for obliteratus under
the active prefix's purelib/platlib, requires its RECORD to own the
package that PathFinder finds there, and fails closed otherwise (no
wheel, egg-only, duplicate or disagreeing installs, ownership mismatch).
A setuptools source-tree obliteratus.egg-info outside the site dirs is
excluded from the inventory only after that wheel is found. All other
metadata/RECORD and duplicate checks are unchanged; a clean install keeps
the same digest.
run_conditional_gate.py refuses llama-tp-local-gpu up front (not_run,
exit 2, actionable message) when the checkout root holds an
obliteratus.egg-info, before any probe or GPU time; --allow-missing does
not bypass it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Review of 54f600e (both regressions from r6):
- The direct-chain shortcut returned an ancestor hook from one direct
registration while a hooked container alias disagreed (FP32 -> BF16
flip). Only the projection's own hook still short-circuits; ancestor
hooks require agreement across all indexed paths, including container
aliases, or resolution raises.
- Automatic input-device resolution still enumerated the whole graph
downward and exhausted the budget on an alias-free 48 x 128 expert model,
so resolve_input_execution_device raised before its CPU-storage
fallback. It now uses the budgeted parent index and walks upward from the
target.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Review of 5a4835e: with no manifest global shape, a sharded head fell back
to mutable config.vocab_size, so 16-row shards with config vocab 16 passed
on both ranks. A vocab-sharded head now needs the manifest global row
extent corroborated by the live local weight shape and a complete even
shard layout (local rows x world size, per-rank start/end and rank
shards); config alone never establishes it, and anything else fails closed
with LMS_VERIFY_FORWARD_CONTRACT in baseline and post-edit revalidation.
Docs state the exact rule.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>