Repository navigation
Fetch exe.dev launch payloads using the VM run identity - #406
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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-launchthrough 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 ciandnpm run test:local(the complete rootnpm 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_payloadbefore deploying the Worker. This PR does not deploy production.