Skip to content

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
agentscope-ai:mainfrom
Ernest-L:docs/restore-sandbox-guidance-main
Open

Ernest-L wants to merge 1 commit into
agentscope-ai:mainfrom
Ernest-L:docs/restore-sandbox-guidance-main

Conversation

@Ernest-L

@Ernest-L Ernest-L commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

@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 on
df25cf09f, which predates two later commits on the PR branch:

  • d16062e76 — the mixed-version rollout guidance (release-gate wording requested by
    juruoO-o) and the subagent.md "Sandbox mode" note;
  • 60d8063f6 — the null-agentId branch test for the constructor check (codecov had
    flagged 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 GLOBAL sentences ("a subagent
spawned inside a call blocks on the lease the parent holds"), because GLOBAL +
subagents is now rejected at build time (HarnessAgent throws IllegalStateException)
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 rollout
guidance — remain correct after your change and are restored as-is.

What this PR restores

  1. sandbox.md (en + zh): the guard-key paragraph, the GLOBAL sentence 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);
  2. 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 childContext change), and GLOBAL + subagents is rejected at
    build time;
  3. SandboxManagerIsolationTest: the null-agentId branch test lost in the squash.

Tests

Full-reactor mvn clean verify on this branch with the CI Windows flags
(-Djacoco.skip=true -DskipDurableWindowsTests=true): 114 modules,
14,206 tests, 0 failures, 0 errors.

Related

…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.
@Ernest-L

Ernest-L commented Dec 2, 2026

Copy link
Copy Markdown
Contributor Author

@jujn friendly ping — could you confirm the restore looks right and help merge? The doc loss happened when 3181063 (your commit) was pushed to the PR branch; details and the per-paragraph rationale are in the description.

@mintlify

mintlify Bot commented Dec 2, 2026

Copy link
Copy Markdown

Preview approval required

This pull request comes from a fork, so Mintlify won't build a preview until someone with write access approves commit 1245b13.

Approve preview

This branch has not been deployed

No deployments
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.

1 participant