Skip to content

Guard deployment processes against PID reuse - #2897

Draft
nrk8286 wants to merge 2 commits into
openai:mainfrom
nrk8286:agent/guard-deployment-pid-reuse
Draft

Guard deployment processes against PID reuse#2897
nrk8286 wants to merge 2 commits into
openai:mainfrom
nrk8286:agent/guard-deployment-pid-reuse

Conversation

@nrk8286

@nrk8286 nrk8286 commented Jul 28, 2026

Copy link
Copy Markdown

Summary

  • Verify the deployment marker in /proc/<pid>/environ before treating a stored PID as a managed process.
  • Add a regression test covering matching, mismatched, and exited processes.

Motivation

PID reuse could make the deployment manager report or signal an unrelated process.

Self-review

The change is limited to Linux process identity detection and preserves existing lifecycle behavior for managed processes.

Validation

  • .venv/bin/pytest -q tests/test_runner.py (1 passed)
  • Python syntax and diff checks passed

Registry/authors are unchanged because no cookbook content was added or relocated.

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