← Back to Pull requests

feat(process): add option to submit all zombie processes individually #61168

Closed
unknown closed this pull request without merging on Nov 25, 2026 23:47 UTC
View on GitHub
unknown unknown commented on Nov 23, 2026 19:42 UTC
Author

What does this PR do?

Adds process_config.enable_all_zombie_processes (default false), a backward-compatibility option for #60014.
When it's on, the process check submits non-GPU zombie processes individually again, in both the standard and realtime payloads.
Precedence is settled once when the check loads its config, so ignore_zombie_processes: true still wins.
The "submit this zombie on its own?" rule now lives in one helper shared by the two payload paths.

<details>
<summary>Functional changes</summary>

| Before | After |
| --- | --- |
| — | With process_config.enable_all_zombie_processes: true, non-GPU zombie processes are again submitted individually in standard and realtime process payloads, as before #60014 |
| — | With that option and process_config.ignore_zombie_processes: true both set, no zombie is submitted or counted on its parent, the same as with ignore_zombie_processes alone |

Unchanged: with the option off (the default), non-GPU zombies only count toward their parent, as after #60014. Parent zombie counts and rates, and GPU zombie submission and tags, are the same in every combination.

</details>

Motivation

#60014 stopped submitting non-GPU zombies individually, so monitors that match individual zombie processes stop firing.
This gives customers who rely on those monitors a way to keep them working. It's meant for that compatibility case only, which is what the setting's description and the release note say.

Describe how you validated your changes

  • Unit tests: TestProcessCheckZombieConfigControlsAggregation now covers all 8 combinations of ignore_zombie_processes, enable_all_zombie_processes and realtime collection, asserting on both payload types. The realtime-only path (runRealtime) has its own cases. The new cases fail with the option's effect reverted.

  • Config setup tests: cover the new key's default and both env var aliases.

  • Real binary: a locally built Agent with process collection on, sending to a local fakeintake, with a real parent holding 2 unreaped zombies:
  • | Settings | Individual zombies in /api/v1/collector | Parent zombie count |
    | --- | --- | --- |
    | default | 0 | 2 |
    | enable_all_zombie_processes: true | 2 (state Z) | 2 |
    | both options true | 0 | 0 (aggregation off) |

    Diff: 288 lines (+216 / -72) across 3 files Reviewer: oleroydatadog Review duration: 3125m
    All Vouch review confidence checks passed
    Residual risk 0.16 = Change Risk (0.40) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.40 · 288 lines diff across 3 files
    0.40
    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.339
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #61168"
    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: 39.8% (MEDIUM) · Higher = larger blast radius
    39.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: 15.7% · Safe to merge
    15.7%