The REBIRTH save stage only checked that files exist and parse, so a
save that dropped or mangled the edit passed silently (#525).
- `obliterate --record-reference` records greedy outputs of the
in-memory edited model on the pinned obliteratus-verify-v1 prompt set
(8 harmful + 8 harmless, 32 tokens) into a sidecar with digests of the
files the reload reads.
- `obliteratus verify-checkpoint` reloads the checkpoint from local
safetensors only, regenerates greedily and compares token ids: exact
match, prefix agreement and harmful refusal-rate change against
per-reload tolerances (strict for full precision, provisional for
bitsandbytes 8/4-bit, overridable and recorded).
- Fails with named reasons for no or empty reference, files changed
since the reference, tokenizer mismatch, divergence, invalid outputs
and, with --stock-model, an edit that was not persisted. A
structural-only check can never pass.
- Versioned report bound to checkpoint digests, prompt-set digest and
runtime; exit 0 pass, 2 input error, 3 verification failed.
- CPU tests use a tiny local GPT-2 through the real REBIRTH; a CUDA and
bitsandbytes test runs in the conditional gates.
Extend backend qualification so precision-induced changes in reasoning
outcomes are separated from intervention effects (#512).
- Precision declarations record weight, activation and KV-cache
precision, quantizer and calibration identity; incomplete or
inconsistent declarations are refused.
- A bounded, preregistered pilot protocol fixes candidate, dataset,
decoding, output budget, seed blocks, final-answer parser, margins,
drift limit, resource objective and disjoint splits.
- The pilot loads four fresh cells on the same rows: the unedited parent
and the saved candidate at the CPU float32 reference and at the
declared precision.
- Per-row outcomes separate final-answer correctness from reasoning and
total tokens and termination; truncated or unparsable outputs count
as wrong.
- Paired bootstraps give precision effects within each artifact,
intervention effects within each precision and their interaction.
Gates apply per task and pooled, and expose harm hidden by a pooled
pass. Shared-prefix KL is reported apart from free-running
disagreement.
- Token cost never gates; an efficiency claim needs every gate to pass
and the preregistered resource to improve.
- Support matrix schema 2 carries precision fields and pilot attempts;
pilots never add qualified pairs, and schema 1 records still load.
- `obliteratus experiments qualify reasoning`; CUDA path in the
conditional gate.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Start milestone 5 (F20): qualify each saved artifact on an explicit
backend against the CPU float32 reference of the same artifact, and
record exactly which pairs qualify.
- Only fully verified persistent candidates are accepted; each run
loads the saved artifact fresh from disk on the reference and on the
declared backend after checking digests.
- Backend descriptors make device, dtype, quantization, attention,
tokenizer and cache mode explicit; their digest is the backend id, so
native and quantized results are separate rows.
- Paired evaluation on independent rows checks realized settings,
target rate, completion agreement, logit and site-activation drift and
collateral endpoints. Latency and memory stay outside the digest.
- Unsupported combinations are recorded unsupported without loading or
falling back; unavailable hardware is refused and leaves the pair
untested. Failures are permanent and block broader claims.
- A versioned support matrix lists exactly the qualified pairs. CUDA
tests run in the cuda-runtime conditional gate.
- `obliteratus experiments qualify run|matrix`.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Remove the observation runner's execution limits.
- Chat templates: an optional prompt section renders each prompt
through the tokenizer's chat template (optional system message,
generation prompt), tokenized without extra special tokens. The
rendered-prompt digest joins the generation step identity and each
record; capture uses the same rendered prompts.
- Decoding: seeded sampling (temperature, top-p, top-k) alongside
greedy, with a per-example seed derived from the spec seed and example
id. Comparison treats sampled outcomes as exact only when strategy,
device, dtype and seed match, and says why otherwise.
- Batching: optional left-padded greedy batches with an explicit,
recorded pad token; rows are cut at their first eos so batched and
unbatched outcomes agree. Sampling with batches is refused because
per-example seeds cannot hold.
- Devices: dense CUDA for the runner and capture, with shards written
from CPU copies and device/dtype recorded. Quantized, offloaded,
dispatched, meta, split-device and MPS models are refused with
explicit reasons.
The schema stays additive within version 1; options at their defaults
are dropped from the filled spec, so existing spec digests are
unchanged (pinned in tests).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A non-editable install from a checkout leaves an untracked, gitignored
obliteratus.egg-info in the source root. The llama-tp gate and its TP
workers run with the checkout on sys.path, so importlib.metadata also
discovered that egg-info. installed_package_set_digest() enumerates every
visible distribution, so the stale build artifact broke the live package
identity (LMS_DEPENDENCY_DRIFT) before any hardware evidence was written.
model_identity now locates exactly one .dist-info for obliteratus under
the active prefix's purelib/platlib, requires its RECORD to own the
package that PathFinder finds there, and fails closed otherwise (no
wheel, egg-only, duplicate or disagreeing installs, ownership mismatch).
A setuptools source-tree obliteratus.egg-info outside the site dirs is
excluded from the inventory only after that wheel is found. All other
metadata/RECORD and duplicate checks are unchanged; a clean install keeps
the same digest.
run_conditional_gate.py refuses llama-tp-local-gpu up front (not_run,
exit 2, actionable message) when the checkout root holds an
obliteratus.egg-info, before any probe or GPU time; --allow-missing does
not bypass it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Review r1: a non-empty but invalid GITHUB_SHA short-circuited the
resolver to "local" even when the repository HEAD was valid. Validate
each source on its own and fall back to "local" only if both fail.
Move the git helpers to scripts/conditional_gate_metadata.py and use them
from conditional_gate_summary.py too, so the workflow summary records the
same git_sha and git_dirty. Add summary-producer cases and a real
temporary-repository test for clean, tracked-dirty and untracked states.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Gate runs on lab hosts have no GITHUB_SHA, so every report said
git_sha "local" and the evidence could not be tied to a commit from the
summary alone. Resolve GITHUB_SHA, then git rev-parse HEAD of the
script's repository, then "local"; accept only 40/64-char lowercase hex.
Add git_dirty (tracked changes at report time; null when git is
unavailable). schema_version stays 1; the field is additive.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Add a reusable phase-admission module that estimates per-device demand
(resident weights, activations/KV, staging, logits, edit workspace) for
each pipeline phase and checks it against freshly observed free memory,
utilization ceilings and lifecycle broker grants before the phase starts.
Over-budget phases fail with the device and shortfall. Load admission is
exposed as admit_model_load for reuse by UI reloads.
Refs #245
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit 4caf45b04a8faa55f191b22c069f58714236689b)
Ported for #244 (part 1/6). Internal-only content from the archived
commit was dropped: .aiwg records, internal runner-policy routing, and the
internal security-docs test. Marked experimental in user docs.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>