Skip to content

fix(babysit-pr): treat a clean Claude review summary as informational - #75

Merged
chapati23 merged 5 commits into
mainfrom
babysit-claude-review-pass
Nov 26, 2026
Merged

chapati23 merged 5 commits into
mainfrom
babysit-claude-review-pass

Conversation

@chapati23

@chapati23 chapati23 commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

tl;dr

  • When Claude's PR review finds nothing, the PR watcher still waits for someone to reply to that review. Now a clean Claude review no longer holds the PR; a review that raises anything still does.

The Problem

The Solution

  • Both review prompts in claude.yml ask for a fixed body on a clean review: the final update replaces the whole comment with the one line Review result: LGTM, no findings.
  • New CLAUDE_REVIEW_PASS_JQ drops a github-actions[bot] comment only when it is exactly the action's header, the --- rule and that line. A checklist, a heading, prose, a roll-up, an error or an altered line stays feedback.
  • Docs: exact-feedback-formats.md and the Claude bullet in live-watch.md.

Risk

  • 🚪 Door: two-way. Revert the commits; no state changes.
  • 💥 Blast Radius: top-level feedback counts in every repo that uses babysit-pr. A mismatch keeps today's behaviour: the PR stays pending.

Validation

  • Gates at 1d01dd1: validate-skills.mjs 27 skills ✓, pnpm check:shell ✓, shellcheck (lib/) ✓, exact-feedback-formats_test.py ✓, 7 related babysit-pr suites ✓, test-skills.sh 57 passed
  • Trunk at b86ea4f: trunk check --upstream origin/main ✓ (adds only a prettier rewrap)
  • Regression: exact-feedback-formats_test.py — a clean body counts 1 on base 4080280, 0 on head; 4 clean forms count 0 and 13 near misses count 1 on both counters
  • Not run: Giskard pin preflight (exit 3, no Giskard CI host on this machine)
  • Not run locally: 5 suites in test-skills.sh (four eval-creator files and one node --test group; this machine lacks psutil); CI installs it
  • Not verified: a live clean summary in the new shape
  • Review: direct review plus three codex review passes → 1 P1 and 2 P2, then 1 P1 and 1 P2, then 1 P2; all fixed in later commits

Deferrals

  • agent-skills' own review prompt does not ask for the line yet; its summaries stay counted.

Ship Checklist

  • PR title is a Conventional Commits header, type: summary or type(scope): summary, as commitlint.config.mjs enforces for commits
  • Performed a self-review of my own changes
  • node scripts/validate-skills.mjs and the affected test suites pass
  • Nothing in the diff breaks the public-readership rules in AGENTS.md

🤖 Generated with Claude Code

https://claude.ai/code/session_013qZ16z2jrxp57w1mwaZtzP

chapati23 and others added 4 commits November 26, 2026 17:15
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
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
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
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
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-26T16:57:19.076991Z 1d01dd1 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions

github-actions Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

Claude finished @chapati23's task in 2m 52s —— View job


Review result: LGTM, no findings

@chapati23
chapati23 merged commit b22cd20 into main Nov 26, 2026
3 checks passed
@chapati23
chapati23 deleted the babysit-claude-review-pass branch November 26, 2026 17:16
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