Skip to content

feat(cli): posix process group sandbox enforcement #426

Closed

Description

@dan-petty

Context & Rationale

Enforces POSIX process group containment (start_new_session=True on subprocess.Popen) and clean termination via os.killpg across background dispatchers, eliminating zombie leaks adopted by PID 1.

Scope & Deliverables

  • Context & Rationale*: Enforces POSIX process group containment (start_new_session=True on subprocess.Popen) and clean termination via os.killpg across background dispatchers, eliminating zombie leaks adopted by PID 1.

Strategic Alignment

  • Milestone: v0.2.23 (Foundational Architectural Guardrails & Project Hygiene)
  • Roadmap Reference: docs/ROADMAP.md

Activity

  1. added this to the v0.2.23 milestone on Sep 22, 2026
  2. added
    type/feature
    scope/cli
    priority/p0-critical
    on Sep 22, 2026
  3. dan-petty commented on Sep 22, 2026

    @dan-petty
    OwnerAuthor

    Delivered in #440. Two of the three subprocess.Popen call sites already passed start_new_session=True and the agent harness already terminated via os.killpg; the gap was the kubectl port-forward daemon, which ran in the CLI's process group and was stopped by pid alone, leaving the local port bound.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority/p0-criticalscope/clitype/feature

    Type

    No type

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions