Commit Graph
360 Commits
Author SHA1 Message Date
Joseph MaglyandClaude Opus 5.5 91b163e65a Merge upstream/main into feat/o05-1116
Resolved shared registration files by keeping both sides.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 11:29:04 -05:00
Joseph MaglyandClaude Opus 5.5 50fa4d1926 Merge upstream/main into feat/o05-1116
Resolved shared registration files by keeping both sides.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 11:20:16 -05:00
Joseph MaglyandClaude Opus 5.5 d9479ab07e Merge upstream/main into feat/o07-1116
Resolved shared registration files by keeping both sides.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 11:18:34 -05:00
Joseph MaglyandClaude Opus 5.5 6a8cc7fc59 Merge upstream/main into feat/o05-1116
Resolved shared registration files by keeping both sides.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 11:12:58 -05:00
Joseph MaglyandClaude Opus 5.5 ebc47e55e4 Merge upstream/main into feat/o07-1116
Resolved shared registration files by keeping both sides.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 11:12:04 -05:00
Joseph MaglyandClaude Opus 5.5 20a67adf8d Merge upstream/main into feat/o06-1116
Resolved shared registration files by keeping both sides.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 11:11:07 -05:00
Joseph MaglyandClaude Opus 5.5 affa976322 Merge upstream/main into feat/o07-1116
Resolved shared registration files by keeping both sides.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 11:05:05 -05:00
Joseph MaglyandClaude Opus 5.5 223e79d790 feat(analysis): uncertainty and coverage-gap acquisition queue
Add optimization O07: turn dossiers, causal maps and labeled features
into a versioned queue of specific requests for new examples, plus a
study comparing queue-driven acquisition with random acquisition.

- Gap detectors: unstable boundaries across group-disjoint folds,
  prediction/behaviour disagreement, sparse neighbourhoods, missing
  strata, confounded controls and unsupported causal-map cells.
- Each item carries the gap, digest-checked evidence references,
  rationale, an operator-provided source requirement (the queue never
  fetches), required partition and group lineage, a declared-heuristic
  expected value and priority.
- Test rows, protected roles, registered confirmation rows and their
  independence units are removed before scoring; anchors there are
  refused. Diversity caps per unit and neighbourhood plus a seeded
  exploration quota prevent repeated outlier targeting.
- Ingest writes a new write-once revision bound to the queue and its
  parent digests; the parent file is never modified.
- The study reports random acquisition at equal budget, a stratified
  arm and the queue on a hidden held-out set; verdict is "no
  improvement" unless the queue's seed interval clears random's.
  `obliteratus experiments acquisition queue|ingest|study`.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 11:04:38 -05:00
Joseph MaglyandClaude Opus 5.5 4dfc5dd2d4 Merge upstream/main into feat/o05-1116
Resolved shared registration files by keeping both sides.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 11:04:16 -05:00
Joseph MaglyandClaude Opus 5.5 dfdba6b4a5 Merge upstream/main into feat/o06-1116
Resolved shared registration files by keeping both sides.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 11:03:19 -05:00
Joseph MaglyandClaude Opus 5.5 9e7b3c1a33 Merge upstream/main into feat/f14-1116
Resolved shared registration files by keeping both sides.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 11:02:13 -05:00
Joseph MaglyandClaude Opus 5.5 abb21d0ee6 Merge upstream/main into feat/o06-1116
Resolved shared registration files by keeping both sides.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 10:57:06 -05:00
Joseph MaglyandClaude Opus 5.5 473f4abfdf feat(analysis): calibrated screening ladder study
Add optimization study O06: does a staged evaluation ladder (cheap
diagnostics, a development battery, then full evaluation) save total
cost without rejecting useful candidates?

- Arms: full evaluation of every candidate (bounded reference), a
  development-only ladder, and a ladder with a stage-0 score; usefulness
  is decided only by full evaluation with every collateral endpoint.
- Stage-0 scores must earn their role: predictor quality (Spearman, AUC)
  is reported, and separability or KL never substitutes for task
  success.
- Extra development samples use an anytime-valid mixture test (or a
  single fixed-sample look); naive repeated peeking is refused. Null
  simulations: 0.0245 and 0.0405 at alpha 0.05 against 0.24 for
  peeking.
- A seeded audit sample of exclusions is fully evaluated and every
  exclusion is reported. Rules are digest-bound; confirmation-exposed,
  test and confirmation rows are refused.
- Verdict is "no improvement" unless every seed passes cost,
  false-rejection, task and collateral tolerances with an unchanged
  confirmation candidate. `obliteratus experiments screening`.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 10:56:27 -05:00
Joseph MaglyandClaude Opus 5.5 faeb91fd8b Merge upstream/main into feat/o05-1116
Resolved shared registration files by keeping both sides.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 10:56:17 -05:00
Joseph MaglyandClaude Opus 5.5 7bf1a76a40 Merge upstream/main into feat/f14-1116
Resolved shared registration files by keeping both sides.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 10:55:11 -05:00
Joseph MaglyandClaude Opus 5.5 caef2aad24 Merge upstream/main into feat/f16-1116
Resolved shared registration files by keeping both sides.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 10:54:06 -05:00
Joseph MaglyandClaude Opus 5.5 2207943559 Merge upstream/main into feat/f14-1116
Resolved shared registration files by keeping both sides.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 10:47:44 -05:00
Joseph MaglyandClaude Opus 5.5 c41e70ac01 Merge upstream/main into feat/f16-1116
Resolved shared registration files by keeping both sides.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 10:46:51 -05:00
Joseph MaglyandClaude Opus 5.5 258b177252 Merge upstream/main into feat/o03-1116
Resolved shared registration files by keeping both sides.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 10:46:10 -05:00
Joseph MaglyandClaude Opus 5.5 ad64f6dcf8 Merge upstream/main into feat/o05-1116
Combine the null-kernel and reuse hooks in candidate discovery: the
selected kernel computes the nulls and is part of the reuse identity, so
a reference null is never served to a batched request or vice versa.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 10:45:23 -05:00
Joseph Magly 717c2b47c1 Merge pull request #493 from elder-plinius/feat/f10-1116
Geometry laboratory with synthetic benchmarks (F10)
2026-11-16 09:39:26 -05:00
Joseph Magly fef3fbfbfb Merge pull request #490 from elder-plinius/feat/o04-1116
Safe reuse of activation statistics, fits and nulls (O04)
2026-11-16 09:31:45 -05:00
Joseph MaglyandClaude Opus 5.5 0e0572bde5 Merge upstream/main into feat/f10-1116
Keep both the geometry-lab and trace experiment subcommands.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 09:31:20 -05:00
Joseph MaglyandClaude Opus 5.5 258b498f3b Merge upstream/main into feat/o03-1116
Keep both the adaptive-capture and trace experiment subcommands.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 09:30:19 -05:00
Joseph MaglyandClaude Opus 5.5 9e65c2385e feat(analysis): batched null kernels and reduced-rank sketches
Add optimization O05: batched random-direction kernels that reproduce
the reference loops, plus validated low-rank sketches with an explicit
error budget. The reference loops stay the default.

- Batched gate, discovery and subspace nulls keep draw order, generator
  state, norm matching, pooling, orientation folding and percentile
  semantics; identical rows are projected once so exact ties survive.
  Declared tolerance 1e-12 with identical decisions; observed 0.0.
- select_rank keeps both residual variance and class-contrast loss
  within budget, measured exactly, and reports the variance-only rank;
  it returns inconclusive when no rank qualifies.
- The sketch gate null is approximate only when the spectrum test
  passes, an exact audit stays within 0.005 AUC and no threshold falls
  inside the band; otherwise it recomputes exactly. It is refused in
  enforce mode. The observed AUC is never approximated.
- A benchmark module reports wall time, peak memory, subspace angles,
  null errors and decision disagreement (timings host-specific).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 09:29:07 -05:00
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
Joseph MaglyandClaude Opus 5.5 8848556105 feat(experiments): persistent candidate builder and verifier
Start milestone 4 (F16): turn a confirmed temporary intervention into
the smallest persistent representation that expresses it, as a separate
artifact, and verify the saved candidate itself after a fresh load.

- Builds only for registry keys computed as persistent-pilot eligible
  (fixture models only with a test-only allowance marking outputs
  software-contract). The reference model is never written to; its
  digests are checked before and after.
- Forms: a removable hook-free activation adapter (all operations), a
  LoRA adapter through the existing PEFT exporter (all-token ablation on
  a plain linear site), or a separate weight-edited copy (projection or
  bias shift). Auto picks the feasible form with the fewest stored
  elements.
- A write-once, content-addressed manifest records parent identity and
  fingerprints, recipe and direction binding, every edited parameter
  with before/after digests, compatibility checks, artifact digests and
  build-time tolerances.
- Verification reloads the candidate from disk and compares reference,
  temporary hook and candidate arms on independent rows: the edit must
  match the registered recipe, effects and outputs must agree with the
  temporary intervention, the useful-effect threshold and every
  collateral endpoint must hold. Failures are permanent and never
  selected.
- `obliteratus experiments candidate build|verify|show`.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 09:26:10 -05:00
Joseph MaglyandClaude Opus 5.5 ac9dfc1222 feat(analysis): geometry laboratory with synthetic benchmarks
Add the geometry laboratory (F10), a research branch of measurement
tools that reports when its assumptions fail rather than assuming them.

- Neighbourhood stability under noise (with chance level), local PCA
  rank, tangent variation between neighbouring local bases, LID
  (Levina-Bickel MLE and TwoNN) with a local-regularity test, resample
  stability, and raw-space versus PCA-view projection distortion. Every
  nonlinear measure carries a global PCA-rank baseline.
- A rejected regularity test nulls the LID with a reason. Curvature is
  always null and unsupported. Graph splits, connectivity changes,
  duplicates, projection artifacts and unstable neighbourhoods are
  flagged and labelled as not concept structure.
- Synthetic benchmarks with known answers (plane, sphere, circle, torus,
  swiss roll, union of subspaces) and density/noise sweeps; catalog
  entries checked against the code and every report's evidence.
- `obliteratus experiments geometry-lab benchmark|sweep|points` and a
  Python API including verified labeled activation sets.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 09:25:48 -05:00
Joseph MaglyandClaude Opus 5.5 780c450e0b feat(analysis): adaptive coarse-to-fine capture study
Add optimization study O03: can a coarse layer pass followed by
targeted fine captures find the same targets as the full sweep at lower
end-to-end cost?

- Three arms over the same rows and target rule: the reference sweep
  (every candidate layer), a fixed layer grid, and adaptive capture
  (coarse grid plus random exploration, then fine captures ranked by
  neighbouring AUC, uncertainty, direction disagreement and gap
  position, plus coverage probes).
- Forwards are counted by a hook; inference savings are claimed only
  when every seed needs fewer complete forwards. Bytes and
  extraction/CV work are counted; host timings stay outside the report
  digest.
- Unobserved regions are listed with "no evidence either way", and each
  missed target names its region.
- The recommendation is "no improvement" unless the missed-target rate
  stays within the pre-declared tolerance over at least 3 seeds with
  lower counted cost, and adoption also needs measured end-to-end time
  below the reference in every seed. Confirmation-exposed rows are
  refused.
- `obliteratus experiments adaptive-capture` and a Python API.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 09:21:55 -05:00
Joseph MaglyandClaude Opus 5.5 23f36c0e3c feat(analysis): temporal traces over prompt and generated tokens
Extend observation from prompt readouts to token-time-layer traces
(F09), with matched-prefix comparison kept separate from free-running
generation.

- Each forward call is recorded with its phase (full, prefill, decode),
  new positions, cache history and a prefix digest as decode-step
  identity; every position is observed exactly once, and masks select
  calls, prompt/continuation segments or caller labels.
- Teacher-forced replay of fixed tokens and free-running greedy decoding
  are distinct modes; comparing them is refused. Matched-prefix
  comparison reports per-layer and per-position differences; free
  running reports the divergence point.
- Cached execution is supported on dense CPU Transformers with
  past_key_values and refused (never silently recomputed) when the
  model, cache type or cache length doesn't fit. Qualification checks
  cached against uncached traces within tolerance.
- Caller labels such as "thinking" are stored as unverified metadata
  only. Traces are stored as chunked safetensors bound to the capture
  identity; hooks are removed on errors and cancellation.
- `obliteratus experiments trace` with --mode, --cache and --qualify.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 09:21:23 -05:00
Joseph MaglyandClaude Opus 5.5 4c67cd3da9 feat(analysis): safe reuse of activation statistics, fits and nulls
Add an opt-in, in-memory reuse cache (O04) for work repeated across
analyses: per-layer and per-fold extraction fits, candidate-discovery
nulls and labeled row selections, plus incremental pooled moments.

- Artifacts are keyed by kind, algorithm version, site, partition/role,
  fold, normalization, tokenizer, model, adapter, weight fingerprint,
  dataset revision, parameters and a data digest. Missing or unknown
  fields never match.
- A statistic fitted on all rows, another fold or held-out rows is never
  served inside a train or held-out fold (contamination refused); other
  mismatches are refused with per-field reasons.
- Exact results only; incremental moments carry a declared error budget
  and a distinct algorithm name. Reports cover hits, misses, avoided work
  and setup cost amortized over hits.
- extract_directions and discover_candidates take reuse=; outputs are
  bit-identical to fresh computation and defaults are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 09:21:01 -05:00
Joseph MaglyandClaude Opus 5.5 77d788b22c feat(experiments): confirmation and maturation registry
Add the confirmation registry (F15): freeze what decides a confirmation
before its results are unlocked, track exposure of confirmation data,
and compute maturity from referenced evidence.

- Append-only registry under <run>/registry with a schema file as
  authority. A registration freezes, by digest, the dossier binding,
  the full intervention spec, scorers, threshold, direction, margins,
  decision dose, target task, seeds and the confirmation row set (text
  digests only). Edited registrations fail their id; changes need an
  amendment, counted as a new comparison.
- Unlocking requires a matching frozen registration: the result must
  come from the frozen spec after registration, on the frozen rows, with
  an unchanged dossier, and its verdict is recomputed from its records.
- Every evaluation and unlock is logged as an exposure. Exposed rows are
  refused as inputs to discovery, example selection and causal maps,
  and for any later confirmation of any target. Runs without a registry
  are unchanged; an optional registry_dir covers outputs outside the
  run.
- Replications must reuse the recipe with different seeds and disjoint
  rows. Non-supported verdicts are negative entries that mark the target
  for re-investigation and require fresh data.
- Maturity per (target, method, model revision, task, backend) is
  computed: hypothesis, candidate, causal, replicated, persistent-pilot
  eligible (which also needs a current dossier). Fixture results never
  count by default; claims above the computed level are refused.
- The pain pack's declared protocol registers as the first candidate
  after reference and prompt-digest verification; with no answer keys it
  stays at hypothesis, marked descriptive only.
- `obliteratus experiments registry register|unlock|replicate|status`,
  a Python API and an Explorer section.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 22:15:04 -05:00
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
Joseph MaglyandClaude Opus 5.5 9c82617ca3 Merge main into feat/f13-causal-map
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 20:40:01 -05:00
Joseph MaglyandClaude Opus 5.5 7d5dee7630 feat(experiments): causal targeting map across token scopes and doses
Add the causal targeting map (F13): measure a dossier estimate's
controlled-intervention effects across a declared grid and show benefit,
side effects, uncertainty and restoration together.

- Versioned map spec (sites x token scopes x doses, operation, decision
  dose, cell budget). Each (site, token scope) row runs through the
  existing harness with the grid's doses as its ladder, so every cell
  has its own matched control, restoration check and replay. Results are
  stored by path and sha256 and cells are rebuilt (and verdicts
  recomputed) on every read.
- Only the estimate's own site runs; other sites are recorded as
  untested "exploratory (transferred coordinate)" cells that can never
  attach to a dossier.
- Holm correction across tested decision-dose cells. A cell reads
  supported only when the recomputed harness verdict is supported and
  its adjusted p < 0.05; other doses are descriptive; untested cells
  carry a reason and no number.
- Cells report difference, interval, rates, collateral and invalid-output
  status, restoration, a link to the comparison and failure example ids.
- Resumable: completed rows are reused only on matching row and result
  digests; a different spec is refused.
- Candidate re-ranking across a dossier's maps, scoped to tested
  conditions; an Explorer heatmap per token scope.
- `obliteratus experiments map run|show|attach|rank` and a Python API.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 20:28:28 -05:00
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 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
Joseph MaglyandClaude Opus 5.5 c94ce6dfd1 feat(analysis): target dossiers with evidence provenance and experiment readiness
Add versioned target dossiers (F11), the readiness gate between target
discovery and controlled causal experiments.

- Schema-validated JSON separating the hypothesis (intended behavior,
  bounded task, falsification test) from one or more estimates
  (channel, residual direction or subspace at a site). Evidence is
  stored by reference (path, sha256, JSON pointer into the source
  report), never as copied numbers. Provenance covers the pack, dataset
  revision, model identity with weight fingerprint, labeled sets and
  report digests; confounds, coverage, counterexamples, rejected
  alternatives and open questions are recorded.
- Evidence labels follow the roadmap vocabulary, defined once in
  evidence_levels.py. "Independently validated predictor" requires
  independent confirmation beating the shuffled-label null; claims may
  not exceed the computed label, and causal or intervention labels are
  refused without an intervention result.
- Confirmation must be independent: overlapping roles of one revision,
  legacy packs, another model, or a new revision reusing discovery
  inputs are refused.
- Readiness is computed with a checklist of what is missing; accepted
  confounds stay visible with their reasons. Missing geometry research
  never blocks.
- Changed or missing sources, a different weight fingerprint or model
  revision, or a different dataset revision mark a dossier stale and
  its evidence unsupported.
- `obliteratus experiments dossier build|show|check` and a Python API;
  the Explorer shows each dossier with its readiness checklist.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 14:01:45 -05:00
Joseph MaglyandClaude Opus 5.5 9c6ef0acc6 Merge main into feat/460-example-selection
Resolve additive conflicts with #462 in experiments/cli.py (register and
dispatch both discover and select-examples) and ci/test-risk-map.json
(list both docs).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 11:44:41 -05:00
Joseph MaglyandClaude Opus 5.5 bb9dff57e5 feat(analysis): example selection study against random and lexical baselines
Add optimization study O02: does choosing fewer, better examples
preserve targeting quality at lower cost?

- Arms at matched budgets over fit rows only: uniform stratified
  sampling (exact inclusion probabilities), lexical max-min diversity
  on hashed n-grams (no text kept), and representation arms (k-means
  representatives, k-center coreset, boundary hard negatives fitted on
  a disjoint half).
- Quality is held-out: a difference-of-means direction fitted on the
  selection is scored on select rows or a fixed group-disjoint holdout
  no arm sees. In-sample AUC is reported as optimistic and never used.
- Cost counts forward passes and activation bytes (representation arms
  pay for embedding the pool unless amortization is declared); host
  timings are reported but excluded from the verdict and digest.
- Coverage limits (every set, rare sets) flag arms that drop cases.
- The verdict is "no improvement" unless a representation arm beats
  both baselines beyond seed spread at equal or lower cost without a
  coverage flag. Locked test is refused; reports are reproducible.
- `obliteratus experiments select-examples` and a Python API.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 11:06:17 -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
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 Magly 293384fa0f Merge pull request #456 from elder-plinius/feat/f06-evidence-explorer
Evidence explorer from failing scores to activations and replayable specs
2026-11-13 21:16:57 -05:00
Joseph MaglyandClaude Opus 5.5 4fb564b800 feat(concepts): run a pack's declared evaluation battery and dose ladder
The pain pack declares a battery, a follow-on battery and a steering
dose ladder for run_concept_evaluation_battery, but the hook did not
exist (TODO #230 in the baseline).

- run_concept_evaluation_battery resolves the pack's evaluation
  references through the existing pinned fetch and hash checks and
  refuses missing, unfetched or mismatched references before any model
  work.
- Batteries run on the unmodified model. Packs may map battery fields
  to registered scorers through an optional evaluation.scoring section;
  without objective targets (as for pain) records are descriptive:
  final-token projection, greedy completion digest, invalid-output and
  refusal flags. No scoring code comes from the pack.
- Each declared coefficient runs through the existing temporary steering
  dose ladder; after every dose the parameter/buffer digest, hook counts
  and probe logits must match the pristine model, or the run stops.
- Results go to concept-evaluation.json with pack, reference, model and
  direction identities; the baseline's three artifacts are unchanged.
  `concepts baseline --evaluate` (and the Python API) opts in; without
  it the baseline is byte-identical.

The pain pack's deferral notes are replaced, which updates its dataset
card hash; its pinned upstream references are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 17:28:12 -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
Joseph MaglyandClaude Opus 5.5 ca5a6d0dc0 Merge main into feat/obs-ui and add execution options to the form
Bring in chat templates, sampling, batching, CUDA and the weight
fingerprint (#451, #453), and give the Observations form controls for
them: device, decoding strategy with temperature/top-p/top-k, batch
size, chat template with an optional system message, and fingerprint
mode. Options at their defaults stay out of the spec JSON, so a
default form leaves the run identity unchanged; greedy decoding never
carries sampling settings; and a system message without the chat
template is refused. The schema still validates everything through the
same load_spec path as the CLI.

Resolve the OBSERVATION_RUNS.md conflict by keeping the updated limits
and the tab section, now listing the execution options.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 16:58:05 -05:00
Joseph MaglyandClaude Opus 5.5 a559c7fd6c Merge main into feat/obs-execution and unify device-aware model identity
Integrate the weight fingerprint from #451 with CUDA execution:

- model_identity is now device-aware (require_dense_device) and always
  includes the weight fingerprint, so CUDA runs carry it too;
  execution_identity simply delegates. The fingerprint is
  device-independent: the same weights give the same digest on CPU and
  CUDA.
- New optional spec setting model.fingerprint ("sampled" default,
  "full"), dropped from the filled spec at its default so existing
  digests are unchanged. It applies to the run's model identity and
  therefore every step's reuse check; capture manifests keep a sampled
  fingerprint.
- Resolve additive conflicts in capture_identity.py, inputs.py, the risk
  map and OBSERVATION_RUNS.md by keeping both sides.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 16:47:38 -05:00
Joseph MaglyandClaude Opus 5.5 2539cdb2b7 feat(experiments): chat templates, seeded sampling, batching and CUDA observation
Remove the observation runner's execution limits.

- Chat templates: an optional prompt section renders each prompt
  through the tokenizer's chat template (optional system message,
  generation prompt), tokenized without extra special tokens. The
  rendered-prompt digest joins the generation step identity and each
  record; capture uses the same rendered prompts.
- Decoding: seeded sampling (temperature, top-p, top-k) alongside
  greedy, with a per-example seed derived from the spec seed and example
  id. Comparison treats sampled outcomes as exact only when strategy,
  device, dtype and seed match, and says why otherwise.
- Batching: optional left-padded greedy batches with an explicit,
  recorded pad token; rows are cut at their first eos so batched and
  unbatched outcomes agree. Sampling with batches is refused because
  per-example seeds cannot hold.
- Devices: dense CUDA for the runner and capture, with shards written
  from CPU copies and device/dtype recorded. Quantized, offloaded,
  dispatched, meta, split-device and MPS models are refused with
  explicit reasons.

The schema stays additive within version 1; options at their defaults
are dropped from the filled spec, so existing spec digests are
unchanged (pinned in tests).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 16:33:51 -05:00
Joseph MaglyandClaude Opus 5.5 c1cbf94fae feat(ui): Observations tab with CLI parity
Add an Observations sub-tab under Concept Lab for baseline observation
runs. Handlers live in ui_observation_runs.py with no Gradio import;
the layout only reformats their output. Every action calls the same
functions as `obliteratus experiments run|compare|history`: the editor
text is validated through load_spec, runs go through run_observation,
and history, scorecards and comparisons read the same store.

The JSON editor is what runs; the form overwrites only its own fields,
so new spec fields pass through unchanged. Locked test is offered only
after explicit acknowledgement, scorecard views show no prompt or
completion text, and Cancel (or closing the stream) cancels the attempt
cooperatively. Runs take the app's exclusive model-operation claim, so
they cannot overlap other model jobs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 16:32:03 -05:00
Joseph MaglyandClaude Opus 5.5 434e4a7235 feat(experiments): weight fingerprint, capture retention and attempt pruning
Weights edited in place under the same model id and revision were not
detected, expired captures still loaded, and run stores could not be
pruned because reused steps reference earlier attempts.

- Fingerprint: a deterministic fingerprint of every parameter and
  buffer (names, shapes, dtypes and a fixed strided sample of each
  tensor, with an optional full digest) joins the capture identity and
  the runner's model identity. Captures and steps from before the
  fingerprint are refused or recomputed with a recorded reason. The
  pipeline's entry-point cache identity is unchanged.
- Retention: load_capture refuses captures past expires_at unless
  inspection is requested; comparison inspects stored captures
  regardless of expiry.
- Pruning: `obliteratus experiments prune` (dry run by default) keeps
  the latest complete attempt, the newest N, active attempts and every
  attempt a kept one reuses, records a pruned event before deleting,
  and finishes interrupted removals on the next applied prune.

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