Skip to content

refactor(harness): keep live agent and team state out of system guidance - #3692

Merged
jujn merged 1 commit into
agentscope-ai:mainfrom
Buktal:codex/harness-agent-runtime-context
Oct 21, 2026
Merged

jujn merged 1 commit into
agentscope-ai:mainfrom
Buktal:codex/harness-agent-runtime-context

Conversation

@Buktal

@Buktal Buktal commented Oct 21, 2026

Copy link
Copy Markdown
Collaborator

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.

system: subagent/team guidance
conversation
synthetic runtime: agent catalog + task summary + roster/board/notices

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

  • Before: changing the agent list or team status rewrites the leading system message.
    After: SubagentsMiddlewareHeadStabilityTest and TeamsMiddlewareTest check stable system text, updated tail state, synthetic metadata and hidden/primary-only filtering.
  • Independent branch validation: mvn -B -T1 -pl agentscope-harness -am test spotless:check passed; 1,287 Harness tests, 0 failures/errors, 18 skipped; 2,742 Core tests, 0 failures/errors, 8 skipped.
  • Layout tests establish byte stability for the covered state changes; they do not measure provider cache hits or task quality.

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

  • Code has been formatted with mvn spotless:apply
  • Relevant module tests and Spotless pass on this independent branch
  • Javadoc comments follow project conventions
  • Public rendering signatures are preserved
  • Code is ready for review

@jujn
jujn merged commit d1eaa9f into agentscope-ai:main Oct 21, 2026
4 of 5 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.

2 participants