Repository navigation
fix(harness): preserve durable context through compaction - #3798
Merged
Merged
Conversation
Preview approval requiredThis pull request comes from a fork, so Mintlify won't build a preview until someone with write access approves commit |
4 tasks
Buktal
force-pushed
the
codex/context-compaction
branch
from
October 27, 2026 14:14
b4e25a0 to
c220890
Compare
jujn
approved these changes
Oct 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
AgentScope-Java Version
2.1.0-SNAPSHOT
Description
Refs #3794, review unit 3 of 3. Synthetic messages can be durable conversation records or request-only projections. Treating both as transient moves persisted notifications out of order and keeps them outside compaction. Comparing copied/restored messages by Java object/value types can also prevent a valid summary from being written back.
Summary
Evidence
After: all 37 passed after the numeric-comparison fix, including protection for distinct
1.0000000000000000001and1.0000000000000000002metadata.ContextPipelineV2Testalso covers copied/converted notifications, same-ID edits, single-block system text, final-budget rejection, and concurrent changes;CompactionMiddlewareTestcovers overflow reconstruction.mvn -B -T1C clean verifypassed across 99 modules: 11,317 tests, 0 failures/errors, 242 skipped. Spotless ran without skip flags. Docs:npm test(13/13) andnpm run validate(432 pages, 584 redirects, Mintlify build) passed.npm run broken-linksreports 2,218 links across 326 files, the same counts recorded before; individual links were not baseline-attributed.my_skill->my-skilltest-fixture correction needed after fix(skill): block path traversal in skill materialization and disambiguate skillId #3787/fix(skill): move blocking skill reload off reactive event-loop threads #3792. It is also in both sibling PRs so these branches validate independently and can merge in any order.Merge Danger
Door: two-way
No serialized-state schema change. The existing synthetic marker continues to identify origin; canonical membership determines whether a message is durable.
Blast Radius: context
Changes request layout, compaction eligibility, summary writeback, and overflow retries. Fake-model regressions verify these paths; provider cache behavior and task quality were not benchmarked. #3780's older streaming/backport and custom memory-flush-prompt concerns are separate.
Checklist