Skip to content

Phase 7: the benchmark runner, experiments and difficulty proxies - #9

Merged
madeline-v-brandt merged 2 commits into
mainfrom
phase-7-benchmark
Nov 12, 2026
Merged

madeline-v-brandt merged 2 commits into
mainfrom
phase-7-benchmark

Conversation

@kuvychko

Copy link
Copy Markdown
Member

Phase 7 of the roadmap: the benchmark and research platform.

What it adds

  • maxplus-bench: runs a TOML manifest over the fixtures, writes one JSON line per run (solver version, instance hash, seed, tolerances, configuration) and prints a table.
  • python/maxplus_solvers/experiments/: manifests, the runner, tables, difficulty proxies, plotting (behind the new analysis extra).
  • Four manifests in benchmarks/manifests/: smoke, corpus, tolerance, factorial.
  • benchmarks/results/corpus.md: every registered solver on every corpus puzzle, counts and no times.
  • A solver option roof_tolerance_mm and a metric backtrack_depth, on both production solvers and the prototype.
  • The source's Leinster-Cobbold diversity and rating, copied into the fixture index by the importer.
  • notebooks/first-look.ipynb, run from top to bottom by a test.
  • docs/experiments.md: the formats and the findings.

Exit criterion

tests/corpus/test_benchmark.py::test_one_command_reproduces_the_corpus_table: maxplus-bench run benchmarks/manifests/corpus.toml --no-times reproduces the committed table. The roadmap row stays "Next" until this passes in CI on Linux and Windows.

What the experiments found

  • Roofs are the factor: more than ten thousandfold on the 16-piece puzzles. Order, luck and looking ahead move the cost by ten to a hundred.
  • No transition in tolerance, from numerical noise to twice the player's tolerance: costs grow smoothly and solution counts never change. The roofs hold at a 5 mm tolerance.
  • The roadmap expected time to a first solution and time to exhaust to move in opposite directions as tolerance widens. They do not: both rise.
  • The degree of the edge compatibility graph separates the regimes and ranks the relief puzzles; nothing static explains the footprints beyond their size. Eight puzzles a regime, so these are leads.

Checks

Locally on Windows: 1457 Python tests including the slow ones, ruff, pyright, cargo fmt, clippy and the Rust tests.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Jfg9fgTR9LYn4D2rTtfifs

kuvychko and others added 2 commits November 11, 2026 12:01
maxplus-bench runs a TOML manifest over the fixtures, writes one JSON line
per run with everything needed to run it again, and prints a table. The
corpus manifest runs every registered solver on every corpus puzzle; its
table without times is committed as benchmarks/results/corpus.md and a
test holds that the one command reproduces it.

Also: tolerance and factorial manifests, difficulty proxies from the edge
compatibility graph compared with the source's rating, plotting behind the
analysis extra, a first notebook that a test runs, the solver option
roof_tolerance_mm and the metric backtrack_depth. docs/experiments.md has
the formats and what the first experiments found.

The roadmap row stays "Next" until the exit test passes in CI on both
platforms.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Jfg9fgTR9LYn4D2rTtfifs
@madeline-v-brandt
madeline-v-brandt merged commit 741beff into main Nov 12, 2026
@kuvychko
kuvychko deleted the phase-7-benchmark branch November 12, 2026 22:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants