Repository navigation
Conversation
Codecov Report❌ Patch coverage is 📢 Thoughts on this report? Let us know! |
dargoner
force-pushed
the
fix/compaction-recovery-redact-events
branch
from
October 18, 2026 13:13
f286402 to
53e24d2
Compare
…st overflow cause
dargoner
force-pushed
the
fix/compaction-recovery-redact-events
branch
from
October 29, 2026 11:58
53e24d2 to
436bd3b
Compare
Preview approval requiredThis pull request comes from a fork, so Mintlify won't build a preview until someone with write access approves commit |
This branch has not been deployed
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 (based on
main@ 5f7f8e6)Description
Background
Hardening work on the context-compaction pipeline surfaced three gaps in overflow recovery and observability:
SessionRecorderredacted top-level text, but media embedded insideToolResultblocks (base64 payloads, inline file bytes) was still written into the session logrequest/preparedevents.Changes
CompactionMiddleware,ConversationCompactor,HarnessAgent): one recovery path for normal and emergency compaction; an emergency retry no longer commits candidate history early; when the retry fails, the first overflow is preserved as the primary cause viainitCause.SessionRecorder):request/preparedevents recursively redact media nested insideToolResultblocks while preserving the surrounding structure.HarnessAgent,CompactionMiddleware): start/end event pairs are emitted consistently with cancel isolation hardened; failure logs are redacted.MemoryFlushMiddleware,MemoryMaintenanceMiddleware,MemoryFlushManager): log redaction in failure paths.session-log.md,context.mdandmemory.md(EN/ZH) updated for the new event semantics and log fields.Tests
ReActSessionLogTest5 → 7 cases (media-source redaction).HarnessAgentTest55 → 57,ConversationCompactorTest8 → 19,CompactionMiddlewareTest11 → 23.agentscope-core+agentscope-harnesssuites: BUILD SUCCESS (harness 1270 tests, 0 failures; the 18 skips are Windows/docker environment markers).mvn spotless:checkpasses; docsnpm test/npm run checkpass.Checklist
mvn spotless:applymvn test)