Pangram verdict · v3.3
We believe that this entire text is human-written.
AI likelihood · overall
HumanArticle text · 1,063 words · 3 segments analyzed
Soksolv solves more levels than any published Sokoban solver on both standard benchmark suites, including 24 world-first automated level solves. It's also faster on the levels that other solvers solve (~3.2x in total time).Large Test Suite · % of 3,272 levels solved50%70%80%90%95%98%99%1 s10 s1 min10 min+10ahead of Festival at 10 minutesOpen Test Suite · % of 10,043 levels solved50%70%80%90%95%98%99%1 s10 s1 min10 min+18ahead of Festival at 10 minutes soksolv Festival Sokolution Takaken YASS BoxSearchFestival: measured on the same hardware. Others: published results. Log scale of what's left unsolved.As is common for this era, I did not handwrite a single line of code. I used one long Opus 5.5 session in Claude Code, along with ~430 subagents (a mixture of Sonnet 5.5, Opus 5.5, and Fable 5.2) for an API-equivalent cost ~$3,500 (I used the $100 plan, and a reset).I ran the 14-day long Claude session from my MacBook and did ~50% of the work on-the-go by dictating to my iPhone via /remote-control. On the compute side, I needed 15,000 vCPU-hours (AMD EPYC) to do research and verification runs, as well as the (very) long benchmark runs.Sokoban Quick TourFirst published in Japan in 1982, Sokoban is a puzzle game where you push boxes onto goals. It was proven PSPACE-complete in 1997, and small boards hide massive search spaces. Human-solvable levels commonly need hundreds to thousands of moves.Below is the solution for Microban #1.worker: pushes one box at a timebox: can be pushed, not pulledgoal: every box must end on onebox on a goal0moves0pushesLevels are AdversarialSokoban levels can be explored as a cyclic graph of moves. With a branching factor of ~16 (but up to ~176 on huge boards!), any kind of brute forcing becomes unviable after a handful of moves.As a player, and especially as a solver author, Sokoban levels feel adversarial by design. Any obvious heuristic is immediately punished by the game rules or the level author.When I wrote my first Sokoban solver (~4 years ago), I tried to encode how I thought I was playing the game. Without thinking too hard, we can describe this as "get the boxes to the goals". Okay, so, how do we calculate that in a program? Maybe the sum of box-to-goal distances?Using this as a guide, we can explore the graph of possible moves and see what happens.greedy: most boxes on goals firstpush 0boxes on goals after each push01solutionpush 0boxes on goals after each push000112Ah, by prioritizing boxes on goals we walk right into a trap. The game becomes deadlocked and unsolvable, and our solver with a single rule runs until the end-of-time with no solution.We'll need to come up with a bag of strategies to perform better than even novice players.Laying Out the ProjectI've been using frontier agents at work for a while now and I enjoy (and get a lot of profit from) what I call "creative goal setting". Where you define the goal, parts of the path, risks that you consider acceptable, and some preferences on the method.What I've experienced, is that agents are really great hill-climbers, and a solver program is the purest hill there is. There are two things to measure: the number of levels solved, and some kind of aggregate time of those solutions.At the beginning of this project, I started a Claude Code session and defined a hill climbing plan. One immutable incumbent version of the solver (the first version was just a brute force search), one hypothesis per experiment, a frozen verifier (so agents don't cheat), and separate promotion suites.As I continued to make progress, I expanded the pool of levels that I measured my solver against until I was taking on the two common benchmarks used in the Sokoban solver community; the Large Test Suite and the Open Test Suite, which contain increasingly complex Sokoban levels. There are some duplicate levels between the suites with a unique count of 9,756 total levels, with an average of 16 boxes, and ~830 moves (~160 pushes) to solve each.I knew that I didn't want to build on top of an existing solver for two reasons. The first was that I did this project because I love this kinda stuff, and it's a less interesting journey to make small patches to an existing program. It's much more fun to be part of something from scratch and to live the narrative of it.The second reason, that I didn't realize until the ending stages of the project, was that if you build on top of existing solution, you become extremely tied to certain design decisions without the knowledge of those decisions, and it becomes impossible to make improvements beyond one order of magnitude.So I set some initial ground rules for the agents. No machine learning (much harder for me to audit), no reading the code of rival solvers (or we risk copying inefficient designs), and no hardcoding to solve levels (that's cheating).At the beginning of the project, I was concerned about agents cheating. I'm sure we all remember early LLM generations that would just comment out tests to achieve their given goals!But I found no signs of agents cheating at all. My best guess for this is that I steered agent motivation towards experimentation and learning rather than it being a pure numbers game.Two more ground rules that I set were: the solver must be written in Go (I find it fun to read), and a 15 GB memory cap so it fits on an 8-core/16 GB machine. I also wanted to use the same cores as Festival (the leading rival solver) for matters of fairness.During the iteration cycle, each solution was replayed move by move on the original level using the frozen verifier.Solverany lane, any trickMove stringdlUrrrdLullddrUl…Verifierreplays every moveSolved or rejectedonly verified solutions countA valid solutiondlUrrrdLullddrUluRuulDrddrruLdlUU0 / 33moves replayedlurd walk · LURD push a boxThe verifier lives in its own package and agents weren't allowed to edit it. I also had a similar check when promoting new pruning rules. I had 2,632 known solutions that were replayed through it and if the prune cut a single known solution then it was failed (this ended up catching two unsound pruning rules before they landed).How Solvers ThinkSo earlier I spoke about solving levels as being like exploring a graph, right? And you probably counted each node as being a worker step or a box move.
But walking is free!
Only pushes change the puzzle.