Repository navigation
refactor(harness): keep live agent and team state out of system guidance - #3692
Merged
jujn merged 1 commit intoOct 21, 2026
Merged
Conversation
jujn
approved these changes
Oct 21, 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 #3690. Independent PR 2/4: live subagent and team state.
Summary
Agent catalogs, task progress and team roster/board/notices currently change the system message. Keep stable guidance in system and emit live state as synthetic tail messages, using the existing context layout and compaction exclusion metadata. Normalize automated completion/wakeup wrappers to
system-reminder.Keep the public rendering signatures and the full team section used by join kickoff. Move catalog-visibility assertions to the new catalog surface.
renderSubagentSection(entries, ...)now emits guidance only; middleware appends the filtered catalog in its tail message. Direct callers of this public renderer should account for that output change.Evidence
After:
SubagentsMiddlewareHeadStabilityTestandTeamsMiddlewareTestcheck stable system text, updated tail state, synthetic metadata and hidden/primary-only filtering.mvn -B -T1 -pl agentscope-harness -am test spotless:checkpassed; 1,287 Harness tests, 0 failures/errors, 18 skipped; 2,742 Core tests, 0 failures/errors, 8 skipped.Merge Danger
Door: two-way. No persisted-state migration or tool scheduling changes.
Blast Radius: Harness. Model-visible live state moves to the runtime tail; notification wording is normalized.
Checklist
mvn spotless:apply