← Back to Pull requests

MP2-027: bound child process lifecycle #150

Closed
unknown closed this pull request without merging on Sep 24, 2026 09:48 UTC
View on GitHub
unknown unknown commented on Sep 23, 2026 15:21 UTC
Author

Outcome

Problem

Completes MP2-027 / MET-80: launcher and runner children previously lacked a uniformly bounded output, resource, identity, and descendant-cleanup contract.

User-visible behavior

Runner commands now retain bounded output, run with a minimal environment and resource ceilings, and fail closed when exact process identity or group inventory cannot be verified. Launcher children are gated until a stable supervisor identity is retained, and cleanup no longer trusts broad command-line matches.

Changes

Scope

Adds bounded runner capture and POSIX supervision; exact Linux/macOS birth, executable, argv, and process-group checks; gated launcher startup; PID-reuse-safe cleanup; and positive/negative lifecycle regressions. Darwin liveness uses XNU's zombie-inclusive BSD-info query so an unreaped terminated supervisor is classified from kernel state without weakening retained identity. Only a verified ESRCH inventory race is skipped; every other unavailable or inconsistent provider result remains fail-closed.

Updates only task-owned policy, inventory, traceability, and exact catalog-count consumers. Publication and adjacent subprocess authorities remain unchanged.

Compatibility

Python 3.12/3.13 and governed Linux/macOS rows are preserved. Windows launcher start remains explicitly fail-closed until an exact native identity provider exists; historical non-destructive Windows helpers remain readable. No CLI, schema, artifact, or report migration is required.

Evidence and research impact

No evidence format or research claim changes. MP2-027 has an active obligation/executor mapping, fail-closed fixtures, retained currentness bindings, and unchanged historical evidence. Failed hosted runs 35880987314, 35909285669, 35917401861, and 35924485374 remain retained as successive Darwin compatibility-defect evidence. Run 35932475396 remains retained as the exact-head terminal-evidence contract defect: all 6,092 Linux tests passed with 16 expected skips, but jobs 107422166909 and 107422166933 correctly failed because the new Darwin-only test was not yet in the governed Linux skip inventory. No failed run was retried or relabelled into PASS.

Validation

Tests

  • Exact frozen local candidate 80e4162a5c3b1668098407bd5386f24c8ccf1db2: 6,092 passed and 16 expected skips from the canonical 6,108-item collection in 31:05.

  • Focused required-terminal and launcher lifecycle tests: 268 passed and one Linux-only expected skip.

  • Governance, policy, public/functional inventory, and traceability checks: 331 passed and two expected skips.

  • Ruff lint and format: 707 files; mypy: 150 maintained source files.

  • Generated public/functional inventory and traceability currentness: passed.

  • Independent review: approved exact staged correction diff 17da4cd05c5f8d7ab36422a894af606c1e87fda4cb282bd1a50deaa89fa56228; the prior exact implementation review remains retained.

  • Complete hosted qualification: pending for exact head 80e4162a5c3b1668098407bd5386f24c8ccf1db2.
  • Documentation

    Updated the maintainer testing policy and regenerated governed public/functional/traceability records.

    Boundaries

    Privacy and security

    No credentials, recordings, personal data, private paths, or external payloads were added. Process metadata is used only for local fail-closed lifecycle authorization and is not published.

    Checklist

  • The pull request is focused and its diff has been reviewed.

  • New or changed behavior has tests, including relevant failure paths.

  • Complete local preflight passed; required complete qualification must still become green for this exact candidate before merge.

  • User-facing commands, support boundaries, and documentation remain truthful.

  • Third-party material has compatible licensing and required attribution.

  • No credentials, private recordings, personal data, or identifying workcell data were added.

  • Frozen v0.2.0 evidence, checksums, measurements, tag, and DOI metadata were not rewritten.

  • Current package capabilities are not attributed to the v0.2.0 SoftwareX evidence or the TIM v0.1.3 measurements.
  • Diff: 527 lines (+395 / -132) across 6 files Reviewer: Miko997 Review duration: 1106m
    All Vouch review confidence checks passed
    Residual risk 0.19 = Change Risk (0.48) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.48 · 527 lines diff across 6 files
    0.48
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.375
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #150"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 47.8% (MEDIUM) · Higher = larger blast radius
    47.8%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 18.9% · Safe to merge
    18.9%