forked from anomalyco/opencode
-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Epic: #46
Summary
Add unit and integration tests that prevent regressions in compaction.
Scope
- Unit: boundary selection (empty stream, multiple summaries, preserve last N turns)
- Unit: rules presence in summary
- Unit: pruning decisions (completed tool outputs pruning)
- Integration: BUILD-mode compaction -> continuation on a toy repo
Tasks
- Test harness to seed session with messages/parts programmatically
- Unit tests for new boundary function
- Unit tests for summary prompt includes mandatory sections
- Integration: simulate long BUILD, trigger prune + compact, verify continuation
Acceptance Criteria
- Tests fail on the historical bugs described in linked issues and pass after fixes.
Metadata
Metadata
Assignees
Labels
No labels