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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
Add a shared observation spec, runner, run store and comparison so one
baseline observation can be specified once, run from the CLI or Python,
resumed after interruption and compared across runs.
- Spec: versioned JSON with a single schema file as authority. It
references a pack, dataset revision and role (locked test only with
acknowledgement), model id/revision/dtype, greedy decoding, registered
scorer tasks, optional activation capture and profiling, and a seed.
The canonical digest of the defaulted spec is the run identity.
- Runner: baseline only. It refuses models with forward/backward hooks,
global module hooks, an interrupted-surgery marker or active adapters
before any generation, then scores generation per task (single-arm,
descriptive scorecards with Wilson intervals) and optionally captures
activations and profile counters.
- Store: one directory per run identity, append-only attempt events,
pending/running/complete/failed/cancelled transitions under a lock.
Abandoned attempts are recorded as failed. A new attempt reuses a step
only when it is complete, identity-matched and its files still verify.
- Compare: exact equality for identities, counts and per-example
outcomes; explicit tolerances for rates and activations, reported per
field.
- CLI: `obliteratus experiments run|compare|history`, sharing one
Python code path a UI can call.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Finish the measurement-validity audit for the two remaining geometry
modules.
wasserstein_transfer:
- The Gaussian W2 paired sorted eigenvalues and underestimated the
distance for non-commuting covariances (0 for a 45-degree rotation of
diag(100, 1)). Compute the exact closed form with a stable PSD square
root, from each side's own mean and covariance.
- Mismatched widths gave a truncated value and failures gave 0; both are
now None with a reason. Failed map inversion no longer falls back to
the raw cross-covariance. Fidelity is exact Pearson correlation.
- The "transport map" is a ridge least-squares map, not a Gaussian Monge
map. Viability, fidelity and recommendations are labelled heuristics
and are None unless their inputs exist; refusal-removal estimates that
measured nothing are unsupported and always None.
bayesian_kernel_projection:
- Relabel as seeded random search with local perturbation over a
partial linear projection (no surrogate or kernel). The Pareto front
could keep a dominated trial on reduction ties; fixed. With no signal
or no input, best results are None with a reason instead of score 0.
Both modules now carry measurement evidence and catalog rows checked by
the registry test, and the app overview no longer claims a Monge map or
TPE optimization.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Resolve additive conflicts with #442 in ci/test-risk-map.json and
docs/geometry-measurement-validity.md by keeping both sides.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Extend the measurement-validity treatment from riemannian_manifold.py
to concept_geometry, the LEACE paths, cross_layer and
wasserstein_optimal. Each audited result carries measurement evidence,
every reported field has a catalog entry, and a registry test fails
when either is missing.
- concept_geometry: the cone "solid angle" is a cap around the mean
axis, not a minimal enclosing cone; relabelled. Placeholder defaults
(cosine 1.0, specificity 1.0, linear/polyhedral flags, layer indices 0)
become None when there is too little data. The informed pipeline skips
unavailable flags; decisions on valid inputs are unchanged.
- cross_layer: persistence, adjacent cosine and angle path length are
None with fewer than two layers instead of 0.0/1.0; zero or non-finite
directions are rejected instead of reported as orthogonal.
- leace: the Fisher "erasure loss" is relabelled as variance along the
direction; exact and multiclass LEACE gain erasure oracles.
- wasserstein_optimal: a layer with no signal reported a cost ratio of 0
and could be chosen as best_layer; it is now None and excluded. The
W2 cost is exact for any direction (closed-form oracle), and the
comment calling it a bound is corrected.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Rank-k extraction stores a basis, but the gate validates only its
primary direction, so an informative first vector plus unrelated
dimensions could pass as a whole subspace.
Add a standalone, versioned subspace report (not wired into the gate):
spectrum and conditioning, PCA-threshold and entropy effective rank,
bootstrap principal-angle stability, held-out multivariate prediction
per rank, rank-matched random-subspace nulls, and joint/interaction
diagnostics for direction pairs. The verdict reports the supported rank
("supported_rank: s of k"), counting only consecutive ranks whose
held-out increment beats both their null and a minimum increment. The
report compares the primary-vector, PCA-threshold, entropy-rank and
prediction arms side by side.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Baseline profiles reported unique examples, token presentations,
forwards, generated tokens and tensor bytes as null. Count them from
load completion through cleanup with pass-through observers: a forward
pre-hook on the loaded model and instance-level wrappers on generate and
activation collection, all removed on exit and after failures.
Counters are recorded per stage and totalled. A counter that cannot be
observed stays null with a reason (stages before load, calls without an
attention mask or input ids, batched generation, forwards outside
activation collection, or embedding calls that bypass the watched
model). Changes are additive within profile schema version 1; default
baseline artifacts are unchanged, profiled or not.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The behavioural battery treated any greedy-text difference as an effect,
so a punctuation-only edit looked like a change and nothing measured
task success.
Add a local, versioned scorer registry with deterministic exact-answer
and structured-output (JSON + declared schema) scorers. Each completion
yields separate endpoints: task success, invalid output and abstention;
raw text change is reported as descriptive only. Paired summaries use a
one-sided exact McNemar test and Wilson bounds against a declared
per-task margin; min_pairs defaults to the smallest sample that could
pass that margin, and untested or underpowered endpoints never aggregate
to PASS. Every aggregate keeps its per-example records.
EvaluationBattery(scorers=...) writes behavioural["scorecard"]; without
scorers nothing changes. Pipeline admission refuses batteries that carry
scorers until their generation is modelled. Dataset-built examples read
select/calibrate rows; locked test still needs explicit acknowledgement.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Add an on-disk activation capture built on observe_activations. Each run
writes one safetensors shard per batch under raw/ and a manifest binding
model id/revision and loaded dtype, tokenizer and chat template, special
tokens, adapter state, readout, layer sites, input digests and the
dataset revision. The manifest records running/complete/cancelled/failed
state, a labelled byte estimate, measured bytes and wall time, and
retention.
The loader refuses incomplete captures unless asked to inspect them, any
identity difference (naming the first differing field), unknown adapter
state, digest mismatches, and shard paths outside raw/. Capture refuses
meta, offloaded, quantized and non-CPU models, and runs nothing when the
estimate exceeds the budget.
Tokenizer and checkpoint identity move into a shared helper that the
pipeline's entry-point cache identity also uses, with identical keys and
values.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Releases that read only 1.x manifests ignore the dataset declaration and
each row's role, so they extract from select, calibrate and locked test
rows. Gating dataset packs on a new major version makes those releases
reject the pack ("Unsupported schema_version") instead.
- Accept schema majors 1 and 2; 2.x keeps every 1.x field.
- manifest.dataset now requires schema_version 2.0+ (was 1.3+, never
released). 1.x packs without a dataset are unchanged.
- Compare versions as (major, minor) tuples. The selector gate in
pack.py compared only the minor number and would have rejected 2.0.
- Unknown-major tests now use 3.0.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The new if/not schema support made the generic schema pass reject
version-gated fields first, so authors got "forbidden field or value"
instead of the schema_version the field needs, and three existing
token-policy tests failed. Check entry_point, special_token_policy and
dataset against schema_version before the schema pass.
A neighbour or battery set whose rows were all assigned to non-fit roles
was passed to extraction and gating empty. Require fit rows in every
declared set.
Document that older releases ignore the dataset declaration and extract
from every row. Hoist the similarity normalizer out of the pair loop.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The historical-observation worker only runs inside the recorded sandbox
(it writes to a fixed /tmp/work and needs an unshipped launcher), so
shipping it under examples/ invited unsafe direct runs. Move it next to
its report, byte-for-byte, so it still matches the benchmark_worker.py
hash in the evidence.
Remove the private tracker link, the .aiwg paths that do not exist in
this repository, internal orchestration terms and the host name. Note
that the model snapshot is a third-party copy. Measurements are
unchanged.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Remove the private tracker link, the .aiwg report paths that do not
exist in this repository, internal orchestration terms and the host
name. The measurements, isolation description and limits are
unchanged.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>