flybrain/services/flysim/crates/flybrain-gb/src/pokemon_red/macros
acamilo e0285016aa ratchet: getting nearer the objective is progress the coverage figure cannot carry
Two Stuck rollbacks fired on rung 10 inside half an hour, both on a fly that was walking, and
both were the ratchet working to contract: the stall window is reset by exploration -- one tile
the run has never stood on -- and a fly crossing a town it has already covered to reach the
rung's own door earns none of it. Entering a map for the first time already counts, because a
new map is ground nobody has stood on; re-entering one does not, which is what the museum was.

So the window gains a second signal, passed in by the caller and meaningless to the ratchet
itself, exactly as coverage is: the Pokemon loop answers with "nearer the objective, in map
hops, than this run has ever been", over the same map graph GO OBJECTIVE walks. It can fire at
most once per step of the road, it spends no budget, it captures nothing and it skips no
trigger. Nothing in the macro layer reads it back and no button is bound on it.

The checkpointed ratchet state is untouched: the signal is a level on one sample, not a counter.
2026-09-22 12:55:39 +00:00
..
tests macros: plan every walk over the map grid 2026-09-22 03:32:35 +00:00
cartridge.rs macros: a frontier no walk can reach is a fact about the map, not a window 2026-09-22 12:48:09 +00:00
driver.rs ratchet: getting nearer the objective is progress the coverage figure cannot carry 2026-09-22 12:55:39 +00:00
executor.rs macros: a frontier no walk can reach is a fact about the map, not a window 2026-09-22 12:48:09 +00:00
geography.rs ratchet: getting nearer the objective is progress the coverage figure cannot carry 2026-09-22 12:55:39 +00:00
mod.rs flybrain v0.4.0: public tree (history retained privately) 2026-09-21 15:09:46 +00:00
palette.rs macros: a frontier no walk can reach is a fact about the map, not a window 2026-09-22 12:48:09 +00:00
path.rs macros: plan every walk over the map grid 2026-09-22 03:32:35 +00:00
plan.rs flybrain v0.4.0: public tree (history retained privately) 2026-09-21 15:09:46 +00:00
state.rs Merge fix/loop-20260922T0459: NEXT never on a pad with an input-accepting cursor; MOVE 1 is the main menu backstop; the bag is the fly's turn 2026-09-22 06:18:34 +00:00
tests.rs macros: a frontier no walk can reach is a fact about the map, not a window 2026-09-22 12:48:09 +00:00