open-interpretability 0.6.4__tar.gz → 0.6.6__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/CHANGELOG.md +198 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/PKG-INFO +4 -2
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/README.md +2 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/__init__.py +1 -1
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/agents/base.py +26 -1
- open_interpretability-0.6.6/openinterpretability/agents/jev.py +248 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/agents/judge.py +10 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/agents/proposer.py +31 -16
- open_interpretability-0.6.6/openinterpretability/agents/proposer_method.py +65 -0
- open_interpretability-0.6.6/openinterpretability/agents/proposer_refine.py +370 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/agents/reviewer.py +8 -1
- open_interpretability-0.6.6/openinterpretability/agy_sessions.py +190 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/answer_lens.py +3 -4
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/answer_readings.py +9 -5
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/benchmark.py +9 -6
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/blends.py +2 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/builder/circuit_units.py +3 -1
- open_interpretability-0.6.6/openinterpretability/builder/gate_advice.py +30 -0
- open_interpretability-0.6.6/openinterpretability/builder/github_wiki.py +499 -0
- open_interpretability-0.6.6/openinterpretability/builder/github_wiki_guard.py +170 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/builder/pending.py +18 -5
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/builder/sister_graph.py +7 -3
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/builder/sister_pages.py +15 -3
- open_interpretability-0.6.6/openinterpretability/builder/slim_cache.py +369 -0
- open_interpretability-0.6.6/openinterpretability/builder/templates/_answer_token.html +4 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/builder/templates/_concept_map.html +1 -1
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/builder/templates/_macros.html +2 -1
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/builder/templates/_steering.html +3 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/builder/templates/_taxonomy.html +3 -2
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/builder/templates/atlas.html +1 -1
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/builder/templates/circuit_unit.html +6 -3
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/builder/templates/explanation.html +1 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/builder/templates/model.html +1 -1
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/builder/templates/neuron.html +2 -2
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/builder/templates/sister_match.html +1 -1
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/builder/templates/sisters.html +1 -1
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/builder/templates/wiki/experiment.md +3 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/builder/wiki.py +94 -93
- open_interpretability-0.6.6/openinterpretability/builder/wiki_indexes.py +69 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/checks.py +18 -23
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/circuit_checks.py +1 -1
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/circuit_ids.py +4 -4
- open_interpretability-0.6.6/openinterpretability/circuit_sisters.py +469 -0
- open_interpretability-0.6.6/openinterpretability/claude_sessions.py +386 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/cli.py +7 -1
- open_interpretability-0.6.6/openinterpretability/cli_ask.py +75 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/cli_baseline.py +161 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/cli_benchmark.py +2 -2
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/cli_circuits.py +59 -4
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/cli_claude_session.py +34 -8
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/cli_corpus.py +126 -8
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/cli_errata.py +2 -2
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/cli_evidence.py +4 -2
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/cli_explain.py +9 -6
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/cli_explain_family.py +153 -21
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/cli_loop.py +39 -9
- open_interpretability-0.6.6/openinterpretability/cli_loop_tokens.py +34 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/cli_neuronpedia.py +1 -1
- open_interpretability-0.6.6/openinterpretability/cli_priorities.py +99 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/cli_probing.py +16 -1
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/cli_query.py +4 -2
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/cli_registry.py +117 -24
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/cli_review.py +45 -7
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/cli_scan.py +3 -3
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/cli_score.py +55 -9
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/cli_sisters.py +78 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/cli_submission.py +27 -1
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/cli_sweep.py +9 -2
- open_interpretability-0.6.6/openinterpretability/cli_trajectories.py +47 -0
- open_interpretability-0.6.6/openinterpretability/cli_worker.py +43 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/codeid.py +1 -1
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/concept_map.py +28 -21
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/concept_regions.py +6 -5
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/concepts.py +6 -4
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/core/agent_names.py +2 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/core/corpora.py +7 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/core/costs.py +12 -6
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/core/evidence.py +17 -8
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/core/explanation.py +33 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/core/isolation.py +4 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/core/paths.py +9 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/core/pricing.py +1 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/core/probing.py +55 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/core/schemas.py +5 -1
- open_interpretability-0.6.6/openinterpretability/core/steering.py +111 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/core/taxonomy.py +47 -22
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/corpus.py +4 -2
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/corpus_cache.py +2 -2
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/corpus_layouts.py +4 -3
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/corpus_rebuild.py +1 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/crossref.py +5 -3
- open_interpretability-0.6.6/openinterpretability/draw_review.py +236 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/draw_steps.py +44 -98
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/embedding_space.py +3 -5
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/errata_checks.py +1 -1
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/evidence.py +6 -6
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/evidence_branch.py +31 -2
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/evidence_lenses.py +7 -3
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/experiment_loop.py +30 -31
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/explain.py +1 -1
- open_interpretability-0.6.6/openinterpretability/explain_batched.py +466 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/explain_confirm.py +1 -1
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/explain_coverage.py +174 -39
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/explain_family.py +102 -17
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/explain_joint.py +109 -11
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/explain_land.py +2 -2
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/explain_run.py +35 -4
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/explain_share.py +2 -2
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/explain_slots.py +143 -19
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/explanation_registry.py +1 -1
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/explanation_targets.py +58 -58
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/harness/ane/backend.py +6 -6
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/harness/ane/cache.py +12 -9
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/harness/ane/chunks.py +2 -1
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/harness/ane/forward.py +8 -7
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/harness/annotations.py +13 -10
- open_interpretability-0.6.6/openinterpretability/harness/attention_kernels.py +42 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/harness/circuit_measures.py +35 -5
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/harness/confounds.py +11 -13
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/harness/covariance.py +1 -1
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/harness/crossref.py +12 -9
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/harness/cuda_devices.py +1 -1
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/harness/devices.py +13 -9
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/harness/dictionaries.py +1 -1
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/harness/environment.py +1 -1
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/harness/head_sisters.py +4 -1
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/harness/hooks.py +5 -7
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/harness/input_attribution.py +93 -20
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/harness/jlens.py +144 -12
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/harness/layer_major.py +4 -2
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/harness/lookahead.py +2 -1
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/harness/manifold.py +46 -31
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/harness/memory.py +24 -15
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/harness/moe.py +1 -3
- open_interpretability-0.6.6/openinterpretability/harness/n2g.py +151 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/harness/ov_lens.py +1 -1
- open_interpretability-0.6.6/openinterpretability/harness/probe_steering.py +314 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/harness/probing.py +73 -16
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/harness/scan_backend.py +2 -2
- open_interpretability-0.6.6/openinterpretability/harness/scrubbing.py +220 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/harness/sister_passes.py +88 -70
- open_interpretability-0.6.6/openinterpretability/harness/sister_reference.py +169 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/harness/sisters.py +51 -18
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/harness/specificity.py +3 -2
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/harness/steering.py +4 -3
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/harness/superpositions.py +10 -8
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/head_sisters.py +5 -5
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/inverse_claims.py +1 -1
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/langid.py +6 -2
- open_interpretability-0.6.6/openinterpretability/loop_batch.py +268 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/loop_local.py +9 -1
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/loop_sessions.py +2 -2
- open_interpretability-0.6.6/openinterpretability/loop_tokens.py +177 -0
- open_interpretability-0.6.6/openinterpretability/model_worker.py +349 -0
- open_interpretability-0.6.6/openinterpretability/n2g.py +302 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/names.py +9 -3
- open_interpretability-0.6.6/openinterpretability/page_checks.py +59 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/planner.py +10 -25
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/planner_circuits.py +3 -3
- open_interpretability-0.6.6/openinterpretability/planner_claims.py +218 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/planner_explanations.py +1 -1
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/planner_states.py +48 -4
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/planner_superpositions.py +2 -2
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/prior_art.py +2 -1
- open_interpretability-0.6.6/openinterpretability/priorities.py +351 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/providers.py +114 -4
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/registry_query.py +1 -1
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/revision.py +7 -12
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/show.py +6 -9
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/sisters.py +30 -13
- open_interpretability-0.6.6/openinterpretability/superposition_sisters.py +209 -0
- open_interpretability-0.6.6/openinterpretability/sweep.py +468 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/syntax.py +21 -18
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/takedown_checks.py +1 -1
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/toxicity.py +1 -1
- open_interpretability-0.6.6/openinterpretability/trajectories.py +428 -0
- open_interpretability-0.6.6/openinterpretability/weekly_corpus.py +236 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/wordnet.py +1 -2
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/pyproject.toml +11 -6
- open_interpretability-0.6.4/openinterpretability/claude_sessions.py +0 -167
- open_interpretability-0.6.4/openinterpretability/core/steering.py +0 -49
- open_interpretability-0.6.4/openinterpretability/explain_batched.py +0 -196
- open_interpretability-0.6.4/openinterpretability/planner_claims.py +0 -88
- open_interpretability-0.6.4/openinterpretability/sweep.py +0 -324
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/.gitignore +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/CITATION.cff +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/LICENSE +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/agents/__init__.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/agents/narrator.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/agents/probe_hints.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/agents/proposer_profiles.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/agents/review_measurements.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/agreement.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/answer_prompts.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/answer_review.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/audit_options.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/baseline.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/builder/__init__.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/builder/agents.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/builder/aligned.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/builder/brand/logo.svg +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/builder/brand/mark-32.png +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/builder/brand/mark.svg +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/builder/brand/og.png +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/builder/charts.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/builder/circuit_pages.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/builder/circuits.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/builder/compiler.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/builder/concept_map_view.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/builder/corpora.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/builder/coverage.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/builder/css.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/builder/dashboard.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/builder/draws_export.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/builder/experiment.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/builder/explanation_figures.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/builder/explanation_pages.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/builder/feeds.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/builder/heat.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/builder/hrefs.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/builder/learned_baseline.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/builder/model_facts.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/builder/neuronpedia_export.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/builder/palette.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/builder/parquet_export.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/builder/pieces.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/builder/recent.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/builder/registry_pii.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/builder/registry_stats.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/builder/route_figures.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/builder/sections.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/builder/significance.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/builder/slim.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/builder/standing.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/builder/statuses.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/builder/stopped.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/builder/stops.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/builder/superpositions.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/builder/taxonomy_view.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/builder/templates/404.html +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/builder/templates/_agent_role_cells.html +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/builder/templates/_answer_verdict.html +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/builder/templates/_causal_chart.html +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/builder/templates/_circuit.html +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/builder/templates/_dashboard.html +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/builder/templates/_embedding3d.html +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/builder/templates/_experiment.html +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/builder/templates/_experiments.html +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/builder/templates/_figure.html +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/builder/templates/_figure_pause.html +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/builder/templates/_gas3d.html +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/builder/templates/_head_profile.html +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/builder/templates/_members.html +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/builder/templates/_patchscope.html +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/builder/templates/_prior_art.html +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/builder/templates/_record.html +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/builder/templates/_research_extra.html +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/builder/templates/_rivals.html +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/builder/templates/_route3d.html +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/builder/templates/_route3d_waves.html +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/builder/templates/_route_row.html +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/builder/templates/_specificity.html +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/builder/templates/_superposition.html +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/builder/templates/_vocab_chart.html +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/builder/templates/_wiring.html +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/builder/templates/about.html +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/builder/templates/agent.html +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/builder/templates/agents.html +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/builder/templates/answer.html +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/builder/templates/base.html +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/builder/templates/circuit.html +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/builder/templates/circuit_experiment.html +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/builder/templates/circuits.html +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/builder/templates/experiment.html +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/builder/templates/explanation_prompt.html +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/builder/templates/explanations.html +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/builder/templates/hub.html +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/builder/templates/index.html +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/builder/templates/layer.html +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/builder/templates/learned-baseline.html +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/builder/templates/models.html +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/builder/templates/superposition.html +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/builder/templates/user.html +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/builder/templates/wiki/index.md +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/builder/templates/wiki/neuron.md +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/builder/templates/wiki/stop.md +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/builder/tree.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/builder/users.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/circuit_review.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/cli_answers.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/cli_build.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/cli_check.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/cli_concepts.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/cli_costs.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/cli_coverage.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/cli_crossref.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/cli_evidence_store.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/cli_interference.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/cli_map.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/cli_memory.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/cli_model_check.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/cli_patch.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/cli_pause.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/cli_pole_effects.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/cli_provider.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/cli_reproduce.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/cli_superpositions.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/cli_wiring.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/core/__init__.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/core/answer_records.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/core/attribution.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/core/cache_dirs.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/core/causal.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/core/circuit_records.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/core/confounds.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/core/contributors.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/core/draws.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/core/errata.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/core/examples.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/core/exceptions.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/core/explanation_records.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/core/fence.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/core/heavy_lock.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/core/identifiers.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/core/ledger.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/core/legacy_names.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/core/licenses.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/core/manifold.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/core/partners.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/core/patchscope.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/core/pause.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/core/prior_art.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/core/profiles.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/core/project.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/core/record_kinds.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/core/rivals.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/core/run_environment.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/core/specificity.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/core/stats.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/core/strict.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/core/transcripts.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/core/wiring.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/corpus_presets.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/coverage.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/data/__init__.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/data/providers.toml +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/data/sample_corpus.txt +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/explain_backend.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/explain_corpus.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/explain_figure_data.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/explain_groups.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/explain_narrate.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/explain_output.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/explain_plan.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/explain_print.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/explain_reuse.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/explain_stopped.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/git_fetch.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/half_precision.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/harness/__init__.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/harness/ane/__init__.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/harness/ane/bundles.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/harness/ane/convert.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/harness/ane/qualified.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/harness/attribution.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/harness/causal.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/harness/cpu_speed.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/harness/dead.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/harness/dreaming.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/harness/explanation_scores.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/harness/features.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/harness/first_position.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/harness/heads.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/harness/layer_cache.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/harness/patcher.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/harness/patchscope.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/harness/prepare.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/harness/scan.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/harness/sites.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/harness/units.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/harness/wiring.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/harness/wiring_activations.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/hubs.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/interference/__init__.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/interference/behaviour.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/interference/fisher.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/interference/floors.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/interference/keep.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/interference/pruning.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/interference/report.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/interference/routes.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/interference/run.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/interference/template.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/interference/tuning.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/interference/units.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/loop_bugs.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/loop_pending.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/mcp_server.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/model_check.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/model_revisions.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/neuronpedia_baseline.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/neuronpedia_review.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/partner_context.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/patches/__init__.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/patches/apply.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/patches/gates.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/patches/graph.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/patches/history.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/patches/schema.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/patches/session.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/patches/store.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/patches/tensors.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/planner_effects.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/planner_heads.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/planner_models.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/planner_sisters.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/pole_effects.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/record_schema.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/reproduce.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/reproduce_explanation.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/reproduce_policy.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/runner_cache.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/scan_reuse.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/score_controls.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/signing.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/superposition_finders.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/until_verified.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/verdict_regression.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/verify_odds.py +0 -0
- {open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/wiring_backfill.py +0 -0
|
@@ -13,6 +13,204 @@ Changes waiting for the next release are files in [changelog.d/](changelog.d/REA
|
|
|
13
13
|
|
|
14
14
|
## [Unreleased]
|
|
15
15
|
|
|
16
|
+
## [0.6.6] - 2026-12-03
|
|
17
|
+
|
|
18
|
+
Ships with protocol version **0.10**.
|
|
19
|
+
|
|
20
|
+
### Added
|
|
21
|
+
|
|
22
|
+
- A *Tests on macOS* CI job runs the test suite on an Apple-silicon runner, not required yet. `docs/development.md` records the float differences found between platforms (#3183).
|
|
23
|
+
- **Monitor reviewer drift once a month.** A reviewer agent reviews a frozen panel again: 10 known-good units (poles verified two or more times) and 10 known-bad units (swapped-unit nulls). `measure` measures each run's probe sets again under the current code. The report alerts on three changes: the VERIFIED flags (McNemar p < 0.01), the mean balanced accuracy beyond the same-reviewer noise, and the reviewer's model ID. A monthly workflow opens the check's issue. The reviewer can't read the panel. The 2026-12-02 baseline: 80% of known-good units VERIFIED, 100% of known-bad units REJECTED. [`scripts/reviewer_drift.py`, `data/reviewer-drift/`, `docs/analyses/reviewer-drift.md`, `.github/workflows/reviewer-drift.yml`] (#3199)
|
|
24
|
+
- **Fixed:** `scripts/null_calibration.py`'s partner-search stub accepts the arguments added in #5211, so `swap_fresh.py prepare` runs again. (#3199)
|
|
25
|
+
- **False-positive rates by reviewer.** The null calibration's shuffled-label and swapped-unit nulls are split by the reviewer model that wrote each probe set, and by proposer and reviewer pair. No LLM call. On shuffled labels the reviewers range from 1.5% to 3.1%, and the range follows each reviewer's share of VERIFIED probe sets. On swapped units every reviewer is at 0%, and at 0.7–2.2% without the proposer's gates. Proposer and reviewer are confounded, and no stored data has several reviewers' probes on one false hypothesis, so there is no leave-one-out yet. [`scripts/reviewer_false_positives.py`, `docs/analyses/reviewer-false-positives.md`] (#3200)
|
|
26
|
+
- `docs/analyses/corpus-holdout.md` scores 30 VERIFIED explanations on source code, a genre that their scans did not read (Bolukbasi et al., 2021). It compares each score with the score on the scan's own corpus. Detection drops by 5 points. `scripts/corpus_holdout.py` reruns it. Reported, not gated (#3206).
|
|
27
|
+
- `scripts/probe_hardness.py` re-reviews a random sample of VERIFIED records with a different reviewer model, and reports how many hold, per contributor and per original reviewer (`docs/analyses/probe-hardness.md`, #3208). The reviewer isolation hook blocks `data/probe-hardness/`, which names the sampled records.
|
|
28
|
+
- **Causal scrubbing of a neuron pole in `open-interpretability score`.** The detection judge's answers label the held-out windows. At each window's peak token, the score replaces the pole's value three times. The values come from a window of the same label, from a window of the other label, and from the label's mean (Gao's variant). The scores record the mean downstream KL of each as `scrubbing`. It is reported, not gated (`openinterpretability/harness/scrubbing.py`, `docs/PROTOCOL.md` §4, [#3210](https://github.com/8W9aG/openinterpretability/issues/3210)).
|
|
29
|
+
- **A hypothesis on a neuron pole or a dictionary latent now states its output effect.** `output_effect` says what the model writes when the unit is clamped high on neutral text. `submit` refuses a new pole or latent hypothesis without it. Heads, superpositions, sister studies of older records and older records need none. The unit page shows the claim with the steering samples. It is reported, not gated, and the intervention score follows in later work (`openinterpretability/agents/proposer.py`, `openinterpretability/core/schemas.py`, `docs/PROTOCOL.md` §4, [#3211](https://github.com/8W9aG/openinterpretability/issues/3211)).
|
|
30
|
+
- **Neuron features of Qwen2.5-0.5B's VERIFIED poles** (`docs/analyses/neuron-features-qwen.md`, #3218). At Shabalin and Piotrowski's 0.7 threshold, 18 of 407 VERIFIED poles have a skip-transcoder latent whose encoder and decoder both align with the pole's neuron. 13 of those 20 latents pass the pole's own probes, and no random control does. Over the whole dictionary, 1.95% of latents are neuron features. That is far below the paper's 14–59% on gated models. 99.4% of them are on poles the registry has not studied. `scripts/neuron_features.py` takes `--dictionary` and scores gated MLPs. `scripts/pole_features.py` is new.
|
|
31
|
+
- **Neuron to Graph (N2G) baseline** (`open-interpretability n2g-baseline`, `docs/analyses/n2g-baseline.md`, #3219). It is an explainer with no language model. It turns each neuron pole's top examples into token patterns (Foote et al., 2023). The command scores the patterns on the held-out windows of the agent's explanation, with no judge. So it gives the floor that a pattern matcher already reaches. Over 4,531 experiments, N2G scores detection 0.56 against the agent's 0.61, and fuzzing 0.51 against 0.58. Over VERIFIED experiments, it reaches 39% of the agent's lead over chance on detection and 19% on fuzzing.
|
|
32
|
+
- **How often VERIFIED explanations fail the weak end of their pole's range.** A new registry analysis reads the stored explanation scores of each standing VERIFIED neuron pole. It gives the judge's precision and failure rate in each of the 5 activation bands, by model, depth and layer. Detection precision falls from 0.81 in the strongest band to 0.65 in the weakest. About a quarter of the poles fail the weakest band beyond chance. `make analyses` refreshes it [`scripts/score_bands.py`, `docs/analyses/score-bands.md`, `scripts/analyses_refresh.py`] (#3222).
|
|
33
|
+
- **Undo forbidden edits to the GitHub Wiki.** Only a page's Discussion section may change on the wiki. `open-interpretability wiki --github-wiki <dir> --guard-edits` undoes every other change after the export's newest commit before it exports. It restores a changed or deleted page and removes a page that someone created. The GitHub Wiki workflow now runs on each edit in the wiki's web editor (the `gollum` event) and always guards. Anything that must be trusted still comes from the records in the repository. (`openinterpretability/builder/github_wiki_guard.py`) (#3253)
|
|
34
|
+
- **Publish the wiki pages to the GitHub Wiki.** A new workflow exports the pages to the project's GitHub Wiki after each change to `main`. It runs on a push to `main` and every 30 minutes, which catches the merges that the auto-merge bot makes. It commits only when a page changed, and the commit names the `main` commit that it exported. (`.github/workflows/github-wiki.yml`) (#3253)
|
|
35
|
+
- **Export the wiki pages to the GitHub Wiki.** `open-interpretability wiki --github-wiki <dir>` writes the pages into a checkout of the project's GitHub Wiki, with flat page names. It adds each new experiment and stop page and never changes a page that is there. It regenerates `Home`, `_Sidebar`, a page for each layer and each unit's history, and keeps the Discussion section of each history page. Links to pages become page names, and links to other files go to the file on `main`. This is the first step of moving the pages out of the repository. Nothing publishes to the wiki yet. (`openinterpretability/builder/github_wiki.py`) (#3253)
|
|
36
|
+
- **`make analyses` shows which numbers of the registry analyses moved.** It re-runs the seven write-ups in `docs/analyses/` that the registry alone gives, and compares each number with the committed data. Each of these write-ups now states the commit and the record count that its numbers come from, and `make lint` checks that stamp line [`scripts/analyses_refresh.py`, `Makefile`] (#3256).
|
|
37
|
+
- **`open-interpretability trajectories`** reads Claude Code transcripts on this machine and finds friction in agent sessions. It prints each transcript's tool calls, failures, retries, requests, tokens and minutes. Then it prints three tables: the commands that fail most, the files that most transcripts read, and each tool's tokens and time. It redacts paths and secrets, and `--json` prints only the aggregates (`openinterpretability/trajectories.py`, `docs/development.md`, #3258).
|
|
38
|
+
- A literature review of Solinsky and Pakhomov (2026), *Encoding and propagation of grammatical number in large language models* (`docs/literature/grammatical-number-propagation.md`, #3435). Its privative-number finding on Pythia-70m becomes a prediction for #3224.
|
|
39
|
+
- `papers/what-predicts-verification/` adds analysis 3 and is published. It uses two label-free scores, an isolation forest and Breiman's forest distance. Both put the position and non-selective families in their top tenth about six times as often as in all poles. Only the isolation forest's score relates to a pass, and weakly (AUC 0.466). The script is `scripts/verify_anomaly.py`, and the follow-up is #8357 (#3536).
|
|
40
|
+
- **A paper on how many kinds of neuron pole random sampling has not yet found.** `papers/unseen-neuron-types/` takes the two estimators from Chao and Jost (2012) and applies them to 3,632 random draws (`scripts/unseen_paper.py`, `scripts/figures_unseen_types.py`). Every one of the codebook's 13 coarse and 27 fine categories occurs, and the estimated coverage is 1.000. The clustering test cannot show kinds that the codebook cannot name, and #8465 carries it on (#3542).
|
|
41
|
+
- `docs/analyses/unseen-types.md` counts the kinds of neuron pole that the random arm has found, with Chao1 and sample coverage over codebook 0.1 (`scripts/unseen_types.py`). Over all models, the random arm has seen every coarse and fine kind (coverage 1.0). Within single models and layer thirds, a few fine kinds remain unseen, most in Qwen2.5-1.5B's late layers (coverage 0.912).
|
|
42
|
+
- **The SPD paper compares its two starts at one count per site, and continues the random start at a constant learning rate.** At the lower of the two runs' active counts, the start from the neurons fits better at all 24 sites of GPT-2 small. Run C continued for 10,000 steps at its peak learning rate (run E) does not narrow its KL gap. The paper also corrects its learning-rate schedule: the cosine ends at 3e-5, not at zero. More seeds per start move to #8453 (`papers/spd-input-projections/README.md`, `scripts/spd_input_results.py`, #4104).
|
|
43
|
+
- `open-interpretability superposition-sisters` finds each studied superposition's sister poles in the other models. A sister is a best match by strength over a shared corpus. It is above a rotated reference, and no pole of the superposition's own model tracks it better. Rows go to `docs/analyses/sister-superpositions.jsonl`. `docs/analyses/sister-superpositions.md` gives the results.
|
|
44
|
+
- **Sister circuits.** `open-interpretability circuit-sisters` runs each circuit experiment's task on the other models. It finds the units that carry the task there by attribution, and measures them, the other model's circuits and the members' sisters against random sets. The first run puts GPT-2's C4 on pythia-70m and both Qwen models. Each one does the task, and 4 of C4's 6 head sisters rank in the top 7 of its task members. No circuit in the registry is a sister yet [`openinterpretability/circuit_sisters.py`, `docs/analyses/sister-circuits.md`] (#4440).
|
|
45
|
+
- **Layers correspond across models by relative depth.** Sisters sit at the same relative depth far more than chance. The median gap is 0.087 against 0.362 for neuron poles, and 0.089 against 0.304 for heads (p = 0.0001). Every neuron pair passes alone. Between a shallow model and a deep one, the map bends: Pythia-70m's middle layers find sisters shallower in Qwen than predicted. The taxonomy's Model and Layer rows now cite the test (`scripts/layer_depth.py`, `docs/analyses/layer-depth.md`, #4441).
|
|
46
|
+
- **Pythia-70m's float32 sensitivity comes from its very large attention scores.** In layers 3–5, its scaled attention scores reach 75,000–199,000, against at most 281 in GPT-2. Attention in float64 removes 99.5% of the float32 move of its MLP activations. Zeroing the largest residual dimensions removes none of it. A floor computed from the scores is #8595 (`docs/analyses/pythia-float32-sensitivity.md`, `scripts/float32_sensitivity.py`, #4749).
|
|
47
|
+
- **Rival readings against rerun disagreement** (`scripts/rival_readings.py`, `docs/analyses/rival-readings.md`, #4771). A rival beats the hypothesis on 26% of 1,941 records, mostly where the verdict is REJECTED. A rival's win does not predict a rerun that disagrees (46 hypotheses, p = 0.76). Probes that separate the readings fail 10 points more often than the other probes, so the rerun noise sits in the contested probes. No protocol change.
|
|
48
|
+
- `probe-compare --intervene` runs Representation Engineering's manipulation and termination tests on three residual directions at the pole's layer: the mass-mean probe, the logistic probe and the pole's write. A readout at the last block measures each. `docs/analyses/probe-comparison.md` reports them for its five rows (#5073).
|
|
49
|
+
- **SPD can start from split neurons.** `--init split` starts each neuron as C / d_mlp copies with small noise on the weight side. The copies sum to the weights exactly, so SPD with more subcomponents than neurons can split a neuron or merge its copies again. The Colab notebook lists run E, at 4 times the hidden width. [`scripts/spd_model.py`, `scripts/train_spd.py`, `scripts/train_spd_colab.ipynb`] (#6048)
|
|
50
|
+
- Added `--max-total-attempts` and `--rank` to `explain-family` (`TargetedDraws`, `explain_run.run_plan`) so resumed batch runs skip already-exhausted targets and sweep fresh high-gain units (#7005).
|
|
51
|
+
- A literature page reviews *Isolation Forest* (Liu, Ting and Zhou, 2008), the anomaly score of analysis 3 in `papers/what-predicts-verification/`. The paper's description of the score holds.
|
|
52
|
+
- A literature page for Shi and Horvath's random forest dissimilarity, the method behind analysis 3's forest distance (#8356).
|
|
53
|
+
- `scripts/issue-loop.sh` works issues one fresh headless Claude Code session at a time. It is `scripts/experiment-loop.sh --skill next-issue`, with Sonnet as the default driver and the same budget, stop-file and log options. Each request re-reads tens of thousands of tokens, not the hundreds of thousands that a days-long `/loop` session re-reads. An issue session gets the wider tools that issue work needs, with no secrets, auth, git configuration, or force or delete push. Every loop session now compacts its context at 200,000 tokens. `open-interpretability loop-tokens` prints each session's tokens and the tokens per landed experiment and per merged issue. `next-issue` and `land-experiment` now point at the scripts, not at `/loop` (#8393).
|
|
54
|
+
- **Tokens per outcome of the fresh-session loops** (`docs/analyses/loop-tokens.md`). In 8.8 hours, `scripts/issue-loop.sh` merged 16 issues for 6.0M tokens each. The long `/loop /next-issue` session used 21.3M per merged PR, so that is 3.5× fewer: 6.1× with the Sonnet driver, 2.8× with Opus. The merge rate rose from 0.53 to 1.8 an hour. `CLAUDE_CODE_AUTO_COMPACT_WINDOW` takes effect in `claude -p`: 4 sessions compacted at about 168k tokens, and each still merged its PR. The page recounts #8393's baseline, which counted each request about 3 times (#8415).
|
|
55
|
+
- The experiment and issue loops stream each session's steps to the terminal as they happen: the model's text, each tool call and each subagent's calls. Before, the terminal showed nothing until a session ended. Every event is also kept in `logs/loop/<stamp>-<i>.events.jsonl`, and `claude-session --no-watch` turns the lines off (#8420).
|
|
56
|
+
- The loops pick their judge and reviewer more cheaply and more honestly (#8425):
|
|
57
|
+
- **Jev judges by default.** Whenever a TypeSafe key is found (`TYPESAFE_API_KEY`, in the environment or `.env`), the loops score explanations with Jev (`typesafe/jev-latest`). One command replaces the two judge subagents. `--judge none` keeps the subagents.
|
|
58
|
+
- **Another provider can review.** `--reviewer-provider <name>` has that provider review in its own headless Claude Code session (`open-interpretability ask`). So a DeepSeek-driven loop gets an independent Muse review with no LiteLLM model and no extra key.
|
|
59
|
+
- **One loop can be stopped.** `scripts/experiment-loop.sh --stop` and `scripts/issue-loop.sh --stop` stop that loop once its current session ends.
|
|
60
|
+
- The experiment and issue loops can run their sessions with Google's Antigravity CLI: `scripts/experiment-loop.sh --harness agy` and `scripts/issue-loop.sh --harness agy` (#8430).
|
|
61
|
+
- **Skills and agents.** Skills reach Antigravity through `.agents/skills`, a link to `.claude/skills`. Its subagents come from `.agents/agents`, which `scripts/antigravity_agents.py` writes from `.claude/agents`.
|
|
62
|
+
- **Output.** Each session's steps stream to the terminal, and its result has the same fields as a Claude Code session's.
|
|
63
|
+
- **Isolation.** Antigravity reviewers have no isolation hook, so these records carry `agent_product: antigravity-loop`.
|
|
64
|
+
- Add a literature page for Garçon (Elhage et al., 2021), Anthropic's persistent interpretability server, compared with the model worker.
|
|
65
|
+
- Added a literature review of *Conformal Prediction for Time-Series Forecasting: A Large-Scale Empirical Study* (Manokhin et al., 2026), `docs/literature/conformal-forecasting-study.md`.
|
|
66
|
+
- A literature review of Michaud, Ray, Chaudhari and Shai (2026), *What does it take to find a feature manifold?* (`docs/literature/character-counts-feature-manifold.md`, #8457). Its recipe could sharpen the multi-dimensional feature check.
|
|
67
|
+
- A literature page reviews *The Marauder's Map* (Iyer, Harnett and Chandra, 2026), which joins specialist models by a learned Bézier surface. It measures no units. #8544 would run the keep test along its curve (#8459).
|
|
68
|
+
- Add a literature review of Chao and Jost (2012), the source of the sample-coverage and Chao1 estimators in `papers/unseen-neuron-types/` (#8464).
|
|
69
|
+
- **Cluster neuron poles by co-activation on a shared corpus, for the unseen-neuron-types paper.** It finds 0 of 27 clusters with a clear code, as the shuffled-code null does. [`scripts/unseen_coactivation.py`, `papers/unseen-neuron-types/`, `docs/analyses/unseen-coactivation.json`] (#8465)
|
|
70
|
+
- A priority list for draws: `open-interpretability next` draws the units in `priorities/` first, in rank order. Each unit has its own file, so PRs don't conflict, and the PR that verifies or stops a unit deletes its file (`priorities prune`). `explain-family --write-priorities <issue>` writes a joint plan's units to the list, and `priorities list` prints it ([#8491](https://github.com/8W9aG/openinterpretability/issues/8491)).
|
|
71
|
+
- A literature page reviews *When Models Manipulate Manifolds: The Geometry of a Counting Task* (Gurnee et al., 2025). Claude 3.5 Haiku counts characters on a curve to break lines (#8512).
|
|
72
|
+
- A literature review of Bhalla, Fel et al. (2026), *Do Sparse Autoencoders Capture Concept Manifolds?* (`docs/literature/sae-concept-manifolds.md`, #8513). Its Ising couplings could join the co-activation clusters of neuron poles (#8494).
|
|
73
|
+
- A literature page on Engels et al. (2024), *Not All Language Model Features Are One-Dimensionally Linear*, the source of the multi-dimensional feature check. #8531 asks for the check's base rate (#8514).
|
|
74
|
+
- **Paper: is a neuron that tracks a count one tile of a curve?** It tests 12 neuron poles that track a position or a count with the recipe of Michaud et al. (2026): centroids, their principal components, a cosine spectrum and a reset of the centroid plane against two nulls of random planes. One pole, GPT-2 L1/N2971+, is a tile of a curved position code. Seven are ramps, and the plane carries most of the tuning of 11 (`papers/count-tiles/`, `scripts/count_tiles.py`, `docs/research-questions.md`, #8516).
|
|
75
|
+
- `scripts/two_concept_census.py` and `docs/analyses/two-concept-census.md` measure how often a claim fails because it names one concept of two (#3216). In a sample of 20 too-narrow failures, none had an unnamed unrelated second concept. Of the claims that name two or more jobs, 32% got a VERIFIED verdict, against 28% for all records.
|
|
76
|
+
|
|
77
|
+
### Changed
|
|
78
|
+
|
|
79
|
+
- **Explanation scores and steering samples stay reported, not gated.** The maintainer decided this from the evidence. Detection separates VERIFIED records from the rest with an AUROC of only 0.54 to 0.58. This holds with one judge, twice the windows and two seeds. Steering has no pre-registered prediction format. `docs/PROTOCOL.md` records the decision. The rule version does not change. [`docs/PROTOCOL.md`] (#3209)
|
|
80
|
+
- **Every work the repo cites gets a review page, not only the works a paper cites.** `scripts/cited_works.py` now also reads the skills, the docs and the code. In those files every arXiv ID, DOI and ACL Anthology link counts. `tests/test_papers.py` fails on such a work with no page in `docs/literature/` and no line in `papers/awaiting_review.txt`. The list gets 18 more works, each with its literature issue (#3221).
|
|
81
|
+
- `docs/analyses/unseen-types.md` adds Part 2 of #3542 (`scripts/unseen_clusters.py`). Clusters of the random-arm poles by their example text have no clear codebook code (0 of 27, mean purity 0.32 against 0.22 by chance). They follow the text's source, not the pole's role, so the test can't show kinds that the codebook can't name.
|
|
82
|
+
- Batch evidence-branch fallback lookups in one `git cat-file --batch-check` call and cache absent hashes per process (#7005). Deduplicate and zlib-compress `SlimDiskCache` (`slim-records-v2.sqlite`), isolate it in tests, and score proposer `boundary_probes` live during direct API refinement.
|
|
83
|
+
- Batched `prompt_coverage(..., minimal=False)` for `CoverageMeter` and shared one registry load across `FamilyMeter`, cutting 8-prompt measurement from 177 s to 2.5 s (#7005).
|
|
84
|
+
- Scoped `TargetedDraws` to one model's records and added SHA-256 blob reuse in `SlimDiskCache` across worktrees, cutting first loop-worktree reads from 91 s to 4.7 s (#7005).
|
|
85
|
+
- A direct API proposer now measures and refines its draft for up to three rounds, in place of one. It stops at the first round with no failed pair, active probe or wrong mechanism, so it measures each revised set of boundary probes ([#7005](https://github.com/8W9aG/openinterpretability/issues/7005)).
|
|
86
|
+
- The reviewer's probe schema asks for the rationale before `expected_active`. The rationale says if the probe matches the hypothesis's trigger literally, so that the reviewer doesn't label an exact match a hard negative ([#7005](https://github.com/8W9aG/openinterpretability/issues/7005)).
|
|
87
|
+
- `TargetedDraws` skips `opposite_pole` follow-ups so targeted prompt runs audit only the planned unit (#7005).
|
|
88
|
+
- `proposer_refine.measure_feedback` annotates counterfactuals with peak tokens and runs a 6-sentence ordinary-prose specificity check (#7005).
|
|
89
|
+
- `docs/analyses/experiment-throughput.md` measures the batch mode. One PR of 20 signed records (#8354) cut the CI per record about 36 times, against six one-record PRs. It cut the PRs, merges and deploys 20 times.
|
|
90
|
+
- The sister search no longer builds a random rotation of every matched layer. It estimates each pole's rotated reference from one pass of covariance sums (`harness/sister_reference.py`), and rows store it as `rotated_estimate`. The site marks an estimated reference with "≈". One layer per search still gets a real rotation, and the run logs it as a check. On GPT-2 → Qwen2.5-0.5B, the stage ran 24–60% faster. The estimate runs 13–22% low and changed no sister call on two model pairs (#8284).
|
|
91
|
+
- Experiments no longer build the site before their PR is marked ready. `make check`, which checks the protocol's format, is the gate. The deploy builds the site after the merge, and a deploy failure is handled as a deployment issue. This saves each experiment minutes of build time and gigabytes of memory (#8428).
|
|
92
|
+
- Loops no longer need `--worktree` to run side by side. Each loop locks its worktree while it runs. A loop started without `--worktree` takes the first free one of `../<repo>-loop`, `-loop-2`, `-loop-3` and so on, and a loop never takes one that a live loop holds (#8433).
|
|
93
|
+
- Ctrl+C in a loop now lets the running session finish, then stops. A second Ctrl+C stops the session at once. Before, one Ctrl+C killed the session mid-experiment, and the cost and token reports then failed on its missing result file (#8433).
|
|
94
|
+
- `scripts/verify_anomaly.py` takes `--draws`, the synthetic draws in each fold whose forest distances it averages, as Shi and Horvath advise (#8444). With five, analysis 3 of `papers/what-predicts-verification/` keeps its null on the pass (AUC 0.496) and its kind result (Cramér's V 0.173). The paper says so in an addendum. The isolation forest now runs on one thread, so that a rerun gives the same scores.
|
|
95
|
+
- `scripts/issue-loop.sh` now drives each issue session with Claude Opus 5.5 by default, not Sonnet 5.5. `--driver` still replaces it, and `--provider` and `--harness` still choose their own model. `scripts/experiment-loop.sh` is unchanged. A running issue loop keeps its driver until it restarts (#8511).
|
|
96
|
+
- **No turn limit on loop sessions.** Headless sessions of the experiment and issue loops no longer stop at 200 turns. `--max-turns` (0 for no limit, the default) still sets a limit when given (`openinterpretability/claude_sessions.py`, `scripts/experiment-loop.sh`, #8742).
|
|
97
|
+
- Registry coverage for 0.6.6 (`docs/analyses/registry-coverage.jsonl`), with VERIFIED poles and mean recovered share by model:
|
|
98
|
+
- Pythia-70m: 344 poles (was 330), 0.079 (was 0.078).
|
|
99
|
+
- Qwen2.5-0.5B: 407 (was 406), 0.014 (no change).
|
|
100
|
+
- GPT-2: 248 (was 238), −0.051 (was −0.058).
|
|
101
|
+
- Qwen2.5-1.5B: 98 (was 97), 0.0004 (no change).
|
|
102
|
+
- The concept map gains 101 poles. The circuit ids add 4 GPT-2 changes.
|
|
103
|
+
- The second round of tracked prompts (#4327) records 2 pythia-70m, 2 GPT-2 and 2 Qwen2.5-0.5B explanations. The Qwen2.5-0.5B prompts get their first records, at 0.3% and 0.4% coverage. Two pythia-70m prompts get no record, because their records did not reproduce on another machine (8774). The Qwen2.5-1.5B prompts still wait for 8340: on the CPU, one used more than 100 GB of memory.
|
|
104
|
+
- **The sister search covers the poles VERIFIED since 0.6.5: 84 new rows and 19 new sisters.** Pythia-70m gives 42 rows and 11 sisters (4 in Qwen2.5-0.5B, 3 in Qwen2.5-1.5B, 4 in GPT-2). GPT-2 gives 33 rows and 5 sisters (2 in Pythia-70m, 3 in Qwen2.5-1.5B). Qwen2.5-0.5B gives 6 rows and 1 sister (in Qwen2.5-1.5B), and Qwen2.5-1.5B gives 3 rows and 2 sisters. The strongest are Pythia-70m L2/N1403+ → GPT-2 L2/N676+ (r = 0.74), Qwen2.5-0.5B L6/N2573− → Qwen2.5-1.5B L8/N4298− (0.71) and Pythia-70m L4/N272+ → GPT-2 L10/N658+ (0.60). Each is now a `sister` draw [`docs/analyses/sister-neurons.jsonl`].
|
|
105
|
+
|
|
106
|
+
### Fixed
|
|
107
|
+
|
|
108
|
+
- **The three interactive maps keep their text at one size on every screen** (`builder/templates/_concept_map.html`, `builder/templates/atlas.html`, labinacan 0.1.11's `literature.html`, #5666). The maps still fill the page's width. Their region numbers and the literature map's callout cards keep their size in CSS pixels through labinacan's new `map-fixed` class. Measured in headless Chromium at 390, 768 and 1440 px, all their text is 11–12 px. Before, the concept map's numbers were 5.7 px at 390 px and 18.4 px at 1440 px. The literature map's cards hide when the map is too narrow for them at that size. `tests/test_chart_sizes.py` now fails on any SVG text that scales with the page, and has no exceptions for the maps.
|
|
109
|
+
- **A draft post's breadcrumb reaches the Posts index** (`pyproject.toml`, `uv.lock`, labinacan 0.1.12's `post.html` and `paper.html`, #6655). The breadcrumb linked *Posts* as `../index.html`. From a draft at `posts/drafts/<slug>/`, that is `posts/drafts/index.html`, and no such page exists. labinacan 0.1.12 links `{{ root }}posts/index.html`, and links *Research* the same way for a draft paper. Its test builds a listed page and a draft for each section and resolves the link.
|
|
110
|
+
- A circuit page no longer links a circuit that is gone. It names it as plain text, with "(gone)", in *merged into*, in the lineage and under *Sub-circuits*.
|
|
111
|
+
- `open-interpretability worker` also runs `verify`, the API mode's review step. It no longer writes a costs-ledger entry of its own, which repeated the last forwarded command's stages. `docs/analyses/experiment-throughput.md` records the worker's measured saving: one model load per record instead of one per command.
|
|
112
|
+
- A deploy no longer fails on one Cloudflare cache-purge timeout after its files have uploaded. labinacan 0.1.9 retries the purge after a timeout, a connection error, an HTTP 5xx or a 429, up to five times with backoff.
|
|
113
|
+
- `test_next_lists_the_explore_share_of_each_model` gives its two models fixed sizes, so it no longer depends on the network or the Hugging Face cache (#8371).
|
|
114
|
+
- `test_each_set_gets_what_keep_hooks_gives_it_one_pass_at_a_time` no longer fails on CPUs whose float32 kernels round differently. Its "nothing kept" check uses the test's own 1e-4 tolerance for batched against single-pass results.
|
|
115
|
+
- A loop running in its own worktree now finds a provider key in the main checkout's `.env`. Before, `--provider muse` stopped at once with "no API key" because the worktree has no `.env`. The order stays the environment variable, then `.env`, then the keychain. Tests no longer read a developer's real `.env` (#8421).
|
|
116
|
+
- The loop option test no longer fails while a live loop holds a worktree on the machine (#8471).
|
|
117
|
+
- `explain-family --write-priorities` writes only the units that the joint plan picked. It wrote the plan's reserve candidates too, 22,702 units for a plan of 141 ([#8491](https://github.com/8W9aG/openinterpretability/issues/8491)).
|
|
118
|
+
- A test worker no longer crashes when a test runs `uv run`. The tests set `UV_NO_SYNC`, so a `uv run` in a test does not sync the `.venv` that the other test workers use. The loop-script test now uses a stub `uv` (#8556).
|
|
119
|
+
- **`loop-tokens` counts every request of a session that waited on a background task.** Such a session gets a `result` event each time it waits, and each event's `num_turns` counts only its own turn. `follow()` now writes the sum of `num_turns` over every `result` event into the session's `.json`, so `loop-tokens` and `costs` count all its requests. Sessions written before this fix still show only the last turn [`openinterpretability/claude_sessions.py`] (#8621).
|
|
120
|
+
- Two loops no longer draw the same priority unit at once. `next --steps` and `open-interpretability loop` lock the unit they draw from `priorities/` with a branch `claim/draw/<key>`, and the claim step removes it with `priorities unlock` ([#8703](https://github.com/8W9aG/openinterpretability/issues/8703)).
|
|
121
|
+
- **`check` compares an experiment page's model, layer and unit with its record.** It compared only the slug, status, balanced accuracy, timestamp and supersedes fields before. The GitHub Wiki export reads the model and layer from the page, so they must be the record's [`openinterpretability/page_checks.py`] (#8718).
|
|
122
|
+
|
|
123
|
+
## [0.6.5] - 2026-12-02
|
|
124
|
+
|
|
125
|
+
Ships with protocol version **0.10**.
|
|
126
|
+
|
|
127
|
+
### Added
|
|
128
|
+
|
|
129
|
+
- The deploy now checks the live site after each sync. It fetches the home page, a model, a neuron page, a paper and the stylesheet, and compares each with the build. A failure opens or updates the "Deploy failed on main" issue (`scripts/check_live_site.py`, #3171).
|
|
130
|
+
- A *Dependency audit* workflow runs `pip-audit` on every package that `uv.lock` pins. It fails on a known vulnerability, and runs when the lock or `pyproject.toml` changes and once a day (#3179).
|
|
131
|
+
- A pre-commit config runs the fast parts of `make lint` before each commit, in about 5 s (`.pre-commit-config.yaml`, #3182). It runs ruff, the line limit, the comment and docstring checks, and the changelog check. Set it up with `uvx pre-commit install`.
|
|
132
|
+
- A daily workflow expires abandoned experiment claims. It finds draft PRs that hold only their claim commit, with no commit, update or comment for 3 days. A claim with its ledger entry is marked ready, so auto-merge lands the entry, and an empty claim closes with its branch (`scripts/expire_claims.py`, #3243).
|
|
133
|
+
- A guide to running on Google Colab, `docs/colab.md`, with a ready notebook, `notebooks/colab.ipynb`, and an "Open in Colab" badge in the README (#3252). It covers the install, keys in Colab secrets and the scan corpus. It also covers which models fit a T4, the dtype, and how to save results before the runtime resets.
|
|
134
|
+
- A literature review of Lim, Kim, Lee and Song (2026), *Geometry-adaptive explainer for faithful dictionary-based interpretability under distribution shift* (`docs/literature/geometry-adaptive-explainer.md`, #3432). It adapts only a dictionary's decoder, and the repo's audits read activations, so it changes nothing here.
|
|
135
|
+
- A literature review of Chang, Kuo, Lee and Tsai (2026), *Identically trained language models break on different jailbreaks* (`docs/literature/identically-trained-jailbreaks.md`, #3433). It measures whole models, but its design for comparing seeds bears on #5713.
|
|
136
|
+
- A versioned codebook of explanation categories, `docs/codebook/explanations.toml` (version 0.1, provisional), made by thematic analysis of 200 explanations sampled across models, layers and verdicts. It has 12 coarse codes with fine codes under them. `scripts/codebook.py` writes the coders' prompt, checks a coding and measures Krippendorff's alpha. In the first round, two Claude coders reached alpha 0.838 at the coarse level (95% interval 0.753–0.909) on 100 new explanations (`docs/codebook/reliability.md`).
|
|
137
|
+
- `docs/codebook/codes-v0.1.jsonl` codes all 5,081 records with codebook 0.1. On the reliability sample, it agrees with round 1's coders at a coarse alpha of 0.783 and 0.806.
|
|
138
|
+
- A DeepSeek cross-family coder on round 1 reached coarse alpha 0.766 against Opus and 0.779 three-way across Opus, Sonnet and DeepSeek.
|
|
139
|
+
- `docs/codebook/explanations.toml` now defines a 45-node `is_a` ontology DAG, and `docs/codebook/evidence.toml` stores shared evidence codes, GRADE certainty rules and Bradford Hill criteria (`scripts/codebook_evidence.py`, `docs/codebook/evidence.md`).
|
|
140
|
+
- `docs/codebook/probes.toml` (version 0.2) and `scripts/codebook_probes.py` add blind probe condition coding and per-condition Krippendorff's alpha for #3561, with two cross-family reliability rounds in `docs/codebook/probes-reliability.md`.
|
|
141
|
+
- An analysis of a random-matrix formula for the sister search's rotated reference, on two model pairs (`docs/analyses/rotation-formula.md`, `scripts/sister_rotation_formula.py`, #4018). It changes none of 51 sister calls, but it runs 13–22% low. The switch is #8284. Most Qwen2.5-0.5B → GPT-2 rows don't reproduce on the CPU, which #8285 holds.
|
|
142
|
+
- `docs/analyses/perf.md` now reports each stage's wall time over the newest 500 records, with the agent stages split by the product that answered (`scripts/stage_times.py`, #4103). DeepSeek Flash takes a median of 702 s as proposer, against 151 s for Claude Opus.
|
|
143
|
+
- `scripts/spd_followups_colab.ipynb` runs two follow-ups of `papers/spd-input-projections/` on a Colab GPU, from runs C and D's checkpoints. They are the equal-count curves of `spd_compare.py` (`spd_curve`) and a constant-learning-rate continuation of run C (`train_spd.py --lr-schedule constant`).
|
|
144
|
+
- Each release explains a fixed set of prompts again, with no LLM, so each prompt's page shows its coverage over time (`data/tracked-prompts.json`, `scripts/track_prompts.py`, #4327). The set has five pythia-70m prompts, and two for each other configured model.
|
|
145
|
+
- Each explanation page shows the answer token under the prompt. It shows the leading space as ␣, says the answer is one token, and says where it is predicted. It also gives the token id when the record holds it (#4596).
|
|
146
|
+
- Completed parallel `explain --run --parallel N` support (#6060): shared `--run M` experiment counts and `--target` stop signals across slots, enabled LiteLLM backends (`--proposer`, `--reviewer`, `--provider`), and added cleanup of extra slot worktrees on exit.
|
|
147
|
+
- A literature page reviews *A New Interpretation of Information Rate* (Kelly, 1956), the source of `papers/verdict-prediction/`'s Kelly rule. Kelly's theory needs reinvested profits, which an experiment budget doesn't give. So the page points to his own fallback, the most expected value per bet.
|
|
148
|
+
- A literature review of Akiba, Sano, Yanase, Ohta and Koyama (2019), *Optuna: A next-generation hyperparameter optimization framework* (`docs/literature/optuna.md`, #7968). `scripts/verdict_tuned.py` tunes the verdict predictor with its TPE sampler. Its benchmarks test no noisy objective, which may explain why the tuned model ranked no better.
|
|
149
|
+
- A literature review of Malinin, Prokhorenkova and Ustimenko (2021), *Uncertainty in gradient boosting via ensembles* (`docs/literature/uncertainty-gradient-boosting.md`, #7969). `papers/verdict-prediction/` uses its virtual ensembles and its knowledge uncertainty. Its finding that virtual members are weak on continuous features opens #8225, a test of independent ensembles.
|
|
150
|
+
- A literature review of Cammarata (2026), *Neural networks are already clean* (`docs/literature/already-clean.md`, #7978). The `native-neuron-audit` skill and the repo's papers take its method and the word *pole* from it. Its 90% of poles with one main job and the repo's 25% VERIFIED measure different things.
|
|
151
|
+
- Added the 60-pole prospective `EleutherAI/pythia-70m` sweep-ranking validation (40 top-ranked plus 20 fixed random slice) to `docs/analyses/experimentability.md` and `docs/analyses/experimentability-batch.jsonl` (#7989). Sweep-ranked draws reached 22.5% VERIFIED vs 5.0% random, cutting agent cost per VERIFIED pole 2.8× ($0.78 vs $2.20, proposer $0.022 vs $0.065).
|
|
152
|
+
- **Experiment throughput analysis.** Added the baseline cost and wall-time model, lever-by-lever savings, Jev protocol check, and ordered 100× roadmap (`docs/analyses/experiment-throughput.md`, #8062).
|
|
153
|
+
- Added `--draws` in `scripts/sweep_predict.py` to include dead and default-on stop records as negative labels (#8113). Three-model held-out AUC rises to 0.819 (ECE 0.0124), and `#7989` random-slice Brier score drops 2.7×.
|
|
154
|
+
- Accelerated `scripts/verdict_calibration.py::venn_abers` by caching exact `(p0, p1)` intervals per calibration rank bracket (#8113). Ranking 995,328 scores now takes 49.5 s instead of ~29 minutes.
|
|
155
|
+
- Added `.env` API-key fallback to `providers.py` and `LLMAgent`, and capped DeepSeek's default `reasoning_effort` to `"none"` (#8208). Override the cap through `OPENINTERPRETABILITY_REASONING_EFFORT`.
|
|
156
|
+
- Added one-round in-process counterfactual measurement and refinement for direct API proposers (`agents/proposer_refine.py`), and recorded the 40-unit matched Opus vs Sonnet/DeepSeek A/B test in `docs/analyses/experiment-throughput.md` (#8208).
|
|
157
|
+
- `open-interpretability worker` keeps models loaded for a session. With `OPENINTERPRETABILITY_WORKER` set to its socket, each `audit`, `review`, `score` and `activations` command goes to the worker. So a model loads once, not once per command. On this machine, a repeated command took 0.17–0.9 s through the worker, against 3.1 s (pythia-70m) and 4.1–6.5 s (Qwen2.5-1.5B) in its own process. Without the worker, commands run as before.
|
|
158
|
+
- **TypeSafe Jev judge backend and side-by-side benchmark.** Added native `typesafe/` Jev support in `ExplanationJudge` with 5-fold CV cutoffs and recorded the 163-task Haiku comparison (`openinterpretability/agents/jev.py`, `openinterpretability/agents/judge.py`, `openinterpretability/core/pricing.py`, `docs/analyses/experiment-throughput.md`, #8212, #8062).
|
|
159
|
+
- `open-interpretability loop --batch N` lands N experiments in one PR, which cuts the CI runs, merges and deploys per record. Each draw claims its unit with a branch `claim/experiment/<key>` and no PR. The batch PR's body then claims the units, and `--batch-minutes M` also opens the PR M minutes after the batch's first experiment.
|
|
160
|
+
- A literature review of Borkar, Mireshghallah and Smith (2026), *Predicting memorization before fine-tuning language models* (`docs/literature/predicting-memorization-before-fine-tuning.md`, #8240). Its features describe whole sequences, not units, so the review opens no follow-up.
|
|
161
|
+
- A literature review of Chung and Du (2026), *PocketRL: Training a 7B language model with reinforcement learning on one RTX 5090* (`docs/literature/pocketrl.md`, #8250). Its trainer supports Qwen2.5. Follow-up #8264 would run it on Qwen2.5-0.5B and test which VERIFIED explanations keep.
|
|
162
|
+
- A literature review of Labyrinth Research (2026), *Using influence functions to find post-training data responsible for reward hacking* (`docs/literature/influence-functions-reward-hacking.md`, #8255). It attributes to training data, not to units, and the review notes on #3377 how its method could apply to Pythia-70m.
|
|
163
|
+
- A literature review of Hong, Ma and Zhao (2026), *Manifold pretraining engineering* (`docs/literature/manifold-pretraining-engineering.md`, #8266). Its released 53M models pass `model-check`. Follow-up #8274 would audit their number neurons with and without the helix prior.
|
|
164
|
+
- `papers/what-predicts-verification/` has analysis 2: whether cheap statistics find poles of the same kind. A held-out pole's five nearest poles, by a forest's distance, name its explanation's category (codebook 0.1) 36.5% of the time. That is against 27.9% for its layer's majority and 12.4% by chance, which passes the pre-registered criterion (`scripts/verify_neighbours.py`).
|
|
165
|
+
- Added a persistent WAL-mode SQLite cache (`openinterpretability/builder/slim_cache.py`) for `SlimArchive` loads in `load_archive_paths`, and added `model`-scoped loading to `load_states` and `load_archive_paths` for `explain` and `explain-family` (#7005).
|
|
166
|
+
|
|
167
|
+
### Changed
|
|
168
|
+
|
|
169
|
+
- The About page and `docs/PROTOCOL.md` §1 name the taxonomy's *Audited* column *Own verdict*, so it no longer reads as "reproduced". A new *Reproduced* column says how CI checks each concept's record. It comes from `core/record_kinds.py` (#4794).
|
|
170
|
+
- Bounded `open-interpretability sweep` memory with dense `float64` repeated-token sums, analytical singleton folding, streaming Pass 1 maxima, and `--layers` blocks (#8007). `Qwen/Qwen2.5-0.5B` sweeps now run at 3.35 GB peak RSS.
|
|
171
|
+
- The proposer's system prompt now carries its method, distilled from the `native-neuron-audit`, `vocab-projection-lookahead` and `neuron-family-triage` skills in about 3k characters (`agents/proposer_method.py`). So a direct API call gets the same method as the `neuron-proposer` subagent. The subagent no longer reads those skill files. It answers in as few steps as it can, which cuts the tokens that it resends each turn.
|
|
172
|
+
- Default new experiment scans to a shared weekly corpus per model and record `corpus_week` in `ExperimentProvenance` (#8209).
|
|
173
|
+
- **Parallel judges beside reviewer.** Run judges concurrently with each other and alongside the reviewer in API and subagent workflows (`openinterpretability/cli_review.py`, `openinterpretability/cli_score.py`, `openinterpretability/draw_steps.py`, `openinterpretability/core/costs.py`, #8211, #8062).
|
|
174
|
+
- Accelerate `lenses` (prefix sharing, length-sorted 32×256 excerpts) and `input_attribution` (nested trapezoidal IG, fp16 GPU/MPS autocast, 512-token context cap) (#8214).
|
|
175
|
+
- Registry coverage for 0.6.5 (`docs/analyses/registry-coverage.jsonl`), with VERIFIED poles and mean recovered share by model:
|
|
176
|
+
- Pythia-70m: 330 poles (was 322), 0.078 (was 0.047).
|
|
177
|
+
- Qwen2.5-0.5B: 406 (was 400), 0.014 (was 0.012).
|
|
178
|
+
- GPT-2: 238 (was 230), −0.058 (was −0.059).
|
|
179
|
+
- Qwen2.5-1.5B: 97 (was 96), 0.0004 (no change).
|
|
180
|
+
- The concept map gains 50 poles. The circuit ids add three changes, on Qwen2.5-0.5B and GPT-2.
|
|
181
|
+
- The first round of tracked prompts (#4327) records 4 pythia-70m and 2 GPT-2 explanations. "The sun rises in the" on pythia-70m now reaches 63.9% coverage, against 81.9% on 2026-11-19. The Qwen prompts wait for 8340, because one took over an hour.
|
|
182
|
+
- The sister search adds 69 rows and 9 sisters. By pair, the sisters are:
|
|
183
|
+
- Qwen2.5-0.5B → Qwen2.5-1.5B: 2. The strongest is Qwen2.5-0.5B L22/N1629− → Qwen2.5-1.5B L25/N1901− (r 0.72).
|
|
184
|
+
- Qwen2.5-0.5B → Pythia-70m: 2.
|
|
185
|
+
- GPT-2 → Qwen2.5-0.5B: 2. GPT-2 L2/N1835+ → Qwen2.5-0.5B L3/N1281+ is r 0.56.
|
|
186
|
+
- GPT-2 → Qwen2.5-1.5B: 1. GPT-2 L2/N1835+ → Qwen2.5-1.5B L1/N7048− is r 0.59.
|
|
187
|
+
- Pythia-70m → Qwen2.5-1.5B: 1.
|
|
188
|
+
- Qwen2.5-0.5B → GPT-2: 1.
|
|
189
|
+
- `loop`, `explain-family --run`, and `draw_steps` now accept `--judge-model` (for example `typesafe/jev-latest`) to override the reviewer as judge (#7005, #8212).
|
|
190
|
+
- `explain-family --run` now accepts `--batch` and `--batch-minutes` to land multiple experiments per PR, and `loop_batch` reuses the weekly scan corpus instead of rebuilding a fresh corpus per experiment (#7005, #8213).
|
|
191
|
+
- `KeptSets.masks` now expands one shared base row instead of looping per row (~150x faster), and `KeptSets._neurons` drops a redundant `.clone()` (#7005).
|
|
192
|
+
- `KeptSets.raw_add` skips neuron poles that stay inactive past token 0 under the base mask with exact parity, speeding up `explain_joint.greedy` (#7005).
|
|
193
|
+
- `KeptSets` now slices `lm_head` inputs to the target token position (with `use_cache=False`) and adds base-state `grad_deltas` (#7005).
|
|
194
|
+
- `explain_joint.greedy` now ranks candidates with `grad_deltas`, exact-verifies top picks through `raw_add`, and falls back to full scans on stalls (#7005).
|
|
195
|
+
- `explain-family` now loads registry states once and skips discarded per-prompt passes. It also reuses `KeptSets` scorers across prompts (#7005).
|
|
196
|
+
- `explain-family` now accepts `--proposer`, `--reviewer` and `--provider` for `--run`, matching `explain` (#7005).
|
|
197
|
+
- `explain_coverage.prompt_coverage` now batches Pass 1 of `minimal_set` through `KeptSets.raw_masks` and vectorizes `keep_hooks` pole indexing (#7005).
|
|
198
|
+
|
|
199
|
+
### Fixed
|
|
200
|
+
|
|
201
|
+
- The pole sign of a unit (+ or −) now passes WCAG AA contrast as small text in light and dark mode. The pending-experiments table lists follow-up PRs again, whose branches end in a draw time. The accessibility check opens every fold before it runs, and the sample site has two pending rows, so it checks that table (#5429).
|
|
202
|
+
- Fixed the `Evidence branch cleanup` workflow deleting `git/heads/...` (HTTP 404) instead of `git/refs/heads/...`, and added a `concurrency` group so closed PR runs do not race (#6820, #4326).
|
|
203
|
+
- Fixed `review --check-probes` crashing on empty or whitespace-only probes (`ValueError: Shape mismatch for blis.gemm`) by short-circuiting blank texts in `openinterpretability.names.person_matches` and `pos_matches` before calling spaCy (#6966).
|
|
204
|
+
- Mutation runs now give each forked worker its own temporary subfolder and treat segfaulted mutants as failures (#8122).
|
|
205
|
+
- `open-interpretability loop` now pushes the evidence blobs of a PR's slim records, as the `land-experiment` skill's post step does. Without them, CI's "Evidence of slim records" check fails. This holds both for a PR per experiment and for a batch PR.
|
|
206
|
+
- `scripts/next_issue.py` now skips an agent's own started issue while an open issue blocks it, as it already skipped blocked release and backlog candidates (#8222). Before, a paused issue was offered on every run. #7005 waits on #8062 at the maintainer's request, so the loop never reached the backlog.
|
|
207
|
+
- Fixed `open-interpretability audit --window-tokens 1024` crashing in the lens phase (`ValueError: stride must be in 1..256, got 512`) by passing `stride=window` to `cut_pieces` in `evidence_lenses.py::read_lenses` (#8261).
|
|
208
|
+
- `open-interpretability loop` no longer fails on pythia-70m explore draws whose fresh corpus holds a document longer than the model's 2,048 positions. pythia-70m now scans in 1,024-token windows by default (`[tool.openinterpretability.window_tokens]`). Its records have used that window since 2026-11-25.
|
|
209
|
+
- `open-interpretability corpus` no longer stops on a document with no letters, such as only digits or punctuation. fastText gives such text no label, and the language detector now records no language for it.
|
|
210
|
+
- The model worker's client connects only to a socket owned by the current user, with no group or other access. Otherwise it runs the command in-process (#8315).
|
|
211
|
+
- The tests no longer fail with "CUDA error: out of memory" when other jobs fill the machine's GPU. torch's optimizers created a CUDA context in every test worker on a machine with a GPU, even for tensors on the CPU. The test session now hides the GPU. Set `OPENINTERPRETABILITY_TEST_GPU=1` to run the CUDA tests (`tests/test_cuda_streaming.py`).
|
|
212
|
+
- `test_batched_leave_one_out_and_vectorized_keep_hooks_match_sequential` runs its model in float64, so it no longer fails on macOS, where float32 rounds differently (#8344).
|
|
213
|
+
|
|
16
214
|
## [0.6.4] - 2026-12-01
|
|
17
215
|
|
|
18
216
|
Ships with protocol version **0.10**.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: open-interpretability
|
|
3
|
-
Version: 0.6.
|
|
3
|
+
Version: 0.6.6
|
|
4
4
|
Summary: Open Interpretability: an agent-run mechanistic interpretability project, with an audited registry of native neurons in open-weight models.
|
|
5
5
|
Project-URL: Homepage, https://open-interpretability.com/
|
|
6
6
|
Project-URL: Repository, https://github.com/8W9aG/openinterpretability
|
|
@@ -20,7 +20,7 @@ Requires-Dist: duckdb>=1.0.0
|
|
|
20
20
|
Requires-Dist: fasttext-predict>=0.9.2
|
|
21
21
|
Requires-Dist: instructor>=1.3.0
|
|
22
22
|
Requires-Dist: jinja2>=3.1.3
|
|
23
|
-
Requires-Dist: labinacan[pii,r2]==0.1.
|
|
23
|
+
Requires-Dist: labinacan[pii,r2]==0.1.12
|
|
24
24
|
Requires-Dist: latex2mathml>=3.81.1
|
|
25
25
|
Requires-Dist: litellm>=1.40.0
|
|
26
26
|
Requires-Dist: magika<2,>=1.0.3
|
|
@@ -74,6 +74,7 @@ Description-Content-Type: text/markdown
|
|
|
74
74
|
|
|
75
75
|
[](https://doi.org/10.5281/zenodo.24150022)
|
|
76
76
|
[](https://pypi.org/project/open-interpretability/)
|
|
77
|
+
[](https://colab.research.google.com/github/8W9aG/openinterpretability/blob/main/notebooks/colab.ipynb)
|
|
77
78
|
|
|
78
79
|
An open project, run with agents, that explains the native neurons and attention heads of open-weight language models and publishes each result at **[open-interpretability.com](https://open-interpretability.com/)**.
|
|
79
80
|
|
|
@@ -102,6 +103,7 @@ It lists the units that carry the model's answer, says which of them the registr
|
|
|
102
103
|
## More
|
|
103
104
|
|
|
104
105
|
- [docs/experiments.md](docs/experiments.md): what you need, other ways to run, API keys, and every option.
|
|
106
|
+
- [docs/colab.md](docs/colab.md): running on a free Google Colab GPU, with a ready notebook.
|
|
105
107
|
- [docs/PROTOCOL.md](docs/PROTOCOL.md): how a verdict is decided.
|
|
106
108
|
- [docs/development.md](docs/development.md): installing the package, the code, CI and the site.
|
|
107
109
|
- [CONTRIBUTING.md](CONTRIBUTING.md) and [SECURITY.md](SECURITY.md): how to contribute, and how to report a security problem.
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
[](https://doi.org/10.5281/zenodo.24150022)
|
|
6
6
|
[](https://pypi.org/project/open-interpretability/)
|
|
7
|
+
[](https://colab.research.google.com/github/8W9aG/openinterpretability/blob/main/notebooks/colab.ipynb)
|
|
7
8
|
|
|
8
9
|
An open project, run with agents, that explains the native neurons and attention heads of open-weight language models and publishes each result at **[open-interpretability.com](https://open-interpretability.com/)**.
|
|
9
10
|
|
|
@@ -32,6 +33,7 @@ It lists the units that carry the model's answer, says which of them the registr
|
|
|
32
33
|
## More
|
|
33
34
|
|
|
34
35
|
- [docs/experiments.md](docs/experiments.md): what you need, other ways to run, API keys, and every option.
|
|
36
|
+
- [docs/colab.md](docs/colab.md): running on a free Google Colab GPU, with a ready notebook.
|
|
35
37
|
- [docs/PROTOCOL.md](docs/PROTOCOL.md): how a verdict is decided.
|
|
36
38
|
- [docs/development.md](docs/development.md): installing the package, the code, CI and the site.
|
|
37
39
|
- [CONTRIBUTING.md](CONTRIBUTING.md) and [SECURITY.md](SECURITY.md): how to contribute, and how to report a security problem.
|
{open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/__init__.py
RENAMED
|
@@ -5,7 +5,7 @@ from labinacan import config as _config
|
|
|
5
5
|
from openinterpretability.core.legacy_names import adopt_legacy_env
|
|
6
6
|
from openinterpretability.core.paths import CLONE_PYPROJECT, DEFAULT_PYPROJECT, PACKAGED_PYPROJECT
|
|
7
7
|
|
|
8
|
-
__version__ = "0.6.
|
|
8
|
+
__version__ = "0.6.6"
|
|
9
9
|
# The name on PyPI, and of the installed distribution (issue #3251). The import name is
|
|
10
10
|
# `openinterpretability` (issue #4089).
|
|
11
11
|
DISTRIBUTION = "open-interpretability"
|
{open_interpretability-0.6.4 → open_interpretability-0.6.6}/openinterpretability/agents/base.py
RENAMED
|
@@ -24,6 +24,11 @@ T = TypeVar("T", bound=BaseModel)
|
|
|
24
24
|
|
|
25
25
|
DEFAULT_MODEL = os.environ.get("OPENINTERPRETABILITY_AGENT_MODEL", "anthropic/claude-opus-5-5")
|
|
26
26
|
MODEL_ALIASES_ENV = "OPENINTERPRETABILITY_MODEL_ALIASES"
|
|
27
|
+
REASONING_EFFORT_ENV = "OPENINTERPRETABILITY_REASONING_EFFORT"
|
|
28
|
+
# DeepSeek's direct API defaults to unbounded thinking (100–370 s and 17k–43k completion tokens
|
|
29
|
+
# on proposer prompts, #8208). Setting reasoning_effort="none" cuts latency to ~7 s. Override it
|
|
30
|
+
# through reasoning_effort= or $OPENINTERPRETABILITY_REASONING_EFFORT ("default" disables it).
|
|
31
|
+
DEFAULT_REASONING_EFFORT: dict[str, str] = {"deepseek": "none"}
|
|
27
32
|
# LiteLLM providers that cache a prompt prefix only where a ``cache_control`` mark ends it.
|
|
28
33
|
# Others (OpenAI, DeepSeek, Gemini) cache a repeated prefix without a mark.
|
|
29
34
|
CACHE_CONTROL_PROVIDERS = frozenset({"anthropic", "bedrock"})
|
|
@@ -87,6 +92,7 @@ class LLMAgent:
|
|
|
87
92
|
model: str = DEFAULT_MODEL,
|
|
88
93
|
*,
|
|
89
94
|
temperature: float | None = None,
|
|
95
|
+
reasoning_effort: str | None = None,
|
|
90
96
|
max_retries: int = 2,
|
|
91
97
|
client: Any | None = None,
|
|
92
98
|
exchange_dir: Path | None = None,
|
|
@@ -95,6 +101,7 @@ class LLMAgent:
|
|
|
95
101
|
) -> None:
|
|
96
102
|
self.model = model
|
|
97
103
|
self.temperature = temperature
|
|
104
|
+
self.reasoning_effort = reasoning_effort
|
|
98
105
|
self.max_retries = max_retries
|
|
99
106
|
self._client = client
|
|
100
107
|
self.exchange_dir = exchange_dir or Path(
|
|
@@ -156,10 +163,28 @@ class LLMAgent:
|
|
|
156
163
|
return result
|
|
157
164
|
return self._completion(response_model, prompt)
|
|
158
165
|
|
|
159
|
-
def
|
|
166
|
+
def _completion_kwargs(self) -> dict[str, Any]:
|
|
167
|
+
"""Extra kwargs for LiteLLM: temperature, reasoning effort and ``.env`` API key."""
|
|
168
|
+
from openinterpretability.providers import dotenv_key_for_model
|
|
169
|
+
|
|
160
170
|
kwargs: dict[str, Any] = {}
|
|
161
171
|
if self.temperature is not None:
|
|
162
172
|
kwargs["temperature"] = self.temperature
|
|
173
|
+
provider = self.model.split("/", 1)[0]
|
|
174
|
+
effort = (
|
|
175
|
+
self.reasoning_effort
|
|
176
|
+
if self.reasoning_effort is not None
|
|
177
|
+
else os.environ.get(REASONING_EFFORT_ENV, "").strip()
|
|
178
|
+
or DEFAULT_REASONING_EFFORT.get(provider)
|
|
179
|
+
)
|
|
180
|
+
if effort and effort != "default":
|
|
181
|
+
kwargs["reasoning_effort"] = effort
|
|
182
|
+
if api_key := dotenv_key_for_model(self.model):
|
|
183
|
+
kwargs["api_key"] = api_key
|
|
184
|
+
return kwargs
|
|
185
|
+
|
|
186
|
+
def _completion(self, response_model: type[T], prompt: str) -> T:
|
|
187
|
+
kwargs = self._completion_kwargs()
|
|
163
188
|
responses: list[Any] = [] # one raw response per attempt, for usage and cost
|
|
164
189
|
client, hook = self.client, responses.append
|
|
165
190
|
if hasattr(client, "on"): # instructor's hooks; a stub client may lack them
|
|
@@ -0,0 +1,248 @@
|
|
|
1
|
+
"""TypeSafe AI Jev backend for explanation simulation scoring (#8212, #8062).
|
|
2
|
+
|
|
3
|
+
Jev evaluates a shared ``state`` against a map of ``noul`` (yes/no probability) questions
|
|
4
|
+
in one HTTP call to ``/v1/systemone``. Default thresholds come from 5-fold cross-validation
|
|
5
|
+
across 163 Haiku-judged tasks in ``docs/analyses/experiment-throughput.md``.
|
|
6
|
+
"""
|
|
7
|
+
|
|
8
|
+
from __future__ import annotations
|
|
9
|
+
|
|
10
|
+
import json
|
|
11
|
+
import os
|
|
12
|
+
import urllib.error
|
|
13
|
+
import urllib.request
|
|
14
|
+
from collections.abc import Callable, Mapping, Sequence
|
|
15
|
+
from pathlib import Path
|
|
16
|
+
from typing import Any, Literal
|
|
17
|
+
|
|
18
|
+
from openinterpretability.agents.judge import MARK_CLOSE, MARK_OPEN, TaskWindow, _show
|
|
19
|
+
from openinterpretability.core import costs
|
|
20
|
+
from openinterpretability.core.exceptions import AgentError
|
|
21
|
+
|
|
22
|
+
PREFIX = "typesafe/"
|
|
23
|
+
MODEL = "typesafe/jev-latest" # the loops' judge whenever a key is found (#8425)
|
|
24
|
+
DEFAULT_BASE_URL = "https://api.typesafe.ai"
|
|
25
|
+
API_KEY_ENV = "TYPESAFE_API_KEY"
|
|
26
|
+
BASE_URL_ENV = "TYPESAFE_BASE_URL"
|
|
27
|
+
INPUT_USD_PER_MILLION = 0.042
|
|
28
|
+
# 5-fold CV thresholds over 163 stored Haiku tasks (all 5 folds chose 0.35 / 0.20).
|
|
29
|
+
DETECTION_THRESHOLD = 0.35
|
|
30
|
+
FUZZING_THRESHOLD = 0.20
|
|
31
|
+
TIMEOUT_SECONDS = 45.0
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
def is_jev_model(model: str) -> bool:
|
|
35
|
+
"""Return True when ``model`` selects a TypeSafe AI Jev model.
|
|
36
|
+
|
|
37
|
+
Args:
|
|
38
|
+
model: Model identifier string such as ``typesafe/jev-latest``.
|
|
39
|
+
|
|
40
|
+
Returns:
|
|
41
|
+
True when ``model`` starts with ``typesafe/``.
|
|
42
|
+
|
|
43
|
+
>>> is_jev_model("typesafe/jev-latest")
|
|
44
|
+
True
|
|
45
|
+
>>> is_jev_model("anthropic/claude-haiku-5-5")
|
|
46
|
+
False
|
|
47
|
+
"""
|
|
48
|
+
return model.startswith(PREFIX)
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
def api_key(env: Mapping[str, str] | None = None, dotenv: Path | None = None) -> str:
|
|
52
|
+
"""Read ``TYPESAFE_API_KEY``: the environment first, then ``.env`` (#8421).
|
|
53
|
+
|
|
54
|
+
Args:
|
|
55
|
+
env: Environment mapping; defaults to ``os.environ``.
|
|
56
|
+
dotenv: One ``.env`` path to read; by default this folder's ``.env``, then the
|
|
57
|
+
main checkout's (``providers.dotenv_paths``).
|
|
58
|
+
|
|
59
|
+
Returns:
|
|
60
|
+
The non-empty API key string.
|
|
61
|
+
|
|
62
|
+
Raises:
|
|
63
|
+
AgentError: When the key is missing from both.
|
|
64
|
+
|
|
65
|
+
>>> api_key({"TYPESAFE_API_KEY": "demo-key"})
|
|
66
|
+
'demo-key'
|
|
67
|
+
"""
|
|
68
|
+
from openinterpretability.providers import dotenv_value
|
|
69
|
+
|
|
70
|
+
source = os.environ if env is None else env
|
|
71
|
+
if value := source.get(API_KEY_ENV, "").strip():
|
|
72
|
+
return value
|
|
73
|
+
if value := dotenv_value(API_KEY_ENV, dotenv):
|
|
74
|
+
return value
|
|
75
|
+
raise AgentError(f"{API_KEY_ENV} is not set in the environment or in .env.")
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
def resolve_judge(judge: str | None, env: Mapping[str, str] | None = None) -> str | None:
|
|
79
|
+
"""The judge a draw's steps use: ``auto`` is Jev when a TypeSafe key is found (#8425).
|
|
80
|
+
|
|
81
|
+
#8212 measured Jev against Haiku on 163 stored tasks. Jev was as good on detection and
|
|
82
|
+
better on fuzzing, and far faster and cheaper (``docs/analyses/experiment-throughput.md``).
|
|
83
|
+
|
|
84
|
+
Args:
|
|
85
|
+
judge: ``auto``, ``none``, a model, or None (the same as ``none``).
|
|
86
|
+
env: Environment mapping, for the key; defaults to ``os.environ``.
|
|
87
|
+
|
|
88
|
+
Returns:
|
|
89
|
+
A judge model, or None for the steps' own judges.
|
|
90
|
+
|
|
91
|
+
Examples:
|
|
92
|
+
>>> resolve_judge("auto", {API_KEY_ENV: "k"}), resolve_judge("none")
|
|
93
|
+
('typesafe/jev-latest', None)
|
|
94
|
+
>>> resolve_judge("external/claude-haiku-5-5")
|
|
95
|
+
'external/claude-haiku-5-5'
|
|
96
|
+
"""
|
|
97
|
+
if judge in (None, "", "none"):
|
|
98
|
+
return None
|
|
99
|
+
if judge != "auto":
|
|
100
|
+
return judge
|
|
101
|
+
try:
|
|
102
|
+
api_key(env)
|
|
103
|
+
except AgentError:
|
|
104
|
+
return None
|
|
105
|
+
return MODEL
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
def _post_systemone(
|
|
109
|
+
payload: dict[str, Any], key: str, base_url: str | None = None
|
|
110
|
+
) -> dict[str, Any]:
|
|
111
|
+
"""Send one System One JSON request to TypeSafe AI.
|
|
112
|
+
|
|
113
|
+
Args:
|
|
114
|
+
payload: Request body with ``model``, ``state`` and ``questions``.
|
|
115
|
+
key: Bearer token for TypeSafe AI.
|
|
116
|
+
base_url: Optional API base URL overriding ``TYPESAFE_BASE_URL``.
|
|
117
|
+
|
|
118
|
+
Returns:
|
|
119
|
+
Decoded JSON response object.
|
|
120
|
+
|
|
121
|
+
Raises:
|
|
122
|
+
AgentError: On HTTP, network, timeout or JSON decode failures.
|
|
123
|
+
"""
|
|
124
|
+
root = (base_url or os.environ.get(BASE_URL_ENV) or DEFAULT_BASE_URL).rstrip("/")
|
|
125
|
+
if not root.startswith(("https://", "http://")):
|
|
126
|
+
raise AgentError(f"TypeSafe base URL must use http or https: {root!r}")
|
|
127
|
+
req = urllib.request.Request( # noqa: S310 (scheme checked above)
|
|
128
|
+
f"{root}/v1/systemone",
|
|
129
|
+
data=json.dumps(payload).encode(),
|
|
130
|
+
headers={
|
|
131
|
+
"Authorization": f"Bearer {key}",
|
|
132
|
+
"Content-Type": "application/json",
|
|
133
|
+
"User-Agent": "open-interpretability",
|
|
134
|
+
},
|
|
135
|
+
method="POST",
|
|
136
|
+
)
|
|
137
|
+
try:
|
|
138
|
+
with urllib.request.urlopen(req, timeout=TIMEOUT_SECONDS) as resp: # noqa: S310 (scheme checked above)
|
|
139
|
+
return dict(json.loads(resp.read().decode()))
|
|
140
|
+
except (urllib.error.URLError, TimeoutError, ValueError) as exc:
|
|
141
|
+
raise AgentError(f"TypeSafe Jev request failed: {exc}") from exc
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
def build_payload(
|
|
145
|
+
model: str,
|
|
146
|
+
explanation: str,
|
|
147
|
+
windows: Sequence[TaskWindow],
|
|
148
|
+
kind: Literal["detection", "fuzzing"],
|
|
149
|
+
noun: str,
|
|
150
|
+
) -> dict[str, Any]:
|
|
151
|
+
"""Build one batched System One payload for all detection or fuzzing windows.
|
|
152
|
+
|
|
153
|
+
Args:
|
|
154
|
+
model: Full model string with ``typesafe/`` prefix.
|
|
155
|
+
explanation: Natural-language explanation under test.
|
|
156
|
+
windows: Held-out windows to judge.
|
|
157
|
+
kind: Either ``"detection"`` or ``"fuzzing"``.
|
|
158
|
+
noun: Unit noun shown in the prompt (for example ``"neuron"``).
|
|
159
|
+
|
|
160
|
+
Returns:
|
|
161
|
+
System One request payload dictionary.
|
|
162
|
+
|
|
163
|
+
>>> win = TaskWindow(text="a", tokens=["a"])
|
|
164
|
+
>>> out = build_payload("typesafe/jev-latest", "fires on a", [win], "detection", "neuron")
|
|
165
|
+
>>> out["model"], list(out["questions"])
|
|
166
|
+
('jev-latest', ['t1'])
|
|
167
|
+
"""
|
|
168
|
+
if kind == "detection":
|
|
169
|
+
numbered = "\n".join(f"{i}. {_show(w.tokens)}" for i, w in enumerate(windows, 1))
|
|
170
|
+
note = "Texts are excerpts; line breaks appear as ⏎."
|
|
171
|
+
ask = (
|
|
172
|
+
"Apply the explanation literally, as written. Do not reward a related topic "
|
|
173
|
+
f"if the explanation's condition is not met. Does the {noun} fire on at least "
|
|
174
|
+
"one token in text {i}?"
|
|
175
|
+
)
|
|
176
|
+
else:
|
|
177
|
+
numbered = "\n".join(
|
|
178
|
+
f"{i}. {_show(w.tokens, w.highlighted)}" for i, w in enumerate(windows, 1)
|
|
179
|
+
)
|
|
180
|
+
note = (
|
|
181
|
+
f"Tokens marked {MARK_OPEN}like this{MARK_CLOSE} are candidate firing sites. "
|
|
182
|
+
"Line breaks appear as ⏎."
|
|
183
|
+
)
|
|
184
|
+
ask = (
|
|
185
|
+
"Apply the explanation literally, as written. In text {i}, are the "
|
|
186
|
+
f"{MARK_OPEN}marked{MARK_CLOSE} tokens where the explanation says the {noun} fires?"
|
|
187
|
+
)
|
|
188
|
+
# Send all windows in one shared state so Jev reads the explanation once per prompt.
|
|
189
|
+
state = f"Explanation of the {noun}:\n{explanation}\n\n{note}\n\nNumbered texts:\n{numbered}"
|
|
190
|
+
questions = {
|
|
191
|
+
f"t{i}": {"type": "noul", "instructions": ask.format(i=i)}
|
|
192
|
+
for i in range(1, len(windows) + 1)
|
|
193
|
+
}
|
|
194
|
+
return {"model": model.removeprefix(PREFIX), "state": state, "questions": questions}
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
def judge_windows(
|
|
198
|
+
model: str,
|
|
199
|
+
explanation: str,
|
|
200
|
+
windows: Sequence[TaskWindow],
|
|
201
|
+
*,
|
|
202
|
+
kind: Literal["detection", "fuzzing"],
|
|
203
|
+
noun: str = "neuron",
|
|
204
|
+
threshold: float | None = None,
|
|
205
|
+
transport: Callable[[dict[str, Any], str], dict[str, Any]] | None = None,
|
|
206
|
+
) -> list[int]:
|
|
207
|
+
"""Judge ``windows`` in one batched Jev call and record stage time and token usage.
|
|
208
|
+
|
|
209
|
+
Args:
|
|
210
|
+
model: TypeSafe model string starting with ``typesafe/``.
|
|
211
|
+
explanation: Natural-language explanation under test.
|
|
212
|
+
windows: Held-out windows to judge.
|
|
213
|
+
kind: Either ``"detection"`` or ``"fuzzing"``.
|
|
214
|
+
noun: Unit noun shown in the instructions.
|
|
215
|
+
threshold: Probability cutoff; defaults to the 5-fold CV cutoff for ``kind``.
|
|
216
|
+
transport: Optional callable ``(payload, key) -> response`` for testing.
|
|
217
|
+
|
|
218
|
+
Returns:
|
|
219
|
+
Sorted 1-based window numbers whose ``noul`` probability meets ``threshold``.
|
|
220
|
+
|
|
221
|
+
>>> judge_windows("typesafe/jev-latest", "fires on a", [], kind="detection")
|
|
222
|
+
[]
|
|
223
|
+
"""
|
|
224
|
+
if not windows:
|
|
225
|
+
return []
|
|
226
|
+
# Calibrated cutoffs offset Jev's conservative bias on 50/50 held-out window samples.
|
|
227
|
+
default_cut = DETECTION_THRESHOLD if kind == "detection" else FUZZING_THRESHOLD
|
|
228
|
+
cutoff = default_cut if threshold is None else threshold
|
|
229
|
+
payload = build_payload(model, explanation, windows, kind, noun)
|
|
230
|
+
send = _post_systemone if transport is None else transport
|
|
231
|
+
key = api_key()
|
|
232
|
+
with costs.stage("judge"):
|
|
233
|
+
response = send(payload, key)
|
|
234
|
+
usage = response.get("usage") or {}
|
|
235
|
+
in_tokens = usage.get("input_tokens")
|
|
236
|
+
out_tokens = usage.get("output_tokens")
|
|
237
|
+
usd = round(in_tokens * INPUT_USD_PER_MILLION / 1e6, 8) if in_tokens is not None else None
|
|
238
|
+
call = costs.LLMCall(
|
|
239
|
+
agent="judge",
|
|
240
|
+
model=model,
|
|
241
|
+
prompt_chars=len(payload["state"]),
|
|
242
|
+
prompt_tokens=in_tokens,
|
|
243
|
+
completion_tokens=out_tokens,
|
|
244
|
+
cost_usd=usd,
|
|
245
|
+
)
|
|
246
|
+
costs.add_call(call)
|
|
247
|
+
answers = response["answers"]
|
|
248
|
+
return [i for i in range(1, len(windows) + 1) if float(answers[f"t{i}"]["noul"]) >= cutoff]
|