Commit Graph
3 Commits
Author SHA1 Message Date
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
Joseph MaglyandClaude Opus 5.5 ca94280c9b feat(analysis): labeled activation sets and model-level subspace validation
Connect the full-subspace report to real captured activations (F08b)
and add the labeled-activation foundation that candidate discovery and
example selection build on.

- Labeled sets: capture a pack's positive, control, neighbour and
  optional battery sets for declared dataset roles. Labels (set, kind,
  role, group, family, record id, input digest) live in a sidecar whose
  digest, the capture identity and the dataset revision are bound in a
  labeled-set manifest; prompt text is never stored. Locked test needs
  explicit acknowledgement. Legacy packs are fit-only, bound to the pack
  bytes.
- Loader: recomputes rows and capture identity and refuses any
  mismatch, naming the field. Selection helpers pick rows by role, set
  and kind, and build deterministic group-disjoint folds. A capture that
  failed or was cancelled is replaced on retry; complete sets never are.
- Subspace report on a labeled set with the pack's extracted rank-k
  basis; groups come from dataset independence units, and the
  basis-fit overlap is read from the basis's dataset access receipt.
- `obliteratus experiments subspace` and a Python API write versioned
  reports next to the run; the Explorer lists them as a descriptive
  table.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 21:46:05 -05:00
Joseph MaglyandClaude Opus 5.5 4ac544d9bf feat(ui): evidence explorer from failing scores to activations and replayable specs
Add an Explorer sub-tab under Concept Lab (F06) that reads a finished
observation run without loading a model. Pure handlers (no Gradio
import) cover loading, scorecards, filters, example records, text,
activations, saved views, export and comparison; the layout only wires
them.

- Start from the scorecard; every aggregate and group drills down to
  exactly the examples it counts. Filter by outcome (failed, excluded,
  abstained, invalid), task, group and evidence status.
- Drill into an example's record and its captured activations as a
  per-site table and an HTML heatmap, labelled descriptive. Anything not
  measured reads "unavailable: <reason>"; a measured zero reads 0.
- Text is hidden by default, verified against the recorded digest when
  shown, and refused for locked test data and on public deployments
  (Hugging Face Space or a share link, which now sets a flag at launch).
- Saved views are versioned JSON next to the run, validated on load.
- Export writes the run's exact spec (same run identity, checked) with
  the view in a sidecar, and shows the matching CLI command.
- The runner now records the ordered example ids in the capture summary
  so activations map to examples without reconstructing the order;
  older results fall back to the runner's order.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 17:26:14 -05:00