ContainerRunner: implement agentexec.Runner against Docker for sandboxed execution #543

Closed
opened 2026-10-27 13:36:44 +00:00 by sam · 0 comments
Owner

Phase 2 of docs/prds/archie-core-v2-architecture.md. agentexec.Runner (InProcessRunner/SubprocessRunner) is an interface deliberately designed to be swapped for a container-backed runner without touching workflow orchestration. internal/container/pool.go already handles Docker lifecycle (pull, create, start, release, orphan recovery). Implement ContainerRunner against the existing Runner interface.

Design

Do not redesign the execution boundary — implement strictly against the existing Runner interface per its doc comments.

Acceptance Criteria

ContainerRunner implements agentexec.Runner, runs tasks in ephemeral Docker containers with workspace bind-mounted, and is selectable via [agent] mode = "nats" + containers.enabled = true.


Imported from beads archie-core-1786637490203-16-7a9da5ab · GitHub #37 · type feature · priority P2 · created 2026-08-08 · closed 2026-08-08

Phase 2 of docs/prds/archie-core-v2-architecture.md. agentexec.Runner (InProcessRunner/SubprocessRunner) is an interface deliberately designed to be swapped for a container-backed runner without touching workflow orchestration. internal/container/pool.go already handles Docker lifecycle (pull, create, start, release, orphan recovery). Implement ContainerRunner against the existing Runner interface. ### Design Do not redesign the execution boundary — implement strictly against the existing Runner interface per its doc comments. ### Acceptance Criteria ContainerRunner implements agentexec.Runner, runs tasks in ephemeral Docker containers with workspace bind-mounted, and is selectable via [agent] mode = "nats" + containers.enabled = true. --- _Imported from beads `archie-core-1786637490203-16-7a9da5ab` · GitHub #37 · type feature · priority P2 · created 2026-08-08 · closed 2026-08-08_
sam added the mediumfeature labels 2026-10-27 13:36:44 +00:00
sam self-assigned this 2026-10-27 13:36:44 +00:00
sam closed this issue 2026-10-27 13:36:44 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sam/archie#543