Repository navigation
fix(harness): clarify built-in tool and subagent prompt contracts - #3694
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 4/4: built-in tool and delegation instructions.
Summary
Give generic Harness agents the file-edit recovery instructions currently duplicated in the coding-agent prompt. File descriptions state zero-based pagination, create-only writes and exact text replacement after line-ending normalization. Remove the redundant example instructions and clarify its project-convention wording.
Use the existing general-purpose identity constant, require conclusions in the child's final message and clarify asynchronous waiting. Permission-denial guidance allows normal task steering. Tool execution and permission checks are unchanged.
Evidence
After: prompt composition and delegation-contract tests check identity, persistent history and supported follow-ups; existing permission, plan-mode, persistent-key and filesystem tests exercise the unchanged execution paths.
mvn -B -T1 -pl agentscope-harness -am test spotless:checkpassed; 1,286 Harness tests, 0 failures/errors, 18 skipped; 2,742 Core tests, 0 failures/errors, 8 skipped.Merge Danger
Door: two-way. Prompt-only changes and factory identity wiring can be reverted without a state migration.
Blast Radius: Harness. Built-in tool/delegation instructions and the coding-agent example prompt change.
Checklist
mvn spotless:apply