Skip to content

feat(harness): strengthen compaction summaries and provenance - #4244

Merged
Buktal merged 1 commit into
agentscope-ai:mainfrom
Buktal:codex/compaction-summary-template
Nov 19, 2026
Merged

Buktal merged 1 commit into
agentscope-ai:mainfrom
Buktal:codex/compaction-summary-template

Conversation

@Buktal

@Buktal Buktal commented Nov 18, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

compact(prefix)
  retain the fixed summary sections and all pending tasks
  label prior summaries and framework-injected messages by source
  escape transcript-like labels inside message bodies
  preserve active security constraints and clarify preserved-tail ordering

Closes #4242.

Evidence

  • Before: assistant-quoted role labels and framework-injected USER messages could be read as genuine user requests; the summary had no complete pending-task section.

  • After: ConversationCompactorSummaryShapeTest covers assistant label spoofing, prior summaries, framework-injected messages, prompt sections, and preserved-tail notes.

  • Checks: mvn -B -T1C -pl agentscope-harness -am -Dtest=ConversationCompactorSummaryShapeTest -Dsurefire.failIfNoSpecifiedTests=false test spotless:check passed (16 tests, Spotless clean); docs npm test and npm run validate passed.

  • Validation gap: npm run broken-links reports 2,750 broken links across 483 files in the repository; this change adds no links.

Merge Danger

Door: two-way

Blast Radius: low

The change updates the default compaction prompt and transcript rendering. It does not change public APIs or serialized state.

@mintlify

mintlify Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

Preview approval required

This pull request comes from a fork, so Mintlify won't build a preview until someone with write access approves commit 964245e.

Approve preview

@Buktal
Buktal force-pushed the codex/compaction-summary-template branch from 41a816e to 964245e Compare November 18, 2026 03:43
@Buktal
Buktal merged commit ea31907 into agentscope-ai:main Nov 19, 2026
7 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.

Strengthen compaction summaries and user-message provenance

2 participants