Skip to content

Add deterministic overflow archive compaction#20

Merged
chubes4 merged 3 commits intomainfrom
feat/overflow-archive-strategy
May 1, 2026
Merged

Add deterministic overflow archive compaction#20
chubes4 merged 3 commits intomainfrom
feat/overflow-archive-strategy

Conversation

@chubes4
Copy link
Copy Markdown
Contributor

@chubes4 chubes4 commented May 1, 2026

Summary

  • Add an overflow archive branch to conversation compaction that splits oversized ordered inputs deterministically before any summarizer call.
  • Return archive items verbatim alongside retained messages with a synthetic archive stub and pointer metadata for consumer persistence.
  • Extend smoke coverage for large input, no-op small input, single unsplittable input, and deterministic output.

Testing

  • composer test
  • php -l src/Runtime/AgentConversationCompaction.php
  • php -l tests/conversation-compaction-smoke.php

AI assistance

  • AI assistance: Yes
  • Tool(s): OpenCode (GPT-5.5)
  • Used for: Drafted the implementation and smoke tests; Chris remains responsible for review and merge.

Fixes #15

@chubes4 chubes4 merged commit c0704ae into main May 1, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add deterministic overflow archive strategy for compaction

1 participant