Quality Pipelines

A change takes one of three quality pipelines: feature, bug or refactor. Each puts independent review between the author and the result. Read this page to know which command to type, what a run does and when it stops. The facts are on the reference page.

  1. OrchestratorPlan

    Design brief, fix plan or safety net

    PLAN
  2. VerifiersAttack the plan

    Independent lenses try to refute it

    SOUND
  3. ApproverApprove

    The feature pipeline asks before any code

    APPROVED
  4. Coding agentsBuild with tests

    Production code and tests together

    GREEN
  5. VerifiersAttack the diff

    Lenses and the test adversary

    SOUND
  6. OrchestratorReport

    Files, tests, rounds, run-cost

    DONE

Choosing the entry point

The kind of work decides the command. Type the command in the session of the repository.

Claude Code
/ft-dev DEV-1234 /ft-fix DEV-1234 /ft-refactor <class or package>
WorkEntry pointWhat you typeNotes
A new feature, or a code addition/ft-dev (skill ft-dev, agent ft-developer)/ft-dev DEV-1234 or /ft-dev <feature description>The skill is a thin shim. The agent owns the pipeline.
A MAJOR or CRITICAL bug/ft-fix (skill ft-fix)/ft-fix DEV-1234To keep its own context small, the main loop hands the run to ONE ft-fix-host agent. The host invokes the skill and acts as the orchestrator.
A MINOR bugbugfix-agent directlyStart bugfix-agent with DEV-1234 and the word MINOR in the briefThe agent recommends ft-fix when its own severity is MAJOR or CRITICAL.
A refactor with unchanged behavior/ft-refactor (agent refactor-agent)/ft-refactor <class or package>A behavior change goes to ft-developer. A bug goes to bugfix-agent.
A change to an existing screen, with no new dataft-ui-ux-designStart ft-ui-ux-design with the repository, the paths, the app URL and the routeSee UI/UX Work.
A small change with no design choice in itbugfix-agent with the word MINOR in the brief, or the stack's coding agent when the edit is purely mechanicalName the file and the changeWording, a path, a one-line config. See the rule below the table.
A small addition that follows an existing pattern/ft-dev, which grades it simple-addition/ft-dev <description>New behavior of about 50 lines in about 3 files. It takes a mini-plan, the approval gate and a lightweight review.
A trivial, fully scoped mechanical editThe matching coding agent, or the main loopName the file and the changeA rename, a one-line constant, a typo. When in doubt, use the orchestrator.

The rule for the two small routes

No design choice

Nothing is left to decide

No design pass is worth its cost. Send it to bugfix-agent as MINOR or to the coding agent.

New behavior, existing pattern

The plan still needs a confirm

Send it to /ft-dev. ft-developer then grades it simple-addition.

One question separates the two small routes: does the change contain a design choice?

Severity of a bug

The bugfix agent assigns the severity (MINOR, MAJOR or CRITICAL) when it analyses the bug. The severity sets the run-cost budget and the width of checkpoint 1.

CRITICAL
Production is down, data is lost, or it is a vulnerability.
MAJOR
A main function is broken and there is no workaround.
MINOR
Everything else, a workaround exists.
No human in the ft-fix-host session

ft-fix-host has no human in the session. When the skill would ask you, the host ends its run with the question and the journal path. The caller answers by continuing the host.

The feature pipeline

ft-developer grades the task first. The grade sets the depth and the run-cost budget, never the approval gate.

  1. 1

    Prepare

    Preflight checks the tools. Triage grades the task. Elicitation asks every blocking question.

    Orchestrator
  2. 2

    Design

    A design brief, or a short mini-plan for the lighter grades. Architecture-led work gets attacked by the lenses (checkpoint D).

    Orchestrator and verifiers
  3. 3

    Approve

    The approver approves the plan. No production code starts before this.

    Approver
  4. 4

    Build

    Coding agents write code and tests in small units. The baseline gate, the test adversary and the diff review follow.

    Coding agents and verifiers
  5. 5

    Finish

    Docs when the repository has a portal, then the report and the commit.

    Orchestrator
The feature pipeline from preflight to report. Checkpoint D runs only for architecture-led work. Checkpoint F replaces the lightweight code review for runs that entered as architecture-led.
The feature pipeline from preflight to report. Checkpoint D runs only for architecture-led work. Checkpoint F replaces the lightweight code review for runs that entered as architecture-led.
Where a person decides

The approver is the person who runs the session (see the Glossary). The approval gate runs at every grade. A nested ft-developer never approves for the approver. It returns NEEDS_USER. The grades, the budgets and the ten stages are in the reference. On an architecture-led task with a release tag reachable from the starting branch, ft-sdd also writes the human SDD after checkpoint D. If its checks pass, one answer approves the design brief and the human SDD. If a check fails, the gate does not present the human SDD. The approver decides to proceed on the design brief or to stop. See The human SDD.

The bugfix pipeline

ft-fix is a thin orchestrator over bugfix-agent. The agent owns the fix methodology. The verifier agent owns the review methodology. The skill adds a capability preflight and independent, fresh-context review at two checkpoints.

The bugfix pipeline. A ticket can end after analysis with a report, or hand off to ft-developer as a feature.
The bugfix pipeline. A ticket can end after analysis with a report, or hand off to ft-developer as a feature.
  1. 1

    Analyse, write no code

    bugfix-agent finds the root cause and gives it a class. A ticket can end here, with a report and a ready comment for the ticket.

    Bugfix agent
  2. 2

    Attack the fix plan

    Independent lenses try to refute the plan (checkpoint 1).

    Verifiers
  3. 3

    Repro first, then fix

    The repro test must fail before the first production edit (Gate A). Then comes the fix, with a sweep for siblings and a permanent guard against the bug class.

    Bugfix agent
  4. 4

    Attack the tests and the diff

    The test adversary attacks the tests, then the lenses attack the diff (checkpoint 2). One lens re-runs the tests.

    Verifiers
  5. 5

    Report

    Docs only if the fix changed documented behavior. The report adds the rounds, the run-cost and the bounds.

    Orchestrator

Ends earlyA ticket does not always end in a fix

  • No code is written when the bug is a false positive, intentional, not reproducible or already better locally.
  • A feature-sized fix, for example one that needs a new table, stops the pipeline. bugfix-agent hands a diagnosis dossier to ft-developer.

The classes, the stage table, the sweep rules and the budgets are in the reference.

The refactor pipeline

refactor-agent is its own orchestrator. It puts a safety net before the first edit.

The agent pins the observable behavior with tests that are green on the unchanged code. It proves the net can fail. Then it changes the code in small verified steps and runs a verification gate. The six steps and the classifications are in the reference.

No safety net, no refactor

If behavior cannot be pinned by any test or observation, the agent does not refactor blind. It reports BLOCKED_NO_SAFETY_NET. A needed behavior change is a handoff, not part of the refactor.

Who reviews, and who decides

The verifier agent attacks one lens per invocation. Its mission is to refute the artifact. An artifact that survives a genuine attempt gets SOUND.

  • A core that always runs

    Every checkpoint has a mandatory core of lenses. No grade, severity or flag removes it. Other lenses run when their trigger fires. One named exception applies to ft-acs-qa port lanes. See the port-lane profile. See the lens roster.
  • Four verdicts

    A lens returns SOUND, REFUTED, NEEDS_EVIDENCE or NEEDS_HUMAN. See the verdicts.
  • A test adversary

    ft-test-adversary tries to prove that the tests are insufficient. It is read-only and runs nothing. See the seven attacks.
  • A person decides at two points

    The approver approves the plan before any code. A NEEDS_HUMAN verdict is a question only a person can answer. At checkpoint D it joins the approval gate. Elsewhere it goes to the approver.
  • Rounds are capped

    A loop of review rounds stops when it makes no progress. The run then escalates. See rounds and repetition.

What stops a run

A run stops and hands over when a signal fires. Economy may never remove the last independent reviewer.

  • The bug is really a feature

    SCOPE_IS_FEATURE ends the bugfix pipeline and starts the feature pipeline with a dossier.
  • The plan is wrong

    PLAN_INVALIDATED means that the repository contradicts the approved plan. The run returns to the design.
  • A file is out of zone

    SCOPE_BREACH means that a sub-agent needs a file outside its declared writes: set.
  • Only a person can answer

    NEEDS_USER and BLOCKED go up to the parent agent, which relays the question.
  • The ruling is too hard

    CLIMB: opus asks the caller to relaunch ft-fix-host on a stronger model.
  • The invariant

    No route and no flag may drop a core lens. If the verifier is unavailable, the report says "self-check only". See the invariant.
Every stop leaves a handoff

Every stop writes a ## HANDOFF block to the run journal: the state, what is proven, what is open, a resume: command and a recovery: list. The table of signals is in the reference.

Related pages

Facts, model, cost, hooks and design method live on their own pages.

Model and costDispatch Economy
Hooks and filesAgent Harness
Edit the verifier or the test adversary: Contributing