Skip to content

test(harness): runtime regressions for upstream PR #3463 - #1

Open
Leeaoyin wants to merge 1 commit into
review/pr-3463-basefrom
test/pr-3463-progressive-runtime
Open

Leeaoyin wants to merge 1 commit into
review/pr-3463-basefrom
test/pr-3463-progressive-runtime

Conversation

@Leeaoyin

@Leeaoyin Leeaoyin commented Oct 9, 2026 •

Copy link
Copy Markdown
Owner

Test-only supplement to upstream PR #3463, based on 3c15880. The review base preserves the original PR; this diff adds only runtime regression tests.

The offline scripted Model emits real reset_equipped_tools -> read_file calls and verifies the actual fixture contents returned in tool results. Tests cover inactive schemas, same-user Session A/B isolation, activation across calls, duplicate activation, replacement switching to web, clearing all groups, disabled web and denied write_file, and runtime execution in both general-purpose and declared subagent factories.

Ordered full schema snapshots remain stable with unchanged activation and return to the initial snapshot after clearing. Group switches intentionally change schemas, including the meta-tool description. For C13/C14, this expected dynamic prefix change should not be classified as a prompt-cache defect. Provider cache-hit behavior and process-restart restoration are outside this test scope.

Validation completed on Java 17:

  • Targeted HarnessAgentProgressiveToolLoadingTest: 12 tests, 0 failures, 0 errors, 0 skipped.
  • mvn -T1 -pl agentscope-harness -am test spotless:check: 3756 tests, 0 failures, 0 errors, 19 skipped (Core: 2590/9 skipped; Harness: 1166/10 skipped).
  • git diff --check: passed.

The environment requires an explicit Byte Buddy -javaagent because Mockito self-attachment is unavailable; repository JVM configuration is unchanged. Memory hooks are disabled in scripted fixtures to exclude unrelated memory-consolidation requests. No production changes were needed for the exercised behavior.

GitHub integration permissions returned 403 for both creating a stacked PR in the author's fork and posting a Review on upstream agentscope-ai#3463. Tests and the review conclusion are therefore submitted in this connected fork. The upstream author can cherry-pick edc8cf0.

@Leeaoyin Leeaoyin left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review conclusion for upstream agentscope-ai#3463: no production defect found in the exercised offline runtime paths; regression tests are the only change.

Actual reset_equipped_tools -> read_file execution returns the expected fixture. Inactive schemas, same-user session isolation, cross-call state, duplicate activation, replacement switching, empty reset, disable/deny behavior, and both local subagent factories pass. Targeted: 12/12 passed. Harness reactor: 3756 tests, 0 failures/errors, 19 skipped; Spotless and diff checks pass.

C13/C14: unchanged activation preserves the ordered complete schema; switching groups intentionally changes it and clearing restores the baseline. Such expected dynamic-schema changes are not a prompt-cache defect. This does not measure provider cache hits or process-restart restoration.

Posting this conclusion directly on upstream agentscope-ai#3463 was denied by the GitHub integration (403). The test commit is edc8cf0 and can be cherry-picked.

@Zbhbb

Zbhbb commented Oct 10, 2026

Copy link
Copy Markdown

Integrated edc8cf07b47abf558f2cad45f7bf76d5cebe9a59 into upstream agentscope-ai#3463, preserving authorship. The runtime coverage now exercises session isolation, repeated activation, group switching and clearing, disabled and denied tools, and both local subagent factories.

I also checked the Ubuntu job: the Maven build completed successfully; the job failed afterward because Codecov rejected a tokenless upload for the fork (Token required - not valid tokenless upload). The tests themselves 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