Skip to content

Compaction: Tests – boundary, rules, pruning, integration #54

@riatzukiza

Description

@riatzukiza

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions