rimlike/scenes/ai
megaproxy 07fb66608a Decision: remove rest from NEEDS_CATEGORIES so work fires before fallback
NEEDS_CATEGORIES used to be [&"rest", &"eat", &"sleep"]. Decision iterates
needs providers before eligible work providers and picks the first one
that returns a non-null job. EatProvider/SleepProvider correctly gate on
hunger/sleep thresholds (return null when not hungry/tired), so they
yield to work when no need is pressing. But RestProvider always returns
a job — by design, it's the catch-all fallback ("stand here"). With
"rest" in NEEDS_CATEGORIES the loop preempted on RestProvider every
tick: pawns assigned 'Rest at (50, 50)' and never reached the
chop/mine/construction providers despite valid designations.

Fix: remove &"rest" from NEEDS_CATEGORIES. RestProvider falls into the
eligible bucket; its provider.priority=0 sorts it last in the eligible
sort (chop=5, mine/construction=5, etc, win the priority tiebreaker).
work_priorities doesn't include a "rest" key so priorities.get falls
through to NORMAL=3, keeping rest eligible for everyone (the UI matrix
deliberately omits rest per Pawn.work_priorities comment).

Verified MCP runtime: fresh boot, all 3 pawns picked 'Build stone wall
at (44, 28)' instead of 'Rest at (50, 50)'; advanced to next wall site
within 5 seconds.

Bug surfaced by first real playtest with painted designations — the
in-context audit caught it within ~5 min of inspection.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-12 13:37:21 +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 Phase 4 — Trees, Rocks, Items, Stockpiles, Hauling 2026-05-10 21:32:39 +01:00
chop_provider.gd.uid Phase 4 — Trees, Rocks, Items, Stockpiles, Hauling 2026-05-10 21:32:39 +01:00
cleaning_provider.gd Phase 13: Rooms + Auto-roof + Beauty + Dirtiness + Cleaning 2026-05-11 17:19:23 +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 Phase 6 — Recipe / Bill / Workbench / CraftingProvider / Quality / Skills 2026-05-10 23:52:41 +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
crafting_provider.gd Alerts: wire room_too_large, no_stockpile_accepts, bill_blocked 2026-05-12 13:16:25 +01:00
crafting_provider.gd.uid Phase 6 — Recipe / Bill / Workbench / CraftingProvider / Quality / Skills 2026-05-10 23:52:41 +01:00
decision.gd Decision: remove rest from NEEDS_CATEGORIES so work fires before fallback 2026-05-12 13:37:21 +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 Phase 9+10: Status/Doctor/Medical bed + Wolves/WolfSpawner 2026-05-11 16:11:36 +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 Phase 7 — Crops, hunger, eating, cooking chain (grain → flour → bread) 2026-05-11 11:38:47 +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 Alerts: wire room_too_large, no_stockpile_accepts, bill_blocked 2026-05-12 13:16:25 +01:00
hauling_provider.gd.uid Phase 4 — Trees, Rocks, Items, Stockpiles, Hauling 2026-05-10 21:32:39 +01:00
job.gd Phase 3 — Decision pipeline + JobRunner + RestProvider + save round-trip 2026-05-10 21:05:50 +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 Phase 14: Death + Corpses + Burial + Cremation 2026-05-11 18:48:15 +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 Phase 4 — Trees, Rocks, Items, Stockpiles, Hauling 2026-05-10 21:32:39 +01:00
mine_provider.gd.uid Phase 4 — Trees, Rocks, Items, Stockpiles, Hauling 2026-05-10 21:32:39 +01:00
plant_provider.gd Phase 7 — Crops, hunger, eating, cooking chain (grain → flour → bread) 2026-05-11 11:38:47 +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 Phase 14: Death + Corpses + Burial + Cremation 2026-05-11 18:48:15 +01:00
recipe.gd.uid Phase 6 — Recipe / Bill / Workbench / CraftingProvider / Quality / Skills 2026-05-10 23:52:41 +01:00
recipe_catalog.gd Phase 14: Death + Corpses + Burial + Cremation 2026-05-11 18:48:15 +01:00
recipe_catalog.gd.uid Phase 6 — Recipe / Bill / Workbench / CraftingProvider / Quality / Skills 2026-05-10 23:52:41 +01:00
rest_provider.gd Phase 3 — Decision pipeline + JobRunner + RestProvider + save round-trip 2026-05-10 21:05:50 +01:00
rest_provider.gd.uid Phase 3 — Decision pipeline + JobRunner + RestProvider + save round-trip 2026-05-10 21:05:50 +01:00
sleep_provider.gd Phase 8 — Beds, sleep need, thoughts, mood, Sulking soft-break 2026-05-11 13:21:15 +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 Phase 12: Seasons + Weather (rolls, rain, storm, wet/cold) 2026-05-11 16:39:34 +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 Phase 12: Seasons + Weather (rolls, rain, storm, wet/cold) 2026-05-11 16:39:34 +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 Phase 14: Death + Corpses + Burial + Cremation 2026-05-11 18:48:15 +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 Phase 14: Death + Corpses + Burial + Cremation 2026-05-11 18:48:15 +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: Touch UX (PawnDetail+BuildDrawer+WorkMatrix+AlertsLog+Settings) 2026-05-11 19:45:35 +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