Craft fleet

From Intense-Visions/harness-engineering · View interactive version

Craft fleet is an AI agent skill from the GitHub repository Intense-Visions/harness-engineering. > Ceiling-raising code-quality elevation sweep across the standing codebase — compose the eleven `-craft` skills into ranked `(scope, domain)` targets, confirm one batch in a single up-front round tha

How to use this skill

Skill file

Craft Fleet

Ceiling-raising code-quality elevation sweep across the standing codebase — compose the eleven -craft skills into ranked (scope, domain) targets, confirm one batch in a single up-front round that carries a taste-calibration sample of verbatim findings, fan out worktree-isolated subagents that each run the real harness-refactoring pipeline over one target's cited findings, admit nothing that lacks a cited craft finding and that a re-critique cannot show as net better, and hand back a tiered batch of elevation PRs and filed roadmap items for one bulk review. The fleet never auto-merges and never trusts a subagent's self-report.

The harness has a complete floor and no way to harvest its ceiling at batch scale. cleanup-fleet works the rule-based entropy queue — dead code, drift, structural risk in high-churn areas. bug-fleet hunts latent defects behind a reproduction bar. test-fleet chases coverage gaps. Every one of them acts on findings a machine can prove. Meanwhile the eleven -craft skills — naming-craft, code-craft, copy-craft, test-craft, spec-craft, docs-craft, knowledge-craft, api-craft, cli-ergonomics-craft, security-craft, harness-design-craft — encode the taste that says whether working code is any _good_, and they are invoked one file at a time, by a human who already suspected something was mediocre. The judgment exists; nothing sweeps with it.

craft-fleet is the ceiling twin of cleanup-fleet: it sweeps with the craft skills, ranks what they find, and hands back a tiered batch — bounded, high-confidence polish as elevation PRs, larger structural quality debt filed as roadmap items for the normal pipeline to build later. The restraint in that split is the design, not a shortfall of it. Craft findings are advisory LLM judgment by design, so a fleet that autonomously rewrites subjective "low quality" across a codebase produces churn, style-thrash, and bulk PRs that are miserable to review — it would spend the human's attention rather than save it, which inverts the entire point of the family. This member therefore leans file-don't-rewrite for anything structural, reserves direct PRs for safe, bounded, high-confidence polish, and strengthens the human-taste gate beyond every sibling's. It is a quality-queue member of the -fleet family: it does not sit on the core intake → decide → build → land spine, but works the craft-finding queue alongside it, exactly as cleanup-fleet works the entropy queue it mirrors.

This skill builds on the shared -fleet spine documented in docs/reference/fleet-family.md — the five-phase SELECT → CONFIRM → DISPATCH → VERIFY → terminal skeleton, the concurrency governor, the artifact + all-OS-CI verification discipline, the worktree fan-out with its nested-path push caveat, the front-load / park-unforeseen interaction model, and the never-silent-merge invariant. The family ADRs cited there — _Subagent worktree fan-out (vs the Workflow primitive) for -fleet execution_ and _The front-load / park-unforeseen interaction model for the -fleet family_ — state that contract once for the family, and the craft skills' shared _3-axis (tier × impact × confidence) output model_ supplies the finding vocabulary this skill consumes without extending. This SKILL.md defines only what is craft-fleet's own: its queue, its elevate-vs-file taxonomy, its cited-and-net-better verification, its tiered dual terminal act, and its domain-specific rationalizations.

When to Use

Capability Roles

<!-- Capability seam: this skill participates in a real extension point whose three roles are named and concrete. A seam with only one role filled is accidental single-implementation lock-in. See harness-skill-authoring Phase 1C. -->

Flags

| Flag | Effect |

| --------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------ |

| --concurrency | Cap concurrent elevation subagents (default 2, max recommended 3 — the machine-storm limit) |

| --domains | Restrict the sweep to a comma-separated subset of the craft domains; the enabled set is confirmed at CONFIRM either way |

| --report-only | Compose the critique, rank the targets, and present the batch with its taste-calibration sample; do not dispatch elevations or file items |

| --dry-run | Run SELECT and CONFIRM only; stop before fan-out — nothing is verified, filed, or opened as a PR |

| --file-only | Open no elevation PR: every elevate target converts its budgeted elevation slot into a filed item carrying its cited finding, so the caps still hold |

Process

Iron Law

CITED-AND-NET-BETTER — no line is rewritten without a cited craft finding (a runId + rubricId + location from an actual craft-skill run), and nothing is emitted that a re-critique does not show as net better. The fleet never auto-applies a structural, contract-touching, or cross-module change, never elevates a prose file or a published contract, never publishes a routed security vulnerability, and never accepts a subagent's self-report as proof its pipeline ran.

The craft skills are advisory by design — they emit judgment carrying a visible confidence axis precisely because their findings are not binary — so a fleet built on them must not convert advice into authority. The cite is the ceiling analogue of a reproduction: it is the one piece of evidence that cannot be produced by asserting it. Confident prose explaining why a rewrite is better reads exactly like confident prose explaining why a rewrite that is worse is better; a runId and a rubricId either point at a real catalog run at a real location or they do not.

The second half of the law does the work the first cannot. A cite proves the location was worth looking at; it says nothing about whether the rewrite improved it. Only a re-critique of the changed code can distinguish elevation from style-thrash — swapping one finding for another is motion, not progress. And keeping the elevate boundary mechanical — high confidence, bounded, behavior-preserving, on an eligible surface — is what stops the whole thing degrading into "this rewrite felt safe," which is precisely how a taste-driven fleet becomes a churn engine.

The corollary matters as much as the law. A quiet target is a valid, valuable result. A target whose critique yields nothing above the noise floor tells the human where the ceiling has already been reached, and that is worth knowing. The pressure to manufacture an elevation so a sweep does not look wasted is the exact failure mode a subjective-judgment fleet must design against: there is no reproduction to fail here and no detector to stay red, so nothing but this rule stands between a thin batch and an invented one.

Phase 1: SELECT --> Phase 2: CONFIRM --> Phase 3: DISPATCH
                                                    |
                                                    v
             Phase 5: FILE-AND-REPORT <-- Phase 4: VERIFY

| Phase | Purpose | Exit Condition |

| ------------------ | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- |

| 1. SELECT | Compose the craft skills into ranked (scope, domain) targets | Ranked Target[] with routing verdicts, cross-check results, and floor/cap counts |

| 2. CONFIRM | One human round: domains, batch, taste sample, floor, caps, governor, pinned base SHA | Approved batch with a pinned base SHA and confirmed domains, floor, and caps |

| 3. DISPATCH | Subagents run the real harness-refactoring over one target's cited findings | Every elevate target returned a branch, downgraded, parked, or failed (all recorded) |

| 4. VERIFY | Elevations: critique + elevation provenance, two-run re-critique, all-OS CI; filings: cite + cross-check | Each item marked verified-elevation / verified-filing / routed / downgraded / rejected |

| 5. FILE-AND-REPORT | Tiered dual terminal act, batch summary | Report delivered; nothing merged |

Phase 1: SELECT — Compose the Craft Skills, Floor, Route, Rank

  1. Compose the enabled craft skills — reimplement no critique. Run them over the repository. They already discover their own corpora and emit structured findings, each carrying a cite.rubricId, under a runId reported once per run in the run summary. A finding's cite is therefore composed — the run's runId paired with that finding's rubricId and location — rather than read off the finding alone. The fleet's job here is composition and ranking, not detection: it never re-derives a rubric, never invents a finding, and never restates a critique in its own words.

A missing or erroring craft skill degrades to the remaining ones and is recorded in the batch summary, never aborting the batch. If no craft skill is available, stop and report — there is nothing to rank.

A craft run whose summary carries an abstention (it examined zero candidate files — security-craft reports summary.abstention with counts.candidateFiles: 0) is recorded as abstained, never as a quiet target. An empty findings array from a run that looked at nothing says nothing about the code, and counting it as quiet would report a domain as clean that was never critiqued.

  1. Read the targets off output.clumps — never re-fold the findings by hand. Every craft skill emits a clumps block alongside its findings (packages/cli/src/shared/craft/findings/clumpable.ts), and the MCP tools serialize it whole, so the grouped view is already in the run output this phase reads. A target IS a clump: scope is one coherent scope (the directory the findings sit in), kind is the rubric family, i.e. exactly one craft domain, and members carries each member's id (code:path:line#ordinal) rather than a second copy of the finding — the finding itself is in the sibling findings array, and emitting it twice tripled the response an agent has to read — which is what makes the terminal act's one-PR-per-target rule mean "never two craft domains in one PR," the property that keeps bulk taste review tractable. Two domains over the same scope are two clumps, and therefore two targets.

Re-deriving the grouping in prose here is the specific failure this step exists to prevent: the formation rules — (scope × kind), the hard non-conflict precondition, maxPerClump, the solo rule, the cap on emitted units — are mechanical and already ran. Restating them in an agent's words produces a DIFFERENT grouping that still looks right, and nothing downstream can tell the two apart. A run whose output carries findings and no clumps is a gap to report, never a licence to fold by hand — harness fleet clump-dispatch refuses that input for the same reason (exit 14).

Take clumps.floored, clumps.overCap, clumps.ungraded and clumps.solo from the same block rather than recomputing them; item 3 below defines the floor the block already applied, and its counts are what CONFIRM reports. Two caveats are real and recorded rather than discovered later: a craft clump's scope and id are portable between clones except for a finding on a file outside the project root — seven of the eleven families put an absolute target.file on every finding, and craftPath relativizes it against the project root before the id is hashed, which is what makes two clones at different absolute roots publish the same id; a file outside that root has no portable form and keeps its absolute path, so an id derived from one must not be stored as if it travelled; and clumps.floored is advisory at this seam — a craft sweep is not an in-flight diff, so it carries no touched set and every sub-floor item resolves to 'file', never 'act'.

  1. Apply the noise floor. Drop, count, and never file or elevate any finding whose impact is small and which is additionally either tier: aspirational or confidence: low — that is, small ∧ (aspirational ∨ low). The grouping is stated explicitly because the rule must not be read as (small ∧ aspirational) ∨ low: a large-impact, low-confidence finding is exactly the kind of observation worth filing, and the wrong reading would silently discard it. Dropped findings are counted and reported, never silently discarded.
  1. Cross-check every target. Search open elevation PRs and already-filed quality items for one that already addresses this target. An already-addressed target is dropped and annotated citing the resolving PR or item, never re-elevated. A fleet whose output is half duplicates costs more attention than it saves, by exactly the route its noise floor was meant to close.
  1. Route every survivor mechanically — on the finding's own axes plus a surface rule, never on how bad the finding feels:

Route per finding, then re-form the targets by verdict. The routing rules read a finding, not a target, so a (scope, domain) pair whose findings split across verdicts never becomes a mixed target. It yields at most one elevate target and at most one file item for that same scope and domain, each carrying only its own findings; routed findings leave the pair entirely and are parked. That re-forming is what makes every downstream unit unambiguous — DISPATCH runs over one elevate target's findings plural, and VERIFY assigns exactly one verdict per emitted item. It also fixes the accounting: the caps count emitted items — elevation PRs and filed items — never findings.

  1. Enforce the caps after ranking. Default 20 filed items and 20 elevation PRs per batch, hard — counted in emitted items, per the re-forming rule above. The cap keeps the highest tier × impact and drops the rest as over-cap, reported with its count — never silently. The caps bound SELECT-time intake, so a target that later downgrades from elevate to file converts an already-budgeted elevation slot rather than adding new intake; a batch therefore never hands back more than the two caps together allow, whatever happens downstream.

The cap, not the floor, is the real guard. Filing opens a tracking issue per item, so an uncapped sweep is a tracker flood no five-cell floor rule can prevent: the surviving medium-confidence middle of the distribution is large and legitimately routes to file. The floor removes the obvious tail cheaply; claiming it prevents backlog spam would be overselling a five-cell rule against a twenty-seven-cell distribution.

  1. Score and order by tier × impact. Reuse harness-roadmap-pilot-style impact scoring so the ordering is principled and reproducible rather than a matter of which finding read most sharply. confidence is the routing axis and is deliberately not folded into the score. The 3-axis output model exists precisely because collapsing these axes destroys the information a reviewer needs to prioritize — a fleet that invented a second severity vocabulary would be re-collapsing them, and would drift from the catalogs it consumes.
  1. Build the Target record for each survivor:

```

Target {

domain, // exactly one craft domain

id, // target slug

scope, // the files / docs / specs it covers

findings, // each: runId, rubricId, location, tier, impact, confidence

score, // composite tier x impact

verdict, // "elevate" | "file" — uniform, per the re-forming rule

crossCheck, // "novel" | "already-addressed" + resolving PR/item

forks, // detected decision forks to surface at CONFIRM (may be empty)

}

```

And the Batch record that scopes the whole run, settled once at CONFIRM:

```

Batch {

domains, // the enabled craft domains

baseSha, // the pinned base SHA every target works against

floor, // the confirmed noise floor

caps, // the confirmed per-batch caps { elevate, file }

governor, // the confirmed concurrency (default 2, max ~3)

targets, // the confirmed targets, each with its verdict

}

```

Phase 2: CONFIRM — The Single Up-Front Human Gate `[checkpoint:human-verify]`

  1. Present the whole batch in one round. This is the only guaranteed human touchpoint before batch review — everything downstream runs autonomously. Present, together, in a single surface:
  1. Why the sample, and why here. Every sibling's CONFIRM presents a ranked batch; this one additionally presents verbatim findings, because taste does not generalize. Counts tell a human how much work is proposed; only a sample tells them whether this sweep's taste matches theirs, and that is the question on which the whole batch's value turns. It is also the cheapest possible place to discover a mismatch: disagreeing with the sample costs one conversation before fan-out, while discovering the same mismatch at review costs a batch of PRs plus all the machine time that produced them.
  1. The human approves, trims, disables domains, or re-tunes the floor — once. Batch approval, domain selection, the floor, and the caps all settle in this same gate. Front-loading the genuinely-ambiguous calls is what keeps the autonomous stretch from producing work the human would have declined. A domain the human switches off runs nowhere downstream; a floor the human raises applies to the whole batch.
  1. From here it is autonomous. After this gate the fleet does not pause per target. The only thing that re-surfaces before FILE-AND-REPORT is a target that hits a genuinely-unforeseen fork mid-flight, and that parks only that one target without blocking the batch. Under --dry-run the skill stops at the end of this phase; under --report-only it presents this surface and stops without dispatching, verifying, or filing.

Phase 3: DISPATCH — Worktree Fan-Out With a Concurrency Governor

The lane unit is a CLUMP, not a finding. SELECT read the targets off output.clumps (Phase 1, item 2), so a target IS a clump and the lane unit is that clump — not one finding per lane and not a regrouping of them. Run harness fleet clump-dispatch --input <run.json> over the confirmed clump set: it emits one PR plan per clump and refuses an input that carries no clumps block (exit 14) rather than quietly planning nothing. Each lane then honors the one-PR-per-clump contract — one branch, one PR, one commit per member, the title naming the clump and the body listing every member with its citation. Commit-per-member is not bookkeeping: it is what makes VERIFY's drop a one-commit revert instead of a re-run of the whole lane, which is the only thing that keeps bundling N findings from making one bad finding N times as expensive as it is today. A clump of one is just a target, and runs exactly as it always did. See docs/reference/fleet-family.md §The clumping floor and ADR 0135.

  1. One worktree-isolated subagent per confirmed elevate target. file targets require no fan-out at all — their critique is already complete and their terminal act is a filing, so dispatching them would spend machine time to produce nothing new.
  1. Each subagent runs the real harness-refactoring pipeline over its one target's cited findings: tests green before and after every change, harness validate plus harness check-deps per step, blast radius computed up front, one small change per commit, and that skill's own revert-if-the-refactoring-introduced-no-improvement rule. The subagent does not hand-edit and does not short-cut the pipeline — the step-granular commit trail the pipeline necessarily leaves behind is exactly what VERIFY checks for.

The anti-churn discipline this fleet needs is therefore already law inside the skill it composes, rather than a policy layered on top of a free-hand editor. Composing that skill also inherits its precondition, which is broader than the suite alone: it refuses to run against a failing suite and requires a baseline harness validate and harness check-deps that both pass before the first step. Elevation therefore assumes a clean baseline at the pinned base SHA on all three.

  1. The subagent runs no re-critique. That proof belongs to VERIFY and to VERIFY alone. The subagent's job ends at pushing a branch that carries its commit trail and its cited findings; anything it concluded about its own work is a claim, and a claim is not what the fleet's verdicts rest on.
  1. Downgrade rules. A target whose elevation turns out to need a structural change — cross-module reach, a contract or exported-identifier change, a module split, an abstraction redesign — downgrades itself to file and reports, rather than applying it. A target whose baseline is not clean at the pinned base — a red suite, or a failing harness validate, or a failing harness check-deps — takes the same path, since those three checks together are the elevation pipeline's entire safety net. A downgrade is a normal outcome, not a failure: the critique remains valid and still reaches the human as a filed item; only the autonomous rewrite is withheld.
  1. Cap concurrency at the confirmed governor (default 2, max ~3) and at the per-batch caps. This is the machine-storm limit: beyond roughly three concurrent elevation agents the compound load produces flaky failures indistinguishable from real ones — and in a fleet whose net-improvement proof is an already-noisy oracle, manufactured noise on top of it is uniquely corrosive. Never raise the cap to "go faster."
  1. Record an "assumptions made" note per target — the ranking basis it worked from, the routing call it inherited, the elevation scope it actually took, and what it deliberately left un-elevated. Bulk taste review is only trustworthy when the reviewer can see what was assumed and what was consciously not touched.
  1. Park the unforeseen. A target that hits a genuinely-unforeseen fork — the scope turns out to span two domains, a cited location no longer exists at the pinned base, the finding contradicts another the same run produced — parks that one target and reports it. The rest of the batch continues uninterrupted.
  1. Push-path caveat. A worktree created under a nested agent-config path breaks the local pre-push documentation gate: it self-excludes and scans zero files. Subagents push via the GitHub API or from a non-nested throwaway worktree. Never --no-verify — bypassing the gate defeats the verification the fleet's guarantees rest on.

Elevation Eligibility — Only a Surface the Test Suite Guards

The whole safety envelope of the elevation pipeline is the test suite plus harness check-deps: those are what make "behavior-preserving" a checkable claim rather than an assertion. That yields one rule, not eleven judgment calls — a surface is elevation-eligible only if it lives inside source the test suite exercises. The single exception is narrower, not looser: test files are the suite rather than exercised by it, so they qualify only under the assertion-freeze rule stated below the table.

| Craft domain | Elevation-eligible surface | Otherwise |

| ---------------------- | ------------------------------------------------------------------------------------ | ------------ |

| naming-craft | Non-exported local identifiers only | file |

| code-craft | Within-unit simplification and control-flow honesty, signature unchanged | file |

| copy-craft | Internal-facing prose only — code comments and internal log lines | file |

| test-craft | Test names and test-body clarity, every assertion expression byte-identical | file |

| docs-craft | Nothing — prose has no test suite to guard it | file |

| knowledge-craft | Nothing — prose has no test suite to guard it | file |

| spec-craft | Nothing — prose has no test suite to guard it; a ratified ADR is never edited at all | file |

| harness-design-craft | Nothing — no craft-driven write path exists | file |

| api-craft | Nothing — every surface it critiques is a published contract | file |

| cli-ergonomics-craft | Nothing — every surface it critiques is a published contract | file |

| security-craft | Nothing — never elevated | file / route |

Four of eleven domains clear the bar. The other seven are file-only, and each for a stated reason rather than caution in general.

The prose domains are cut deliberately — docs-craft, knowledge-craft, and spec-craft are the tempting case, because prose looks like the safest thing in a repository to improve. It is the opposite. No skill in the toolset applies prose-quality edits under a safety envelope, so elevating prose would mean free-hand rewriting text with no mechanical check that it did not make things worse — which is precisely the churn this member exists to avoid, dressed as the easy win. A ratified ADR is additionally out of bounds on its own terms: it is a historical record of a decision, not a document to be improved, and editing one rewrites the past.

Published contracts are never elevated. api-craft and cli-ergonomics-craft critique published contracts by definition, so renaming a flag or an endpoint is a breaking change wearing a quality argument. security-craft is never auto-applied, because a wrong "improvement" to security posture is worse than the mediocrity it replaced, and posture is exactly the kind of judgment whose failure mode is silent. harness-design-craft has no reachable write path — its own polish phase emits before-and-after sketches and never modifies source, and the rule-based design-drift remediation path consumes drift findings that carry no craft runId or rubricId, so wiring it in would require inventing the finding translation the Iron Law exists to forbid.

copy-craft's narrowing establishes the general principle: routing follows the surface, not the skill that surfaced the finding. An error message and a CLI output string are the same bytes on the user's screen whether copy-craft or cli-ergonomics-craft found them, so they get the same treatment — filed, because user-facing output is an observable contract and no contract-touching change is ever elevated regardless of which domain raised it. What stays eligible is genuinely internal: code comments, which cannot alter behavior at all and are therefore the safest edit in the repository, and internal log lines, which are diagnostic output no consumer depends on. This shrinks the elevation surface; that is the direction this member is designed to err in.

test-craft's narrowing breaks a circularity. The elevation pipeline proves behavior preservation with the test suite, so elevating tests is circular unless the change provably cannot alter what the suite checks. The rule that breaks the circle is mechanical: every assertion expression must be byte-identical before and after, the passing-test count must be unchanged, and the set of passing test IDs may differ only by the renames the elevation itself applied — a rename changes a test's ID by construction, so freezing the ID set outright would forbid the very change this row exists to permit. Renaming a test or clarifying its arrange/act body qualifies. Sharpening an assertion does not: that changes what is asserted, which is a real improvement and a file, not an elevation.

Worker handoff — return the canonical FleetHandoffRecord. When a worker finishes its target 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.

Phase 4: VERIFY — Three Independent Proofs, Never Self-Report

One verdict per clump (D10). VERIFY assigns exactly ONE verdict to a clump — never one per member, and never a whole-clump failure for one bad member. A member that fails this phase's standard is dropped by reverting its own commit, and the clump proceeds with the rest, recording the drop and its reason. The clump fails only when the post-drop remainder is empty or no longer builds; a post-drop build that was not run is not a green one, and settles as a failure for want of proof, exactly as a re-critique that could not run at all is a rejection rather than a pass. Settle it with harness fleet clump-dispatch --input <run.json> --verdict <outcomes.json> --post-drop-build <green|red|unknown>, which exits 13 on a failed clump and refuses a clump nobody reported outcomes for. A verdict read off the pretty output without its exit code is a claim, not a check.

  1. Why three proofs and not one. No single artifact covers this fleet's two distinct risks. One risk is an agent applying its own taste — a change no critique asked for, which a clean commit trail and a green suite would both wave through. The other is an elevation that makes things worse — a change a real finding did ask for, applied so that it trades the cited problem for a new one, which a cite and a trail would in turn both wave through. Each proof closes what the others leave open, so VERIFY checks all three, independently, for every elevation — the file tier is verified here too, but to the narrower standard stated below, because it never produced a branch to check. Never accept a subagent's self-report: "cited it, elevated it, re-critiqued it clean" is a claim to be checked, not a result.
  1. Critique provenance — the change was asked for. Every changed location maps to a cited finding from a real craft-skill run (runId + rubricId + location). A changed location that maps to no finding is the orchestrator's own taste and is rejected, however good it looks. That last clause is load-bearing: a taste-driven fleet's most attractive failure is the improvement nobody requested, and it is attractive precisely because it does look good.
  1. Elevation provenance — the real pipeline ran. Confirm the step-granular harness-refactoring commit trail on the branch: one small change per commit, suite green throughout. Absent trail = the real pipeline did not run = rejected, however well the final diff reads. A hand-applied patch that happens to match a cited finding proves nothing about the safety envelope it skipped.
  1. Net-improvement evidence — the change helped. Re-run the same craft skill over the changed scope on the branch and require both halves: the cited findings are resolved, _and_ no new finding at equal-or-higher tier was introduced. Tier ordering is the craft catalogs' own — foundational outranks polish, which outranks aspirational — so "equal-or-higher" is evaluated mechanically rather than by feel. A re-critique that trades one finding for another is style-thrash, not elevation, and it does not ship.
  1. The oracle is non-deterministic, and the protocol says so. A re-critique is an LLM call: two runs over identical code can disagree, so a single run can both falsely reject a good elevation and falsely accept a bad one. The answer is a two-run protocol biased conservative on both sides:

A re-critique that cannot run at all — no provider configured, a budget-exceeded prompt collection, an erroring skill — is a different case with a deliberately different outcome. It produces no proof, so by the same rule that rejects a missing commit trail the item is rejected and retried once, an unavailable provider usually being transient. The distinction is not fussiness: a re-critique that never ran leaves nothing to re-examine, while one that ran and split has already produced its reading — enough to justify filing the critique, never enough to justify shipping the rewrite.

Two runs rather than three is a deliberate cost call — craft skills bill per LLM call and this fleet runs eleven of them across a repository — and downgrade-not-discard is what makes the cheaper protocol safe: an inconclusive oracle costs the batch a filed item, never a bad merge.

  1. VERIFY owns both runs; the DISPATCH subagent runs none. A subagent that re-critiques its own branch and reports the outcome leaves the orchestrator reading a claim rather than checking a proof — exactly what the family's never-self-report invariant forbids. Having both the subagent and VERIFY re-run would satisfy the invariant at four runs per item. Concentrating both runs here keeps the total at two _and_ makes them independent, so the cost argument and the invariant are satisfied by the same choice instead of traded against each other.
  1. Plus behavior preservation and CI. The passing-test count does not decrease; no public-API or observable-contract change is present; CI is green on all target operating systems plus the project's required checks. Green on one OS is not green. Base freshness (spine clause): all-OS green is trusted as verified only when it ran against current main — the branch is up to date with main, or branch protection enforces strict / up-to-date-before-merge. Green gathered against a base that main has since moved past is stale: downgrade the elevation to degraded, not verified, and report the stale tested base SHA vs current main (classifyBaseFreshness; docs/reference/fleet-family.md § _Base freshness_). These, like the three proofs above, are elevation checks.
  1. The file tier is verified too — to its own, narrower standard. A file item never enters DISPATCH, so it has no branch, no commit trail, no re-critique, and no CI: four of the checks above have nothing to read. verified-filing therefore requires exactly two things — critique provenance, the cite resolving to a real craft-skill run (runId + rubricId + location) exactly as an elevation's must, and the cross-check, confirming at verification time that the target is still not already addressed by an open elevation PR or an existing filed item. An item failing either is rejected rather than filed. Those are the only two claims a filing actually makes, and a stale cite or a duplicate filing costs the human precisely the attention this fleet exists to save.
  1. Assign exactly one verdict per item: verified-elevation, verified-filing, routed, downgraded, or rejected. A rejected item is retried once; still failing, it is reported as rejected with its reason and the batch continues. Degradation never reaches VERIFY. A missing craft skill degrades in SELECT and a structural discovery downgrades in DISPATCH, but a proof that this phase's standard for that item's tier demands and that cannot be produced is a rejection, not a graceful skip. The asymmetry is the point: the earlier phases can afford to lose coverage, and this one cannot afford to lose rigor.

Phase 5: FILE-AND-REPORT — Tiered Dual Terminal Act, Never Merge

  1. One elevation PR per verified (target, craft domain) — never one per finding, never mixed across domains — each carrying its cited findings and its assumptions-made note. Never merged. The granularity is chosen, not inherited: one-PR-per-item is right when each item is a distinct defect, but forty naming fixes as forty PRs is a denial-of-service on review, and forty mixed fixes in one PR forces the reviewer to switch judgment modes line by line. Homogeneous batching gives the reviewer one kind of taste question at a time over one coherent scope, which is the only shape in which bulk taste review is actually tractable. Landing the batch is the human's call, optionally via pr-fleet.
  1. File each verified file item as a roadmap item — including every target downgraded from elevate, whose critique remains valid even though its rewrite was withheld. Each filed item carries its cite, rubric, and location, so the eventual builder acts on the original judgment instead of re-deriving a critique that has already been paid for once. The orchestrator writes each filed item's "assumptions made" note here, from SELECT's routing basis: the ranking basis that ordered it, the routing call that split it, and why it was filed rather than elevated. A downgraded target arrives carrying the note its subagent already wrote in DISPATCH; a pure-file item never had a subagent, so this is the phase that produces its note.
  1. Park-and-hand-back the routed findings. A correctness candidate is handed back as a seed candidate for the correctness queue — proving a defect requires a reproduction, and this member has no machinery for one. A genuine security vulnerability goes privately to the human and is never opened as a public item: filing a security finding publicly _is_ disclosure, and this fleet has no disclosure machinery, no severity rating, and no embargo. Ordinary security-craft posture findings that are not vulnerabilities take the file path like any other file-only domain.
  1. Emit a one-row-per-item batch summary for bulk review:

| Item | Target | Domain | Verdict | PR / Filed item | Cite | Assumptions made |

| ---- | ------ | ------ | ------- | --------------- | ---- | ---------------- |

Alongside the table, report every non-item outcome with its count and its reason: dropped-by-noise-floor findings, over-cap findings shed after ranking, downgraded targets with their downgrade reason, cross-check drops each citing its resolving PR or item, routed findings, quiet targets, and abstained craft runs. Quiet targets are reported as quiet — a valid outcome, not a failure; abstained runs are reported as abstained with their reason — they looked at nothing, so they are neither quiet nor clean.

  1. Under --file-only, every elevate target files instead. No branch is pushed and no PR is opened: each elevate-routed target converts its already-budgeted elevation slot into a filed item, exactly as a downgrade does, so the combined total still never exceeds what the two caps allow. Because no branch exists, no commit trail, no re-critique, and no CI apply — those items are verified to the verified-filing standard, cite plus cross-check, like any other filing.
  1. Degrade gracefully in SELECT and DISPATCH only. A missing or erroring craft skill, a target that downgraded, or one target's failed elevation is reported while the batch continues. One bad target never sinks the batch, and a batch of filings with no elevations is a perfectly good batch.

Harness Integration

Success Criteria

Gates

Escalation

Rationalizations to Reject

| Rationalization | Reality |

| ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |

| "The finding is obviously right — applying it without chasing down the cite is bookkeeping" | The cite is the whole bar. Without a runId + rubricId + location the change is the orchestrator's taste wearing a craft skill's name, and the cited-finding Gate rejects it however good it looks. |

| "This doc reads badly and a prose rewrite cannot break anything — elevate it" | Prose has no test suite, so "did not make it worse" is unprovable here. No skill applies prose-quality edits under a safety envelope; prose domains are file-only, and a ratified ADR is never edited. |

| "The re-critique came back clean on the first run; a second run is a waste of budget" | The oracle is an LLM call and a single run falsely accepts as readily as it falsely rejects. Resolved requires absence from both runs — one clean run is a reading, not a proof. |

| "The two runs disagreed, so throw the item out" | Disagreement unproves the rewrite, not the critique. The item downgrades to file carrying its original cite; discarding it would throw away judgment that was already paid for. |

| "The subagent already re-critiqued its own branch and reported it net better" | That is a self-report, which the family invariant never accepts. VERIFY runs both re-critiques itself — that is what keeps the total at two runs and makes them independent at the same time. |

| "It is only a flag name / an exported symbol, and the tests still pass" | A green suite does not make a contract change safe; it means the suite does not encode the contract. Exported identifiers and published surfaces are filed, always — never elevated. |

| "This craft finding is really a bug — while I am in the file I will fix it" | Proving a defect needs a reproduction, and this fleet has no machinery for one. It is routed: parked and handed back as a seed candidate for the correctness queue, never patched in passing. |

| "Forty naming fixes in one PR is less work for the reviewer than forty PRs" | Both are wrong, which is why the rule is one PR per target. Forty PRs is a denial-of-service on review; one mixed PR makes the reviewer switch judgment modes line by line. |

| "The target came back quiet — find something so the sweep does not look wasted" | A quiet target is a valid result: it says the ceiling is already reached there. With no repro to fail and no detector to stay red, the only thing preventing an invented batch is this rule. |

| "I sharpened the assertion while renaming the test — it is strictly better now" | Sharpening an assertion changes what the suite checks, which breaks the byte-identical-assertion rule that made test elevation non-circular. It is a genuine improvement and it is a file. |

Red Flags

| Flag | Corrective Action |

| ---------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- |

| "I will mark it verified from the subagent's net-better report" | STOP. Run both re-critiques in VERIFY and check the cite and the commit trail yourself. A report is a claim; the fleet's verdicts rest on proofs. |

| "The re-critique could not run, but the diff looks like a clear improvement" | STOP. No proof means rejection, retried once. "Looks like an improvement" is exactly the judgment the two-run protocol exists to replace. |

| "This exported identifier rename is obviously better and the suite is green" | STOP. That is a contract change. File it with its cite; the elevate boundary is mechanical and a green suite is not a contract check. |

| "I have a clean security-craft finding — file it so it gets attention" | STOP. Never auto-apply it, and never open it publicly if it is a real vulnerability — public filing is disclosure. Hand it to the human privately. |

| "The pre-push gate is failing in this worktree — I will --no-verify" | STOP. Never bypass. Push via the GitHub API or a non-nested throwaway worktree; that gate is part of the verification the fleet's guarantees rest on. |

Examples

Example: A thirty-eight-target ceiling sweep

$ harness skill run craft-fleet --concurrency 2

Phase 1: SELECT
  Craft domains enabled: 11 of 11 (all available, none errored)
  Composed findings: 214, each carrying runId + rubricId + location
  Noise floor  small AND (aspirational OR low)  -> 96 dropped and counted
  Folded 118 survivors into 38 (scope, domain) targets
  Cross-check vs open elevation PRs / filed items -> 3 already-addressed, dropped
                                                     with the resolving PR cited
  Routed 2 -> 1 correctness candidate, 1 security vulnerability
  Routing the remaining 33 -> 9 elevate, 24 file
  Ranked by tier x impact (roadmap-pilot scoring); caps applied after ranking
  Caps 20 elevate / 20 file -> 4 file items shed as over-cap, reported with count
  Quiet: 5 scopes critiqued with nothing above the floor

Phase 2: CONFIRM  [checkpoint:human-verify]
  Domains presented (11), ranked batch presented (9 elevate / 20 file).
  Taste-calibration sample: 6 verbatim findings, 3 elevate + 3 file.
  Noise floor and caps shown with their drop counts, both re-tunable here.
  Pinned base SHA: a71c3e0. Concurrency: 2.
  Human disables knowledge-craft (-2 filed) and trims 1 elevate target.
  Approved batch = 8 elevate + 18 file.

Phase 3: DISPATCH (governor = 2)
  auth-session-naming   naming-craft  -> branch pushed, 4-commit trail
  retry-control-flow    code-craft    -> branch pushed, 3-commit trail
  sync-comments         copy-craft    -> branch pushed, 2-commit trail
  export-test-names     test-craft    -> branch pushed, 5-commit trail
  parser-local-names    naming-craft  -> branch pushed, 2-commit trail
  queue-log-lines       copy-craft    -> branch pushed, 2-commit trail
  ledger-guard-clauses  code-craft    -> branch pushed, 3-commit trail
  billing-abstraction   code-craft    -> DOWNGRADED to file (needs a module split)
  No subagent ran a re-critique.

Phase 4: VERIFY (independent — both re-critique runs executed here)
  auth-session-naming   cites OK; trail OK; runs A+B both clean; suite green;
                        CI green 3 OS -> verified-elevation
  sync-comments         cites OK; trail OK; runs A+B both clean -> verified-elevation
  export-test-names     assertions byte-identical; passing count unchanged; IDs
                        differ only by the applied renames; A+B clean
                        -> verified-elevation
  parser-local-names    cites OK; trail OK; A+B clean -> verified-elevation
  queue-log-lines       cites OK; trail OK; A+B clean -> verified-elevation
  retry-control-flow    run A: cited finding resolved. run B: still reports it.
                        Runs disagree -> not proven -> DOWNGRADED to file
  ledger-guard-clauses  1 changed location maps to no cited finding
                        -> REJECTED (retried once, same) — orchestrator's own taste

Phase 5: FILE-AND-REPORT
  Batch summary — one row per item; excerpt shown:
  | Item                 | Target               | Domain       | Verdict            | PR / Filed item | Cite                | Assumptions made              |
  | -------------------- | -------------------- | ------------ | ------------------ | --------------- | ------------------- | ----------------------------- |
  | local name clarity   | auth-session-naming  | naming-craft | verified-elevation | PR link         | run + rubric + loc  | non-exported identifiers only |
  | comment accuracy     | sync-comments        | copy-craft   | verified-elevation | PR link         | run + rubric + loc  | internal prose only           |
  | test-name clarity    | export-test-names    | test-craft   | verified-elevation | PR link         | run + rubric + loc  | assertions frozen             |
  | endpoint naming      | billing-api-surface  | api-craft    | verified-filing    | filed item      | run + rubric + loc  | filed: published contract     |
  | control-flow honesty | retry-control-flow   | code-craft   | downgraded         | filed item      | run + rubric + loc  | runs split; rewrite withheld  |
  | abstraction redesign | billing-abstraction  | code-craft   | downgraded         | filed item      | run + rubric + loc  | module split -> structural    |
  | guard-clause tidy    | ledger-guard-clauses | code-craft   | rejected           | —               | (uncited location)  | no cite for 1 changed line    |
  5 elevation PRs opened, one per (target, domain). Never merged.
  20 filed items = 18 confirmed file + 2 downgrades (converted elevate slots).
  Routed 2: correctness candidate seeded to the correctness queue; security
  vulnerability handed to the human privately, not filed.
  Dropped by noise floor 96. Over-cap 4. Cross-check drops 3 (cited).
  Quiet targets 5 — reported as quiet, a valid outcome.

Example: Two re-critique runs disagree

A subagent returns a code-craft elevation on retry-control-flow with a clean 3-commit trail and a green suite. VERIFY runs the re-critique twice over the changed scope on the branch: the first run reports the cited finding resolved, the second still sees it. Under the two-run protocol a finding counts as resolved only when it is absent from both runs, so the elevation is not proven.

It is not discarded either. The original critique is untouched by the disagreement — something was worth changing there, and the craft skill said so under a real runId. The item therefore downgrades to file, carrying its original cite, rubric, and location to the roadmap item so the eventual builder starts from the judgment rather than re-deriving it. The rewrite is withheld, the critique is preserved, and the reviewer's attention is spent on nothing at all — which is precisely the trade the cheaper two-run protocol was chosen to make.

Test Scenarios

Scenario 1: Gate — a change with no cited finding is applied because it "obviously improves" the code

A dispatch subagent tidies a guard clause adjacent to its target's cited findings. The diff is smaller, the suite is green, and the commit trail is clean, but that one changed location maps to no finding from any craft-skill run. Expected: the no rewrite without a cited craft finding Gate rejects the item as the orchestrator's own taste, however good the diff looks; it is retried once and then reported as rejected. The "the finding is obviously right — chasing the cite is bookkeeping" rationalization is the failure this scenario guards against, and note that the attractive diff is what makes it dangerous rather than what excuses it.

Scenario 2: Gate — a single clean re-critique run is accepted as net-improvement proof

VERIFY runs the re-critique once, sees the cited findings gone, and marks the item verified to save budget. Expected: the two-run net-improvement Gate refuses it — a cited finding is resolved only if it is absent from both runs, because one LLM call falsely accepts as readily as it falsely rejects. Separately and distinctly: a re-critique that could not run at all (no provider, exhausted budget, erroring skill) is a rejection retried once, not a pass and not a downgrade — it produced no reading to re-examine, whereas two runs that split already produced theirs.

Scenario 3: Gate — a `copy-craft` finding on a user-facing error message is elevated

copy-craft surfaces a genuinely poor error message with confidence: high, and the change is one line inside source the suite exercises. Expected: the never elevate user-facing output Gate files it instead. Routing follows the surface, not the skill that surfaced the finding: those bytes are an observable contract, so they are filed on exactly the same terms as a cli-ergonomics-craft finding on the same string. Only internal-facing prose — code comments and internal log lines — remains elevation-eligible under copy-craft.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.