Repository navigation
refactor(sandbox)!: remove the sandbox priority knob - #50
Conversation
priority was threaded from the CLI, the deploy steps, the rubrics judge, run overrides and the explorer down to every SandboxProvider create method, but no provider in this repo reads it (local and modal ignored it, modal_vm and e2b documented it as inert). Its only consumer, a hosted backend's scheduling tiers, isn't part of this repo. Stored step documents that still carry priority or judge_priority load and drop the key. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
🤖 Automated Claude routine — Env Pod PR Context Review. This is a bot, not Edgar Arakelyan; not a human review. One piece of context on the blast radius, offered because it sits just outside the diff: the "Breaking for downstream" list covers the plugin API and stored step documents, but a caller that constructs a step with
So For precedent on tolerating it instead: Generated by Claude Code |
# Conflicts: # src/agent_env/explorer/routers/runs.py # src/agent_env/explorer/ui/src/lib/task-runner-run.smoke.ts # src/agent_env/providers/sandbox_providers/modal_sandbox.py # tst/unit/env/envs/test_mcp_server_container_mode.py # tst/unit/env/envs/test_mcp_server_plugin_provider.py # tst/unit/providers/env_providers/env_server_provider_test.py
prioritywas a sandbox scheduling hint ("0=interactive, 1=non_interactive"). It was threaded from the CLI, the deploy steps, the rubrics judge, run overrides and the explorer down to everySandboxProvidercreate method, but no provider in this repo reads it:localandmodalignored it.modal_vmande2bdocumented it as inert (e2bdiddel priority).Its only consumer is a hosted backend's scheduling tiers, which aren't part of this repo. This removes it.
What's removed
priorityis gone fromSandboxProvider.create_sandbox/create_vm/create_containerand from the four built-ins.MCPServerEnv/WebsiteEnv/MultiEnv.deploy, the gateway and server env providers, so env-provider plugins no longer receive it in their options.deploy_env,deploy_agentanddeploy_sandboxlosepriority, the rubrics verifier losesjudge_priority, and none of them readuser_overrides["priority"]. A stored step document that still carries either key loads, and the key isn't written back (newtst/unit/task_step/stored_priority_test.py).--priorityonenv deployanda2a-agent deploy.A2AAgent.deploy(priority=).RunRequest.priority, and the UI no longer sendspriority: 0on every run.Breaking for downstream
check_plugin_api.pyreports the 3 removedSandboxProviderparameters, which the!marks. A provider that still declaresprioritykeeps working; core just stops passing it.--prioritynow fails with "No such option".priorityin the body returns 422 (RunRequestforbids extra keys).priority=to an env's or agent'sdeploy(), a step constructor, or a sandbox provider raisesTypeError.Testing
pytest tst/unit packages/agentenv-protocol/tests -n auto: 5802 passed. The only failures are the 2test_mcp_cli_buildertests, because the generated CLI's interpreter has noclick(same as on refactor(attribution)!: remove project_id and the LiteLLM cost attribution built on it #45).npx tsc --noEmit,npm run test:smoke(13 ran, the 2 skips need trajectory fixtures) andnpm run build:staticpass.agent-env env deploy --priority 1anda2a-agent deploy --priority 1give "No such option";agent-env run hellopasses;RunRequest(priority=1)is rejected asextra_forbidden.git grep -i prioritynow finds only the new test and unrelated uses: Next.js's<Image priority>prop, "priority order" wording in comments, the protocol package's enum test, mock-service seed data and an email fixture.🤖 Generated with Claude Code
The PR appears safe to merge; the remaining smoke-test gap is non-blocking.
Fix with agent prompt
Summary
The PR removes the unused sandbox
prioritysetting from deployment and run paths because the built-in providers did not use it to schedule work.priority.prioritywhen starting runs; older stored step documents still load without keeping the removed key.Diagram
%%{init: {'theme': 'neutral'}}%% flowchart LR CLI[CLI and Explorer] --> Steps[Deploy steps] Steps --> Envs[Envs and agents] Envs --> Providers[Sandbox providers] Stored[Older stored steps] --> StepsReviews (2) · Last reviewed commit: "Merge remote-tracking branch 'origin/mai..."