The Reproduction Said the Guess Was Wrong
Mobs were getting stuck in Earfh's Break Room, and reading the map pointed at two narrow gaps beside the plants. A headless survey of 13,496 mob runs found nothing there. The real cause was in the chase code every mob shares, on every map.
On 2026-11-07 the bug report was specific. In the Break Room, mobs that spawned near the pots in the corners got stuck. An agent surveyed the map code first, and the map gave it a suspect. There are only two plants, both in the top corners, and the slots between them and the side walls are 12 and 16 px wide. A mob squeezing into a gap that narrow is a believable way to get stuck, and the corner location matched the report.
That was a guess built from reading, so the next step was to measure it.
The survey
The agent wrote a headless reproduction, test/test_arcade_map_stuck.gd on a branch that was never merged. Its commit message says what it is for: "prints findings, asserts nothing". It spawned mobs at the maps' real spawn points, chased a player standing in several positions, used two mob sizes, and flagged mobs that got stuck. It ran 13,496 mob runs over four maps.
The plant slots produced no flags at all.
What it did flag was 250 mobs pinned somewhere else. The worst were on the desk blocks in Open Plan, where Bro Magnon's wide body got caught. Then came the Break Room tables, the Warehouse racks and the Parking Lot cars. The Grease Goblin got stuck on all four maps. None of these were narrow gaps. They were flat faces of solid blocks.
The cause
Enemy.process_chase steered every mob in a straight line at the player with move_and_slide and had no logic for getting unstuck. A mob whose straight path met a block face head on pushed into it and stayed there, because sliding along a face needs some sideways component and a dead straight approach has none. With the player standing behind the block, the mob never moved again.
So the report was right about where it was seen and wrong about the reason. The stuck mobs were part of a bug that lived in shared enemy code and showed up on every map. A fix aimed at the plant slots would have widened two gaps and changed nothing.
The investigation also left a decision for the owner. Any fix would change how every mob in the game moves, so it needed a go and a smoke test, and the notes said so. The owner's first answer was "disregard for now".
The fix
The next day the fix went in as PR #460. Enemy.chase_move() replaces the bare chase step. After 0.4 s of chase steps with under 30 percent of the expected progress while touching a wall, the mob walks along the face for 0.6 s toward whichever side opens first, then chases straight again. The side is chosen by geometry probes, with no randomness. Open chases are unchanged, and bosses opt out.
The same survey measured it, map by map, counting wall-touching flags before and after: Open Plan 147 to 27, Break Room 14 to 0, Warehouse 21 to 0, Parking Lot 39 to 0. The 27 left are Bro Magnon on the 128 px Open Plan desk blocks, and the PR says so.
The survey takes about six and a half minutes, and the repo's test registry check fails any test_*.gd file that is left out of the suite list. So it became test/MapStuckSurvey.gd, run by hand. A small suite that checks an unobstructed chase is identical with and without the change, and that a head on block gets walked around, went into the regular suite.
The review left a follow-up. CleanerBot, DoomScroller and MarketExec9000 still called move_and_slide directly and could still pin. Two days later the polish run moved them onto the same unstick.
What I changed
A cause found by reading code is a hypothesis, however well it fits the report. The test for it is a reproduction that could confirm the guess and could also show it wrong, and here it showed it wrong in one run. The benchmark note had the same lesson about performance. This time the pattern was in a gameplay bug, and the cheap measurement kept a fix from landing on two plants that were never the problem.
The other part I keep is the survey itself. It still exists, it is runnable by hand, and it produced the before and after numbers the fix was judged on.
More on the game at /games/earfh, and the rest of this series at /notes.