Description
Context (2026-10-14 CI audit): PR CI is now limited by queueing, not runtime. The account has a pool of about 20 concurrent jobs. On #5115 (a det change), 61 jobs and 266 job-minutes took 61 min to green; det shards ran 3-6 min but waited 20-42 min for a runner, and setup is only about 50 s per job. Every job that leaves the PR path frees a slot for PR work. Already done or rejected: #4518, #4825, #4847, #4935, #4961, #5024, #5104. Line refs are origin/main as of 2026-10-14.
Owner decision needed: merge-main reruns. Since 2026-10-11, 52 of 155 PRs got at least one "Merge branch 'main'" commit (65 in total). Each one restarts the PR's full CI (about 60 jobs on a det PR). Sources:
- 55 were committed locally by agents: worker guidance in
.claude/agents/gitgalaxy-pr-worker.md:69says "Bringing a branch up to date:git merge origin/main", with no condition on when. - 10 went through GitHub's update-branch, of which only 2 carry the shepherd's
shepherd-updatemarker (shepherd_gh.py:210-211: behind + green + labelled -> update-branch).
Merging isn't gated on being current: the ruleset main: required checks (#4825) has strict_required_status_checks_policy: false. Classic protection still has strict: true with no contexts, which makes GitHub report behind and so drives the shepherd's update-branch.
Options:
- A. Workers merge main only when the PR is CONFLICTING/dirty, a required check fails because of main, or golden masters/generated files must be re-blessed after a sibling merge. Never "just to be current". Drop the shepherd's behind->update-branch, and clear the leftover classic
strict: true. Risk: a semantic conflict between two individually green PRs lands on main; Main Watch (ci-red-main) catches it after the fact. - B. Keep "test against current main" as a guarantee, but batch it: a merge queue tests several PRs together. That needs the repo in an org; see the runner/plan discussion.
- C. Status quo.
Acceptance: owner picks A, B or C. For A: update the worker agent doc and the shepherd, plus docs/ci.md, and measure merge-main commits per PR over the following 3 days.
Activity
squid-protocol commentedon Oct 14, 2026
More data for this decision (39.5 h window, 59 merged PRs): PR runs on superseded SHAs of merged PRs cost 8,187 job-min = 27% of all CI minutes, about 139 slot-min per merged PR. Only 104 of 2,093 such jobs were cancelled, because PR concurrency already cancels in progress; these runs finished before the next push. So every extra push to a ready PR (merge-main or fix round) costs about one full CI run, and option A goes straight at that.
squid-protocol commentedon Oct 14, 2026
Owner decision (2026-10-14): option A. Workers merge main only when the PR is CONFLICTING/dirty, a required check fails because of main, or golden masters/generated files must be re-blessed after a sibling merge; never just to be current. Drop the shepherd's behind->update-branch (
shepherd_gh.py:210-211) and update.claude/agents/gitgalaxy-pr-worker.md:69, docs/ci.md and any skill that says to merge main routinely. Main Watch (ci-red-main) is the backstop. Measure merge-main commits per PR for 3 days after merge. The leftover classic branch-protectionstrict: trueis cleared by the owner by hand.CI: merge main only for a reason; the shepherd no longer updates a be…
Merge origin/main into docs/agent-memory-to-repo