Development

/pr-loop

Full PR loop: branch, test, commit, push, PR, review, fix, merge. Triggers: create PR, finish work.

$ golems-cli skills install pr-loop
Golden
100% best pass rate
41 assertions
10 evals
fixtures

Updated today

Fleet law: canon #2 owns branch→commit→push→PR→review→merge and PR URL validity. This skill keeps the procedural checklist, review handling, edge cases, and worker-vs-lead merge mechanics.

Loop Endpoint

Default endpoint is a merged PR plus cleanup. If the dispatch says LEAD owns merge or "worker endpoint = PR", stop at the worker endpoint below and report the PR URL.

Mechanical enforcement (gen-18 Track 1): parking is now caught by the idle-dwell gate — a finished, approved branch left "awaiting PR approval" is IDLE_SEAT_OPEN_QUEUE. Run /idle-dwell-gate on the terminal turn before ending (bun skills/golem-powers/idle-dwell-gate/scripts/idle-dwell-gate-cli.mjs <transcript|->, exit 3 = FLAG). FLAG ⇒ finish the loop to MERGED; surface the PR number, not a permission question.

Autonomous Agent Mode

If you are running autonomously (no human in the loop), these rules are mandatory:

  1. Never merge with 0 reviews. Wait or invoke bots. No exceptions.
  2. Review wait timer: After invoking reviewers, wait minimum 120s before first check. If no reviews after 5 min, re-invoke. After 15 min with no response, self-merge only if CI is green.
  3. Post to collab with PR number immediately after creation AND after merge (with test counts).
  4. CRITICAL/HIGH comments require reply before merge — fix, or explicit "won't fix because X." Zero replies = cannot merge.
  5. Max 3 review rounds. If round 3 still has new issues, merge and create follow-up ticket. Infinite review loops are worse than shipping with known minor issues.

Hierarchical Worker Mode (gen-12 weave E09)

When a dispatch brief says LEAD owns merge (or "worker endpoint = PR + review responses"):

  • Worker's endpoint = PR opened + review responses addressed — do NOT re-derive MISSION = MERGED and merge locally unless the brief explicitly grants merge authority to this worker.
  • Worker stops at: branch → implement → verify → commit → push → PR → invoke reviewers → fix review threads → post TASK_DONE with PR URL.
  • LEAD merges after a clean loop on the worker PR (or only when the brief explicitly says this worker merges).

Evidence: two independent re-derivations of the conflict (vlW7#5 "brief explicitly says no merge"; kg-harvest#2).