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 Phase 6 — Recipe / Bill / Workbench / CraftingProvider / Quality / Skills 2026-05-10 23:52:41 +01:00
bill.gd.uid Phase 6 — Recipe / Bill / Workbench / CraftingProvider / Quality / Skills 2026-05-10 23:52:41 +01:00
chop_provider.gd add reachability pre-checks to plant/sleep/chop/mine 2026-05-17 20:20:35 +01:00
chop_provider.gd.uid Phase 4 — Trees, Rocks, Items, Stockpiles, Hauling 2026-05-10 21:32:39 +01:00
cleaning_provider.gd sprint A cleanup: accessibility, signals, race, debris 2026-05-16 18:38:14 +01:00
cleaning_provider.gd.uid Phase 13: Rooms + Auto-roof + Beauty + Dirtiness + Cleaning 2026-05-11 17:19:23 +01:00
construction_provider.gd ConstructionProvider: skip unreachable build sites 2026-05-15 15:09:19 +01:00
construction_provider.gd.uid Phase 5 — Designation, BuildJob, Wall/Floor/Door, Crate; 3/4 perspective pivot 2026-05-10 22:11:40 +01:00
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 Phase 6 — Recipe / Bill / Workbench / CraftingProvider / Quality / Skills 2026-05-10 23:52:41 +01:00
decision.gd split CookingProvider out of CraftingProvider — fixes starvation 2026-05-16 21:18:26 +01:00
decision.gd.uid Phase 3 — Decision pipeline + JobRunner + RestProvider + save round-trip 2026-05-10 21:05:50 +01:00
doctor_provider.gd Chop/mine designation gate + reachability gates on Doctor & Eat 2026-05-15 14:53:50 +01:00
doctor_provider.gd.uid Phase 9+10: Status/Doctor/Medical bed + Wolves/WolfSpawner 2026-05-11 16:11:36 +01:00
eat_provider.gd Chop/mine designation gate + reachability gates on Doctor & Eat 2026-05-15 14:53:50 +01:00
eat_provider.gd.uid Phase 7 — Crops, hunger, eating, cooking chain (grain → flour → bread) 2026-05-11 11:38:47 +01:00
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 Phase 4 — Trees, Rocks, Items, Stockpiles, Hauling 2026-05-10 21:32:39 +01:00
job.gd sprint A cleanup: accessibility, signals, race, debris 2026-05-16 18:38:14 +01:00
job.gd.uid Phase 3 — Decision pipeline + JobRunner + RestProvider + save round-trip 2026-05-10 21:05:50 +01:00
job_runner.gd sprint A cleanup: accessibility, signals, race, debris 2026-05-16 18:38:14 +01:00
job_runner.gd.uid Phase 3 — Decision pipeline + JobRunner + RestProvider + save round-trip 2026-05-10 21:05:50 +01:00
mine_provider.gd add reachability pre-checks to plant/sleep/chop/mine 2026-05-17 20:20:35 +01:00
mine_provider.gd.uid Phase 4 — Trees, Rocks, Items, Stockpiles, Hauling 2026-05-10 21:32:39 +01:00
plant_provider.gd add reachability pre-checks to plant/sleep/chop/mine 2026-05-17 20:20:35 +01:00
plant_provider.gd.uid Phase 7 — Crops, hunger, eating, cooking chain (grain → flour → bread) 2026-05-11 11:38:47 +01:00
quality.gd Phase 6 — Recipe / Bill / Workbench / CraftingProvider / Quality / Skills 2026-05-10 23:52:41 +01:00
quality.gd.uid Phase 6 — Recipe / Bill / Workbench / CraftingProvider / Quality / Skills 2026-05-10 23:52:41 +01:00
recipe.gd add iron/gold smelting + disambiguate workbench-vs-recipe 2026-05-16 18:45:11 +01:00
recipe.gd.uid Phase 6 — Recipe / Bill / Workbench / CraftingProvider / Quality / Skills 2026-05-10 23:52:41 +01:00
recipe_catalog.gd disambiguate cremate_corpse + quarry_stone 2026-05-16 19:52:41 +01:00
recipe_catalog.gd.uid Phase 6 — Recipe / Bill / Workbench / CraftingProvider / Quality / Skills 2026-05-10 23:52:41 +01:00
sleep_provider.gd add reachability pre-checks to plant/sleep/chop/mine 2026-05-17 20:20:35 +01:00
sleep_provider.gd.uid Phase 8 — Beds, sleep need, thoughts, mood, Sulking soft-break 2026-05-11 13:21:15 +01:00
status.gd fix six critical bugs from audit sprint 2026-05-16 18:06:55 +01:00
status.gd.uid Phase 9+10: Status/Doctor/Medical bed + Wolves/WolfSpawner 2026-05-11 16:11:36 +01:00
status_catalog.gd fix six critical bugs from audit sprint 2026-05-16 18:06:55 +01:00
status_catalog.gd.uid Phase 9+10: Status/Doctor/Medical bed + Wolves/WolfSpawner 2026-05-11 16:11:36 +01:00
thought.gd Phase 8 — Beds, sleep need, thoughts, mood, Sulking soft-break 2026-05-11 13:21:15 +01:00
thought.gd.uid Phase 8 — Beds, sleep need, thoughts, mood, Sulking soft-break 2026-05-11 13:21:15 +01:00
thought_catalog.gd fix six critical bugs from audit sprint 2026-05-16 18:06:55 +01:00
thought_catalog.gd.uid Phase 8 — Beds, sleep need, thoughts, mood, Sulking soft-break 2026-05-11 13:21:15 +01:00
toil.gd fix six critical bugs from audit sprint 2026-05-16 18:06:55 +01:00
toil.gd.uid Phase 3 — Decision pipeline + JobRunner + RestProvider + save round-trip 2026-05-10 21:05:50 +01:00
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 Phase 9+10: Status/Doctor/Medical bed + Wolves/WolfSpawner 2026-05-11 16:11:36 +01:00
work_provider.gd Phase 3 — Decision pipeline + JobRunner + RestProvider + save round-trip 2026-05-10 21:05:50 +01:00
work_provider.gd.uid Phase 3 — Decision pipeline + JobRunner + RestProvider + save round-trip 2026-05-10 21:05:50 +01:00