Resolve ci/test-quality-policy.json by keeping both owned slow-test
budgets: the E4 Gloo agreement test from #698 and the CLI dispatch help
test from this PR.
On this PR's shard layout, tests.test_cli.TestCLIDispatch::
test_verification_help_explains_invalid_denominator is the first CLI
dispatch test in its worker and pays the cold CLI import: 20.6 s and
16.3 s on hosted runners against about 3.5 s locally (unchanged by this
PR; the identity-security CLI module imports in 12 ms). It failed the
15 s default twice, so it gets an owned 25 s budget.
Resolve the vocab_surgery_discovery.py conflict with #699: keep the batched
discovery structure, render discovery prompts through the pinned-date
chat-template helper, and record chat_template_date in the generation block.
The first two-rank Gloo test in the E4 module pays the cold torch import in
both spawned ranks and took 15.5 s on the hosted PR runner, above the 15 s
default (about 5 s locally). Give it an owned 25 s budget, matching the
other two-rank Gloo tests.
Ship as accepted v2 data the nine recipes that passed the protocol final
test and were accepted by the operator on 2026-11-27: Granite 4.1 8B,
Llama-3.2-1B, Llama-3.2-3B, OLMoE-1B-7B, Phi-4-mini, Qwen3.5-0.8B,
Qwen3.5-9B, Llama-3.1-8B-Instruct-abliterated and DeepSeek-R1-Distill-
Qwen-7B. Each ships a KL-advisory evaluation profile and value-only
confirmation and verify-edit evidence bound by SHA-256, following the two
recipes accepted in 134bd2c.
The Llama-3.2 results predate the chat-template date pin (#690) and are not
comparable with later measurements. Two recipes were confirmed with
analysis_device auto (resolved to cuda:0) and ship as confirmed; the shipped
CPU-extraction test now names them explicitly.
Templates that call strftime_now (the Llama-3.2 family) rendered the run date into the system header, so stock refusal moved 0.650 -> 0.557 between two days. Every apply_chat_template render in obliteratus/ and app.py goes through obliteratus.chat_template_date, which passes a fixed date_string and strftime_now (default 26 Jul 2024) only to templates that use them. verify-edit takes the date from spec generation.date_string, records it in the report, and appends --default-chat-template-kwargs to vLLM servers it launches; reused endpoints and scripts/ stay unpinned (documented).
Fixes#690
Adds the two-host E4 workload path. A bounded streaming reference is built from the immutable source with one layer resident at a time, so it works for models larger than any single host. run_rank_local_qualification.py admits a fully bound E4 job only when its workload exceeds the local host's physical RAM, and the worker requires both ranks to agree over Gloo before PROBE. Registry and final qualification checks are unchanged; the stack stays not_qualified. The PROBE RAM refresh was already delivered in 002e6e5.
Refs #287
Adds 'obliteratus identity-security', an opt-in research evaluation excluded from every default gate: identity-only paired prompts with commit-pinned generation settings, generated apps run only in a fail-closed, no-network Bubblewrap sandbox with resource limits, functional checks and executable exploits scored separately, and denominators, exclusions, intervals, Fisher/McNemar tests and Holm adjustment reported. Paired activation capture reuses capture_activations. Real-sandbox tests live in tests/conditional/; third-party results are documented as unverified claims. The weight-intervention arm is a follow-up.
Refs #427
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
Discovery generates prompts in left-padded greedy batches with explicit attention masks (--batch-size, default 8). Each row is cut at its first stop token, matching the unbatched call. Responses, counts, scores, ranking and prompt_audit (per-prompt input_ids, rendered digests, chat-template digest) are identical to --batch-size 1, which keeps the original path byte-for-byte. CPU tests on tiny GPT-2 and Llama models cover EOS and varied prompt lengths.
Fixes#689
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.
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
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
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
Gemma 3 4B/12B/27B checkpoints load as Gemma3ForConditionalGeneration with the
text decoder at model.language_model.layers; get_layer_modules now falls back
to that path (model.layers stays primary), and text-only gemma3_text is mapped
explicitly. A non-finite stock baseline on float16 weights now suggests
--dtype bfloat16. The default dtype is unchanged.
Fixes#643
Codex review r2 for #618: the results viewer reads uploaded files with an
order-preserving JSON reader so metric selection walks baseline keys in file
order like Python (integer-like keys included), and the viewer and
report._metric_value share one strict numeric-string grammar (ASCII digits,
sign, decimal point, exponent; ASCII whitespace only; finite).
Codex review r1 for #618: the results viewer builds its stats, chart and
table with DOM nodes and text only (no innerHTML), so a crafted results.json
cannot inject markup; its impact-metric selection mirrors save_plots exactly
(string primary only, measured baseline plus at least one measured ablation);
every render clears all result regions. Plots are written to a temp file and
moved into place only on success, figures are always closed, and a fallback
metric is labelled on the chart. A node-based test exercises the viewer.
Resolve against #593 (quick-check settings) and #591 (tied-head
migration) by keeping both sides: the pipeline gains analysis_device
alongside refusal_check_mode/confidence; migration and the shipped
recipes emit allow_tied_head_edit and the analysis_device cpu pin;
_structured relaxes both the refusal-check settings and
analysis_device for historical resolution records; both sides' tests
are kept.
When the model is on CUDA or MPS, activation stacks and the analysis
math (difference means, winsorizing, whitening, per-layer SVD in
float32, refinement and KL logits) now stay on that device instead of
being copied to the host, where they used about 10 host cores per edit.
A new analysis_device setting (auto | model | cpu) is a v2 projection
parameter: auto, the default for v2 recipes, uses the model's device and
falls back to the CPU with a logged reason for offloaded, split or meta
models or when the pre-collection memory estimate exceeds free device
memory. The device actually used is recorded in resolution records and
checkpoint metadata. v1-migrated recipes and the shipped recipes pin
cpu so confirmations made with CPU-extracted directions re-apply
exactly; direct pipeline calls keep their CPU default. CPU results are
unchanged.
Fixes#590
recipe search, recipe confirm and verify-edit's capability vLLM server
started subprocesses that survived when the parent was stopped. An
orphaned edit kept 18 GB of GPU memory and broke the next queued
search. Subprocesses now start in their own process group; on
SIGTERM, SIGINT or an exception the whole group gets SIGTERM, a grace
period, then SIGKILL. The interruption is recorded in the candidate
record so a resumed search retries it. POSIX only; Windows behaviour
is unchanged.
Fixes#589
v1 recipes projected a tied LM head implicitly; the v2 projection
technique refuses that unless the recipe declares it. migrate_v1 now
emits allow_tied_head_edit: true when v1 would project the head (a
no-op on untied models) and lm_head: skip when v1 disabled head
projection, with provenance. It never silently skips a head edit v1
would have made. Migrated v1 search grids follow the same rule, and
shipped v1-derived data is updated.
Fixes#588
Checkpoints saved weights, configs and tokenizer files but not the
source model's processor configuration, so models packaged as
multimodal wrappers (Qwen3.5, Gemma 4 E-models) could not be served
from an exported checkpoint (vLLM: "Can't load image processor").
Export now copies processor-side config files present in the local
source directory or the exact cached Hub revision, records their
SHA-256 digests in the checkpoint metadata and projection resolution
records, and checkpoint validation rejects a listed file that is
missing or changed. No network access; a source without these files
exports exactly as before.
Fixes#585
Concept-pack ExtractionRecipe maps onto the direction_source and
placement of v2 techniques: concept_recipe_to_v2 converts every shipped
pack into a normalized v2 step whose direction source is a pinned
concept_pack input, with pack-level extraction pins normalized into
explicit parameters. Packs applied by activation steering use a new
steering.activation_addition v1 technique wrapping the existing
intervention code; refusal is expressed as weight projection like any
other concept. Applied steps may register cleanup that the executor
runs if a later step fails, so steering hooks are removed.
Fixes#569
recipe search, confirm, promote and obliterate --recipe now operate on
v2 recipes: search grids are v2 step variations (recipe-search-grid v2,
same preregistered selection rule), confirmation and promotion consume
evaluation profiles and bind evidence to applied resolution records,
and --recipe applies pipelines through apply_recipe. v1 recipes and
grids load through mechanical migration with a notice; writing v1 is
refused. Shipped v1 data is migrated to v2, and the two recipes
confirmed on the protocol final test in the initial core run ship as
accepted v2 data: llama3.1-8b-e03-reg02 and qwen2.5-1.5b-mid10-18-dim1,
with KL-advisory profiles and value-only confirmation evidence.
Fixes#571
Keep both the evaluation-profile and pinned-input exports and risk-map
entries; apply_projection takes both #568's recipe_metadata and this
branch's device, dtype and reference_prompts.
Add obliteratus.evaluation-profile/v1: one digest-referenced evaluation
contract for v2 recipes. A profile carries a partial verify-edit spec
(endpoints, margins, capability decoding and tier), a kl_policy (gate or
advisory) and calibration evidence references (noise floor or random
control) whose digests and schemas are verified and whose adopted
thresholds are recorded per field. Profiles layer family then
individual over defaults with resolve_margins precedence; advisory KL
sets the endpoint not required. v2 recipe confirmation resolves the
profile and records the resolved spec digest; the v1 spec path is
unchanged. Ships a candidate Llama-3.1-8B-Instruct profile with advisory
KL and its random-control evidence, local paths redacted.
Fixes#567
The second v2 technique, registered only through the technique
registry with no change to the model-recipe.v2 schema or validator.
adapter.lora_repair v1 wraps the existing LoRA recovery (assistant-only
loss): explicit defaults from RecoveryConfig, LoRA targets from
placement writer roles, training on the previous step's model state,
and an adapter or merged-weight artifact with SHA-256 digests in its
resolution payload. apply_recipe runs ordered steps fail-fast, binds
declared inputs and outputs between steps, and chains each step's
payload into one resolution record. recover.py gains keyword-only
dropout and exact-target seams with unchanged defaults.
Fixes#570
Add an extensible input-kind registry (protocol_split, prompt_pairs_file,
concept_pack, chat_template, reference_model). resolve_inputs
materializes each named input, verifies its SHA-256 and returns its
declared role. Normalization validates input declarations and step
consumption before hashing: technique steps may consume only train or
calibration inputs, search evaluation only tune and confirmation only
final_test, so the final test set cannot reach fitting. The projection
technique extracts from the resolved train input, and the resolution
record carries verified input digests. Protocol disjointness checks are
shared with search.
Fixes#568
Resolve docs/MODEL_RECIPES.md keeping both the projection technique
section and the checkpoint resolution records section from #576, and
correct the latter's stale note: legacy records use a fixed created_at
sentinel, not the metadata file's modification time.
Add obliteratus.recipe-resolution/v1: what an applied recipe actually
did, as a canonical record (recipe digest, engine and code commit,
target with structure facts such as tied embeddings, per-step technique
payloads validated by registered techniques, artifacts with digests).
Checkpoints now save recipe-resolution.json atomically beside the
weights. resolution_from_metadata adapts older checkpoints from
abliteration_metadata.json; such records use a fixed created_at
sentinel because the metadata has no timestamp, so their digest depends
on content (bound by the metadata sha256), not on file times. The
random-direction control reads the record when present and records its
digest, and confirmation records the resolution digest.
Fixes#566