Skip to content

Fetch exe.dev launch payloads using the VM run identity - #406

Merged
asselstine merged 1 commit into
mainfrom
fix/exe-vm-fetch-launch-payload
Nov 17, 2026
Merged

asselstine merged 1 commit into
mainfrom
fix/exe-vm-fetch-launch-payload

Conversation

@asselstine

Copy link
Copy Markdown
Collaborator

exe.dev rejected provisioning requests when the base64-encoded prompt, harness configuration and guest helpers exceeded its 64 KB request-body limit. A 33 KB rendered prompt was enough to trigger this.

The scheduler now stores an encrypted, immutable launch snapshot before provisioning. The VM launcher fetches it from GET /api/v1/runtime-launch through the existing vendor identity helper, then passes the prompt to the harness over stdin. Agent and code payload sizes no longer contribute to exe.dev provisioning requests.

The endpoint requires the provisioned VM/run identity, serves only its own active run, works with zero application scopes, and rejects sessions, API keys, OAuth clients and inactive runs. Downloads refuse redirects and mismatched run IDs, enforce the existing 32 MiB launcher limit, and retry temporary failures up to three times without starting a harness on failure. OpenAPI and the generated client are updated.

Validation: npm ci and npm run test:local (the complete root npm test) passed in the pinned validation runner with Node 24.12.0 and npm 11.19.0. All backend, browser, proxy and Docker lanes passed. Regression coverage includes megabyte-sized startup payloads for Codex, Claude, Pi and code jobs; actual downloads through the identity helper; retry/error handling; immutable encrypted storage; and authorization at the Worker/PostgreSQL boundary.

Rollout: apply additive migration 0053_run_launch_payload before deploying the Worker. This PR does not deploy production.

@asselstine
asselstine merged commit ca9cbb8 into main Nov 17, 2026
1 check passed
@asselstine
asselstine deleted the fix/exe-vm-fetch-launch-payload branch November 17, 2026 19:33
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