Skip to content

refactor: centralize bounded subprocess supervision (PR 1) - #38

Merged
ElbertePlinio merged 4 commits into
mainfrom
refactor/bounded-subprocess-supervision
Jul 20, 2026
Merged

refactor: centralize bounded subprocess supervision (PR 1)#38
ElbertePlinio merged 4 commits into
mainfrom
refactor/bounded-subprocess-supervision

Conversation

@ElbertePlinio

Copy link
Copy Markdown
Member

PR 1 of #32: deepen subprocess supervision without changing adapter policy or result mapping.

Centralizes bounded raw-byte stdout/stderr capture, timeout/cancellation/output/resource arbitration, Linux process groups, TERM→KILL tree cleanup, and complete stream draining. Migrates minimal, Droid, command-template, direct Droid provider, evaluator, WorkdirManager, and patch-capture process paths while leaving proxying, polling, metadata, Bubblewrap configuration, and provider execution boundaries in their adapters.

Focused process and adapter tests pass, including the required five-file command (75 tests), dual-stream backpressure, timeout/cancel precedence, deterministic sustained floods, descendant cleanup, TERM→KILL escalation, raw-byte capture, and Bubblewrap integration. dart analyze passes. dart test reaches 792 passes but the existing full-suite-load accessibility admission flake remains; its exact test passes alone, and untouched origin/main reproduces that failure plus the existing headless prepare-timeout marker flake under the same full command.

Local serious backend review completed with correctness, security/trust-boundary, issue-conformance, and simplification coverage; accepted race and precedence findings were fixed and revalidated.

Refs #32

@ElbertePlinio
ElbertePlinio merged commit c821b2f into main Jul 20, 2026
3 checks passed
@ElbertePlinio
ElbertePlinio deleted the refactor/bounded-subprocess-supervision branch July 20, 2026 21:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant