babysit-attention

Resolve a paused PR supervisor decision with explicit human input.

SKILL.md

GitHub

Client dispatch: In Codex, read codex-runtime and babysit-attention/codex.md, execute that native procedure, and do not continue into the Claude procedure below.

This window was opened by the persistent babysit supervisor because automated progress is ambiguous or a CI or merge repair retry cap was reached. The launch reason is a label only; it never changes what is offered. Summarize the exact PR, head SHA, failing checks (or the merge-repair reason) and attempt count, built from gh pr view and gh pr checks <pr> --json bucket,name,state plus the one-line JSON that cenci babysit status <pr> prints, which works on the host and inside a sandbox: read ciFixAttempts when the launch reason is a CI retry cap and conflictFixAttempts when it is a merge repair retry cap. When cenci babysit status <pr> exits non-zero, or its output does not decode as JSON, say "retry cap reached (exact count not readable from here)" rather than a number.

Then ask one AskUserQuestion with exactly three options: "leave paused for manual repair", "retry with a fresh budget" and "stop babysitting". Never mutate GitHub, push, or restart automatically before that choice.

  • "leave paused for manual repair" changes nothing. Conflicts ordinarily go straight to Claude Opus through merge-repair; this window is the exhausted-budget fallback, so a human may run /cenci:merge-repair <pr> to inspect and repair that PR. Leaving it paused is safe: for a CI or merge-repair retry cap the supervisor keeps polling, and a used-up budget pauses only that kind of automatic repair. CI and merge-repair budgets are separate; the other repair kind, review feedback and MERGED or CLOSED detection carry on. Once GitHub shows a confirmed green head (CI) or a confirmed conflict-free state (merge), the supervisor clears the pause automatically; no separate re-arm step is needed.
  • "retry with a fresh budget" runs cenci babysit reset <pr> once. The reset is host-only: inside a sandbox the command refuses without sending anything to the host. Exit 0 means the budget was reset and the supervisor re-armed: report that. On a non-zero exit, say the budget was not reset, print cenci babysit reset <pr> as the exact command to run on the host, and never report success. Do not retry the command.
  • "stop babysitting" runs cenci babysit stop <pr>, which inside a sandbox is forwarded to the host supervisor. Exit 0 with Stopped babysitting PR #<pr> on the host. means it was stopped. On a non-zero exit, including not stopped: <reason> (the host refused) and stop status unknown (no reply from the host), say the supervisor was not stopped, print cenci babysit stop <pr> as the exact command to run on the host, and never report success.