Phase 1 of help system implementation:
Schema changes:
- Add HelpLevel type (0-3) to session-plans.ts
- Extend SlotResult with helpLevelUsed, incorrectAttempts, helpTrigger
- Add REINFORCEMENT_CONFIG constants for mastery credit multipliers
- Add reinforcement tracking columns to player_skill_mastery:
- needsReinforcement: flag for skills needing extra practice
- lastHelpLevel: track struggling patterns
- reinforcementStreak: track progress toward clearing reinforcement
- Add StudentHelpSettings interface and column to players:
- helpMode: 'auto' | 'manual' | 'teacher-approved'
- autoEscalationTimingMs: configurable help timing thresholds
- beginnerFreeHelp: unlimited L1-L2 help without penalty
- advancedRequiresApproval: require teacher auth for L2+ help
This closes the feedback loop between help usage and session planning:
- Help usage informs skill mastery scoring
- Reinforcement flags guide session planner to include extra practice
- Teacher has visibility into which skills need attention
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>