Commit Graph
2 Commits
Author SHA1 Message Date
Joseph MaglyandClaude Opus 5.5 5f0eafe14b feat(experiments): controlled interventions on direction and subspace estimates
Extend the controlled intervention harness beyond single channels.

- Fixed directions (rows of the pack's stored basis) and rank-k
  subspaces load from their direction artifact before the model does.
  The artifact must match the file, tensor and metadata digests that the
  dossier's source report recorded; discovery and subspace reports now
  record that binding, and reports without it are refused. Refitted
  difference-of-means directions stay refused.
- Subspace ablation removes the dose fraction of the projection onto the
  whole span. Steering a rank > 1 span needs one declared direction
  inside it (within 1e-4).
- Random controls are rank- and norm-matched: a seeded rank-k span
  orthogonal to the target span, and for a declared steering direction a
  rank-1 vector orthogonal to the whole span. Mismatched controls are
  refused before the arms run and at attachment.
- Each arm records target kind, rank, digests and orthogonalization.
  Evaluation rows on the artifact's own fit role and revision are
  refused. Channel specs and digests are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 20:26:07 -05:00
Joseph MaglyandClaude Opus 5.5 477eb753c8 feat(analysis): dataset-level candidate discovery with confound and null baselines
Extend candidate scanning from two prompts to distributions over a
labeled activation set (F07).

- Candidates with explicit coordinate identities: individual channels
  at a site and residual directions (a difference-of-means refit and
  the pack's stored basis rows). Binary (positive vs controls) or
  per-set contrasts.
- Measures reported separately, never combined: held-out AUC and
  balanced accuracy over group-disjoint folds, standardized mean
  difference, group-bootstrap intervals and fold stability. Everything
  fitted is refitted per training fold; recipe_top1 reports the honest
  held-out score of each fold's own top channel. Independent validation
  uses select rows; in-sample and basis-overlap scores are labelled.
- Nulls: a group-level shuffled-label null rerunning the full recipe
  (max over channels for channels) and random-direction/channel nulls,
  each with the observed quantile.
- Confounds: token-count and hashed-token lexical baselines plus length
  correlation, flagged beside each candidate; features are built in
  memory and no text is stored.
- Locked test is refused for discovery and excluded from acknowledged
  sets. Caps bound channels, bootstraps and permutations.
- `obliteratus experiments discover` and a Python API write versioned
  candidate tables; the Explorer lists them.

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