/harness-claude:harness:pr-fleet runs instead · from harness-claude
Autonomously triages, review-assists, and lands a queue of open pull requests with one human decision round. Fans out worktree-isolated subagents that independently verify each PR by CI and review verdict, then lands only authorized PRs.
This skill never runs in Claude Code
It ships in harness-claude at agents/, but /harness-claude:harness:pr-fleet (a command, or a skill Claude Code finds first) has the same name: typing it, or Claude choosing it, runs that one instead.
Autonomous PR-queue land orchestrator — triage the open-PR queue, confirm with the human in one up-front round that carries the merge decision, fan out worktree-isolated subagents that each run the real review-assist pipeline, independently verify every PR by all-OS CI and a review verdict, and land only the PRs the human authorized. The fleet never silently auto-merges unreviewed work and never trusts a subagent's self-report.
Clearing the open-PR queue is the mirror-image slog of building a backlog. Every open pull request has to be hand-triaged — is CI green on all platforms, is it reviewed, does it still merge cleanly, is it stale or superseded — then review-assisted, and finally landed one at a time with a human at each merge button. For a queue of dozens the human's attention is the bottleneck, not the machinery. pr-fleet is the terminal land stage of the -fleet family conveyor (intake → decide → build → land) and the structural twin of roadmap-fleet: both fan out over a work-queue with a concurrency governor and independent verification, then hand to a human. The difference is the queue and the terminal act — roadmap-fleet produces merge-ready PRs and never merges; pr-fleet consumes the open-PR queue and is the stage that actually lands PRs, while the final merge decision stays with a human. The shared, stage-agnostic scaffolding both skills build on is documented in the -fleet family spine reference (docs/reference/fleet-family.md).
roadmap-fleet / the per-item pipeline; pr-fleet assists review and lands, it does not re-open the build| Flag | Effect |
|---|---|
--concurrency | Cap concurrent review-assist subagents (default 2, max recommended 3 — the machine-storm cap) |
--report-only | Enumerate and triage the queue and present the ranked batch; do not dispatch, verify, or land |
--dry-run | Run SELECT and CONFIRM only; stop before fan-out and landing |
--lease-seconds | Override the cross-run claim-lease TTL (default 720s); see §Cross-run claim lease in docs/reference/fleet-family.md |
--no-claim | Disable the cross-run claim lease entirely — pr-fleet then has no cross-run review-assist dedup (today's behavior) |
A PR is landed only after the human authorized it up front AND independent all-OS-CI + review-verdict + mergeability verification passed. The fleet never silently auto-merges, and never accepts a subagent's self-report as proof a PR is land-ready.
The merge decision is a human act. The fleet may execute a land, but only for a PR the human explicitly checked to land in CONFIRM and that independent verification then confirmed is green, reviewed, and mergeable. A subagent that reports "reviewed, CI green, ready to merge" has told you what it believes, not what is true — the only evidence is the CI signal on the PR and a recorded review verdict, checked by the orchestrator itself. Landing an unapproved PR, or an unverified one, or one on a self-report, is a gate violation.
Phase 1: SELECT --> Phase 2: CONFIRM --> Phase 3: DISPATCH
|
v
Phase 5: LAND + REPORT <-- Phase 4: VERIFY
| Phase | Purpose | Exit Condition |
|---|---|---|
| 1. SELECT | Enumerate the open-PR queue, triage each PR, cross-check, order | Triaged PrCandidate[] with land-readiness buckets and detected forks |
| 2. CONFIRM | One up-front human round that carries the per-PR merge authorization | Human-checked land set, answered forks, agreed concurrency |
| 3. DISPATCH | Worktree-isolated subagents run the real review-assist pipeline | Every assist PR returned a review verdict + CI re-run, parked, or failed |
| 4. VERIFY | Independent all-OS-CI + review-verdict + mergeability check, never self-report | Each PR marked land-ready / not-land-ready / retry |
| 5. LAND + REPORT | Merge only approved + verified PRs; summarize; close superseded PRs | Approved+verified PRs landed; report delivered; superseded PRs closed |
The five-phase spine, the concurrency governor, the artifact + all-OS-CI verification discipline, the worktree fan-out with its push-path caveat, and the never-silent-merge invariant are the family-shared scaffolding — stated once in docs/reference/fleet-family.md. This skill states only what is specific to the land stage: the PR-queue triage taxonomy, review-assist, and the human merge gate.
Enumerate the open-PR queue. List open PRs via gh pr list --state open. Missing gh auth degrades to reporting the gap rather than aborting — with no queue access there is nothing to land. Additionally fetch PRs carrying the fleet:claimed label and their claim comments (piggybacks the same enumeration). A PR carrying a live claim lease written by another run — meaning another run is already review-assisting it — is dropped as claimed-elsewhere (a soft reservation); a stale lease is ignored and the PR stays landable. The claim record, staleness (server updated_at), and reclaim tiebreak are defined once in the §Cross-run claim lease section of docs/reference/fleet-family.md — do not restate them here. Degradation note: because every pr-fleet item is itself an open PR, the spine's "open PR is the durable claim" backstop does not distinguish concurrent runs; if the fleet:claimed scan is unavailable (or under --no-claim), pr-fleet has no cross-run review-assist dedup and behaves as today — log the degradation, never abort.
Triage each PR into the land-readiness taxonomy. Compute each PR's bucket from gh pr view / gh pr checks mergeability, CI, and review signals:
blocked below.Read the two signals mergeStateStatus hides.
reviewThreads { isResolved } (GraphQL) into unresolvedThreads. Under a "require conversation resolution" rule, a PR that is approved, green on every check and MERGEABLE still reports mergeStateStatus: BLOCKED. gh pr merge then fails with only "the base branch policy prohibits the merge", and a token that can't read branch protection (it returns 404) can't see why. Count the threads up front so that block is never a surprise at LAND.baseRefName. A PR whose base is not the default branch is stacked on another PR's branch. Merging it lands it in that branch, not the default branch, yet GitHub still shows it as "Merged". Map each stack bottom-first. The bottom PR's state (approved? conflicting?) decides whether anything in the stack reaches the default branch.Cross-check for supersession. For every candidate, check whether a newer merged or open PR already delivers its change. A superseded PR is flagged for closure with a citation, never landed and never re-reviewed from scratch.
Order landable candidates by land-priority. Do not rank ad-hoc. Reuse harness-roadmap-pilot-style impact scoring so ordering is principled and reproducible; order highest-impact-to-land first.
Detect decision forks up front. Scan each PR's discussion/diff for genuine ambiguity a lander would otherwise have to guess (e.g. "squash or merge-commit for this PR?", "does this need the changelog entry before landing?"). Surface these known forks in CONFIRM; do not answer them here.
Build the PrCandidate record for each PR:
PrCandidate {
number, // PR number / url
title,
author,
bucket, // "land-ready" | "needs-review-assist" | "needs-heal" | "blocked" | "superseded" | "stale"
claimedElsewhere, // true when another run holds a live claim lease on this PR (§Cross-run claim lease); dropped from the batch
ciStatus, // per-OS CI signal
reviewVerdict, // present | absent | findings-open
mergeable, // boolean (no conflicts, base current)
unresolvedThreads, // count of review threads with isResolved: false; land-ready requires 0
baseRef, // baseRefName; stacked when it is not the default branch
stackedOn, // set when baseRef is another open PR's head branch (that PR's number)
verifiedSha, // full 40-char head SHA that VERIFY confirmed; LAND pins the merge to it
supersededBy, // set when bucket = superseded
landApproved, // set in CONFIRM (human merge authorization)
forks, // detected known decision forks (may be empty)
}
[checkpoint:human-verify]Present the triaged queue in one round. This is the only guaranteed human touchpoint and the seat of the merge decision — everything downstream runs autonomously. Present, together, in a single surface:
blocked (§Phase 1.2) but must still be presented here — never filter it out of this surface for being unlandable. Authorizing a stacked PR authorizes a merge into its parent's branch, not the default branch. Say so plainly, so the human doesn't read "landed" as "on main".The human explicitly checks which PRs to land. This checked set is the merge authorization — the human's merge decision, captured once for the batch. The human may also trim, answer forks, and confirm closures in this same gate. A PR the human does not check is never landed, no matter how green it is.
From here it is autonomous. After this gate the fleet does not pause per-PR. The only thing that re-surfaces before the report is an unforeseen fork that parks a single PR (see DISPATCH) — and even that does not block the batch. Under --dry-run the skill stops at the end of this phase.
One worktree-isolated subagent per PR that needs assist or heal. Each subagent is briefed to run the real harness-code-review against its one PR's diff, push fix commits for mechanical findings (lint, format, import order, safe review-bot suggestions), re-run CI, and record a review verdict. It does not merge, does not post a human approval, and does not resolve semantic review disagreements by guessing. Feed answered forks from CONFIRM into the brief so the subagent never re-asks a settled question. land-ready PRs skip assist and go straight to VERIFY.
Heal before review, never after. A heal push (merging the default branch in, or rebasing) creates a new head. With stale-review dismissal on, it also dismisses any approval already recorded. Order each needs-heal PR's work as heal, then CI re-run, then review verdict, so the verdict is recorded on the head that will land. A PR that was approved before the fleet healed it goes back to needs-review-assist. Its old approval is not carried forward.
Cap concurrency at the governor (default 2, max ~3). This is the machine-storm limit shared across the family: beyond roughly three concurrent subagents the compound load produces flaky failures indistinguishable from real ones. Never exceed the confirmed concurrency to "go faster" — a stormed batch is slower once you account for re-runs.
Park unforeseen forks; never guess mid-flight. A subagent runs autonomously on recommended-option defaults for anything routine. But if a PR hits a genuinely unforeseen decision fork — a review finding that needs a design call, a conflict needing human judgment — that PR parks and reports the fork instead of guessing. Parking is per-PR: the rest of the batch continues uninterrupted. The parked fork appears in the report for the human.
Record an "assist actions" note per PR. Each subagent records the recommended-option defaults it took and the mechanical fixes it pushed, so the eventual report shows exactly what the fleet touched — batch review is only trustworthy when the reviewer can see what was changed.
Push-path caveat. A worktree created under a .claude/-nested path breaks the local pre-push check-docs gate (it self-excludes and scans zero files). Subagents push fix commits via the GitHub API or from a non-.claude throwaway worktree. Never --no-verify — bypassing the gate defeats the verification the land depends on.
Worker handoff — return the canonical FleetHandoffRecord. When a worker finishes its PR it hands the orchestrator exactly one FleetHandoffRecord (from @harness-engineering/types) — the ONE bounded envelope every -fleet member emits, so fleet-command parses any fleet's worker output uniformly instead of special-casing an ad hoc per-worker report shape. The record carries status (done | parked | blocked | failed), fleet, item, a one-line summary, an evidence[] of verifiable pointers (branch, PR, artifact path, CI check — exactly the references VERIFY re-checks), next_steps[], and, for any non-done status, a blocker. The orchestrator validates it with validateFleetHandoffRecord; a malformed or unknown-keyed record is rejected, never silently misread. See the canonical handoff record in docs/reference/fleet-family.md.
Claim the PR before review-assisting — cross-run claim lease (CLAIM → HEARTBEAT → RELEASE). The item here is an open PR, so the spine's "open PR is the durable claim" rule is degenerate — the duplication this claim guards is the review-assist worktree work (running harness-code-review + pushing mechanical fixes + re-running CI), not the merge (atomic in GitHub). On entering DISPATCH for a PR that needs assist/heal, the orchestrator posts the claim on the PR itself (add the fleet:claimed label + the claim comment), then re-reads — if a competing live claim appeared since SELECT, yield this PR (soft reservation) and continue the batch. While the subagent review-assists, the orchestrator heartbeats the claim every HEARTBEAT_SECONDS so a live-but-slow assist is not mistaken for a dead one. Because the durable-claim backstop cannot be the release trigger, the claim releases on the review-assist terminal outcome — landed, parked, superseded/closed, or reported not-land-ready — removing the fleet:claimed label (the comment stays as an audit trail). land-ready PRs that skip assist take and release the claim trivially. Under --no-claim this step is skipped. The record format, TTL/staleness semantics, and the reclaim tiebreak are stated once in the §Cross-run claim lease section of docs/reference/fleet-family.md — this member references them, it does not restate them.
Never accept a subagent's self-report as verification. "Reviewed, CI green, ready to merge" is a claim to be checked, not a result. For each PR proposed to land, the orchestrator independently confirms the evidence itself.
Require all-OS CI green — and base-fresh (spine clause; the fourth mechanical condition). Confirm the PR's CI is green on all target operating systems plus the project's required checks (gh pr checks / gh run list). Green on one OS is not green. A subset-red PR is not land-ready — it is reported, and the batch continues. pr-fleet is the only member that merges, so it is the only place a stale green is directly exploitable: green counts toward land-ready only when it ran against current main — the SHA the CI ran against is up to date with the base tip, or branch protection enforces strict / up-to-date-before-merge, or the PR is merged-forward and re-run before landing. With required_status_checks.strict false (the GitHub default), mergeStateStatus: CLEAN does not imply freshness, so green against a base that main has moved past leaves the PR not land-ready on that evidence: it is degraded and reported with the stale tested base SHA vs current main, to be merged-forward and re-run. SELECT reads required_status_checks.strict and, when false, labels every candidate's CI provisional through CONFIRM so the authorizing human sees "green" is qualified. See docs/reference/fleet-family.md § Base freshness (classifyBaseFreshness).
Require a review verdict and mergeability, on the current head. Confirm a review verdict exists (from the assist pipeline or an existing human review) and that the PR is mergeable: no conflicts, base current. A PR with an open review finding or a conflict is not land-ready. Re-read reviewDecision on the head you are verifying. After any heal push in DISPATCH, an approval recorded on an earlier head may already have been dismissed. A verdict for a SHA other than the current head doesn't count.
Require zero unresolved review threads. Re-read reviewThreads { isResolved }. Any unresolved thread makes the PR not land-ready, whether or not the repo enforces conversation resolution, because an open thread is an open review conversation. The orchestrator may resolve a thread only after confirming in the head code that the thread's ask has been fixed, citing where. Never resolve a thread just to clear the gate.
Record the verified SHA — after any merge-forward, never before. Store the full 40-character head SHA these checks were run against as verifiedSha. When step 2 merged the default branch forward to cure a stale green, that push created a new head: re-run the checks against the new head and record that SHA. Recording the pre-merge-forward SHA guarantees LAND's pin is refused and the PR bounces back to VERIFY indefinitely — a loop no escalation row names. LAND merges the recorded SHA and nothing else.
Require the human land-authorization. Confirm the PR was checked to land in CONFIRM. A PR that is green, reviewed, and mergeable but not human-approved is not landed — it is reported as verified-but-unauthorized.
Classify each PR as land-ready (approved + all-OS CI green + review verdict on the current head + mergeable + zero unresolved threads + the base is the default branch or a stacked base the human explicitly authorized merging into in CONFIRM), not-land-ready (missing any of these), or retry (transient CI failure, retried at most once). No PR is landed without passing every check.
Correlate a red check before retrying it — retry only when correlation is inconclusive. A retry that happens to land green is the flake's own signature, not evidence. Run harness ci attribute-failure --pr <n> [--job <name>] --json first: it reads the failing job's log, parses the failing test names, and checks the same job's runs on unrelated PRs and on main within ±24h of the failure, plus whether the failing test (or its paired source) is in the PR's diff. Act on its verdict:
environmental — the same test failed on ≥2 independent unrelated diffs or main, and the PR does not touch it. The red is not this PR's; record the verdict (with its denominator) as the evidence, and do not spend a retry to prove it. The PR is still not land-ready on a red check: it waits for the environmental cause to be fixed (route it to cicd-fleet), or the human authorizes landing over it at CONFIRM.in-diff — the PR changes the failing test or its source. Treat the red as real; it is not-land-ready, never retry.inconclusive — too few independent samples, a zero denominator, or an unreadable log (expired logs abstain as BlobNotFound, exit code 3). Only now is the single retry the right tool.Quote the verdict's counts (independent failures, greens, denominator) in REPORT; never write "flaky" without them. Where the harness CLI is unavailable, make the same comparison by hand (gh run list --workflow <wf> around the failure, gh run view --job <id> --log on the reds) and hold it to the same bar: two independent unrelated failures, outside the diff.
Land only the approved + verified PRs, pinned to the verified SHA. Merge each PR that is both human-approved (CONFIRM) and independently verified (VERIFY), via gh pr merge --match-head-commit <verifiedSha> using the repo's configured merge method and honoring branch protection. Land nothing else. The pin closes the gap between VERIFY and LAND: without it, a push that arrives in between lands commits nobody verified. Pass the full 40-character SHA, because GraphQL rejects an abbreviated one. If the head has moved, the merge is refused. Send the PR back to VERIFY; don't drop the pin and retry.
Re-read the review threads as the last read before the merge call. The SHA pin catches a new commit between VERIFY and LAND, but a reviewer can open a thread without pushing: the head is unchanged, --match-head-commit still matches, and the PR lands carrying an open review conversation. Re-read reviewThreads { isResolved } immediately before gh pr merge; a thread that appeared since VERIFY makes the PR not-land-ready — report it with the thread link and send it back to VERIFY. This is the one land precondition the pin cannot cover, so it is the one re-read LAND owes.
Report stacked lands honestly. A stacked PR's merge lands it in its parent's branch, and GitHub labels it "Merged" anyway. Its report row says "merged into <baseRef> (not <default>)", and the PR stays counted as not on the default branch until the bottom of its stack lands. Never count it as landed on the default branch.
A merge call that errors may still be running. A 5xx from gh pr merge can leave GitHub reporting "Merge already in progress". Re-read the PR's state before retrying, and keep the same SHA pin. If branch protection blocks a merge (e.g. a required human review is still missing), report it as not-landed with the reason — never route around protection. As each PR reaches its terminal outcome (landed, parked, reported not-land-ready, or closed as superseded), release its cross-run claim — remove the fleet:claimed label, leaving the claim comment as an audit trail (see §Cross-run claim lease).
Emit a one-row-per-PR batch summary for the human:
| PR | Bucket | Verdict | Assist actions | Land result | Parked forks |
|---|
Every landed PR's row carries its link, the assist-actions note from DISPATCH, and the land result. Not-landed PRs are listed with the reason (subset-red CGI, unauthorized, un-mergeable, parked fork).
Close superseded / already-resolved PRs accurately. For each PR flagged superseded in SELECT and confirmed in CONFIRM, close it with a comment citing the superseding/resolving PR — never a bare close, and never a re-review.
Never silently auto-merge. Every land traces to an explicit human authorization plus independent verification. A PR the human did not check, or that verification did not clear, is reported — not merged. Auto-merging unreviewed work is out of scope by design.
Degrade gracefully. Missing gh auth, an un-mergeable PR, or a single PR's failed assist results in that PR being reported while the rest of the batch proceeds. One bad PR never sinks the batch.
harness skill run pr-fleet — Run the full five-phase land pipeline.harness-roadmap-pilot — Its impact scoring is reused in SELECT to order landable PRs by land-priority.harness-code-review — The real per-PR review pipeline each assist subagent runs in DISPATCH; the fleet composes it and never reimplements review.gh — Enumerate open PRs and read CI/review/mergeability signals (SELECT/VERIFY), push assist commits, land approved+verified PRs (gh pr merge), and close superseded PRs with citations (LAND).docs/reference/fleet-family.md — The shared -fleet spine this skill builds on (five-phase skeleton, governor, verification discipline, worktree fan-out, never-silent-merge).docs/reference/fleet-family.md) + @harness-engineering/core (fleet/claims) — The canonical cross-run coordination mechanism this member consumes in SELECT (drop live-leased PRs) and DISPATCH (CLAIM → HEARTBEAT → RELEASE on the PR itself, released at the review-assist terminal outcome — the claim guards the review-assist work, not the atomic merge); the pure buildClaimBody/parseClaimComment/isLeaseLive primitives and classifyClaim/selectUnclaimed helpers live in core, all gh I/O in this (agent-executed) skill layer. Safe-usage: because every pr-fleet item IS an open PR, always pass classifyClaim hasOpenPr: false (that field means "a distinct open PR resolves this item"; setting it true drops the whole batch) — pr-fleet dedups via the lease path only.harness skill validate pr-fleet — The authoring-time gate for this skill's own structure and schema.harness-code-review and pushes only mechanical fixes — it never fabricates an approval or guesses a semantic finding.gh auth, an un-mergeable PR, or a single PR's failed assist is reported while the batch continues.gh pr merge --match-head-commit <verifiedSha>. Merging an unpinned head, or dropping the pin after a refusal, lands commits nobody verified = gate violation.--no-verify. No subagent bypasses the pre-push gates; a .claude/-nested worktree pushes via the GitHub API or a non-nested worktree instead.gh auth: with no queue access there is nothing to land — stop and report the gap rather than guessing at PR state.unresolvedThreads first. For each thread, confirm in the head code that its ask is fixed. Resolve only the threads that are, and report the rest as not-landed with the thread links. Never pass --admin.isOutdated — its ask maps to no line in the head code: the reviewer commented on a line the author has since rewritten or deleted, so §Phase 4.4's precondition ("confirm in the head code that the thread's ask has been fixed") can never be satisfied: the PR is permanently not-land-ready and is re-reported on every run. Do not resolve it to clear the gate, and do not keep re-queueing it. Report it once as not-landed with isOutdated: true, the thread link, and the original line, and route it to the human — only the reviewer or the author can say whether the rewrite addressed the ask or silently dropped it. Failing safe is right; looping forever is not.| Rationalization | Reality |
|---|---|
| "The subagent reported it reviewed the PR and CI is green, so it's safe to land" | A self-report is a claim, not evidence. Independently confirm all-OS CI, a recorded review verdict, and mergeability before landing — or the PR is not land-ready. |
| "This PR is green and reviewed — I'll land it even though the human didn't check it" | The merge decision is the human's. A PR not checked to land in CONFIRM is never merged, no matter how ready it looks. Report it as verified-but-unauthorized. |
| "CI is green on Linux, land it" | Green on one OS is not green. Landing requires all target operating systems plus the project's required checks. A subset-red PR is reported not-land-ready, not landed. |
| "There's no review on this PR, but it looks fine — I'll approve it and merge" | Review-assist runs the real pipeline to a verdict; it never fabricates an approval. A missing review verdict means not-land-ready, not a rubber stamp. |
| "This merge conflict is small — I'll resolve it however seems right and land" | Semantic conflicts need human judgment. Force-resolving one buries an unreviewed decision in a landed PR. Triage it blocked and report it. |
| "Branch protection is blocking the merge — I'll merge with admin to keep the batch moving" | Never route around protection. Report the PR not-landed with the unmet requirement; protection is part of the human merge decision, not an obstacle to it. |
| "This PR looks new to me — no need to check whether a newer PR already superseded it" | Cross-check every PR for supersession. Landing a superseded PR creates a conflicting duplicate; superseded PRs are closed with a citation, not landed. |
| "The merge is blocked by some branch policy, but it's approved and green — I'll resolve the open threads so it goes through" | Resolving a thread is a review act, not a gate key. Confirm each thread's ask is fixed in the head code first, and report the threads that aren't. |
| "The thread is outdated — the line it points at is gone, so it can't still apply. Resolve it and land" | An outdated thread is an unanswered question about a rewrite, not a closed one. The ask may have been dropped by the rewrite. Report it to the human with isOutdated: true; never self-resolve a thread whose ask you cannot locate in the head code. |
| "GitHub says Merged, so it landed" | A stacked PR merges into its parent's branch. Check baseRefName: if it isn't the default branch, nothing reached the default branch. |
"It was approved before I merged main in, so it's still approved" | With stale-review dismissal on, the heal push dismissed that approval. Re-read reviewDecision on the current head; a verdict for an earlier SHA doesn't count. |
| "The head only moved by a trivial commit since VERIFY — merge without the pin" | The pin exists precisely for commits nobody verified. A refused pinned merge goes back to VERIFY. |
| "Bumping concurrency to six will clear the queue sooner" | Beyond ~3 concurrent subagents is the machine-storm zone — compound load produces flaky failures that cost more in re-runs than the extra parallelism saves. |
| Flag | Corrective Action |
|---|---|
| "I'll land it based on the subagent's summary" | STOP. Independently check all-OS CI, the review verdict, and mergeability. A summary is not a verification. |
| "It's green and reviewed, I'll merge even though the human didn't pick it" | STOP. The human authorizes each land in CONFIRM. Unauthorized PRs are reported, never merged. |
| "No review here, but I'll approve and land it" | STOP. Review-assist runs the real review to a verdict; it never invents an approval. No verdict → not land-ready. |
"The pre-push gate is failing in this worktree — I'll --no-verify" | STOP. Never bypass. Push via the GitHub API or a non-.claude worktree; the gate is part of the verification. |
| "Admin-merge past branch protection to finish the batch" | STOP. Never route around protection. Report the PR not-landed with the unmet requirement. |
$ harness skill run pr-fleet --concurrency 2
Phase 1: SELECT
Enumerated: 7 open PRs (gh pr list).
Triage:
- #A "cache headers" -> land-ready (CI green all-OS, approved, mergeable)
- #B "retry policy" -> needs-review-assist (CI green, no review verdict)
- #C "token refresh" -> needs-heal (CI red on windows, stale base)
- #D "audit log v2" -> superseded by a newer merged PR -> flag for closure
- #E "docs typo" -> land-ready
- #F "big refactor" -> blocked (draft/WIP)
- #G "rate-limit headers" -> needs-review-assist
Ordered landable candidates by land-priority via roadmap-pilot scoring.
Detected forks: 1 — "#B: squash or merge-commit?"
Phase 2: CONFIRM [checkpoint:human-verify]
Triaged queue presented. #D flagged for closure (superseded).
Human checks to LAND: #A, #B, #E, #G (the merge authorization).
Human answers fork: #B -> squash. Concurrency confirmed: 2.
Phase 3: DISPATCH (governor = 2)
#B, #G -> review-assist subagents run harness-code-review, push format/lint fixes, re-run CI.
#A, #E -> land-ready, skip assist.
#G hits an UNFORESEEN fork (a review finding needs a design call)
-> parks and reports; the others continue.
Phase 4: VERIFY (independent — no self-report)
#A: CI green all 3 OS + enforce + harness, review verdict present, mergeable, authorized -> land-ready
#B: assist pushed fixes, CI green all 3 OS, review verdict present, mergeable, authorized -> land-ready
#E: green, reviewed, mergeable, authorized -> land-ready
#G: parked in DISPATCH -> not-land-ready (fork awaits human)
Phase 5: LAND + REPORT
| PR | Bucket | Verdict | Assist actions | Land result | Parked forks |
| -- | ------------- | ------------ | --------------------- | ----------- | --------------------- |
| #A | land-ready | land-ready | — | LANDED | — |
| #B | needs-assist | land-ready | pushed format+lint | LANDED | — |
| #E | land-ready | land-ready | — | LANDED | — |
| #G | needs-assist | not-land-ready | ran review | not landed | design finding |
Closed #D as superseded, citing the superseding PR.
Landed 3 human-authorized + verified PRs. Never merged an unauthorized or unverified PR.
A PR is CI-green on all platforms, carries an approving review, and is perfectly mergeable — but the human did not check it to land in CONFIRM. VERIFY marks it verified-but-unauthorized. Per the Iron Law it is not landed; it appears in the report as land-ready-but-not-authorized for the human to pick up next time. The merge decision was never the fleet's to make.
VERIFY finds a PR green on all OS, reviewed, and mergeable, but it was not checked to land in CONFIRM. Expected: the "no land without an explicit human authorization" Gate halts the merge; the PR is reported verified-but-unauthorized, not landed. Landing it because it "looks ready" is the failure this scenario guards against.
An assist subagent finds a PR with no review verdict and reasons "it looks fine, I'll approve it and land." Expected: rejected by the "review-assist never fabricates approval" gate — the verdict must come from the real harness-code-review pipeline. A missing verdict means not-land-ready, never a rubber stamp.
An assist subagent hits a review finding that needs a design call (not a mechanical fix). Expected: the PR parks and reports the finding rather than guessing a resolution and landing; the parked fork appears in the report for the human; the other in-flight PRs continue uninterrupted. Silently resolving the finding and landing is the failure this scenario guards against.
A subagent reports "reviewed, CI green, ready to merge." Expected: the "a self-report is never verification" gate requires the orchestrator to independently confirm all-OS CI, the review verdict, and mergeability via gh before landing. Landing on the report alone is the failure this scenario guards against.
A PR is approved at its head, green on every check, and MERGEABLE, but mergeStateStatus is BLOCKED, and gh pr merge fails with only "the base branch policy prohibits the merge". Branch protection can't be read with the token in use. Expected: SELECT already counted two unresolved review threads, so the PR was never bucketed land-ready. The orchestrator checks each thread's ask against the head code, resolves only the threads whose fix it confirmed, and lands the pinned SHA. Admin-merging past the block, or resolving the threads unread to clear it, is the failure this scenario guards against.
The human authorizes two approved PRs, but both sit in a stack whose bottom PR is unapproved and conflicts with the default branch. Expected: CONFIRM shows the stack bottom-first, and the report rows say "merged into <parent branch> (not <default>)". The bottom PR's blockers are surfaced as what stands between the stack and the default branch. Reporting the two PRs as landed because GitHub says "Merged" is the failure this scenario guards against.
An approved PR conflicts with the default branch. DISPATCH heals it by merging the default branch in, and stale-review dismissal clears the approval. Expected: VERIFY re-reads reviewDecision on the new head, finds REVIEW_REQUIRED, and reports the PR not land-ready (needs re-review), or gets a fresh verdict on the healed head. Landing on the pre-heal approval is the failure this scenario guards against.
VERIFY confirms head A, then the author pushes B before LAND. Expected: gh pr merge --match-head-commit A is refused, and the PR goes back to VERIFY on B. Retrying without the pin is the failure this scenario guards against.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub intense-visions/harness-engineering --plugin harness-claude793 skills in this plugin
/a11y-aria-patternsARIA Patterns> Apply ARIA roles, states, and properties correctly to enhance assistive technology support for custom widgets/a11y-color-contrastColor Contrast and Color Independence> Ensure sufficient color contrast ratios and never use color as the sole means of conveying information/a11y-form-patternsAccessible Form Patterns> Build accessible forms with proper labeling, grouped controls, inline validation, and clear error communicationOther plugins' skills for the same job