Loading…
Reference in a new issue
No description provided.
Delete branch "step-sandboxes"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Two changes, one after the other on this branch:
agents-reach-only-their-run(braid#203) andstandard-test-run(braid#489).A fence for each run, a sandbox for each step (braid#203)
opencode servestarts through a launcher that lets it open the run's folder, the image and its own key files, and nothing else, and signal only its own processes. This covers the file tools, which run inside the server.localhost, its own/tmp, its worktree and the run's shared folders at the paths they have outside, the image read-only. Not inside: other worktrees, other runs,osf.db, keys, the token.SHELLis a client that hands each command, with its directory, environment and output, to a spawner inside the sandbox. The Playwright server, theapptool, installs, lanes, apply's suites, services and a project's own scripted steps go the same way.pastagives a sandbox the internet with no proxy.nftablesrules refuse loopback, link-local, the private ranges and the container's own addresses, except entries ofOSF_EGRESS_ALLOW. The guard refuses awebfetchto the same addresses.OSF_SANDBOX=stepis the image's mode. osfd probes both layers at start; if the probe fails no run starts, and/api/statusand doctor say why.osfdonly: a seccomp profile (Docker's default plus one rule),systempaths=unconfined,no-new-privileges,/dev/net/tun. The image gainsbubblewrap,passt,nftables. The deploy job's self-check runs under the same options.Left for follow-up issues, by the owner's decision: model keys behind a gate, the forge token's split with osfd's git inside the sandbox, a console setting for the allowlist.
Midway, the standard test run (braid#489)
docs/test-briefs/midway.md: one project of eight parts that do not depend on each other, one for each kind of software Braid is judged on.tools/standard-run.sh <server> <n>starts it with the standard settings.docs/testing.md: the three briefs, and the rows recorded for each standard run.Evidence
./tools/test.shon the laptop: backend 776 passed and 2 skipped (the two tests that need Linux), 52 browser tests, 47 s in all.OSF_SANDBOX=stepunder the stack's own options: the fence line and the five sandbox linesok, and the six simulated runs pass with a realopencode serveunder the fence,agent-leaves-its-stepamong them.pastaand Landlock, are in the change'sdesign.md.🤖 Generated with Claude Code