Commit Graph
1446 Commits
Author SHA1 Message Date
Joseph Magly 587fca3e1d Merge pull request #692 from elder-plinius/fix/383-qwen38-concept-arm-variant
feat(qwen38): add a cv_auc concept-arm variant and record the loadpath-333 concept variant
2026-11-27 14:28:47 -05:00
Joseph Magly d0ceadd50a Merge pull request #696 from elder-plinius/fix/384-qwen35-recurrent-scan-admission
fix(admission): estimate the FLA/causal-conv1d recurrent workspace for Qwen hybrid models
2026-11-27 13:43:14 -05:00
Joseph Magly 1b5a54bcab fix(qwen38-campaign): reject impossible cv_auc runs before any GPU stage
cv_auc concept layer selection needs at least two prompts in every set,
but the fold check ran in _concept_target, after the pristine probes,
parity, the refusal edit and both refusal reloads. A locked prompt cap then
needed a fresh root to recover.

Share the minimum as CV_AUC_MIN_PROMPTS and the capped pinned sets as
_concept_prompts. parse_args rejects an explicit --max-prompts below the
minimum. campaign() checks the effective pinned set sizes before the run
lock, inputs and preflight, so fresh and resumed roots are refused
unchanged. loadpath() repeats the check before its first pristine probe.
2026-11-27 12:50:27 -05:00
Joseph Magly 301f4d1edc fix(admission): estimate the FLA/causal-conv1d recurrent workspace for Qwen hybrid models
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
2026-11-27 11:23:33 -05:00
Joseph Magly f2da875345 feat(qwen38): add a cv_auc concept-arm variant and record the loadpath-333 concept variant
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
2026-11-26 17:28:48 -05:00
Joseph Magly 67e497d34b Merge pull request #687 from elder-plinius/fix/679-persistence-coverage
test(persistence): restore touched-module coverage and fix the synced-head comparison base
2026-11-25 20:00:44 -05:00
Joseph Magly a736d16b86 Merge pull request #683 from elder-plinius/fix/679-secret-scan-false-positives
fix(ci): clear gitleaks false positives without suppression
2026-11-25 18:59:47 -05:00
Joseph Magly 37fbe46154 test(persistence): restore touched-module coverage and fix the synced-head comparison base
Adds focused tests for the #674/#682 rollback refusals, uncertain-publish
identity checks, held-staging cleanup races and digest manifest validation:
persistence_contracts.py coverage goes from 97.14/96.07 to 99.80/99.44
(line/branch), above the 97.80/96.88 base. The release comparison base for a
synced branch head (a merge commit that is neither main nor a tag) is now its
merge base with main instead of HEAD^, so changes brought in from main are not
counted as the branch's regressions; main and tag pushes still use the first
parent. No production code changes.

Refs #679
2026-11-25 18:10:10 -05:00
Joseph Magly 331184df1c Merge main dd31361 into fix/679-secret-scan-false-positives
# Conflicts:
#	CHANGELOG.md
2026-11-25 18:06:17 -05:00
Joseph Magly dd313618ee Merge pull request #686 from elder-plinius/fix/679-coverage-and-mutation-timeout
test(release): restore touched-module coverage and raise the Quality depth timeout to 60 min
2026-11-25 18:02:52 -05:00
Joseph Magly f87fcc8a77 Merge main 543920f into fix/679-coverage-and-mutation-timeout
# Conflicts:
#	CHANGELOG.md
2026-11-25 17:05:51 -05:00
Joseph Magly 543920f8bd Merge pull request #685 from elder-plinius/fix/679-duration-budget-rebaseline
ci(policy): rebaseline release duration budgets, speed up slow tests, enforce per-test budgets on PRs
2026-11-25 16:57:55 -05:00
Joseph Magly 6ed43e4a24 Merge pull request #681 from elder-plinius/fix/679-release-gates
fix(cleanup): stop interrupt tracebacks retaining failed-run results; bump opentelemetry-api
2026-11-25 16:35:59 -05:00
Joseph Magly 430e038133 Merge main ca9be94 into fix/679-duration-budget-rebaseline 2026-11-25 16:20:50 -05:00
Joseph Magly 8fee1f4241 ci(policy): derive owned duration budgets from the slowest of all hosted samples
Grok review r1 for #685: the concept_pack budget (65 s) came from one sample
of a heap-sensitive test and was already exceeded (83.89 s). Owned budgets
are re-derived from the slowest of all five hosted release samples
(45678651612 both lanes; 45696135376 py3.11 head, py3.12 head and base):
concept_pack 105 s and recipe_application v2 35 s, the rest unchanged.
smaller_change low_variance and failing_collateral are owned at 20 s. The
CONTRIBUTING owned-tests section covers all 24 and states the rule.
2026-11-25 16:20:47 -05:00
Joseph Magly ca9be94b89 Merge pull request #682 from elder-plinius/fix/675-e-persistence-notes
fix(persistence): keep refusal causes and report uncertain hard-link publishes
2026-11-25 16:19:31 -05:00
Joseph Magly 7f999505f0 test(release): restore touched-module coverage and raise the Quality depth timeout to 60 min
Adds focused tests for the lines the release run left uncovered in
evaluation/evaluator.py, recipes/search.py, recipes/search_cli.py and
study_presets.py after #676/#677, so touched-module line and branch coverage
is back at or above the comparison base (run 45690313651). Raises the Quality
depth job timeout from 45 to 60 minutes; the 85% mutation floor and every
other threshold are unchanged.

Refs #679
2026-11-25 16:13:34 -05:00
Joseph Magly 157045f8be Merge main e82235b into fix/675-e-persistence-notes 2026-11-25 15:35:26 -05:00
Joseph Magly 4a285a0484 fix(persistence): settle uncertain hard-link publishes by file identity
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.
2026-11-25 15:35:23 -05:00
Joseph Magly 51fa9e2213 ci(policy): rebaseline release duration budgets, speed up slow tests, enforce per-test budgets on PRs
Rebaselines the release suite and marker duration budgets to the slowest
measured hosted release time + 25% (run 45678651612; suite 3910 s on py3.11
and 5340 s on py3.12; cpu 2010, integration 700, unmarked 2460) and owns every
test whose time + 25% exceeds 15 s under #679 with a 90-day review (follow-up
#684). Speeds up test_smaller_change rank1 (geometry environments built lazily)
and the recipe-search fake edit step (a light helper module). The PR core gate
now enforces per-test budgets on each shard's JUnit with a new
--testcase-budgets-only mode; suite and marker totals stay release-only.

Refs #679
2026-11-25 15:33:27 -05:00
Joseph Magly 545ed4281d fix(ci): clear gitleaks false positives without suppression
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
2026-11-25 15:13:02 -05:00
Joseph Magly f90fd6e428 Merge main e82235b into fix/679-release-gates
# Conflicts:
#	CHANGELOG.md
2026-11-25 14:57:31 -05:00
Joseph Magly 2d967a8052 fix(cleanup): stop dataclass result scans retaining values through interrupt tracebacks
Grok review r1 for #681: the dataclass scans in _holds_accelerator_tensor and
_validate_cleanup_result used generator expressions that closed over the
scanned value, so an interrupt left it alive on the traceback after
clear_frames on 3.11 and 3.12. They are plain loops now, with retention tests
for both; a set/frozenset transfer success test covers the previously
unexecuted set path.

Refs #679
2026-11-25 14:57:29 -05:00
Joseph Magly e82235b1f2 Merge pull request #680 from elder-plinius/fix/675-d-modelhandle-sites
fix(handles): clean up remaining ModelHandle sites and name the snapshot path once
2026-11-25 14:45:21 -05:00
Joseph Magly 5cebcf19c2 Merge main b7113e6 into fix/675-e-persistence-notes 2026-11-25 14:44:12 -05:00
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 b7113e6db7 Merge pull request #676 from elder-plinius/fix/675-a-recipe-diagnostics
fix(recipes): make cleanup diagnostics best effort without stdout fallback or duplicates
2026-11-25 14:38:02 -05:00
Joseph Magly 3f748ae5f2 Merge pull request #678 from elder-plinius/fix/675-c-archive-offload-coverage
fix(runs): report an unknown ~user in the environment archive root as ArchiveRootError
2026-11-25 14:31:06 -05:00
Joseph Magly 6426528d75 Merge pull request #674 from elder-plinius/fix/665-667-persistence-followups
fix(persistence): keep unpinnable staging, report uncertain publishes, refuse unpinned Windows rollback
2026-11-25 14:23:53 -05:00
Joseph Magly 6182b524ba Merge pull request #677 from elder-plinius/fix/675-b-evaluator-presets
fix(evaluation): keep padding-offset positions, train() restore, warn once, read-only presets
2026-11-25 14:19:06 -05:00
Joseph Magly 076672f6ac fix(cleanup): stop interrupt tracebacks retaining failed-run results; bump opentelemetry-api
On an interrupt, the comprehension and generator frames in _tensors_to_cpu
stayed on the traceback with their closure (memo), keeping every converted
result alive after clear_frames: lists and tuples on Python 3.11 (no PEP 709
inlining), sets on every version. They are plain loops now, with a regression
test for list, tuple, set and frozenset results. uv.lock moves
opentelemetry-api from 1.45.1 to 1.45.2 (GHSA-mf5v-w3w3-f6cg, via the mcp
extra); no other package changes.

Refs #679
2026-11-25 13:46:51 -05:00
Joseph Magly 8bdd844e09 fix(handles): clean up remaining ModelHandle sites and name the snapshot path once
Section D of #675: the neuron lab's load() drops the previous handle and its
state even when its cleanup fails (the failure is raised and nothing new is
loaded); `experiments trace` cleans up its handle on success and failure
without masking the trace error; default_model_factory cleans up the handle
when .to(device) fails, keeping the move error; a snapshot error raised
through a handle names the restore-point path once. Adds tests for the
sequence refusal branch and write_step(changed=False), and registers the
cleanup-site tests for inputs.py and trace_cli.py in the risk map.

Refs #675
2026-11-25 13:45:14 -05:00
Joseph Magly c2e06ae155 Merge main e4ac974 into fix/665-667-persistence-followups 2026-11-25 13:36:04 -05:00
Joseph Magly ee71ce608f test(persistence): open a directory descriptor only where the code holds one
The real checkpoint-windows job (run 45674242968) failed one test:
test_zero_inode_identity_is_never_proof_of_ownership (from #664) opened the
staging directory with os.open, which Windows refuses with PermissionError.
The descriptor half of the test now runs only where staging is held by a
descriptor; the handle-less and comparison halves run everywhere.
2026-11-25 13:36:01 -05:00
Joseph Magly 7660e505ae Merge main e4ac974 into fix/675-c-archive-offload-coverage
# Conflicts:
#	CHANGELOG.md
2026-11-25 13:33:24 -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 878b2ba30e Merge main e4ac974 into fix/675-b-evaluator-presets 2026-11-25 13:33:15 -05:00
Joseph Magly 76bb612871 fix(evaluation): keep padding-offset positions, train() restore, warn once, read-only presets
Section B of #675: skip left-padding position_ids for models that number positions from padding_idx+1 (RoBERTa/XLM-R/CamemBERT-style); restore modes via train(mode) for modules that override it; log the position_ids fallback warning once per model; STUDY_PRESETS is a read-only mapping returning copies; README explains metrics null vs omitted with a preset.

Refs #675
2026-11-25 13:33:13 -05:00
Joseph Magly 820af1426d Merge main e4ac974 into fix/675-a-recipe-diagnostics 2026-11-25 13:33:06 -05:00
Joseph Magly e2e7e30799 fix(recipes): make cleanup diagnostics best effort without stdout fallback or duplicates
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
2026-11-25 13:33:04 -05:00
Joseph Magly e4ac974090 Merge pull request #671 from elder-plinius/fix/669-modelhandle-cleanup-followups
fix(models): harden ModelHandle cleanup sites and messages
2026-11-25 13:22:47 -05:00
Joseph Magly 4e1209e61e Merge main 11b2247 into fix/669-modelhandle-cleanup-followups
# Conflicts:
#	CHANGELOG.md
2026-11-25 12:53:38 -05:00
Joseph Magly 5d9ef4fa1c Merge main 11b2247 into fix/665-667-persistence-followups 2026-11-25 12:52:37 -05:00
Joseph Magly c271afa7d6 fix(persistence): repair the #645 changelog entry; make rollback tests platform-correct
Grok review r1 for #674: the #645 CHANGELOG entry is one coherent paragraph
that says rollback is manual wherever no staging descriptor is held,
including Windows (#667). The 20 rollback tests that assumed a held
descriptor branch on the same capability flag the code checks: without a
descriptor they assert the refusal and that nothing moved. Adds a test for an
EMFILE pin failure followed by a post-promotion refusal.
2026-11-25 12:52:35 -05:00
Joseph Magly 11b2247896 Merge pull request #672 from elder-plinius/fix/668-cleanup-gemma3-runs-followups
fix: close #668 cleanup-record, Gemma 3 and runs-archive follow-ups
2026-11-25 12:39:43 -05:00
Joseph Magly b1b1ec1e11 Merge pull request #673 from elder-plinius/fix/665-vocab-offload-followups
fix(vocab,offload): walk to the nearest flag-carrying tie owner; coalesce and propagate unavailable compares
2026-11-25 12:34:23 -05:00
Joseph Magly a1959fd163 Merge main 38d3792 into fix/669-modelhandle-cleanup-followups
# Conflicts:
#	CHANGELOG.md
2026-11-25 12:23:02 -05:00
Joseph Magly b45cd77155 Merge main 38d3792 into fix/665-vocab-offload-followups
# Conflicts:
#	CHANGELOG.md
2026-11-25 12:03:55 -05:00
Joseph Magly 7e75120cc0 Merge main 38d3792 into fix/665-667-persistence-followups
# Conflicts:
#	CHANGELOG.md
2026-11-25 11:58:37 -05:00
Joseph Magly 4cddb62b6a fix(persistence): keep unpinnable staging, report uncertain publishes, refuse unpinned Windows rollback
Failed checkpoint staging that cannot be held open (for example EMFILE) is
kept with a warning instead of being removed by pathname. Discovery publishing
names a file as possibly published unless the failure was a definite refusal
(FileExistsError / NoReplaceRenameUnsupported), and the note can no longer
replace the primary error. Windows rollback no longer trusts an unpinned file
ID: moving the promoted checkpoint aside refuses, matching POSIX. Docstrings
and CHANGELOG describe the Windows/pathname fallback.

Fixes #667
Refs #665
2026-11-25 11:58:23 -05:00