v2.3.1
v2.3.1 - Validation Fixes
Patch release addressing three validation gaps in the ReasoningBank trajectory management system.
π§ Fixes
Score Validation
- β Reject scores outside 0.0-1.0 range
- β Reject NaN and Infinity values
- β Proper error messages for invalid scores
State Validation
- β Require at least one operation before finalization
- β Prevent empty trajectories from being stored
Input Validation
- β Reject empty or whitespace-only task descriptions
- β Enforce max task length (10KB)
- β Ensure contexts are never empty
π Files Modified
src/error.rs- Added ValidationError variantsrc/reasoning_bank.rs- Enhanced Trajectory validationsrc/wrapper.rs- Updated context handling
β Test Results
All validation tests passing (12/12):
- Score validation: 4/4 β
- State validation: 2/2 β
- Input validation: 4/4 β
- Edge cases: 2/2 β
π¦ Installation
npm install agentic-jujutsu@2.3.1π Documentation
π Migration
Existing code should continue to work unless it was using invalid inputs (empty tasks, scores >1.0, etc.). See the Migration Guide for details.
Full Changelog: v2.3.0...v2.3.1