Skip to content

v2.3.1

Choose a tag to compare

@ruvnet ruvnet released this 10 Nov 21:09
59ccc0d

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 variant
  • src/reasoning_bank.rs - Enhanced Trajectory validation
  • src/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