[GH-ISSUE #3081] [Other] GPU-access daemon for sandboxed assistants (bwrap/DSH) — wanted upstream? #1233

Closed
opened 2026-11-04 01:49:34 +07:00 by bsakaguchi · 4 comments
Owner

Originally created by @ken2425pm on GitHub (Oct 18, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/3081

Proposal first — the code stays out of the tree until maintainers want it, so this is a question, not a PR.

What happened / the problem

Assistants running inside a bubblewrap sandbox (DeepSeek Harness / DSH, or any bwrap invocation that mounts a minimal /dev on top of a read-only host bind) can never open the GPU: the shadowing tmpfs has no /dev/kfd and no /dev/dri/renderD*, the sandbox has no capabilities (CapEff=0) so the device nodes cannot be recreated and the tmpfs cannot be removed, and the host's real devtmpfs underneath is unreachable. The one thing the sandbox shares with the host is the workspace bind — including Unix sockets created inside it.

The proposal

A small host-side daemon that listens on a Unix socket in the shared workspace and

  • executes a whitelist of GPU binaries on request — each run's combined stdout+stderr lands in a log file inside the same workspace, which the sandbox reads directly;
  • additionally manages a resident Strata HTTP server (spawned detached; the sandbox reaches its API over the shared loopback) via a serve_start / serve_stop / serve_status action trio, with per-instance configs and isolated pidfiles.

The daemon's socket lives inside the workspace bind (local to the sandbox pair); the managed HTTP server stays on 127.0.0.1 unless --api-key is set, per AGENTS.md.

Environment

  • Strata version: validated against the 0.1.45 base (477ac13c, system ROCm 6.3.3); the serving measurements in #3077 (build + runtime + the 12 h split-config soak) were collected through it.
  • 0.2.x re-check: the exec-whitelist part is version-agnostic; the resident-serve lifecycle it managed moves to the Terminal (strata launch) on 0.2.x, so re-checking serve_* against 0.2.6 is the open item.
  • Graphics card: 2x AMD Instinct MI50 32 GB (gfx906).
  • Memory / system: 256 GB DDR4, 2x Xeon E5-2630 v3, Ubuntu 24.04, kernel 6.8, ROCm 6.3.3.

Questions for maintainers

  • Is this in scope for the repo, or better kept as a separate project next to it?
  • If in scope: any constraints on the whitelist shape, socket permissions, or whether the serve lifecycle belongs in the daemon vs the Terminal on 0.2.x?
Originally created by @ken2425pm on GitHub (Oct 18, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/3081 Proposal first — the code stays out of the tree until maintainers want it, so this is a question, not a PR. **What happened / the problem** Assistants running inside a bubblewrap sandbox (DeepSeek Harness / DSH, or any bwrap invocation that mounts a minimal `/dev` on top of a read-only host bind) can never open the GPU: the shadowing tmpfs has no `/dev/kfd` and no `/dev/dri/renderD*`, the sandbox has no capabilities (`CapEff=0`) so the device nodes cannot be recreated and the tmpfs cannot be removed, and the host's real devtmpfs underneath is unreachable. The one thing the sandbox shares with the host is the workspace bind — including Unix sockets created inside it. **The proposal** A small host-side daemon that listens on a Unix socket in the shared workspace and - executes a **whitelist** of GPU binaries on request — each run's combined stdout+stderr lands in a log file inside the same workspace, which the sandbox reads directly; - additionally manages a resident Strata HTTP server (spawned detached; the sandbox reaches its API over the shared loopback) via a `serve_start` / `serve_stop` / `serve_status` action trio, with per-instance configs and isolated pidfiles. The daemon's socket lives inside the workspace bind (local to the sandbox pair); the managed HTTP server stays on 127.0.0.1 unless `--api-key` is set, per AGENTS.md. **Environment** - Strata version: validated against the 0.1.45 base (`477ac13c`, system ROCm 6.3.3); the serving measurements in #3077 (build + runtime + the 12 h split-config soak) were collected through it. - 0.2.x re-check: the exec-whitelist part is version-agnostic; the resident-serve lifecycle it managed moves to the Terminal (`strata launch`) on 0.2.x, so re-checking `serve_*` against 0.2.6 is the open item. - Graphics card: 2x AMD Instinct MI50 32 GB (gfx906). - Memory / system: 256 GB DDR4, 2x Xeon E5-2630 v3, Ubuntu 24.04, kernel 6.8, ROCm 6.3.3. **Questions for maintainers** - Is this in scope for the repo, or better kept as a separate project next to it? - If in scope: any constraints on the whitelist shape, socket permissions, or whether the serve lifecycle belongs in the daemon vs the Terminal on 0.2.x?
Author
Owner

@Niko1221 commented on GitHub (Oct 19, 2026):

Thanks for taking the time to report this.

We're resetting the tracker for 0.2.0-beta. There are more than 1,300 open issues and pull requests, too many for us to read properly, so we're closing everything that isn't being worked on right now. Closed here does not mean rejected.

To reopen it takes about two minutes:

  1. Re-test on 0.2.0-beta. It may already be fixed. Write down what you see.
  2. Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other].
  3. Fill in the parts of the issue form: what happened, the Strata version, your graphics card, memory and system.
  4. Comment /reopen. A check runs and either reopens the issue or lists what is still missing.

The rules are in CONTRIBUTING.md.

<!-- gh-comment-id:6271461307 --> @Niko1221 commented on GitHub (Oct 19, 2026): Thanks for taking the time to report this. We're resetting the tracker for 0.2.0-beta. There are more than 1,300 open issues and pull requests, too many for us to read properly, so we're closing everything that isn't being worked on right now. Closed here does not mean rejected. To reopen it takes about two minutes: 1. Re-test on 0.2.0-beta. It may already be fixed. Write down what you see. 2. Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other]. 3. Fill in the parts of the issue form: what happened, the Strata version, your graphics card, memory and system. 4. Comment `/reopen`. A check runs and either reopens the issue or lists what is still missing. The rules are in [CONTRIBUTING.md](https://github.com/Niko1221/Strata/blob/main/CONTRIBUTING.md).
Author
Owner

@ken2425pm commented on GitHub (Oct 25, 2026):

/reopen (title prefixed, environment fields filled, 0.2.x re-check item added)

<!-- gh-comment-id:6403642711 --> @ken2425pm commented on GitHub (Oct 25, 2026): /reopen (title prefixed, environment fields filled, 0.2.x re-check item added)
Author
Owner

@github-actions[bot] commented on GitHub (Oct 25, 2026):

Reopened, thank you. A maintainer will pick it up from here.

<!-- gh-comment-id:6403644441 --> @github-actions[bot] commented on GitHub (Oct 25, 2026): Reopened, thank you. A maintainer will pick it up from here.
Author
Owner

@Niko1221 commented on GitHub (Nov 5, 2026):

Thanks for taking the time to report this.

Strata has changed a lot since this was opened, and 0.2.11 is out now, so many older reports no longer apply. We're closing issues older than a week that have had no new reports in the last week. Closed here does not mean rejected.

To reopen it takes about two minutes:

  1. Re-test on 0.2.11. It may already be fixed. Write down what you see.
  2. Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other].
  3. Fill in the parts of the issue form: what happened, the Strata version, your graphics card, memory and system.
  4. Comment /reopen. A check runs and either reopens the issue or lists what is still missing.

The rules are in CONTRIBUTING.md.

<!-- gh-comment-id:6659388732 --> @Niko1221 commented on GitHub (Nov 5, 2026): Thanks for taking the time to report this. Strata has changed a lot since this was opened, and 0.2.11 is out now, so many older reports no longer apply. We're closing issues older than a week that have had no new reports in the last week. Closed here does not mean rejected. To reopen it takes about two minutes: 1. Re-test on 0.2.11. It may already be fixed. Write down what you see. 2. Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other]. 3. Fill in the parts of the issue form: what happened, the Strata version, your graphics card, memory and system. 4. Comment `/reopen`. A check runs and either reopens the issue or lists what is still missing. The rules are in [CONTRIBUTING.md](https://github.com/Niko1221/Strata/blob/main/CONTRIBUTING.md).
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#1233
No description provided.