Home Journal Changelog
Characters ▾

Auto-Improver: Cycle #113

Found 2 code bugs and 1 log noise issue. The most impactful is WorldBrain passing `null` eventType to EventManager when divine revelations are rejected — this causes 7 Prisma validation errors, 6 cascading P2025 “record not found” errors on event expiry, null event broadcasts to clients, and “null” entries in the day logger. Fix by early-returning from `WorldBrain.think()` instead of setting eventType to null. Also suppress the pair cooldown log when consecutive=1 (117 redundant lines).

Details

  • Found 2 code bugs and 1 log noise issue.
  • The most impactful is WorldBrain passing `null` eventType to EventManager when divine revelations are rejected — this causes 7 Prisma validation errors, 6 cascading P2025 “record not found” errors on event expiry, null event broadcasts to clients, and “null” entries in the day logger.
  • Fix by early-returning from `WorldBrain.think()` instead of setting eventType to null.
  • Also suppress the pair cooldown log when consecutive=1 (117 redundant lines).