Maintainer decisions for epic #223 (2026-10-15):
- Q1: `leace` is a deprecated alias of the Fisher LDA direction. It keeps
its numerical behaviour, warns once per public resolution with a
DeprecationWarning naming `fisher_lda` and `leace_exact`, and will be
removed in a future minor release.
- Q4: a collateral FAIL blocks both the model card and any Hub push of
modified weights or adapters on every path (pipeline, export_run, both
CLIs, Concept Lab, the Hub UI and tourney uploads), checked before any
network call. `--allow-collateral-fail REASON` (and the matching API
argument and UI field) overrides the block and stamps the FAIL and
reason into the card, checkpoint metadata and provenance. Local save
and export are never blocked.
- Q5: research-tier packs no longer carry publication or local-export
restrictions; the tier is provenance only and Q4 applies to every pack.
- Steering defaults are removal-first: `steer` defaults to alpha -1 and
the default dose ladder is non-positive. Positive doses stay available
explicitly; `project` keeps its positive removal strength.
- Q3 (gate modes) and Q7 (dense only, follow-up #310) are unchanged and
documented.
Refs #223
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
`_is_degenerate` only caught 2-4 character repeats, so a completion that
repeats one word (" illegally" * 48) or a phrase scored as a valid
non-refusal. Steering sweeps that degenerated therefore read as perfect
compliance.
- `_is_degenerate` now also detects consecutive word and phrase loops
that cover at least half the text (a shared `_is_word_loop` rule, also
used by the abliterate coherence checks) and 5-32 character loops that
cover nearly all of it, which catches unspaced scripts. It uses no
vocabulary-ratio rule, so lists of distinct refusals sharing
boilerplate, Markdown table rules and literal lists stay valid.
- New `_is_invalid_output` marks empty, reasoning-only (including
generation that stops inside an unclosed reasoning tag), content-free and
degenerate completions; short answers with content ("42", "No") stay
valid. The refusal scorer label carries a detector version, so stale
pristine caches are rejected. `<think>` blocks are now stripped like the
other reasoning tags, including inside an extracted assistant body.
- EvaluationBattery records invalid outputs, computes refusal statistics
only over pairs valid on both sides, and fails collateral when invalid
outputs increase significantly (exact one-sided McNemar), including when
every intervened output degenerates.
- The repair ladder rejects a step that raises the intervened invalid rate.
- The Concept Lab dose ladder used the anchor-only coherence check, which
marked every operator preview invalid; it now uses `_is_invalid_output`.
The generic refusal_rate denominator is unchanged here and tracked in #312.
Fixes#309
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Tiny-model pipeline tests were dominated by fixed per-step costs, not
arithmetic: the pipeline's gc.collect() after each verify prompt rescans
every long-lived object the session imported (~0.2 s per call), and
intra-op thread fan-out makes each 16-dim forward slower on loaded runners.
- conftest: add an opt-in tiny_model_runtime fixture (one intra-op thread,
gc.freeze() of pre-test objects, both restored afterwards). Objects the
test creates remain collectable, so pipeline behaviour is unchanged.
Applied to test_offline_integration and the concept_* integration modules.
- test_disk_offloaded_fused_moe_surgery_matches_live_surgery: bound verify
free-form completions to 4 tokens; every diagnostic still runs through
the disk-offload hooks and no assertion depends on generated text.
- test_disk_offloaded_subprocess_rss_bound: measure native and legacy export
in one subprocess on the same offloaded model, resetting VmHWM (after GC
and malloc_trim) before each mode; native is measured first. Same three
assertions.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The checks lived in app.py, which only operator-UI tests import, so the
pull-request lane saw them as uncovered changed lines. Move them into
ui_concept_lab.check_obliterate_concept_controls, keep app.py to a single
call, and cover each rejection, the refusal pass-through and the clean pack
selection on CPU without resolving pack data.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Obliterate tab resolved the selected concept pack before checking for
custom prompts, a non-built-in dataset or a refusal-only method. On a host
without fetched pack data (every hosted runner) the user got "remote data
is unfetched" instead of the guidance to clear those controls, and the
operator-UI conditional gate failed.
Decide whether a source is a concept pack without loading it, run the
control checks first, and only then resolve the pack.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The concept-vector tests had pushed the PR-core job toward its 10-minute
timeout, and it was cancelled on this branch. The slowest tests now use
smaller synthetic prompt sets and collateral batteries, and the repository
sentence scan reads only git-tracked text files, deduplicates candidates
and skips binaries and files over 2 MiB. It still scans the whole
repository and still detects wrapped and structured text. Assertions and
production defaults, including 1000 null draws, are unchanged.
Local timings went from 5.5-42.6 s to 0.8-2.5 s for the six slowest tests.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A new Concept Lab tab (obliteratus/ui_concept_lab.py) drives the merged
concept APIs in six steps:
1. select a concept or pack;
2. extract with the pack recipe;
3. validate through the gate (an override needs a non-empty, recorded
reason);
4. intervene (orthogonalize, project, steer, lora), with pristine and
modified previews;
5. evaluate with the collateral battery, and run the repair ladder for
every intervention mode;
6. export through the #231 guards.
Under those guards, research-tier packs never push modified weights, a
collateral FAIL blocks only the publish card, and incomplete repairs need
an explicit acknowledgement. The UI never fetches pack data implicitly.
Selecting a concept pack disables or rejects the custom-prompt and dataset
controls, with a clear message.
The Obliterate tab still defaults to refusal and is unchanged. Legacy
refusal runs also expose their extraction as a ConceptDirection artifact,
best effort: a layout the artifact cannot represent is logged and never
aborts the run. Operator-UI coverage follows the existing conditional
policy pattern.
Closes#234
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>