Repository navigation
fix(babysit-pr): end every orphan of a bounded gh call under bash 3.2 - #74
Conversation
bounded_run killed the command's process group once after it exited. Under bash 3.2 a background list forks its last command instead of exec'ing it, so a member that was forking when the signal arrived could leave a child the kill missed. That child held the $(...) pipe, and the poller waited until it exited: gh-timeout.test.sh's orphan case took 601 s against a 7 s margin. Kill the group again while it still has members, at most three rounds. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013qZ16z2jrxp57w1mwaZtzP
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Claude finished @chapati23's task in 2m 14s —— View job Review complete
Verdict: LGTMAnalysisThe change replaces each single
The loop bound (3 rounds, 2× 20 ms sleeps = 40 ms worst case) matches the PR body exactly, and the "stop early when the group is empty" behavior via Checked against
Deferred items from the PR body (fork-chain-inside-20ms-gap, pgid-reuse-within-40ms) are reasonable to decline — both require conditions No correctness, security, or style issues found worth flagging inline. The fix is minimal, well-reasoned, matches its own stated risk/validation, and the retry logic does exactly what the PR description says it does. Findings roll-upNo findings — reviewed implementation matches the described fix with no bugs identified. |
|
Thanks. Claude review: LGTM, no findings. Codex GitHub review: no findings. The local |
…#75) * fix(babysit-pr): treat a clean Claude review summary as informational The watcher counted every claude-code-action summary as unanswered top-level feedback, so a PR with an LGTM review stayed FEEDBACK_GATE_PENDING until someone replied (agents #73 and #74). The summary is free-form model text, so the review prompt now asks for one exact last line on a clean review, and the watcher drops a github-actions[bot] summary only with the action's header, that last line and no [P1]-[P3] tag. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013qZ16z2jrxp57w1mwaZtzP * fix(babysit-pr): require the whole clean shape of a Claude summary The local Codex review found that a summary with an untagged finding and the result line cleared the gate. A clean summary now holds only the header, blank lines and checklist items before that line; anything else stays actionable. Logins may carry a managed-user shortcode, and the watch runbook states one rule for Claude summaries instead of two. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013qZ16z2jrxp57w1mwaZtzP * fix(babysit-pr): a clean Claude summary is the header and one line The second local Codex review found that an open checklist item could carry an unanswered request past the gate, and that the prompt did not describe the whole accepted body. A clean summary is now the action's header and rule plus the result line and nothing else, and both prompts ask for exactly that body. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013qZ16z2jrxp57w1mwaZtzP * fix(babysit-pr): accept a Claude header without a duration The pinned claude-code-action leaves out " in <time>" when it has no timing, and writes the time only as "Ns" or "Nm Ns". The header match now makes that clause optional and accepts only those two forms (third local Codex review). Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013qZ16z2jrxp57w1mwaZtzP * style(babysit-pr): apply prettier to exact-feedback-formats.md Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013qZ16z2jrxp57w1mwaZtzP --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
tl;dr
The Problem
ghcall's leftover child could survive the one process-group kill and hold the$(...)pipe open, so the poller waited until it exited.gh-timeout.test.sh's orphan case took 601 s against a 7 s margin under/bin/bash3.2.The Solution
bounded_runkills the command's process group again while it still has members, at most three rounds 20 ms apart, on the normal, alarm and signal paths.Risk
ghcall the babysit-pr poller makes, in every repo that uses the skill.Validation
0a589a9:validate-skills.mjs27 skills ✓,pnpm test:scripts✓, shellcheck ✓,pnpm check:shell✓, Giskard pin preflight ✓ (no workflow change)gh-timeout.test.shunder/bin/bash3.2 fails on base0b01f6cand onmain(orphan case, 601 s), passes on head 3 of 3 runs (about 30 s each); also passes under bash 5.3eval-creatorsuites intest-skills.sh(this machine's python3 lackspsutil); the change does not touch them, CI installs itcodex review→ 2 P2 findings, both declined (see Deferrals)Deferrals
ghnever makes.Ship Checklist
type: summaryortype(scope): summary, ascommitlint.config.mjsenforces for commitsnode scripts/validate-skills.mjsand the affected test suites passAGENTS.md🤖 Generated with Claude Code
https://claude.ai/code/session_013qZ16z2jrxp57w1mwaZtzP