Files
OBLITERATUS/docs/TARGET_DOSSIERS.md
Joseph MaglyandClaude Opus 5.5 878796adb2 feat(experiments): controlled intervention harness with matched controls and restoration checks
Start milestone 3 (F12): run a temporary intervention on a ready
dossier estimate and record the result as the only route to a
"controlled intervention result" label.

- Versioned intervention spec (own schema; baseline observation specs
  unchanged) for steering or ablating a channel estimate at its site
  through the existing hook manager. Four arms on the same examples:
  baseline, intended, a seeded norm- and rank-matched random control
  orthogonal to the target, and a fresh-baseline replay that must
  reproduce the baseline exactly. Each arm records site, module, hook,
  token scope, units, dose and ordering.
- Dose ladders with paired scorecards against the baseline. The deciding
  dose and target task must equal the values pre-registered in the
  dossier hypothesis, alongside its effect threshold, direction and
  collateral margin.
- Restoration (parameter/buffer digest, hook counts, probe logits) is
  checked after every arm through a helper shared with pack evaluation.
  Exceptions and cancellation remove hooks and leave a recorded attempt.
- Refused before any forward pass: stale or unready dossiers, geometry
  mismatches (site, width, model, dtype, fingerprint, tokenizer,
  readout, device), evaluation rows overlapping discovery inputs, and
  evaluation on the dossier's confirmation rows.
- A minimal last-token activation-patching experiment with an explicit
  corruption strategy and logit-difference metric (descriptive only).
- Dossiers attach results by reference and recompute the verdict from
  per-example records on every assessment. The label is granted only if
  the intended arm beats the control by the threshold (one-sided exact
  McNemar), collateral endpoints pass and restoration held. Fixture or
  local models are software-contract results that never upgrade a label
  by default.
- `obliteratus experiments intervene` and a Python API.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 18:09:42 -05:00

6.5 KiB

Target dossiers

A target dossier records one hypothesis about a bounded behavior and the estimates of where a model carries it, so that another developer can see how the target was selected and what would falsify it. It is versioned JSON (obliteratus.target-dossier, schema version 1, schema file obliteratus/concepts/schema/target-dossier.v1.schema.json) stored beside an observation run as <run>/dossiers/<name>.json.

obliteratus experiments dossier build input.json --run ./observations/<digest>
obliteratus experiments dossier show ./observations/<digest>/dossiers/alpha.json
obliteratus experiments dossier check ./observations/<digest>/dossiers/alpha.json --current
from obliteratus.analysis.target_dossier import build_dossier, write_dossier
from obliteratus.analysis import dossier_readiness

dossier = build_dossier("alpha", run, hypothesis={...},
                        discovery="candidates/layer.0-binary-fit.json",
                        estimates=["channel:layer.0:2"])
write_dossier(dossier, run)
dossier_readiness.check(dossier, run, model=model, pack=pack)

Hypothesis and estimates

  • hypothesis: intended_behavior, bounded_task and falsification_test, written by the author, and optionally the pre-declared decision thresholds of a later controlled intervention: useful_effect_threshold (in (0, 1]), effect_direction (increase or decrease), collateral_margin (in (0, 1)), plus the decision_coefficient and target_task that will decide the comparison. A controlled intervention refuses a dossier without them, or a spec whose decision dose or target task differs from them, and a result is bound to the hypothesis digest at run time, so thresholds cannot change after the result exists.
  • estimates: one or more candidates for the hypothesis. A channel or residual_direction comes from a candidate-discovery report (experiments discover); a subspace comes from a labeled-subspace report (experiments subspace). Each keeps its coordinate identity (id and site) and cites its coordinate and evidence.

Evidence by reference

Every predictive value stays in its source report. A reference is {"path", "sha256", "pointer"}: the report path (relative to the run directory when inside it), the SHA-256 of the report bytes and a JSON pointer into it (for example /contrasts/0/tables/channel/0/validation). The dossier copies no AUC, interval, null or score. provenance lists every source with its digest: the reports, the labeled-set manifests and the capture manifests they are bound to. It also records the pack (id, version, bytes digest), the dataset revision and the model identity (model id, dtype, revision, weight fingerprint and tokenizer).

Also recorded: confound resolutions (an explicit reason per flag), coverage (tested and untested sets and roles), counterexamples (rest-set rows among the report's top examples that score at or above the median target score), rejected alternatives with reasons, unresolved questions and the interventions list: controlled intervention results attached by reference ({"result": {path, sha256, pointer}, "estimate", "attached_at"}, see CONTROLLED_INTERVENTIONS.md).

Discovery and confirmation

datasets lists the discovery dataset (revision and roles of the held-out discovery folds) and the confirmation dataset: by default the report's own validation rows, or a second candidate-discovery report given as confirmation. Confirmation must be independent: the same dataset revision with overlapping roles, or an unpartitioned legacy pack, is refused. Disjoint roles of one revision rely on the pack's partition contract. A different revision is accepted only when no row's tokenized input also appears in the discovery labeled set, since a new revision may reuse rows. A refitted difference-of-means direction is not a fixed coordinate across reports, so a second report cannot confirm it. For a subspace the discovery dataset is the basis's dataset access receipt; without a receipt its fit rows are unknown and it cannot be independently validated.

Evidence labels

Labels use one ordered vocabulary: hypothesis, descriptive association, independently validated predictor, controlled intervention result, deployment-tested result. They are computed per estimate:

  • independently validated predictor: confirmation evidence from an independent dataset, not fitted on its evaluation rows, whose AUC interval excludes 0.5 and whose AUC exceeds the discovery shuffled-label null 0.95 quantile, after the discovery held-out AUC exceeded that quantile (subspace: a pass or partial verdict);

  • descriptive association: any other measured evidence;

  • hypothesis: no evidence, or a stale dossier.

  • controlled intervention result: only from an attached intervention result whose verdict, recomputed from its records whenever the dossier is assessed, is supported (see CONTROLLED_INTERVENTIONS.md). Results on fixture models (software-contract) never count unless --allow-fixture-results is given.

A claimed label (claimed_label) may be lower than the computed label, never higher. causal and the intervention levels are refused without an attached intervention result that supports them.

Readiness for controlled experiments

Readiness is computed, with a checklist that names what is missing: stated hypothesis, stated falsification test, declared coverage, current sources, and at least one estimate that is independently validated beyond its nulls with no unresolved confound flag. Subspace reports have no confound baselines, so their estimates show confound_baselines_not_assessed until resolved. A confound resolved with a reason no longer blocks readiness, but each estimate's assessment lists it under accepted_confounds with that reason: it is a recorded risk, not evidence that the confound is absent. Optional geometry analyses are not required.

Invalidation

check reports the dossier stale when a referenced source (including an attached intervention result) is missing, its digest differs or a pointer no longer resolves, and, when a model or pack is supplied, when the model's weight fingerprint or revision differs or the pack's dataset revision (legacy: pack bytes) differs. A stale dossier keeps its hypothesis; its evidence is reported as unsupported for the current model or data and every label falls back to hypothesis. check exits 1 when stale; --current takes the model and pack from <run>/spec.json.

The Explorer's "Target dossiers" section lists each dossier of the loaded run with its recomputed label, readiness checklist and status.