Commit Graph
6 Commits
Author SHA1 Message Date
Joseph Magly 285618db15 fix(persistence): keep refusal causes and report uncertain hard-link publishes
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
2026-11-25 14:44:10 -05:00
Joseph Magly 269dd371c4 fix(runs): report an unknown ~user in the environment archive root as ArchiveRootError
Section C of #675: default_archive_root() expands ~ and resolves home inside a guard, so an unknown ~user in OBLITERATUS_RUN_ARCHIVE/XDG_STATE_HOME gives the one-line runs error; tests cover the requested-dtype check's exception handlers in _float16_source; the offload_surgery docstring says None wins unless another slice differs and documents the recursive None branch as defensive.

Refs #675
2026-11-25 13:33:22 -05:00
Joseph Magly 06b2a3c779 Merge main 4898d06 into fix/668-cleanup-gemma3-runs-followups; address grok P3s
CHANGELOG conflict resolved by keeping both the #666 and #668 entries. Grok
review P3s for #672: dataset-input paths are stat()ed after resolve() so a
symlink loop is rejected on Python 3.13+ too, and the CLI loop tests patch
Popen; expanduser() runs inside the archive-root and dataset-input guards; the
warning-location wording says it points at run()/run_informed();
mcp_worker.worker_matches returns False for a non-dict worker.
2026-11-25 11:58:12 -05:00
Joseph Magly 0070d28a59 fix: close #668 cleanup-record, Gemma 3 and runs-archive follow-ups
Failed-run cleanup stores the cleanup error whenever its note was not
attached, warns once (stacklevel 4, at run()/run_informed()) only when WARNING
was not emitted, and both entry points reset the record first. Gemma 3: drop
the gemma3_text->gemma3 remap in concept intervention/repair, add a bare
Gemma3Model language_model.layers fallback, and make _float16_source re-raise
only interrupts. runs archive: RecursionError, archive-root and dataset-path
failures become RunArchiveError (dataset paths checked before the run dir
exists); read_snapshot/read_ids raise InvalidArchiveRequest; a non-dict
manifest worker fails closed.

Fixes #668
2026-11-25 10:08:36 -05:00
Joseph Magly b6ac2aeffc fix(cli): keep runs stdout empty on errors; send guard diagnostics to stderr
Codex review r1 for #617: the pre-parse secret-token and
distributed+preflight guards now print to stderr, and `runs` catches archive
errors (unknown or malformed run id, unfinished run) with a one-line stderr
diagnostic, exit 1 and empty stdout. Docs and changelog state the success
and error output contract; MCP_LOCAL_SETUP.md notes that policy validation
runs before the missing-extra check.
2026-11-24 17:12:24 -05:00
Joseph Magly d34e59387a test(release): verify input and recovery bounds 2026-10-29 00:58:11 -04:00