mirror of
https://github.com/elder-plinius/OBLITERATUS.git
synced 2026-12-05 18:44:41 +01:00
Add the confirmation registry (F15): freeze what decides a confirmation before its results are unlocked, track exposure of confirmation data, and compute maturity from referenced evidence. - Append-only registry under <run>/registry with a schema file as authority. A registration freezes, by digest, the dossier binding, the full intervention spec, scorers, threshold, direction, margins, decision dose, target task, seeds and the confirmation row set (text digests only). Edited registrations fail their id; changes need an amendment, counted as a new comparison. - Unlocking requires a matching frozen registration: the result must come from the frozen spec after registration, on the frozen rows, with an unchanged dossier, and its verdict is recomputed from its records. - Every evaluation and unlock is logged as an exposure. Exposed rows are refused as inputs to discovery, example selection and causal maps, and for any later confirmation of any target. Runs without a registry are unchanged; an optional registry_dir covers outputs outside the run. - Replications must reuse the recipe with different seeds and disjoint rows. Non-supported verdicts are negative entries that mark the target for re-investigation and require fresh data. - Maturity per (target, method, model revision, task, backend) is computed: hypothesis, candidate, causal, replicated, persistent-pilot eligible (which also needs a current dossier). Fixture results never count by default; claims above the computed level are refused. - The pain pack's declared protocol registers as the first candidate after reference and prompt-digest verification; with no answer keys it stays at hypothesis, marked descriptive only. - `obliteratus experiments registry register|unlock|replicate|status`, a Python API and an Explorer section. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
145 lines
7.3 KiB
Markdown
145 lines
7.3 KiB
Markdown
# Confirmation and maturation registry
|
|
|
|
The registry freezes a confirmation comparison before its result can be read,
|
|
tracks how often confirmation data has been seen, keeps confirmation rows out of
|
|
later searches and computes a maturity level per target from the evidence it
|
|
references. It is stored beside an observation run as `<run>/registry/`
|
|
(schema `obliteratus/concepts/schema/confirmation-registry.v1.schema.json`).
|
|
|
|
```bash
|
|
obliteratus experiments registry register spec.json --run ./observations/<digest>
|
|
obliteratus experiments intervene run spec.json --run ./observations/<digest>
|
|
obliteratus experiments registry unlock sha256:<id> <result.json> --run ./observations/<digest>
|
|
obliteratus experiments registry replicate sha256:<id> replication.json --run ./observations/<digest>
|
|
obliteratus experiments registry status --run ./observations/<digest>
|
|
obliteratus experiments registry register --run <dir> --pack pain --evaluation concept-evaluation.json
|
|
```
|
|
|
|
```python
|
|
from obliteratus.experiments import registry
|
|
from obliteratus.experiments.registry_status import status
|
|
|
|
document = registry.register(run, "spec.json")
|
|
registry.unlock(run, document["id"], "interventions/<digest>/attempts/0001/result.json")
|
|
status(run)
|
|
```
|
|
|
|
## Storage
|
|
|
|
* `registrations/<id>.json`: one registration, written once. Its id is the
|
|
canonical SHA-256 of its kind, creation time, actor and frozen fields; a file
|
|
that no longer reproduces its id was edited and is refused.
|
|
* `events.jsonl`: append-only `register`, `amend`, `replicate`, `evaluate`,
|
|
`unlock` and `refused` events with actor, tool version and time.
|
|
* `.lock`: held while the registry is written.
|
|
|
|
Rows are identified by the SHA-256 of their UTF-8 text; the registry stores
|
|
these digests, never the text.
|
|
|
|
## What a registration freezes
|
|
|
|
A confirmation registration takes a controlled-intervention spec for a ready
|
|
dossier estimate and freezes: the dossier binding (name, creation time,
|
|
hypothesis digest, estimate and the digest of its entry); the whole
|
|
default-filled spec and its digest (operation, site, token scope, units, dose
|
|
ladder, decision dose, tasks with scorer ids and versions, model, decoding,
|
|
seeds); the pre-declared threshold, direction, collateral margin, decision dose
|
|
and target task; and the confirmation dataset (pack digest, revision, role,
|
|
per-task counts, row-set digest of the sorted row digests, record-id digest).
|
|
Rows must be independent of the dossier's discovery data and must not be its
|
|
predictor-confirmation role.
|
|
|
|
Frozen fields never change. Registering another comparison for the same target
|
|
key needs `--amends <id>`; the amendment is a new registration and counts as a
|
|
new comparison, and the amended registration can no longer be unlocked. A
|
|
claimed maturity (`--claim`) above the computed level is refused.
|
|
|
|
## Locked results
|
|
|
|
Rows of a registered confirmation set are locked. The controlled intervention
|
|
harness runs the registered spec on them and records each run as an `evaluate`
|
|
exposure; any other spec touching those rows is refused before a forward pass.
|
|
|
|
`unlock` accepts one result per registration, and only when the result was
|
|
produced by the frozen spec digest after the registration was created, on the
|
|
frozen dataset and rows, against an unchanged dossier hypothesis and estimate.
|
|
The verdict is recomputed from the result's records. Refused attempts are
|
|
logged.
|
|
|
|
## Exposure and comparisons
|
|
|
|
`status` reports, per confirmation set, its registrations and exposure count
|
|
(evaluations plus unlocks), and per target key the number of comparisons,
|
|
amendments, replications, exposures and negative outcomes.
|
|
|
|
Once a set is exposed, discovery (`experiments discover`), example selection
|
|
(`experiments select-examples`) and causal maps (`experiments map run`) refuse
|
|
any of its rows, whichever pack revision or role they appear in. The check
|
|
reads `<out>/registry` and its parent (`<run>/registry`) for discovery and
|
|
selection, and `<run>/registry` for maps; without a registry nothing changes.
|
|
|
|
Limitation: discovery or example selection writing to an output directory
|
|
outside the run does not find the run's registry, so its exposed rows are not
|
|
refused. Keep outputs under the run directory (the default `<run>/candidates`
|
|
and `<run>/example-selection`), or name the registry explicitly with the
|
|
`registry_dir=` argument of `run_discover`, `run_select_examples` or `run_map`
|
|
(for example `registry_dir="<run>/registry"`).
|
|
|
|
## Replications
|
|
|
|
A replication registers an independently specified repeat of a confirmation
|
|
registration: the frozen recipe is reused, both `seed` and `control.seed` must
|
|
differ, and its rows must be disjoint from the parent's and from every other
|
|
replication of that parent. A same-seed or same-partition replication is
|
|
refused. A replication is unlocked like a confirmation.
|
|
|
|
## Negative results and fresh data
|
|
|
|
An unlocked verdict that is not `supported` is recorded as a negative outcome
|
|
and marks the target key `re-investigate`. Re-confirmation needs fresh
|
|
confirmation data: rows never exposed for that target (a new revision or a
|
|
role not yet used). A result that changes after it was unlocked is reported as
|
|
`invalid` and not counted.
|
|
|
|
The fresh-data rule is global: a confirmation of any target cannot use rows
|
|
already exposed by an earlier confirmation of another target, because a target
|
|
chosen after seeing that result would carry the leakage. The refusal names the
|
|
earlier registration.
|
|
|
|
## Maturity
|
|
|
|
Maturity is computed per (target, method, model revision, task, backend):
|
|
|
|
1. `hypothesis`: registered, without an independently validated predictor.
|
|
2. `candidate`: the dossier estimate is an independently validated predictor.
|
|
3. `causal`: the latest unlocked confirmation is `supported`.
|
|
4. `replicated`: at least one replication of it is also `supported`.
|
|
5. `persistent-pilot eligible`: replicated, with no negative outcome
|
|
outstanding for that confirmation, and the dossier current (not stale) when
|
|
the status is computed.
|
|
|
|
A stale dossier (a referenced source missing or changed) no longer supports
|
|
its predictor evidence: maturity falls to the level its still-valid evidence
|
|
supports and `status` lists the staleness reasons under `dossier`.
|
|
|
|
Results on fixture models (`software-contract` scope) never raise maturity;
|
|
`--allow-fixture-results` exists for tests. Typed values in registrations or
|
|
events are never read as maturity. A change of model revision, method, task or
|
|
backend is a different key and leaves other keys untouched. Transfer between
|
|
keys is a separate claim and is not assessed.
|
|
|
|
## Pack evaluation protocols
|
|
|
|
`register --pack --evaluation` registers a pack's declared evaluation protocol
|
|
from a `run_concept_evaluation_battery` result after re-resolving every
|
|
reference by digest (nothing is fetched) and checking the hook, pack identity,
|
|
reference identities, dose ladder, direction and each battery record's prompt
|
|
digest against the verified row. A battery without answer keys or a registered
|
|
scorer, such as the pain pack's, is recorded as `hypothesis` with a
|
|
"descriptive only" note: its projections and completions describe a model and
|
|
cannot confirm a hypothesis. A scored battery records its scorer and still
|
|
stays at `hypothesis` until a dossier estimate is confirmed under the registry.
|
|
|
|
The Explorer's "Confirmation registry" section shows the computed maturity,
|
|
re-investigate flag, comparisons, exposures and negative outcomes per target.
|