Repository navigation
Conversation
sandbox/src/sprites/ is a provider like the others: a client of the Sprites API, a boot script that installs the runner and starts it, a wake flow that creates the Sprite when Sprites has lost it, and a stop that ends the runner and releases the task hold keeping the Sprite awake. Sprites have no pause call, so the hold is what keeps a computer running while Aven uses it, and it sleeping on its own is what frees it. Signed-off-by: Indra Zulfi Mushoddaq <114550938+indrazm@users.noreply.github.com>
The platform accepts sprites as the sandbox platform, prices a flat 8 vCPU and 8 GB machine for the spend brake, and names its API address and token in the form. An e2e spec saves it as the platform and reads it back. Signed-off-by: Indra Zulfi Mushoddaq <114550938+indrazm@users.noreply.github.com>
Records why the provider looks the way it does: the task hold instead of a pause call, no saved environments because a checkpoint cannot become a new Sprite, and one fixed machine size in the spend brake. Signed-off-by: Indra Zulfi Mushoddaq <114550938+indrazm@users.noreply.github.com>
Saving Sprites as the real platform left every later spec in the run with an Aven Cloud computer it could not boot, so they never started a run. The Settings form is now checked with the platform API answered by the test, as the rest of that page is, and the control plane's own test saves Sprites and reads back the rates it stores. Signed-off-by: Indra Zulfi Mushoddaq <114550938+indrazm@users.noreply.github.com>
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.
What
Adds Fly.io Sprites (
fly.io/sprites) as a fourth Aven Cloud sandbox provider, next toboat,spacesandlizard:sandbox/src/sprites/, the protocol provider names, template runtime id00000000-0000-4000-8000-000000000005, control-plane settings and spend rates, the Settings > Sandbox form,.env.example, and decision0399.Why
Sprites are persistent Linux VMs built for agents: a computer appears in about a second, keeps a 100 GB disk across idle pauses, answers on its own HTTPS URL and sleeps when nothing is happening. Their API is smaller than the other providers', and that shape decided the provider:
GET /v1/sprites/{name}both wakes a sleeping Sprite and says whether it still exists;PUT …/fs/writedropsrunner-boot.env;POST …/execruns the boot script that installsavenunder/home/sprite/.local/binand startsaven runner run. A row whose Sprite is gone recreates the same name instead of leaking a new one./.sprite/api.sockfor an hour,extendrenews it (clamped to that hour), andstopends the runner and deletes the hold. With no hold the Sprite pauses itself, which is what frees it — sostopModestaysnative_resumeandsupportsMaxLifetimeis true.saveEnvironmentanswersfailedwith that reason,readEnvironmentnull andremoveEnvironmenttrue (nothing remote to delete).Checks
bun run typecheckclean,bun run lintclean,bun fmt --checkclean.bun test apps packages sandbox tooling→ 3410 pass, 2 skip, 0 fail, including new sprites client/config/provider tests (create → boot → exec order, hold renewal, stop, 404 handling, and the three exec response shapes), and a control-plane test that saving Sprites stores its machine's rates and offers the template.bunx playwright test e2e/cloud-settings.spec.ts→ 3 passed: Settings > Sandbox offers Sprites and saves it as the platform (provider: "sprites"), with the platform API answered by the test so the run's shared settings stay untouched.Not verified
Nothing ran against
api.sprites.dev— no token was available, so the client is written from the published OpenAPI and tested against a mockedfetchonly. The first real install tests the boot script inside a Sprite (thespriteuser'ssudo,curl --unix-socket /.sprite/api.sockfor the hold) and thePOST …/execresponse, which the spec documents as a bare 200: the parser accepts{stdout, stderr, exitCode}, NDJSON progress events, or plain text, but that is an inference.