rimlike/scenes/ai
megaproxy 16e04e46f0 add reachability pre-checks to plant/sleep/chop/mine
Provider audit found 6 WorkProviders missing reachability gates before
returning jobs. Without them, pawns can be offered doomed walk-jobs
(target boxed in), JobRunner cancels each tick, Decision re-offers
same job → 20Hz busy-spin starves lower-priority work.

Fixed 4 here (mechanical pattern):
- PlantProvider._find_harvest: walkable-target check (mirrors _find_sow)
- SleepProvider: walkable bed-tile check
- ChopProvider: adjacent-walkable for impassable tree
- MineProvider: adjacent-walkable for impassable rock

Cooking/Crafting reachability changes (in the same audit's
recommendation) were attempted but caused intermittent null returns
that regressed cooking rate. Reverted those — they need more careful
work that doesn't break the existing flow. Filed separately.

Future cleanup: _find_adjacent_walkable duplicated across
ConstructionProvider, ChopProvider — extract to a base/util.

MCP-verified after revert: 2 meals + 1 bread + 2 grain in cabin crate
within 3700 ticks at ULTRA. Cooking fires, hauling fires, all
production paths operational.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-17 20:20:35 +01:00
..
bill.gd
bill.gd.uid
chop_provider.gd add reachability pre-checks to plant/sleep/chop/mine 2026-05-17 20:20:35 +01:00
chop_provider.gd.uid
cleaning_provider.gd sprint A cleanup: accessibility, signals, race, debris 2026-05-16 18:38:14 +01:00
cleaning_provider.gd.uid
construction_provider.gd
construction_provider.gd.uid
cooking_provider.gd split CookingProvider out of CraftingProvider — fixes starvation 2026-05-16 21:18:26 +01:00
crafting_provider.gd split CookingProvider out of CraftingProvider — fixes starvation 2026-05-16 21:18:26 +01:00
crafting_provider.gd.uid
decision.gd split CookingProvider out of CraftingProvider — fixes starvation 2026-05-16 21:18:26 +01:00
decision.gd.uid
doctor_provider.gd
doctor_provider.gd.uid
eat_provider.gd
eat_provider.gd.uid
hauling_provider.gd bump HaulingProvider priority 3 → 5 — fixes output piling up at workbench 2026-05-16 21:39:19 +01:00
hauling_provider.gd.uid
job.gd sprint A cleanup: accessibility, signals, race, debris 2026-05-16 18:38:14 +01:00
job.gd.uid
job_runner.gd sprint A cleanup: accessibility, signals, race, debris 2026-05-16 18:38:14 +01:00
job_runner.gd.uid
mine_provider.gd add reachability pre-checks to plant/sleep/chop/mine 2026-05-17 20:20:35 +01:00
mine_provider.gd.uid
plant_provider.gd add reachability pre-checks to plant/sleep/chop/mine 2026-05-17 20:20:35 +01:00
plant_provider.gd.uid
quality.gd
quality.gd.uid
recipe.gd add iron/gold smelting + disambiguate workbench-vs-recipe 2026-05-16 18:45:11 +01:00
recipe.gd.uid
recipe_catalog.gd disambiguate cremate_corpse + quarry_stone 2026-05-16 19:52:41 +01:00
recipe_catalog.gd.uid
sleep_provider.gd add reachability pre-checks to plant/sleep/chop/mine 2026-05-17 20:20:35 +01:00
sleep_provider.gd.uid
status.gd fix six critical bugs from audit sprint 2026-05-16 18:06:55 +01:00
status.gd.uid
status_catalog.gd fix six critical bugs from audit sprint 2026-05-16 18:06:55 +01:00
status_catalog.gd.uid
thought.gd
thought.gd.uid
thought_catalog.gd fix six critical bugs from audit sprint 2026-05-16 18:06:55 +01:00
thought_catalog.gd.uid
toil.gd fix six critical bugs from audit sprint 2026-05-16 18:06:55 +01:00
toil.gd.uid
wolf_spawner.gd Phase 17/18 closure: stockpile filter UI + day summary + atmospheric audio 2026-05-16 17:20:40 +01:00
wolf_spawner.gd.uid
work_provider.gd
work_provider.gd.uid