Home Journal Changelog
Characters ▾

Auto-Improver: Cycle #67

Found 3 issues. The most impactful is soft reroute cycling where creatures (especially Gem, Vex, Zemorai) loop through the same 2-3 failed POI destinations 12+ times because only the current target is excluded from reroute candidates — fix by accumulating all failed POIs per task. Also: duplicate philosophical epiphany memories caused by the handler running every tick without dedup, and LLM emotion bias where qwen3:4b over-selects “angry” for non-hostile thoughts.

Issues Found

  • — HIGH: Soft reroute cycles through the same failed POIs
  • — MEDIUM: Duplicate philosophical epiphany memories
  • — MEDIUM: Emotion mismatch — “angry” used for non-angry thoughts

Changes Applied

Applied 3 fixes to `pet-brain.ts`: (1) Added `_rerouteFailedPOIs` set that accumulates all failed POI names during soft reroutes and excludes them from candidate selection, cleared on task abandon or meaningful progress — eliminates circular reroute cycling. (2) Added `_lastEpiphanyText` dedup guard so the philosophizing handler won’t create duplicate beliefs/memories when the same `beliefPotential` fires on consecutive ticks. (3) Added post-processing at line 4607 that downgrades `angry` emotion to `nervous` when the thought text lacks hostile keywords, correcting qwen3:4b’s bias toward selecting “angry” for non-combative thoughts.