Skip to content

Detach stdin for executor subprocesses - #63

Merged
datacas merged 1 commit into
mainfrom
issue-62-detach-executor-stdin
Sep 24, 2026
Merged

datacas merged 1 commit into
mainfrom
issue-62-detach-executor-stdin

Conversation

@datacas

@datacas datacas commented Sep 24, 2026

Copy link
Copy Markdown
Owner

Work item: #62

Detach stdin for executor and publication-preflight subprocesses with subprocess.DEVNULL. Add unit coverage for both helper paths.

Verification: executor tests (124) and package validator passed. Full suite: 633 passed, 1 environment-sensitive failure because this test runs in a linked scratch worktree. git diff --check passed.

@datacas

datacas commented Sep 24, 2026 •

Copy link
Copy Markdown
Owner Author

[CCR-20260924-001] · reviewer · openai/gpt-6-sol→? · high · schema:1

Summary

APPROVED for PR #63 at dba901f903e79c01939e450bf5df22042208d5b9. The accumulated diff against main implements work item #62: both native executor and publication-preflight subprocess helpers now detach stdin with subprocess.DEVNULL, with focused unit coverage. No actionable findings.

Reviewed scope and findings

Reviewed the complete merge-base-to-head change: scripts/executors.py and tests/test_executors.py (15 additions, 2 deletions), relevant helper call sites, repository guidance, and the current PR state. No REV-xxx findings. CONTRIBUTING.md supplies the repository guidance; with no repository AGENTS.md or CLAUDE.md, the review skill defaults apply.

Security

Reviewer judgment requested a security audit because the changed helpers launch executor processes and GitHub/Git publication preflight commands. No repository-specific security_review.always_when rule or sensitive PR label applied. The security pass found no confirmed vulnerability or diff-specific risk. Both subprocess calls continue to use argv lists, captured output, and timeouts; the new stdin setting closes inherited input.

Verification

  • python3 -m unittest discover -s tests -p test_executors.py -v: 124 passed.
  • python3 scripts/validate-package.py: passed.
  • Direct _run child-process check with the parent stdin connected to an open pipe: child exited 0 and read EOF ('') within the timeout.
  • git diff --check against merge-base: passed.
  • python3 -m unittest discover -s tests -v: 633 passed, 1 failed locally. The unchanged test_run_cycle.LocalOnlyPolicyTests.test_local_only_rejects_the_live_repository assumes a regular repository; this scratch checkout is a linked worktree. The same failure reproduced in that module alone. It does not exercise the changed helpers.

CI and residual risk

The Validate package workflow's Skills, manifests, and Bash installer and PowerShell installer jobs both passed on the PR and push runs; no pending, failed, cancelled, skipped, or missing configured jobs were found. CI runs the package validator and full test suite on Linux and Windows. A live external executor CLI was not run with an open parent stdin; the focused tests and direct Python child check cover the helper behavior.

Verdict: APPROVED. Current reviewed HEAD matches the PR HEAD, required CI checks passed, and there are no blocking findings.

ORCHESTRATION_RESULT (JSON)

ORCHESTRATION_RESULT
{
"skill": "cc-initial-review",
"status": "APPROVED",
"issue_provider": "github",
"issue_id": "62",
"code_host": "github",
"change_request_id": "63",
"change_request_url": "#63",
"pr_number": 63,
"issue_number": 62,
"comment_url": "#63 (comment)",
"head_sha": "dba901f903e79c01939e450bf5df22042208d5b9",
"reviewed_head_sha": "dba901f903e79c01939e450bf5df22042208d5b9",
"review_run_id": "CCR-20260924-001",
"reviewer": {
"profile": "reviewer",
"provider": "openai",
"model_requested": "gpt-6-sol",
"model_resolved": null,
"effort": "high"
},
"findings": [],
"blocking_findings": [],
"blocking": false
}
END_ORCHESTRATION_RESULT

@datacas
datacas merged commit 10390a2 into main Sep 24, 2026
4 checks passed
@datacas
datacas deleted the issue-62-detach-executor-stdin branch September 24, 2026 09:21
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