Phase admission gives a conservative estimated workspace for the exact FLA 0.5.2 chunk scan and causal-conv1d 1.7.0 forwards that Transformers selects for Qwen3-Next/3.5/3.8 hybrid models, after verifying package versions, wrapper chains back to the module's own file and FLA's alternative backends without importing anything. The estimate counts every inventoried kernel allocation at FP32 width, never drops below the torch-fallback estimate and adds 512 MiB per device. It is estimated, not calibrated: fail-closed still refuses; other compiled paths stay unknown.
Refs #384
Adds --loadpath-concept-layer-select {all,cv_auc} so the loadpath-333 concept arm can rerun with data-driven layer selection, alone or with --loadpath-causal-control (same recipe on the CausalLM path). Stage and edit evidence record the variant (concept_variant) and the selected layers; quality gates keep reporting without vetoing edits. The default 'all' keeps the original recipe and manifest. CPU tests cover the options with stubbed model work; the docs add the A100 command lines.
Fixes#383
Refs #333
Grok review r1 for #682: after a hard-link error that may have succeeded,
_publish_file_no_replace compares the destination's (st_dev, st_ino) with the
temp file's before renaming: the same file counts as published by this write,
a different file is a definite FileExistsError, and only an incomparable
identity stays uncertain. The uncertain-link test is platform-correct (on
Windows a rename onto the write's own link publishes normally). Windows
winerror 1/50 (no hard links) is a definite link failure. Adds tests for a
link that took effect despite EIO, a foreign file after EIO, and a definite
link error followed by an existing destination.
All 22 supply-chain secret-scan hits were false positives: a public
Llama-3.2-1B commit id under a "tokenizer_revision" key, and SHA-256 digests of
tokenizer fixture files keyed by filename. numeric_geometry_spec uses one
module constant for the commit (values unchanged). The analysis-first evidence
JSONs record hashes as ordered {"path","sha256"} lists (all 63 values
preserved, verified), and the two writers emit the same shape. CI scans the
clean checkout before uv sync builds into the workspace. No allowlist, ignore
file or inline allow comment is added.
Refs #679
Section E of #675: both rollback-refusal re-raise paths keep the refusal's
own cause in one chain (a refusal with no cause gets the commit error); a
hard link that errored uncertainly, followed by an EEXIST or unsupported
fallback rename, is reported as possibly published by this write rather than
"Output already exists"; a definite link failure with no rename says nothing
was published. CHANGELOG wrapping and the Windows staging residual note are
fixed. Directory os.open and unknown-~user tests are gated by capability and
platform, and the ArchiveRootError docstring names expanduser/Path.home.
Refs #675
Section A of #675: with stderr None, diagnostics are dropped instead of going to stdout; a failed flush never re-prints the line; recipe search/confirm keep exit 4 (no traceback) when stderr is closed or missing; docstrings say never raises an Exception / best effort; the contended-write test requires a failing print and the unencodable case asserts the refusal and CRITICAL lines.
Refs #675
_config_tie_flag lets a silent sub-model owner defer to the next enclosing
owner that declares tie_word_embeddings; the top level decides only when all
are silent (any-True across alias paths and fail-closed disagreement kept).
logical_values_identical batches narrow leading-index slices up to the chunk
budget and propagates None from recursion instead of folding it into False.
Docs: apply_all also verifies ID-only operations via a matching embedded
config pin.
Refs #665
Moves cleanup_on_exit/cleanup_during_error to the light
obliteratus.handle_cleanup module (re-exported from the loader) and imports
them at module top, so no import runs after a handle exists. Stores the closed
policy before detaching the restore point, names the path to remove in
handle-surfaced SnapshotErrors, guards post-load work in candidate,
smaller_change and the sequence loaders, keeps observer-close and neuron-lab
cleanup failures from replacing the primary error or skipping state reset, and
adds failure-plus-failing-close tests for every listed site.
Fixes#669
The results viewer formats -0 and non-finite values like Python, survives
engines without toFixed(100), and shows an error when readAsText throws. CSV
export writes an empty metric name as `metric:` and orders columns by name
across all rows. StudyConfig rejects `metrics: []` at parse. The evaluator logs
the position_ids fallback and matches more rejection wordings, runs in eval
mode (restoring module modes afterwards), and handles left padding in
classification. Preset getters return deep copies.
Fixes#666
Muse BT6 audit of 3500f9d for #664: an identity with st_ino == 0 counts as no
identity (rollback refuses, and held-staging cleanup leaves the path) on
volumes without file IDs; the move-aside is a no-replace rename and a foreign
entry found after the move is moved straight back; on filesystems without
no-replace rename nothing moves, so the promoted checkpoint and the backup are
both kept. Review r2 P3s: accurate notes when the move-aside fails, the
staging path named when kept, and a CHANGELOG entry referencing #667.
Muse BT6 audit of f95dc6b for #660: every stderr diagnostic in the recipe
cleanup lock paths goes through _diagnostic(), which retries with non-ASCII
escaped and otherwise drops the line, so a closed or strict-encoding stderr
can no longer stop a lock wait or replace the ProcessCleanupFailed / exit 4
conversion.
Review r2 for #660: the launch guard takes the run's signals and checks them
once it holds the cleanup lock and has checked the marker, before any launch,
reservation or guarded body, so a SIGINT/SIGTERM deferred during the bounded
wait releases the lock with nothing launched or reserved. Wired into the
search start check, the commit guard, the confirmation reservation and every
step launch; an exception before the guard yields counts as a refusal for
injected runners. The nested-lock test is bounded by a thread join, and an
interrupt during close is raised when no cleanup failure propagates.
Sync with #658 (fd-held staging cleanup): staging cleanup keeps #658's held
handle plus the keep_staging condition, and rollback takes its identity from
the held staging handle. Review r1 fixes for #664: staging is marked possibly
foreign before the move-aside and cleared only on a positive identity check,
so a failing check or an interrupt keeps staging; the backup is restored with
the no-replace rename helper and kept if the destination is occupied or
no-replace is unsupported; on POSIX an unpinned identity is never recorded, so
rollback refuses. Docs call the plan's host figure a conservative upper bound.
Muse review r1 and the Muse BT6 audit for #659: _close_restore_point stores a
plain closed/unavailable policy naming the snapshot path right after
detaching, and reports closed only after close() returns; DiskSnapshot.close()
marks the snapshot close_failed before removing anything, so an interrupted
removal can never leave a snapshot that is accepted again. New
cleanup_on_exit/cleanup_during_error helpers attach a cleanup failure as a
note while an error is propagating and raise it otherwise; every production
ModelHandle cleanup site in a finally or failure path uses them. Removal clears
Windows read-only bits once and reports a count and the first failing paths;
the entry-point test registers cleanup before summoning and checks its own
paths.
Muse BT6 audit of 87598e3 for #660: _lock_holder returns the generic hint
unless the platform is Linux and catches any exception, so a Windows host (no
os.major/os.minor) or a failing /proc/locks read can no longer escape either
lock path. Adds tests for a context cycle on the close stack and for a nested
launch guard refused after the bounded wait; the docs describe both.
Default checkpoint rollback only moves the directory it promoted, checked by
(st_dev, st_ino) pinned through a directory descriptor; otherwise it keeps the
backup and raises CheckpointRollbackRefused naming both paths. A cancellation
during or after a failed rollback is re-raised unchanged with the outcome as a
note. plan_snapshot() and capacity plans add a capped exact overlap-check
allowance when the layout is unknown, and the docs describe the plan as a
lower bound.
Fixes#644Fixes#645
Restrict the distributed+preflight shape guard to the command position so
launched arguments and option values containing both words are accepted.
Introduce RunArchiveError (keeping builtin bases) and catch only it in
`obliteratus runs`, so internal errors keep their traceback; corrupt
manifests report "invalid manifest". The secret-guard test checks stderr.
Fixes#632Fixes#638
Ablation CSV change columns are now delta:<metric> and pct_change:<metric>;
metrics whose names are reserved are written as metric:<name>, so no metric
can overwrite another column. The results viewer formats numbers half to even
like Python (12.25% shows as +12.2%), with tests for a stale read error after a
demo load and readAsText throwing; the report fallback comment says name order.
Fixes#648Fixes#650
Every wait for the recipe cleanup lock is capped at 60 s with stderr progress
naming the lock and, where available, the holder PID; a launch check that
times out is refused with exit 4 instead of hanging. cleanup_failure_first()
closes resources through a yielded ExitStack and attaches any close error,
including KeyboardInterrupt and SystemExit, as a note on a propagating cleanup
failure. An end-to-end test pins that a raw OSError from the evaluator's
normal-exit stop exits 4 with a marker.
Fixes#652Fixes#654
DiskSnapshot.close() stays retryable and raises SnapshotError when files
remain, and a cleanup failure no longer replaces an in-flight error; the
ModelHandle finalizer only logs. Interrupted cleanup names the still-owned
offload directory, the snapshot-policy read records unreadable falsy policies,
and the pipeline offload guard requires ownership `is True`. The entry-point
test closes its handles and checks TMPDIR for leftovers.
Fixes#639Fixes#640Fixes#651
Staging cleanup now removes only the directory held open since creation, so a
directory recreated at the staging path is never deleted. Cancellations after
a no-replace rename stay cancellations, with the outcome as a note; an
interrupted discovery publish names the file as possibly published.
VocabSurgeryStrategy.apply_all enforces the ID-only tokenizer guard itself, a
silent alias owner defers to the top-level tie flag, and
logical_values_identical no longer reshapes non-rank-2 values.
Fixes#649Fixes#655
Grok review r8 for #625: the launch guard records when its body is entered and
keeps the body's in-flight exception, so a lock-release failure after entry,
whether the body completed or raised, becomes a ProcessGroupCleanupError
chained from that exception with the OSError as a note. cleanup_failure_first
keeps the cleanup error's own context and follows only close-error chains; a
release failure after a durable marker write says the marker was recorded.
Codex review r7 and the Muse BT6 audit for #625: guard balance is recorded
before an abandoned guard is closed, and a release failure during that close
becomes a new cleanup failure chained to the runner's exception; any exception
raised while the guard is unbalanced is a fresh, unrecorded cleanup failure;
evaluator pipe and selector close errors are attached as notes instead of
replacing a cleanup failure; the non-POSIX vLLM stop terminates and kills the
process handle and treats survival or any stop error as a cleanup failure;
marker writes wait at most 60 s for the cleanup lock, then fail closed.
Muse review r1 for #623: the config tie check walks every path the head is
registered under (any owner config or its text config saying tied, or a
disagreement between paths, means tied); tie metadata is read as an
undirected link graph matched over every suffix form of every module path, so
cycles and suffix-form links are never read as untied; edit memory is
admitted from shape/dtype/placement before any offloaded value is read, then
again exactly before any edit allocation. The NaN-aware bounded comparison
moves to offload_surgery and is reused by adopt_tied_alias.
Muse review r6 for #625 and the Muse BT6 audit: search converts and records a
plain cleanup error before the non-POSIX re-raise and both recipe CLIs exit 4
on any ProcessGroupCleanupError; the injected-runner guard balance is checked
whether the runner returns or raises; a lock-release failure after launch,
a failed non-POSIX kill and a vLLM server surviving SIGKILL are cleanup
failures; confirmation's marker names the failing step's log; CHANGELOG
records exit 4, the marker and the launch_guard runner keyword.
Codex/Muse review r5 for #625: any error stopping a step's process group,
after an interrupt or a normal exit with any code (including the evaluator's
normal-exit stop and VllmServer.stop), becomes a ProcessGroupCleanupError
chained to the original, so search and confirmation write the marker. A
skipped or unbalanced launch guard on any step raises a plain
ProcessGroupCleanupError so the marker is recorded and resume is refused.
Docs clarify the cooperative-runner trust boundary.
From the Muse BT6 audit of #625: launch_guard returns a wrapped context
manager that counts an entry only after the real guard has taken the lock
and checked the marker, and counts exits; after the step the run requires at
least one entry and matching exits, so calling the factory without entering
it fails closed (exit 4). The CLI no longer prints the first error line twice.