Skip to content

feat(subagents): support explicit capability inheritance - #639

Closed
iroiro147 wants to merge 1 commit into
vercel:mainfrom
iroiro147:fix/subagent-inherit-capabilities-626
Closed

feat(subagents): support explicit capability inheritance#639
iroiro147 wants to merge 1 commit into
vercel:mainfrom
iroiro147:fix/subagent-inherit-capabilities-626

Conversation

@iroiro147

Copy link
Copy Markdown
Contributor

Summary

  • add explicit inherit.sandbox and inherit.connections support for declared subagents while preserving isolation by default
  • share inherited sandbox sessions across parent/child runs, propagate inherited sandbox state back to the parent, and protect already-materialized skill files in shared sandboxes
  • expose inherited capability state in docs, CLI/app info, and agent-info responses

Refs #626.

Tests

  • pnpm exec vitest run --config vitest.unit.config.ts src/compiler/manifest.test.ts src/compiler/normalize-agent-config.test.ts src/compiler/normalize-manifest.test.ts src/internal/authored-definition/core.test.ts src/context/build-callback-context.test.ts src/context/dynamic-skill-lifecycle.test.ts src/context/providers/sandbox.test.ts src/execution/subagent-tool.test.ts src/execution/delegated-parent-notification.test.ts src/execution/workflow-steps.test.ts src/execution/sandbox/ensure.test.ts src/execution/sandbox/prewarm.test.ts src/harness/runtime-actions.test.ts src/runtime/framework-tools/skill.test.ts src/runtime/skills/sandbox-access.test.ts src/internal/nitro/routes/agent-info/build-agent-info-response.test.ts test/runtime-agent-graph.test.ts
  • pnpm --filter eve typecheck
  • pnpm docs:check
  • pnpm guard:invariants
  • git diff --check

@vercel

vercel Bot commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

@iroiro147 is attempting to deploy a commit to the Vercel Team on Vercel.

A member of the Team first needs to authorize it.

@iroiro147
iroiro147 force-pushed the fix/subagent-inherit-capabilities-626 branch 3 times, most recently from baf69ce to 7534e4a Compare July 10, 2026 00:55
Signed-off-by: iroiro147 <sarthak.singh@juspay.in>
@aatosolavi

Copy link
Copy Markdown

Rebased this work onto current main and opened a fresh PR: #1243 (credit to @iroiro147 for the original implementation).

aatosolavi added a commit to aatosolavi/eve-1 that referenced this pull request Jul 27, 2026
Allow declared subagents to opt into sharing the parent's live sandbox and
connection definitions via `inherit.sandbox` / `inherit.connections`, while
keeping isolation as the default and retaining distinct instructions.

Rebases and lands the approach from vercel#639 on current main, including
runtime shared-sandbox propagation, compiler validation, docs/info surface,
tests, and extension-capability epoch bumps for transitive public types.

Refs vercel#626.

Signed-off-by: Aatos Akvilander <aatos@akvilander.com>
aatosolavi added a commit to aatosolavi/eve-1 that referenced this pull request Jul 27, 2026
Allow declared subagents to opt into sharing the parent's live sandbox and
connection definitions via `inherit.sandbox` / `inherit.connections`, while
keeping isolation as the default and retaining distinct instructions.

Rebases and lands the approach from vercel#639 on current main, including
runtime shared-sandbox propagation, compiler validation, docs/info surface,
tests, and extension-capability epoch bumps for transitive public types.

Refs vercel#626.

Signed-off-by: Aatos Akvilander <aatos@akvilander.com>
aatosolavi added a commit to aatosolavi/eve-1 that referenced this pull request Jul 27, 2026
Allow declared subagents to opt into sharing the parent's live sandbox and
connection definitions via `inherit.sandbox` / `inherit.connections`, while
keeping isolation as the default and retaining distinct instructions.

Rebases and lands the approach from vercel#639 on current main, including
runtime shared-sandbox propagation, compiler validation, docs/info surface,
tests, and extension-capability epoch bumps for transitive public types.

Refs vercel#626.

Signed-off-by: Aatos Akvilander <aatos@akvilander.com>
aatosolavi added a commit to aatosolavi/eve-1 that referenced this pull request Jul 28, 2026
Allow declared subagents to opt into sharing the parent's live sandbox and
connection definitions via `inherit.sandbox` / `inherit.connections`, while
keeping isolation as the default and retaining distinct instructions.

Rebases and lands the approach from vercel#639 on current main, including
runtime shared-sandbox propagation, compiler validation, docs/info surface,
tests, and extension-capability epoch bumps for transitive public types.

Refs vercel#626.

Signed-off-by: Aatos Akvilander <aatos@akvilander.com>
aatosolavi added a commit to aatosolavi/eve-1 that referenced this pull request Jul 28, 2026
Allow declared subagents to opt into sharing the parent's live sandbox and
connection definitions via `inherit.sandbox` / `inherit.connections`, while
keeping isolation as the default and retaining distinct instructions.

Rebases and lands the approach from vercel#639 on current main, including
runtime shared-sandbox propagation, compiler validation, docs/info surface,
tests, and extension-capability epoch bumps for transitive public types.

Refs vercel#626.

Signed-off-by: Aatos Akvilander <aatos@akvilander.com>
aatosolavi added a commit to aatosolavi/eve-1 that referenced this pull request Jul 28, 2026
Allow declared subagents to opt into sharing the parent's live sandbox and
connection definitions via `inherit.sandbox` / `inherit.connections`, while
keeping isolation as the default and retaining distinct instructions.

Rebases and lands the approach from vercel#639 on current main, including
runtime shared-sandbox propagation, compiler validation, docs/info surface,
tests, and extension-capability epoch bumps for transitive public types.

Refs vercel#626.

Signed-off-by: Aatos Akvilander <aatos@akvilander.com>
aatosolavi added a commit to aatosolavi/eve-1 that referenced this pull request Jul 28, 2026
Allow declared subagents to opt into sharing the parent's live sandbox and
connection definitions via `inherit.sandbox` / `inherit.connections`, while
keeping isolation as the default and retaining distinct instructions.

Rebases and lands the approach from vercel#639 on current main, including
runtime shared-sandbox propagation, compiler validation, docs/info surface,
tests, and extension-capability epoch bumps for transitive public types.

Refs vercel#626.

Signed-off-by: Aatos Akvilander <aatos@akvilander.com>
aatosolavi added a commit to aatosolavi/eve-1 that referenced this pull request Jul 29, 2026
Allow declared subagents to opt into sharing the parent's live sandbox and
connection definitions via `inherit.sandbox` / `inherit.connections`, while
keeping isolation as the default and retaining distinct instructions.

Rebases and lands the approach from vercel#639 on current main, including
runtime shared-sandbox propagation, compiler validation, docs/info surface,
tests, and extension-capability epoch bumps for transitive public types.

Refs vercel#626.

Co-authored-by: iroiro147 <265728356+iroiro147@users.noreply.github.com>
Signed-off-by: Aatos Akvilander <aatos@akvilander.com>
@iroiro147

Copy link
Copy Markdown
Contributor Author

Closing in favor of #1243 (rebased by @aatosolavi). Thank you for carrying the work forward!

@iroiro147 iroiro147 closed this Jul 30, 2026
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.

3 participants