Skip to content

fix(runtime): authorize native group sandbox execution - #967

Merged
Y1fe1Zh0u merged 1 commit into
v1.11.4from
agent/fix-group-sandbox-session-scope
Aug 14, 2026
Merged

fix(runtime): authorize native group sandbox execution#967
Y1fe1Zh0u merged 1 commit into
v1.11.4from
agent/fix-group-sandbox-session-scope

Conversation

@Y1fe1Zh0u

Copy link
Copy Markdown
Collaborator

Summary

  • preserve exact Agent ownership for Direct and external-channel group Sessions
  • authorize shared native group Sessions only when the Group is active in the tenant and the Agent participant is an active member
  • keep the existing tenant + Agent + Session lease key and per-Agent workspace output isolation unchanged
  • reject removed members and inaccessible Sessions before lease acquisition, workspace materialization, or Sandbox execution

Validation

  • 155 scoped DAO, group chat, Runtime, Sandbox, subprocess, and workspace tests passed
  • Ruff passed for the changed DAO and policy test files
  • git diff --check passed
  • full-file Ruff on agent_tools.py remains blocked by 62 pre-existing findings outside this one-line call-site change

Release

P0 hotfix targeting v1.11.4. No database migration.

Native group Sessions are intentionally shared and therefore have no owning Agent. Authorize their sandbox scope through the active tenant Group and active Agent participant membership while preserving exact ownership for Direct and external-channel Sessions.

Constraint: Native group Sessions intentionally have chat_sessions.agent_id NULL

Rejected: Backfill a group Session Agent | shared Sessions can host multiple Agents

Rejected: Allow every group Session | would bypass tenant Group and active membership checks

Confidence: high

Scope-risk: narrow

Reversibility: clean

Directive: Keep Direct and external-group exact Agent ownership checks intact

Tested: 155 scoped DAO, group chat, Runtime, Sandbox, subprocess, and workspace tests

Tested: Ruff passed for changed DAO and policy test files

Not-tested: 3010 live group execution before deployment
@Y1fe1Zh0u
Y1fe1Zh0u merged commit 8e54467 into v1.11.4 Aug 14, 2026
1 check passed
@Y1fe1Zh0u
Y1fe1Zh0u deleted the agent/fix-group-sandbox-session-scope branch August 14, 2026 07:06
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