Repository navigation
Conversation
4a7837a to
3c15880
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
3c15880 to
a84e49f
Compare
|
Rebased onto current Local verification on the rebased branch:
The new head is |
a84e49f to
2be6cd9
Compare
|
Rebased onto current Verification on the rebased head
CI will rerun for the new head. |
2be6cd9 to
e025c1e
Compare
Preview approval requiredThis pull request comes from a fork, so Mintlify won't build a preview until someone with write access approves commit |
|
Rebased semantically onto current
Verification on head
CI is rerunning for the new head. |
e025c1e to
f4dc0a0
Compare
|
Rebased onto current Verification on head
CI is rerunning for the rebased head. |
f4dc0a0 to
e63da93
Compare
|
Rebased onto latest Validation before push:
GitHub CI has restarted for the rebased head; I will address any new failure from its detailed logs. |
AgentScope-Java Version
2.1.0-SNAPSHOT
Description
Adds opt-in progressive disclosure for
HarnessAgentbuilt-in tools:The feature is disabled by default, so existing builders keep exposing built-ins exactly as before. When enabled, Harness registers the available built-ins as initially inactive META groups and enables
reset_equipped_tools:workspace_filessubagentssession_historywebMemory, skill, and plan-mode tools remain always visible. Existing
disable*()options andtools.jsonfiltering run before grouping, empty groups are omitted, and both general-purpose and declarative subagents inherit the setting.Grouping follows Harness-owned tool instances rather than names alone. An intentional same-name replacement, or a user tool retained while its built-in family is disabled, is not hidden as a Harness built-in. Ordinary duplicate registration still follows Toolkit's fail-fast behavior. Reserved progressive group names and pre-existing group membership fail fast instead of silently producing ambiguous tool visibility.
HarnessAgent.Builder.fromAgent(...)preserves the progressive-loading setting. Its build-time Toolkit copy removes only Harness-owned progressive groups while retaining user tools and unrelated memberships, so filtering and explicit re-enablement remain consistent after a builder round trip.This PR deliberately reuses the existing session-scoped activation state. It does not add run-scoped reset semantics or automatic progressive classification for custom/MCP tools.
This implements the opt-in built-in grouping requested in #3296. The per-session tool-state isolation discussed in #2439 is already available in v2.0.4 and is reused here.
Closes #3296
Test Plan
mvn -T1C -pl agentscope-harness -am -Dtest=ToolkitTest,HarnessAgentProgressiveToolLoadingTest -Dsurefire.failIfNoSpecifiedTests=false test(68 tests, 0 failures, 0 errors)mvn -T1C -pl agentscope-harness -am clean test(1617 Harness tests, 0 failures, 0 errors, 38 skipped; 6-module reactor build successful)npm testfromdocs/(13/13 passed)npm run validatefromdocs/(432 pages and 584 redirects validated; Mint build validation passed)npm run broken-linksfromdocs/(no broken links found)git diff --check origin/main...HEADThe runtime regression coverage from Leeaoyin#1 is included in this branch with authorship preserved.
Checklist