Files
OBLITERATUS/docs/INTERACTION_EXPERIMENTS.md
Joseph MaglyandClaude Opus 5.5 10812efc0e feat(experiments): interaction and preservation experiments
Add two-estimate interaction experiments (F14): measure whether two
ready dossier estimates interact when applied together, in which order,
and under which conversation history, without treating orthogonality as
independence.

- Arms: baseline, A, B, each declared order, matched random controls
  for each, optional protected arms (one component restricted to the
  complement of the other's span) and a baseline replay; restoration is
  checked after every arm and a failure stops the attempt.
- Orders and history mode (single turn, matched context, diverged) are
  part of the spec digest. Components pass the harness's model and
  independence checks; confirmation-locked rows are refused.
- Interaction is the per-example difference-in-differences of task
  success with a seeded paired bootstrap interval and an exact sign
  test, compared against the random-control sequence; order sensitivity
  is reported. "Independent" is never an outcome, and geometry never
  feeds one.
- Protection reports projection preservation and behaviour preservation
  separately.
- Results link to dossiers by reference as descriptive evidence only,
  re-verified on read, never granting labels. `obliteratus experiments
  interact` and an Explorer interaction view.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 09:26:34 -05:00

7.2 KiB

Interaction experiments

An interaction experiment asks whether two ready dossier estimates, A and B, act independently on a scored behaviour when they are edited together, and whether the order of the edits matters. It reuses the controlled intervention harness's checks, operations, random controls and restoration rule. Results are descriptive: they never grant or change a dossier evidence label.

Orthogonality is never treated as independence. Two orthogonal directions can still interact through the model's nonlinear computation and readout, so the geometry of the two edits is recorded beside the measured interaction and never enters its outcome.

obliteratus experiments interact run spec.json --run ./observations/<digest>
obliteratus experiments interact show ./observations/<digest>/interactions/<spec-digest>/attempts/0001/result.json
obliteratus experiments interact attach <result.json> --dossier ./observations/<digest>/dossiers/alpha.json
obliteratus experiments interact list --dossier ./observations/<digest>/dossiers/alpha.json
from obliteratus.experiments.interaction_runner import run_interaction, load_interaction_result
from obliteratus.analysis.dossier_interactions import attach_interaction, describe

result = run_interaction(spec, run_dir)
load_interaction_result(result["location"]["result"], verify=True)
attach_interaction(dossier_path, result["location"]["result"])

Spec

obliteratus/concepts/schema/interaction-spec.v1.schema.json. The canonical digest of the default-filled spec is the run identity; results are stored as <run>/interactions/<spec-digest>/attempts/NNNN/ with the observation store's attempt lifecycle.

  • components.A, components.B: dossier, estimate, optional direction_artifact and one operation (kind, site, token_scope, units, a single coefficient, optional steer_direction), with the same meaning as in a controlled intervention spec.
  • model, dataset, tasks, target_task, decoding, seed, probes: as in a controlled intervention spec (validated by that schema).
  • orders: ["A>B", "B>A"] by default. A>B installs A's hook first; on a shared module, hooks run in installation order, so B acts on A's output.
  • history.mode: single_turn (default), matched_context or diverged; the two-turn modes need history.follow_up.
  • protection (optional): preserve_task and margin (default 0.1).
  • control.seed: A's control uses the seed, B's control seed + 1.
  • statistics: bootstrap_samples (default 2000), seed, confidence (default 0.95).

Orders and history mode are part of the digest, so changing either is a different run. Every arm also records an arm_id over the run digest, its ordered steps and the history mode.

Checks

Each component passes every pre-forward check of the controlled intervention harness: current and ready dossier, ready estimate, artifact binding, geometry, model identity and evaluation-row independence from the estimate's discovery and confirmation rows. A pre-registered decision dose is not required, because the result decides nothing; whether each component's coefficient and target task match the dossier's pre-registration is recorded (matches_preregistered_decision). Rows of a registered confirmation set, or of an exposed one, are refused.

Arms

On the same evaluation examples, in this order: baseline; A; random:A; B; random:B; for each declared order the sequence (A>B, B>A) and the same sequence of the two random controls (random:A>B, random:B>A); the protected arms when declared and supported; a fresh-baseline replay, which must reproduce the baseline completions exactly. Restoration (parameter and buffer digests, hook counts, probe logits within 1e-5) is checked after every arm; a failed check stops the attempt and records it as failed.

Random controls are norm- and rank-matched. When both components act on the same site, a rank-1 control is orthogonal to both components (and to its estimate's span); otherwise to its own component only.

History modes

  • single_turn: each prompt is answered once.
  • matched_context: turn 1 is generated once by the baseline; every arm answers turn 2 on the same history (prompt + baseline reply + follow_up).
  • diverged: each arm generates its own turn-1 reply under its edits and answers turn 2 on it. The share of turn-1 replies that differ from the baseline is recorded per arm as the contextual side-effect profile.

Turns are joined as plain text with single spaces and turn 2 is scored.

Statistics

For each task and order X>Y, per example d = s(X>Y) - s(X) - s(Y) + s(baseline) on task success. The interaction is mean(d), which equals effect(X>Y) - effect(X) - effect(Y), with a paired percentile bootstrap interval and an exact two-sided sign test on the non-zero d. The outcome is interaction_detected only when the interval excludes 0 and p < 0.05. no_interaction_detected means the interval covers 0: it bounds the interaction size and is not evidence of independence. The same quantity is computed for the random-control sequence, together with the per-example difference between the two (beyond_control).

Order sensitivity uses o = s(A>B) - s(B>A) per example with the same interval and test (order_sensitive, no_order_difference_detected, or untested when only one order was declared). Examples unscorable in any arm a comparison reads are excluded and counted.

Protection

A|protect:B applies A restricted to the orthogonal complement of B's span (and B|protect:A the reverse), mirroring the protected-complement rule of persistent projections. Coverage per component is supported, identity (already orthogonal: protection changes no vector) or unsupported (different sites, or nothing remains after protection). Two things are reported separately for the protected and unprotected arms:

  • projected quantity: the change of the site output's projection onto the protected span at the final position of each probe prompt;
  • behaviour: the paired change of preserve_task success against baseline, preserved only when its interval lies within ±margin.

A preserved projection does not imply a preserved behaviour, and neither is inferred from the other.

Dossiers

interact attach links a verified result to a dossier by reference ({path, sha256}) in <run>/interaction-attachments/<dossier>.json. The dossier file and its evidence label are unchanged. Each time the ledger is read, every result is digest-checked, its statistics recomputed from its per-example records and its binding to the dossier (name, creation time, hypothesis digest) checked; failing entries are shown as invalid. A result on a fixture model is software-contract evidence, as for controlled interventions.

Explorer

Section 11 of the evidence explorer lists, per result, task and order, the baseline, single-edit and sequence success rates, the interaction with its interval and p-value, the control interaction, the order outcome and the edits' geometry.

Scope

General N-way searches are not supported; this feature compares two components. Results hold only for the tested model, estimates, operations, coefficients, orders, history mode and evaluation rows.