Start milestone 4 (F16): turn a confirmed temporary intervention into the smallest persistent representation that expresses it, as a separate artifact, and verify the saved candidate itself after a fresh load. - Builds only for registry keys computed as persistent-pilot eligible (fixture models only with a test-only allowance marking outputs software-contract). The reference model is never written to; its digests are checked before and after. - Forms: a removable hook-free activation adapter (all operations), a LoRA adapter through the existing PEFT exporter (all-token ablation on a plain linear site), or a separate weight-edited copy (projection or bias shift). Auto picks the feasible form with the fewest stored elements. - A write-once, content-addressed manifest records parent identity and fingerprints, recipe and direction binding, every edited parameter with before/after digests, compatibility checks, artifact digests and build-time tolerances. - Verification reloads the candidate from disk and compares reference, temporary hook and candidate arms on independent rows: the edit must match the registered recipe, effects and outputs must agree with the temporary intervention, the useful-effect threshold and every collateral endpoint must hold. Failures are permanent and never selected. - `obliteratus experiments candidate build|verify|show`. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
7.0 KiB
Persistent candidates
A persistent candidate is a saved form of a temporary controlled intervention
whose key (target, method, model revision, task, backend) has reached the
registry's computed maturity persistent-pilot eligible (see
docs/CONFIRMATION_REGISTRY.md). The builder writes the smallest representation
that expresses the registered operation at its pre-registered decision
coefficient, keeps the reference model untouched and records what changed. The
verifier loads the saved candidate again and measures it. A hook, an adapter
and a permanent weight edit are different computations; none is assumed
equivalent to another.
obliteratus experiments candidate build sha256:<registration> --run ./observations/<digest> \
--source ./models/reference
obliteratus experiments candidate verify sha256:<candidate> --run ./observations/<digest> \
--pack ./packs/verification --revision sha256:<revision> --role select --attach
obliteratus experiments candidate show --run ./observations/<digest>
from obliteratus.experiments.candidate import build_candidate
from obliteratus.experiments.candidate_verify import verify_candidate
from obliteratus.experiments.candidate_status import attach, show
manifest = build_candidate(run, registration, "models/reference")
record = verify_candidate(run, manifest["id"], {"pack": "packs/verification",
"revision": revision, "role": "select"})
Gate
build needs an unlocked, not amended confirmation registration whose key has
the computed level persistent-pilot eligible at build time; any lower level is
refused before a model is loaded. Fixture-model results (software-contract)
never reach that level unless --allow-fixture-results (Python:
allow_fixture_results=True) is passed. That allowance is for tests only and
marks the candidate and its verifications software-contract.
Representations
| Representation | Removable | Expresses | Stored |
|---|---|---|---|
activation_adapter |
yes | any operation, units and token scope | operated vector or orthonormal rows plus the operation |
lora |
yes | all-token projection (ablate) on a site module that is a plain linear map writing the site output, with no bias component in the span |
PEFT pairs written by the existing LoRA exporter |
weight_edit |
no (separate copy) | all-token projection, or a raw steer as a bias translation, on a linear site module |
full edited model |
--representation auto (the default) picks the feasible form with the fewest
stored elements, preferring removable ones on ties. Every representation's
compatibility checks are recorded; asking for one that fails them is refused.
The activation adapter wraps the site module in a module that applies the
intervention hook's arithmetic to its output, without registering hooks; it is
removed by restoring the wrapped module. LoRA pairs are attached as unmerged
forward-time adapters.
Candidate store
<run>/persistent-candidates/<id>/ is written once through a staging directory:
artifact/: the saved representation;candidate.json: the manifest. Its id is the canonical SHA-256 of its content, so an edited manifest is refused. It records the registration and target key; the parent (model id, revision, dtype, source path, SHA-256 of every source file, sampled and full weight fingerprints, tokenizer vocabulary digest); the recipe (frozen spec digest, dossier hypothesis digest, estimate, the target record with its direction-artifact binding and vector digest); the edit (representation, module, operation, coefficient, adapter tensor digests or every changed parameter with digests before and after, and the full fingerprint of an edited copy); representation selection and compatibility checks; artifact file digests and size; and the declared tolerances (target_rate0.05,agreement0.95,logit_atol1e-4 by default, set at build time only).
The source files are hashed before and after the build and must be identical. The reference directory may not lie inside the candidate store or registry.
Reload verification
verify takes a dataset (pack, revision, role) and refuses rows that are
not independent of the estimate's discovery data, that are the dossier's
confirmation data, or that belong to any registered confirmation set. Before
loading a model it checks the manifest id, the artifact file digests, the
reference file digests and the maturity gate; a failure is recorded without
evaluation. With the frozen recipe's tasks and greedy decoding it then runs:
- the reference, loaded from its files;
- the reference with the temporary operation at the decision coefficient, followed by a restoration check;
- the candidate loaded from disk: the edited copy, or a second load of the reference with the saved adapter attached.
The candidate passes when all checks pass:
direction_binding: the edit's vector digest, operation and coefficient equal the target re-derived from the registered recipe;changes_covered_by_manifest: the loaded candidate's parameters differ from the reference in exactly the parameters the edit manifest lists, and the edited tensors or adapter tensors match their recorded digests;reproduces_temporary_effect: candidate minus temporary target success rate withintarget_rate;completion_agreement: at leastagreementof completions equal the temporary arm's;probe_logits: final-token logits of probe prompts withinlogit_atolof the temporary arm's;intended_effect: candidate minus baseline target success rate meets the dossier's useful-effect threshold in the declared direction;collateral_endpoints: every collateral task and the target task's invalid-output endpoint arePASSagainst the baseline at the dossier's collateral margin;- the reference was restored after the temporary arm and its files are unchanged afterwards.
The comparison (rates, effects against the baseline, candidate minus temporary,
agreement and logit difference) and both scorecards are stored with the
generations under verifications/NNNN/. A candidate is selected only while
every verification passed; after any failed attempt it is failed for good. It
never replaces the reference model.
Registry evidence
attach (or verify --attach) records a selected candidate against its
registration in <run>/persistent-candidates/attachments.jsonl with the digest
of its verification. show re-checks each attachment; a changed candidate or
verification makes it invalid. Attachments are descriptive persistent-pilot
evidence: they do not change the registry's computed maturity, and deployment
qualification on other backends is a separate step.
Limits
Weight-space forms need the site module to be a linear map whose output is the
site output; a decoder layer with a residual connection only supports the
activation adapter. Last-token scope and residual_norm units are expressed only
by the activation adapter. The default loader reads a local transformers
directory on the CPU.