Other

/pr-queue-gate

Fleet-authored GitHub PR queues + the one-shot Claude Stop gate. Triggers: PR queue, open-PR blindness, pr-queue gate. NOT for cmuxlayer status-claim enforcement.

$ golems-cli skills install pr-queue-gate
95% best pass rate
21 assertions
7 evals

Updated today

Hook-carried skill for the deterministic PR-queue primitive and Claude Code session-end gate. The enforcing artifacts are scripts/pr-queue.sh and scripts/pr-queue-gate-hook.mjs.

Scope

The skill inspects the queue and enforces the gate.

Boundary

This skill owns:

  • one-call GitHub queue inspection for a repository;
  • the fleet-authored PR filter;
  • CI/age normalization into stable JSON;
  • one Stop-hook block per Claude session;
  • fail-open ledger evidence for non-actionable or infrastructure states.

It does not own cmuxlayer lane-status/lane-closure enforcement (the separate status-claim lane), merge policy, review execution, or live installation.

Note: the pre-v0.4.35 set_status tool it used to name no longer exists, and the 9-tool surface has no replacement for agent-authored status/progress reporting — update_surface only does move and rename.

Primitive contract

skills/golem-powers/pr-queue-gate/scripts/pr-queue.sh [repo-path]

The default repo path is the current directory. Stdout is one compact JSON object:

{"repo":"golems","open":1,"oldest_days":3,"prs":[{"n":101,"title":"fix: example","age_d":3,"reviewDecision":"REVIEW_REQUIRED","ci":"passing"}]}

Exit codes:

  • 0: no open fleet PRs;
  • 3: one or more open fleet PRs;
  • 2: git/remote/gh/JSON infrastructure error, printed to stderr.

The primitive makes exactly one gh pr list call. jq filters, sorts, escapes titles, computes whole-day ages, and classifies rollups as passing, failing, or pending.