Repository navigation
Description
Outcome
Close the controller-quality evidence gap without conflating it with cache/runtime efficiency.
Canonical contract
benchmarks/snake-controller-benchmark-v1.mddocs/current-state.md
Screening evidence already completed
Pinned Qwen3.5-2B Q4_K_M CPU screening on clean main
263f7ba1274f6f798d7a93a3c0cf4fcfffeae92f compared
direct-stateful-verbose with direct-fresh-verbose.
Observed:
- cached and fresh direct paths produced the same choices/scores and the same four episode outcomes;
- fixed-state oracle coverage 10/10, but optimal-set agreement only 5/10;
- catastrophic miss rate 20%;
- candidate-order change rate 30%;
- median episode food 16, loop rate 50%, stall rate 75%, controller failure rate 25%;
- stateful reused 151,808 / 503,070 logical input tokens (~30.2%) with 593 hits / 1 miss / 0 fallbacks;
- fixed-state p50 improved from 40.44 s fresh to 5.11 s stateful;
- long-episode runtime did not retain the benefit because the shared path repeatedly captured and restored ~23 MB sequence-state snapshots.
This is valid direct-v1 evidence and must remain append-only.
Direct v2 remediation integrated
Merged to main in b9a794fb275e2e25a8ec2f4201dae5dcc49d8e52 via #14. Post-merge Decisio CI and Repository health both passed on that exact commit.
The integrated implementation:
- canonicalizes candidates by stable candidate ID before assigning A/B/C/... readout labels;
- bumps the direct compiler/scorer identity to v2;
- records prompt version + candidate-order strategy in the benchmark protocol fingerprint;
- reuses the already-cached prefix snapshot on cache hits instead of capturing it again.
Exact direct-v2 rerun
Run the same direct stateful/fresh comparison, not the broader default matrix:
uv sync --frozen --extra llama --extra dev
uv run python -m benchmarks.run_snake_controller_benchmark \
--model /path/to/Qwen3.5-2B-Q4_K_M.gguf \
--output .artifacts/snake-controller/direct-v2.json \
--ledger .artifacts/snake-controller/history.jsonl \
--configs direct-stateful-verbose direct-fresh-verbose \
--threads 2 --threads-batch 2The runner prints fixed-case and episode progress/ETA. Keep the working tree clean so source identity is unambiguous.
Required next evidence
- rerun the unchanged Snake controller screening against the pinned Qwen3.5-2B Q4_K_M + llama.cpp CPU identity on direct v2;
- preserve append-only source/model/fixture/protocol/config/result identity;
- require stateful/fresh exact output equivalence;
- interpret oracle coverage and catastrophic misses before latency/reuse;
- inspect physical/logical tokens plus snapshot/restore bytes and latency;
- freeze a holdout fixture only if the remediated screening quality is acceptable.
Non-goals
- do not tune against the observed 10-case fixture before rerunning the remediation;
- do not promote semantic-v2 universally;
- do not treat the 0.8B CI smoke as representative controller quality;
- do not convert cache speed into a gameplay-quality claim.
This remains the representative Snake quality/performance evidence dependency for release and product
claims. The narrow direct-choice DecisionSession software contract is separate and must not be
treated as evidence that this controller-quality gate passed.
Activity