Repository navigation
poteto-mode: Babysit and Shipping wait on T3's PR watch (2.6.1) - #89
Merged
Merged
Conversation
When the session can call T3's watch_pull_request, Babysit's drive registers the PR with it and ends the turn instead of looping the watcher in 540-second shell calls. Each wake takes one --status-only snapshot with the check-mode flags, so the watcher's readiness rules still decide the next step. No event wakes the thread when review activity settles, so that wait alone takes one round of the loop. A delegated child never watches and reports the wait, as worker.md says. Shipping's wait for the next PR's checks after step 4's push goes the same way. A run that a merge queue or auto-merge lands keeps step 5's queued watcher loop, since the watch does not wake on a merge or merge-queue state. Without watch_pull_request both keep their loops. Babysit's existing watcher rule takes the new replacement. Shipping gets two rules scoped to shipping.md, and its declared fork carries the same text, so its own lines still differ from derived upstream by the 4 it declares. Refs #88. The idea came from @yqecea in #76. Testing: the three new or changed "keeps its T3 insert" entries in tests/sync.test.mjs pass, and fail against main's substitutions.json.
Babysit and Shipping wait on T3's PR watch. A patch release, since it changes how two playbooks behave and adds no skill, capability, or harness. README names v2.6.1.
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using high effort and found 2 potential issues.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 053e1ae. Configure here.
… delegated children out of the loop Bugbot on #89: T3's watch does not wake for checks or conflicts already in place, so drive now takes its first snapshot right after registering. A delegate_task child cannot call watch_pull_request, so it matched the fallback loop too; it now neither watches nor loops and reports the wait.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Why
Babysit and Shipping waited on a PR by looping pstack's watcher inside the turn, in shell calls of up to 540 seconds. T3's
watch_pull_requestalready wakes a thread when a PR's checks, reviews, comments, or conflicts change. A count of the maintainer's sessions found the watcher loop in 3 sessions andwatch_pull_requestin about 150. One way to wait is simpler. The idea came from @yqecea in #76.Closes #88
What changed
drive. When the session can callwatch_pull_request, it registers the PR and ends the turn. Each wake runs the watcher once with thecheck-mode flags (--status-only --timeout 120 --max-query-errors 2) and acts on what it shows. When only review settling is left, it runs one round of the loop, because no event wakes the thread when the PR settles.worker.mdsays.watch_pull_requestthe same way.watch_pull_requestdoes not wake on a merge or on merge-queue state.watch_pull_request, as in a harness or session outside T3, both playbooks keep their loops.tools/substitutions.json: a new replacement for Babysit's existing watcher rule, and two rules scoped toshipping.md. The forkedshipping.mdcarries the same text, so its fork diff stays at 4 lines.Tradeoffs
Blast Radius
Babysit and Shipping text only. No script, hook, or installer change. Autopilot-full still tells an owner child to babysit in
driveand report a wait for a person. Under the new Babysit text that child reports any PR wait, asworker.mdalready says.Verification
bun tools/generate.mjs --check: 14 generated files current.0b46ec3all exit 0: pstack 500 unchanged, 16 declared forks, 630 changed lines (same as main); cursor-team-kit 6 unchanged; thermos 5 unchanged.GIT_CONFIG_GLOBAL=/dev/null bun test tests/ --timeout 30000: 589 pass, 63 skip, 0 fail.T3_PSTACK_E2E=1installer e2e: 21 pass, 0 fail.validate-skills plugins/pstack/skills: ok.keeps its T3 insertentries intests/sync.test.mjsfail against main'ssubstitutions.json.watch-pr --status-only --timeout 120 --max-query-errors 2on a real PR prints one status table and exits 0.Note
Low Risk
Playbook documentation and substitution rules only; workflow semantics change but no auth, installer, or runtime code paths.
Overview
Release 2.6.1 retunes Babysit and Shipping so T3 sessions wait on PRs through
watch_pull_requestinstead of blocking turns on longwatch-prshell loops.Babysit
driveregisters the PR withwatch_pull_request, ends the turn, and on each wake runs one--status-onlywatcher pass. Review-settling still uses a single bounded watcher loop when no wake event exists; delegated children neither watch nor loop. Sessions withoutwatch_pull_requestkeep the prior in-turn loop behavior.Shipping after step 4 waits for the next PR’s checks the same way; step 5 keeps the queued stack watcher loop when merge queue, auto-merge, or missing
watch_pull_requestapplies, because the watch does not signal merges or queue state.The behavior is carried in
tools/substitutions.jsonplus matching playbook text and sync tests; version and changelog/docs bumps only—no installer, hooks, or script changes.Reviewed by Cursor Bugbot for commit 63e6a13. Bugbot is set up for automated code reviews on this repo. Configure here.