# Evidence explorer The **Explorer** tab under Concept Lab inspects one completed baseline observation run (see OBSERVATION_RUNS.md). It is read-only: it never loads a model, generates, scores or captures, and it does not take the app's model slot. The handlers live in `obliteratus/ui_evidence_explorer.py` (views over the run) and `obliteratus/ui_evidence_views.py` (saved views, export and comparison); the Gradio wiring is in `obliteratus/ui_evidence_explorer_layout.py`. ## Loading a run Enter a `result.json`, an attempt directory or a run directory (the newest complete attempt), or a spec file plus its run store. Resolution is the same `load_result` / `ObservationStore(...).get(spec_digest(load_spec(...)))` path the CLI uses. The stored `spec.json` must hash to the result's run identity. ## Data sources | View | Source in the run store | | --- | --- | | Scorecard aggregates and groups | `result.json` → `scorecard.tasks.` (rates, Wilson intervals, denominators, `excluded`, `groups`) | | Example list and record | `scorecard.tasks..records` (ids, group, scorer outcome, `missing_reason`, `completion_sha256`) | | Activations and heatmap | capture `manifest.json` and `raw/*.safetensors`, loaded with `load_capture` after digest checks | | Capture input digest | capture manifest `identity.inputs[batch]` | | Text | `steps/generate-/generations.json` (completion only) | | Metric definitions | the scorecard `rule`, the registered scorer's rule text and the explorer's metric list | | Subspace reports | `subspace/*.json` written by `obliteratus experiments subspace --run` (see LABELED_SUBSPACE.md); descriptive table, empty when none exist | | Candidate discoveries | `candidates/*.json` written by `obliteratus experiments discover --run` (see CANDIDATE_DISCOVERY.md); first candidates of each table, empty when none exist | The capture stores one batch per unique example id, and the run's capture summary records those ids in batch order (`example_ids`); the explorer maps examples to batches with that list. Results written before the list existed fall back to the runner's order: spec task order, then the first occurrence of each example. ## Drill-down and filters Every aggregate (task success, invalid output, abstention, excluded, and each group) drills down to exactly the examples counted in its numerator or its denominator. Filters combine task, group, outcome (`passed`, `failed`, `abstained`, `invalid`, `excluded`; an example matches any selected outcome) and evidence status (`scored`, `score unavailable`, `captured`, `capture unavailable`). ## Missing versus measured zero A value that was not measured reads `unavailable: ` and is never shown as 0 or left blank: - an excluded record's task success and abstention: `unavailable: excluded ()`; - a rate with an empty denominator: `unavailable: denominator is 0 (0/0)`; - activations of a run without capture: `unavailable: this run captured no activations (spec capture is null)`; - a capture that fails its manifest, identity or shard digest checks, an example absent from the capture, or a site absent from a shard: an explicit reason. A measured zero reads `0`. Heatmap cells that are unavailable are labelled and never shaded as zero. An excluded record can still have measured activations, because capture reads the prompt, not the completion. ## Metrics | Id | Definition | | --- | --- | | `scorecard.task_success` | Scorable records the scorer reports solved / scorable records; 95% Wilson interval | | `scorecard.invalid_output` | Records marked invalid / all records; 95% Wilson interval | | `scorecard.abstention` | Scorable unformatted refusals / scorable records; 95% Wilson interval | | `scorecard.excluded` | Records with a `missing_reason` (left out of the scorable denominators) | | `scorecard.group` | Per-group record, scorable, success and invalid counts | | `activation.l2_norm` | Euclidean norm of one example's stored raw values at one layer site, over its captured token positions | | `activation.mean`, `activation.max_abs` | Mean and largest absolute stored value | The baseline scorecard is single-arm and has no verdict. Activation statistics are descriptive coordinate summaries (catalog status: diagnostic); they do not show that a site produces or explains a behaviour. Projection onto a user-supplied direction is not offered. ## Text access Text is hidden by default. Ticking **Show text (local only)** shows the stored completion for the selected example in this session, after checking it against the record's `completion_sha256`. Text is never shown when the run's dataset role is the locked `test` role, or when the app is publicly served (a Hugging Face Space, or a launch with a public share link). The run store does not keep prompt text (only prompt token counts, and digests for chat-rendered prompts), so prompt text is reported as unavailable. Saved views and exports never contain text. ## Saved views **Save view** writes `/views/.json`: ```json { "schema": "obliteratus.evidence-view/1", "spec_digest": "sha256:…", "attempt": 1, "filters": {"task": "answers", "group": "(all)", "outcomes": ["failed"], "evidence": []}, "selection": {"task": "answers", "example_id": "p3"}, "saved_at": "2026-11-13T00:00:00+00:00" } ``` Names are 1-64 letters, digits, `.`, `_` or `-`. Loading refuses files over 64 KiB, invalid JSON or non-standard constants, missing or extra keys, another schema, another run identity, and filters or selections that do not exist in the loaded run. ## Export to batch **Export to batch** copies the run's stored `spec.json` byte for byte to the chosen new `.json` path, loads it back and refuses the export unless it has the same run identity. The spec schema allows no metadata field, and any added field would change the identity, so the view goes to a sidecar `.view.json` (`obliteratus.evidence-export/1`, with the source run directory, attempt and view). The tab shows the replay command: ```bash obliteratus experiments run --store ``` Running the exported spec into the same store returns the existing complete attempt; into another store it produces a new run with the same identity, which **Compare** (the same `compare_results` as `obliteratus experiments compare`) can check against the loaded run.