Files
OBLITERATUS/docs/CAUSAL_TARGETING_MAP.md
Joseph MaglyandClaude Opus 5.5 4a6938e63a fix(experiments): attach causal-map cells only through the map's correction
A map runs one controlled intervention per row, and each row result was
attachable on its own with `intervene attach`, which would let a single
cell be picked from the grid without the map's Holm correction.

- Map rows set an optional `family` (kind causal_map, map digest) in
  their intervention spec; the runner copies it into the result.
- `attach_result` refuses a result carrying a family unless the caller
  supplies the map reference, cell and Holm-adjusted p; `map attach`
  does. The family is stored in the dossier entry.
- Every assessment re-reads the map, checks its digest, and confirms the
  cell is still supported with the recorded adjusted p; an edited or
  missing family makes the attachment invalid.

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

6.9 KiB
Raw Permalink Blame History

Causal targeting map

A causal targeting map measures one ready target-dossier estimate over a grid of sites, token scopes and doses. Every tested cell is a controlled intervention: the intended edit compared with a norm/rank-matched random control on the same evaluation rows, with restoration checked after every arm and a fresh-baseline replay. The map shows target benefit, collateral endpoints, uncertainty and restoration together, and says which cells were not tested and why. Results hold only under the tested conditions; the map is not a general mechanistic claim about the model.

obliteratus experiments map run map.json --run ./observations/<digest> [--max-cells 8]
obliteratus experiments map show ./observations/<digest>/maps/<map-digest>/map.json
obliteratus experiments map attach <map.json> --cell "layer.0|all_tokens|6.0" \
    --dossier ./observations/<digest>/dossiers/alpha.json
obliteratus experiments map rank <map.json> [<map.json> ...] --dossier <dossier.json>
from obliteratus.experiments.causal_map import run_map, load_map, attach_cell
from obliteratus.analysis.causal_map_rank import rank_candidates

document = run_map(spec, run_dir)            # resumes when the map already exists
ranking = rank_candidates([load_map(path)])  # one map per estimate of one dossier

Map spec

obliteratus/concepts/schema/causal-map-spec.v1.schema.json (kind: causal_targeting_map). dossier, estimate, model, dataset, tasks, target_task, decoding, control and optional seed/probes are passed unchanged to the controlled intervention spec of every row and validated by that schema. In addition:

  • operation: kind (steer or ablate) and units;
  • grid: sites (layer.N), token_scopes (last_token, all_tokens) and doses (the dose ladder of every row; it must contain the decision dose);
  • decision_coefficient: must equal the dossier's pre-registered decision coefficient, as target_task must equal its pre-registered target task (the harness refuses anything else);
  • budget.max_cells: the most cells that may be tested (default 64).

The map identity is the digest of the default-filled spec without budget. Maps are stored as <run>/maps/<map-digest>/map.json.

Cells

Each runnable row (one site, one token scope) is one call of the controlled intervention harness with the grid's doses as its ladder; its result is stored by the harness under <run>/interventions/<row-digest>/. A cell is one dose of one row and records:

  • target benefit: the intended-minus-control difference in target success rate (oriented to the declared direction), n, intended/control/baseline rates, an interval (conditional Wilson interval on the discordant pairs) and the one-sided exact McNemar p, raw and Holm-adjusted;
  • collateral endpoint statuses at the dossier's declared margin, invalid-output rates per task and the restoration outcome of its arms and the replay;
  • the independence record of the evaluation rows;
  • a link to the controlled comparison: result path, SHA-256, a JSON pointer to the dose's comparison and to its intended and control arms;
  • failure examples: example ids whose intended-arm outcome was not the declared one, and the path and digest of the stored generations.

Cells are always recomputed from the referenced results; a changed result is refused.

Status rule

  • Only cells at the pre-registered decision dose can be supported; every other dose is descriptive, with its measurements shown.
  • Multiple comparisons: every tested decision-dose cell is in the family. The map reports the number of tested and untested cells and Holm-adjusts the family's p-values before any cell reads supported.
  • A cell is supported only when the harness verdict, recomputed from its records, is supported (target difference at least the dossier's useful-effect threshold in the declared direction, every collateral endpoint PASS, restoration and replay passed, evaluation rows independent of discovery and confirmation) and its Holm-adjusted p is below 0.05. A cell supported only before correction reads inconclusive.
  • untested cells (outside the estimate's site, over the cell cap, refused by the harness, interrupted or restoration failures) carry their reason and no number. They are never shown as zero.

Other sites

A channel index or residual vector has no guaranteed meaning at another layer, and the harness refuses a site other than the estimate's own. This version does not run such cells: they are recorded as untested and labelled exploratory (transferred coordinate), with the capture width compared with the estimate's width where the capture holds that site. They can never be attached to a dossier or change its label. Measuring them would need a separate estimate found at that site.

Resume and compute bound

Rows are run in grid order until the next row would exceed max_cells; the remaining cells read untested: cell cap reached. Running the same spec again (optionally with a larger cap or --resume <map.json>) reuses every completed row whose stored result still has the expected row-spec digest and SHA-256, and runs only the rest. A map file or directory written for another spec is refused rather than mixed.

Attaching to a dossier

map attach passes the row's controlled-intervention result to the harness's dossier attachment, which recomputes its verdict. It refuses exploratory, untested and descriptive cells, and a row whose uncorrected harness verdict is supported while the corrected map cell is not.

Every row's intervention result carries a family mark naming its map, so it cannot be attached on its own: intervene attach refuses it, because that would let one cell be picked from the grid without the map's correction. map attach records the map (by reference), the cell and its Holm-adjusted p in the dossier entry, and each assessment re-reads the map and confirms the cell is still supported after correction; an edited or missing family record makes the attachment invalid.

Re-ranking

map rank orders the tested decision-dose cells of the maps of one dossier (one map per estimate): supported first, then the larger target difference, then the smaller raw p. P-values are Holm-adjusted again across all maps given, and a cell is supported in the ranking only when it is supported in its map and after that adjustment. Ready estimates without a map are listed as untested. The ranking describes the tested conditions only.

Explorer

The Evidence explorer's "Causal targeting maps" section shows, per token scope, a sites × doses table. Tested cells show status, difference, raw and Holm-adjusted p and the comparison they came from; untested cells read untested with their reason and are not shaded.

Fixture models

Rows on fixture models produce software-contract results, exactly as in the controlled intervention harness: they test the software and never count as model findings.