feat(sandbox): add Fystash backend (Sandbox protocol) - #1007
Open
fystash wants to merge 1 commit into
Open
Conversation
Register --sandbox fystash so BenchFlow can run python-agent workloads on the public Fystash API, with honest residuals for ImageBuilder, DinD, GPU, and workspace-tar snapshots. Co-authored-by: Cursor <cursoragent@cursor.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.
Adds a Fystash sandbox backend behind the existing Sandbox protocol so BenchFlow can run representative coding / verifier workloads on Firecracker microVMs.
What landed on our side (already live-proved)
We implemented and ran the protocol against production
https://api.fystash.ai/v1on 2026-08-15:test.shincluded)supports_snapshot=Truemeans same-Run workspace tar rollback, not a Firecracker VM snapshot)Runs:
run_06G09E9AEHR01CNQ7W3JWXHTMC(new-Branch start 103335 ms) andrun_06G0A455J5R014NP981S5N1T1W(same-Branch Ready 2115 ms). See Fystashdocs/design-partners/benchflow-live.md.What this PR adds
src/benchflow/sandbox/fystash.py—BaseSandboxport of the live-proved adaptersandbox-fystashdepending on the publicfystashPython SDK (>=0.6.0)--sandbox fystashvia the provider registry (same path as Daytona / Modal / AgentCore)FYSTASH_API_URL(defaulthttps://api.fystash.ai/v1),FYSTASH_ACCESS_TOKEN,FYSTASH_PROJECT_ID(orfystash login+from_cli_context())_validate_definition, and preflightHonest residuals
python-agent/browser-agentviaenvironment/environment.yamlorenvironment/sandbox.yaml.service != mainis rejected (same class as Modal / direct Daytona).expose_portsis declared; Preview grants are a separate Fystash Plan capability, not wired in this first PR.exec(..., user=)is ignored (catalog actor isagent).hostis127.0.0.1; Preview grants are unwired.Happy to iterate on ImageBuilder / compose once this lands. This does not claim public GA.
Made with Cursor