Commit Graph
12 Commits
Author SHA1 Message Date
Chris Scott 19b91ac24f feat(sandbox): forward git credentials into the microVM and add sandbox guest image 2026-08-25 12:50:10 -04:00
Chris Scott 62cf04bbc9 feat(sandbox): route all assistant capabilities through the ocm tool
Add an allow-listed request action to the generated ocm plugin so agents
reach settings, assistant reload, repos, git-info, workspaces, and
schedules through the tool instead of curling the internal API with a
bearer token, which is impossible under sandboxing.

Rewrite the curl-based skills to use the ocm request action and drop the
apiBaseUrl plumbing. Remove the now-unread .opencode/internal-token file
and the sandbox tmpfs mask that hid it; attestation now rejects any
tmpfs other than the runtime /tmp mount.
2026-08-25 09:59:32 -04:00
Chris Scott 098816f7cc refactor(sandbox): pin shell shim to sandbox agent bash without rewriting commands 2026-08-23 14:02:31 -04:00
Chris Scott 681181ef4c feat(sandbox): show unwrapped sandboxed bash commands in message UI 2026-08-23 12:38:33 -04:00
Chris Scott 3791a74569 fix(sandbox): align canonical spec with msb 0.6.8 runtime defaults 2026-08-23 12:07:27 -04:00
Chris Scott f2d0ae0595 fix(sandbox): pin neutral entrypoint and persist opencode upgrades across rebuilds 2026-08-23 11:22:46 -04:00
Chris Scott cadc283738 fix(sandbox): plan bash against factory directory and attest runtime tmpfs; align permission reply API 2026-08-22 19:31:39 -04:00
Chris Scott af01ddf4de refactor(sandbox): scope enforcement to agent bash tool only 2026-08-22 18:27:33 -04:00
Chris Scott 0215de9d92 fix(sandbox): bound lifecycle queue and harden install/backup paths
Bound the OpenCode supervisor lifecycle queue to one running plus one
pending operation so repeated restarts cannot stack unbounded HTTP
requests, while exempting stop() so shutdown is never dropped.

Reject enforcement backups that carry no recoverable removed sections,
matching the existing fail-closed handling of unparseable backups.

Install OpenCode through a private mktemp staging directory instead of
the predictable /tmp/opencode path.

Use named path/os imports in the files added by this branch.
2026-08-22 00:14:19 -04:00
Chris Scott f315dda3f3 feat(sandbox): route host-shell surfaces into microVM via shell wrapper 2026-08-20 09:16:49 -04:00
Chris Scott ae117d6a78 feat(sandbox): route host-shell surfaces into microVM via shell wrapper 2026-08-14 18:26:21 -04:00
Chris Scott aa3fb48a62 feat(sandbox): add KVM-backed agent sandboxing via microsandbox 2026-08-13 16:14:16 -04:00