Skip to content

Add conversation compaction contract#8

Merged
chubes4 merged 1 commit into
mainfrom
issue-7-conversation-compaction
May 1, 2026
Merged

Add conversation compaction contract#8
chubes4 merged 1 commit into
mainfrom
issue-7-conversation-compaction

Conversation

@chubes4
Copy link
Copy Markdown
Contributor

@chubes4 chubes4 commented May 1, 2026

Summary

  • Adds a public AgentConversationCompaction runtime contract for declarative policy normalization, safe transcript boundary selection, lifecycle event payloads, and summarizer-supplied compaction.
  • Adds WP_Agent capability/config fields for conversation compaction support and policy discovery.
  • Documents the public compaction surface and adds smoke coverage for no-op, success, failure, and tool-call/tool-result boundary behavior.

Fixes #7

Tests

  • php -l agents-api.php && php -l src/Registry/class-wp-agent.php && php -l src/Runtime/AgentConversationCompaction.php && php -l tests/bootstrap-smoke.php && php -l tests/conversation-compaction-smoke.php && php -l tests/no-product-imports-smoke.php
  • composer test

AI assistance

  • AI assistance: Yes
  • Tool(s): OpenCode (GPT-5.5)
  • Used for: Drafted the public compaction contract, documentation, and smoke tests; Chris remains responsible for review and validation.

@chubes4 chubes4 merged commit c1eeb17 into main May 1, 2026
1 check 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 conversation compaction as an Agents API runtime capability

1 participant