Skip to content

feat(sop): select the sandbox at runtime - #1319

Open
crispinhu27 wants to merge 1 commit into
mainfrom
feature/sop-auto-sandbox
Open

crispinhu27 wants to merge 1 commit into
mainfrom
feature/sop-auto-sandbox

Conversation

@crispinhu27

Copy link
Copy Markdown
Collaborator

What changed

  • Add a Let Agent choose option in the SOP editor and creation wizard. Each new run selects a sandbox using its target project, repository names, task, and the toolchain notes on eligible sandbox profiles.
  • Scope candidates to the target project's own and shared sandboxes. When selection is inconclusive, prefer the existing workspace sandbox, then the platform default.
  • Show the selected profile in run details. Freeze the profile and its recipe in the run snapshot for retries and recovery.

Scope

  • Platform core / API / runner
  • Shared behavior contract
  • Web SOP and sandbox configuration, documentation, and regression tests

Compatibility

The workflow mode and toolchain notes are optional JSON fields. Existing SOPs load in fixed-sandbox mode. The change requires no database migration.

Validation

  • Passed the focused Go tests for automatic selection, conversation dispatch, shared schedules, and workflow validation in local Docker.
  • Verified that a shared SOP selects separate Python and Java profiles with a simulated model, and that a real native sandbox executes with the selected configuration.
  • Passed the SOP sandbox wizard tests and the asset form test after rebasing onto main. The full webtest suite previously passed all 287 tests.
  • The full local Go run encountered MySQL fixture and Docker/Chromium failures reproduced on main.

Safety

  • python3 scripts/check-public.py passed. The change includes source, documentation, and test fixtures for the SOP feature.

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