Repository navigation
docs(sandbox): restore the mixed-version rollout guidance and subagent sandbox docs lost in the #4441 squash - #4582
Open
Ernest-L wants to merge 1 commit into
Conversation
…t sandbox docs lost in the agentscope-ai#4441 squash agentscope-ai#4441 was squash-merged as 09126ec with head 3181063 — a commit based on df25cf0, which predates two later commits on the PR branch: the mixed-version rollout guidance (d16062e) and the null-agentId branch test (60d8063). Neither reached mainline, while the 2.0.x backport (agentscope-ai#4520) carries both. The four doc paragraphs 3181063 deleted contained two stale GLOBAL claims (a spawned child 'blocks on the lease the parent holds') — with 3181063 itself rejecting GLOBAL + subagents at build time, this PR restores the paragraphs with those sentences rewritten to the new behavior; the guard-key granularity claim and the rollout guidance remain correct after the change and are restored as-is. Also restores the null-agentId branch test. Verified with a full-reactor 'mvn clean verify' (114 modules, 14206 tests, 0 failures) with the CI Windows flags.
Contributor
Author
Preview approval requiredThis pull request comes from a fork, so Mintlify won't build a preview until someone with write access approves commit |
This branch has not been deployed
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.
@jujn — juruoO-o's review on #4520 asked to carry the mixed-version rollout guidance
into the mainline docs; this PR restores it (and the rest of what the #4441 squash
dropped). Could you help review and merge, since the loss happened when your
3181063 was pushed to the PR branch?
What happened
#4441 was squash-merged as 09126ec with head
3181063b3— your commit, based ondf25cf09f, which predates two later commits on the PR branch:d16062e76— the mixed-version rollout guidance (release-gate wording requested byjuruoO-o) and the
subagent.md"Sandbox mode" note;60d8063f6— the null-agentId branch test for the constructor check (codecov hadflagged that line as partially covered).
Neither reached mainline, while the 2.0.x backport (#4520) carries both — verified on
origin/main just now: the guidance paragraph and the null test are absent (grep = 0).
Why most of the deleted docs were still valid
3181063 deleted the four doc paragraphs wholesale. Two claims in them had actually
gone stale with your change and needed rewriting — the
GLOBALsentences ("a subagentspawned inside a call blocks on the lease the parent holds"), because GLOBAL +
subagents is now rejected at build time (
HarnessAgentthrowsIllegalStateException)rather than blocking at runtime. This PR restores the paragraphs with those sentences
rewritten accordingly; the rest — the guard-key granularity claim (
USER→{agentId}/{userId}, parent and child no longer block each other) and the rolloutguidance — remain correct after your change and are restored as-is.
What this PR restores
sandbox.md(en + zh): the guard-key paragraph, theGLOBALsentence rewritten to"rejected at build time", and the mixed-version rollout guidance (release-gate
wording, carried over from fix(sandbox): scope the execution guard key by agent for USER isolation (backport to 2.0.x) #4520);
subagent.md(en + zh): the "Sandbox mode" paragraph, updated for the new behavior —an ISOLATED declared subagent installs its own sandbox context and workspace
projection (your
childContextchange), andGLOBAL+ subagents is rejected atbuild time;
SandboxManagerIsolationTest: the null-agentId branch test lost in the squash.Tests
Full-reactor
mvn clean verifyon this branch with the CI Windows flags(
-Djacoco.skip=true -DskipDurableWindowsTests=true): 114 modules,14,206 tests, 0 failures, 0 errors.
Related
fix(sandbox): scope the execution guard key by agent for USER isolation (backport to 2.0.x) #4520 (review)