Skip to content

Comments

Learning efficiency#9

Closed
catchingstrays wants to merge 3 commits intomainfrom
learning-efficiency
Closed

Learning efficiency#9
catchingstrays wants to merge 3 commits intomainfrom
learning-efficiency

Conversation

@catchingstrays
Copy link
Owner

No description provided.

catchingstrays and others added 3 commits October 22, 2025 01:19
Resolved all critical and important issues identified in code review:

1. **Config validation logging**: Added warning logs when config values are
   invalid or outside acceptable ranges, helping users debug configuration issues

2. **Removed unnecessary recursion guard**: Eliminated MAX_RECURSION_DEPTH
   constant and recursion parameter from updateStateAndGetCooldown() since
   no recursive calls exist

3. **Renamed function to reflect side effects**: getDynamicCooldown() →
   updateStateAndGetCooldown() with updated documentation noting state
   transitions happen as side effects

4. **Pattern recalculation caching**: Added needsRecalculation flag to skip
   expensive pattern recalculation when no new data has been added, improving
   performance for large user bases

5. **Documented active hour expansion**: Added inline comments explaining why
   ±1 hour expansion is necessary (match detection delay from game completion)

6. **Fixed SOFT_RESET recovery**: Added logic to detect and log when inactive
   players return, allowing proper state transitions out of SOFT_RESET

7. **Reverted ChatGPT temperature**: Changed from 1.0 back to 0.9 to maintain
   coherence while still providing creative variety in roasts

8. **Confidence-based decision making**: Pattern confidence score now used to
   determine when to use day-specific patterns vs overall patterns (requires
   both sufficient day data AND confidence ≥0.5)

9. **Fixed consecutive check counter**: Now only increments during ACTIVE_SESSION
   state, preventing incorrect counter values in other states

10. **Prominent UTC timezone documentation**: Moved timezone notice to top of
    Intelligent Match Detection section with warning emoji for visibility

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@catchingstrays catchingstrays deleted the learning-efficiency branch October 22, 2025 08:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant