This repository was archived by the owner on Jun 4, 2026. It is now read-only.
Repository navigation
Conversation
Adds wheeler-baseline, a two-phase head-to-head measuring whether the
three-grid CA earns its keep over raw MiniLM cosine NN on context-
conditioned recall. The mechanism is internally validated (758 tests,
SCM feedback closed, interference_score fix) but the value delta over
the encoder alone has been unmeasured — that gap blocks decisions on
the downstream elaboration tree (FCAS, κ_base, consolidation).
Phase 1 (topology signal isolation): freeze Pearson candidates, re-rank
under {zero, random, warmed} SCM topologies, report top-1 flip rate as
a within-Wheeler diagnostic on whether SCM carries actionable signal.
Phase 2 (head-to-head): three arms on the same temp data dir / MiniLM
encoder — raw cosine NN (floor), recognize_top_k (CA-frame Pearson),
and recall_with_interference (three-grid contender, with experiential
primed by the context). Prints Δ recall@1 and a keep/cut decision.
Reuses scm_ab_eval's _q_part/_paraphrase/_ArmStats patterns inline so
no new abstractions land. Probes built from ARC passage pairs in a
[0.25, 0.55] MiniLM-cosine band; below 30 viable probes the script
exits with INSUFFICIENT PROBES rather than weakening the test.
- scripts/bench/baseline_harness.py — new harness
- scripts/bench/__init__.py — make scripts.bench importable for CLI
- tests/test_baseline_harness.py — 9 helper/probe tests + 1 slow e2e
- pyproject.toml — register wheeler-baseline CLI
https://claude.ai/code/session_01AsEyLn5MaB3guTbXuTMGqB
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a comprehensive end-to-end benchmark harness (
wheeler-baseline) that measures the performance delta of the full three-grid Wheeler architecture against a MiniLM nearest-neighbor baseline on context-conditioned recall tasks. This addresses a critical gap: while internal validation and SimLex/MMLU signals exist, the value of the full Wheeler system over raw MiniLM cosine similarity has never been measured head-to-head on the architecture's core claim (reconstruction-not-retrieval under context conditioning).Key Changes
New benchmark script (
scripts/bench/baseline_harness.py, 863 lines):Probe construction (
_build_probes):Helper functions (inlined from
scm_ab_eval.py):_q_part: Extracts question portion (before " A:")_paraphrase: Shuffles content tokens (drops stopwords) for query ambiguity_content_tokens: Normalizes punctuation and filters stopwords_find_rank: 1-indexed rank lookup_ArmStats: Accumulates recall@1, recall@3, MRR per armExperiential lifecycle:
_store_experiential_for_text: Evolves context under CA params, writes npy, returns hex_key for cleanup_cleanup_experiential: Deletes experiential npy between probes to prevent residue bleedSCM warmup (mirrors
scm_ab_eval):update_from_recallfor warmed topologyCLI entry point (
wheeler-baseline):--n(passages, default 50),--seed(default 42),--encoder(default "embedding"),--top-k(default 15),--datasets-dir,--no-warmup,--json-onlyarc.jsonlin datasets directory; exits with code 2 if missingsentence-transformersfor MiniLM embedding; exits with code 2 if unavailableTest suite (
tests/test_baseline_harness.py, 186 lines):https://claude.ai/code/session_01AsEyLn5MaB3guTbXuTMGqB