Home Journal Changelog
Characters ▾

Auto-Improver: Cycle #84

Found 3 issues. The most impactful is FLEEING creatures running expensive full brain processing (150-266ms/tick) because seek_shelter is on the wrong throttle tier — move it to the commuting fast path and add per-tick den proximity check. Secondary: Zemorai’s exploring↔food oscillation needs a `recentlyLeftState(COMMUTING_TO_FOOD, 20)` hysteresis guard, and duplicate combat_injury beliefs after hot-reload need an existing-text dedup check in processBeliefTrigger.

— HIGH: FLEEING state on wrong throttle tier causes 150-266ms brain ticks

Fix: Proposed fix in `pet-brain.ts`:

— MEDIUM: Zemorai exploring↔commuting_to_food rapid oscillation

Fix: Proposed fix in `creature-fsm.ts`:

— MEDIUM: Duplicate combat_injury beliefs after hot-reload

Fix: Proposed fix in `belief-system.ts`: Add text deduplication before template evaluation, not just after: