Repository navigation
fix(harness): reject incomplete and non-reducing summaries - #3855
Merged
Buktal merged 2 commits intoOct 29, 2026
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 |
jujn
approved these changes
Oct 29, 2026
CI tests the merge with main, where memory search now reads through readMemoryFileUtf8. Update both stale test stubs to use that existing memory-scoped API while preserving the result-state and content assertions.
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.
Summary
Reject unusable or non-reducing summaries before replacing conversation history.
Rejected candidates retain successful lightweight reductions. Reuse the existing finish-reason interpretation from
ReasoningContext; preserve model errors, cancellation, and the existing history-commit checks. Update the matching English and Chinese context documentation.Refs #3834 (slice 03). Structured-output preparation is tracked separately in #3851 and is not included here.
Evidence
After: Local fake-model regressions reject those candidates, reject empty text, accept smaller valid summaries, and retain lightweight reductions when replacement is rejected. Existing chained-summary and cancellation tests remain covered.
mvn -B -T1C -pl agentscope-harness -am verifyand the relevant test classes selected.clean verifywas attempted and did not pass:GracefulShutdownTest$StateAndConfigTests.defaultConfigexpected a null shutdown timeout but observedPT0.1S, reproducing the previously recorded test-order/configuration failure. Shutdown implementation and tests are unchanged. The attempt excluded only two local, uncommitted structured-output test classes already belonging to fix(core): prepare complete structured-output requests #3851; neither class is part of this PR. The shutdown test was not excluded or modified.npm run validatepassed. The existing broken-link check reports 2,222 issues; this change adds no links.c4bab469cwith Java 21 and the project's Java 17 target.Merge Danger
Door: Two-way. Reversible behavior change; no configuration or serialized-state migration.
Blast Radius: Conversation. Automatic compaction now preserves existing history when a summary is unusable or fails to reduce the full candidate; the existing final request budget check still decides whether the request can proceed.