Ways of Working

Design-first writes a design brief before code. Test-first writes a failing test before code. Agentic is the engine that runs both: ft-developer for features, ft-fix or bugfix-agent for bugs, refactor-agent for cleanup. Read this page to pick the way for a task. Quality Pipelines defines the grades and gates.

How the engine runs both ways

Agentic is not a third way. It writes nothing of its own: the standard, the skills and the gates are its contract. Choose a scenario and watch one task travel.

Skip the map

You decide

  • You, the approverThe approver is the person who runs the session. You answer the blocking questions and approve the plan.

The grade

  • JevThe decision model grades the task first. If Jev is not sure, ft-developer grades the task itself.

The plan

  • design briefThe one-page design of an architecture-led task. You approve it before code.
  • mini-plan3 to 5 lines for a TDD-led or simple-addition task: goal, files, approach, test names, assumptions.

The orchestrator

  • ft-developerIt detects the repository and grades the task. It delegates the code and verifies behind the gates.It never types the code itself. It delegates to the coding agent of the stack. You start it with /ft-dev, and the skill only launches the agent.

The gate on the tests

  • baseline gateThe test command runs once before any edit. Pass means no new failure against that run.

The result

  • docs and reportThe docs, when the repository has a portal, then the report. The report names files, tests and rounds.

They build

  • coding agentIt returns code and tests together. It can also return PLAN_INVALIDATED.
  • standard skillThe coding agent enforces the ft-*-standards skill of its stack.A stack with no standard goes to ft-coding-agent. That agent follows the conventions of the repository and declares the missing standard in its report.

They attack

  • verifier lensesIndependent reviewers attack the design brief at checkpoint D and the diff at checkpoint F. Architecture-led only.
  • ft-test-adversaryAfter green, it tries to prove the tests insufficient. Every grade passes it.
  • /code-reviewThe lightweight review of the diff, for a run that entered as TDD-led or simple-addition.
  • ft-architecture-auditThe read-only check against the standard, with file:line. A non-trivial slice of the lighter grades gets it.On an architecture-led run, it can serve as the conformance lens and joins the checkpoint F batch.

Blue: you and the plan. Orange: the orchestrator. Purple: the agents. Choose a scenario, or select an element to read about it.

Design-first: a new feature

  1. You type /ft-dev with a feature, a ticket or an idea.
  2. Jev grades the task first. The grade is architecture-led.
  3. ft-developer asks every blocking question before design. A safe default becomes a recorded assumption.
  4. It writes the design brief, with at least two approaches. It records why it rejected the others.
  5. Checkpoint D. The verifier lenses attack the design brief.
  6. You read the verified design brief and what the verification caught.
  7. You approve. No production code starts before this answer.
  8. A coding agent implements the approved design brief.
  9. The coding agent enforces the standard of its stack.
  10. It returns code and tests together.
  11. Baseline gate: no new failure against the run from before the first edit.
  12. The test adversary tries to prove the tests insufficient.
  13. Checkpoint F. The verifier lenses attack the diff.
  14. ft-developer delivers the docs and the report.
  15. The report reaches you.

Test-first: one business rule

  1. You type /ft-dev with one business rule.
  2. Jev grades the task first. The grade is TDD-led: the failing test is the spec.
  3. ft-developer asks every blocking question. A safe default becomes a recorded assumption.
  4. It writes a mini-plan of 3 to 5 lines. A TDD-led task has no design brief.
  5. You read the mini-plan and get one quick confirm question.
  6. You confirm. The approval gate holds for this grade too.
  7. The brief tells the coding agent to write the failing test first.
  8. RED, GREEN, REFACTOR, under the standard of its stack.
  9. It returns code and tests together.
  10. Baseline gate: no new failure against the run from before the first edit.
  11. The test adversary tries to prove the tests insufficient.
  12. /code-review runs on the diff. This grade has no checkpoint D and no checkpoint F.
  13. A non-trivial slice also gets ft-architecture-audit.
  14. ft-developer delivers the docs and the report.

A small addition

  1. You type /ft-dev with an addition that follows an existing pattern.
  2. The grade is simple-addition: about 50 lines in about 3 files.
  3. The mini-plan carries the grade budget.
  4. You read the mini-plan and get one quick confirm question.
  5. You confirm.
  6. The coding agent gets the budget and the overrun rule.
  7. Tests ship with the code. The agent files name no build order for this grade.
  8. Baseline gate.
  9. Test adversary.
  10. /code-review on the diff.
  11. ft-developer delivers the docs and the report.

The repository contradicts the plan

  1. The coding agent returns PLAN_INVALIDATED with its evidence. A simple-addition run over its budget returns the same status.
  2. ft-developer returns to design with the new evidence. A busted budget also gets a new grade, usually architecture-led.
  3. A material change re-runs the affected lenses.
  4. A material change also runs the approval gate again.
  5. You approve the changed plan.
  6. The build continues on the new plan.

The tests are not enough

  1. The coding agent reports green. The test adversary starts.
  2. It returns each missing or weak test as a precise brief.
  3. ft-developer sends each brief to the coding agent.
  4. The new tests return.
  5. The test adversary runs again on the new tests.
  6. The loop stops after 2 rounds with no new accepted finding, or at 5 rounds.
  7. An attack still standing is named in the report as a residual gap.

How the parts connect

  • You start the run, answer the blocking questions and give the approval.
  • ft-developer asks Jev for the grade.
  • ft-developer writes the plan of the grade.
  • You read the plan at the approval gate.
  • The verifier lenses attack the design brief.
  • ft-developer delegates the approved plan.
  • The coding agent enforces the standard skill.
  • ft-developer compares the test run with the baseline.
  • ft-developer sends the tests and the diff to independent review.
  • ft-developer delivers the docs and the report.
  • The report reaches you.

Which way fits my task?

Answer the three questions in order. The answer gives a grade: the class of a feature task. The decision model Jev grades first. If Jev is not sure, ft-developer grades, and in doubt it takes the higher grade.

  1. 1. Is there a design choice in it?

    Wording, a path and a one-line config have none.
    • NONo grade. Send it to bugfix-agent as MINOR, or to the coding agent of the stack.
    • YESGo to question 2.
  2. 2. Can a failing test state the requirement?

    The behavior is known and well bounded. A yes here wins over question 3.
    • YESTDD-led. Test-first.
    • NOGo to question 3.
  3. 3. Is it small, with no new surface?

    One stack, about 50 lines, about 3 files.
    • YESsimple-addition. A mini-plan.
    • NOarchitecture-led. Design-first.

Find your situation, then open its row

A new feature, module or endpoint → architecture-led

Use design-first. A new endpoint is always architecture-led, also when it is small.

A cross-cutting change, or a change to a contract or a schema → architecture-led

The same grade covers the data model, the protocol surface and security. It also covers work with unknowns.

One business rule, or a protocol message with a known spec → TDD-led

Bug-shaped work takes this grade too. If simple-addition also matches, TDD-led wins: the failing test is worth more than the lighter path.

A small addition that follows an existing pattern → simple-addition

It goes through /ft-dev. It needs one stack, about 50 lines, about 3 files and no migration. It also needs no new module, table, wire contract, protocol or security surface. The size is a prediction. An overrun returns PLAN_INVALIDATED and a new grade.

A new nullable column, or a changed type or nullability of one column → simple-addition

This holds with no new table, wire contract field or data rewrite. These make it architecture-led: a contract field, a backfill or an UPDATE, a key or index on a hot table. A second column or table, or unclear MySQL and Oracle portability, does the same.

Wording, a path, a one-line config → no grade

No design choice means no grade. See Choosing the entry point.

A bug → /ft-fix or bugfix-agent

Bug fixes are test-first by rule: a failing repro test comes before the first production edit. See The bugfix pipeline.

Cleanup with unchanged behavior → refactor-agent

A green characterization test net pins the current behavior before the first edit. See The refactor pipeline.

The full grade table is in Quality Pipelines Reference, grades.

What differs, and what stays the same?

The two ways differ in what comes first. The core gates stay the same for every grade: the approval gate, the baseline gate and the test adversary.

Grade: architecture-led

Design-first

  • Write first: the design brief.
  • The contract: the approved design brief.
  • Before code: the approver approves the design brief.
  • Not for: a one-line change. That is over-process.
Grade: TDD-led

Test-first

  • Write first: a failing test.
  • The contract: the test.
  • Before done: red, then green, then refactor.
  • Not for: an unknown design. You would test the wrong thing.

What each grade passes

solid dot Solid: alwayshollow dot Hollow: in some runs. The row says which.

Guardrail (open a row)Architecture-ledTDD-ledSimple-addition
Before code
Elicitation

Every blocking unknown gets a question before design. A safe default becomes an explicit assumption, in design brief section 0 or in the mini-plan.

alwaysalwaysalways
Design brief

The one-page design. See Writing a Design Brief.

always
Mini-plan

3 to 5 lines instead of a design brief. A simple-addition mini-plan also carries the grade budget.

alwaysalways
Checkpoint D

The verifier lenses attack the design brief. Rounds are capped at 3 (a round-1 refutation by every lens is a design split), then the run goes to you with the open objections.

always
Approval gate

No production code is delegated before the approver approves the plan: the verified design brief, or the mini-plan.

alwaysalwaysalways
While building
Failing test first

The brief of the coding agent says so on a TDD-led task. The agent files name no build order for the other grades.

always
Tests with the code

A coding agent never ships code without tests. The target is 80% diff coverage.

alwaysalwaysalways
Authoritative skills

The coding agent enforces the ft-*-standards skill of its stack. A stack with no standard goes to ft-coding-agent, and its report declares the gap.

alwaysalwaysalways
After green
Baseline gate

No new failure against the test run from before the first edit.

alwaysalwaysalways
Test adversary

After green, ft-test-adversary tries to prove the tests insufficient. Missing tests return to the coding agent until it finds nothing new, or until its cap.

alwaysalwaysalways
Checkpoint F

The verifier lenses attack the diff. The grade at entry decides, so a downgraded architecture-led run keeps it. Rounds are capped at 2, then the open blocking objections go to the fix lane (FIX_LANE). One trivial fix (a citation or a misspelt word) or one delta fix (a bounded test-path repair), each with a re-check by the originating lens, can replace the fix lane once. The run considers the trivial fix first.

always
/code-review

The lightweight review of the diff. It runs instead of checkpoint F.

alwaysalways
ft-architecture-audit

On an architecture-led run, it can serve as the conformance lens of checkpoint F. On the lighter grades, a non-trivial slice gets it.

some runssome runssome runs

A grade can fall once, on evidence, and the review of the code does not change. See Grade changes, plan invalidation and commits.

Design-first: what do you approve?

Use it when the correct design matters more than typing speed. You approve the design brief before any code.

docs/specs › example-feature.md

Design brief skeleton

GoalBulk-disable CPEs (customer premises equipment, the devices) by serial list. Ops needs it for incidents.
ScopeIn: REST endpoint and service. Out: UI, scheduling.
DesignNew POST api/Cpe action with a request DTO. Batch via the existing CpeWriteService. No new dependency.
DataNo schema change. Audit columns are already present. One IT against the emulator.
Testsshould_disable_all_when_serials_valid, should_report_unknown_serials
RisksLarge lists: cap at 1000 (J-DB batch tier).
ApproveReviseYour answer at the approval gate.
IllustrationA 6-line skeleton. Writing a Design Brief lists every section of the real template.
  • The lenses attack it first

    Checkpoint D runs before you read the design brief. You also see what the verification caught or changed.
  • Read the risks first

    Section 0 of the design brief holds the assumptions. The residual risks and open objections come with it. "Verified" does not mean "approve without reading".
  • Revise, or approve

    A revision returns to design. A material change re-runs the affected lenses and this gate.
The agent files call the design brief the SDD

The template uses the same name, and the file is SDD.md. In this portal, "SDD" means only the document that ft-sdd writes for people. See SDD for QA and Product.

Test-first: what does one cycle look like?

Use it when the expected behavior is known. The failing test is the spec. The cycle starts after you confirm the mini-plan.

  1. Coding agentRED

    A failing test should_X_when_Y

    FAILS
  2. Coding agentGREEN

    The minimum code to pass

    PASSES
  3. Coding agentREFACTOR

    Clean the code. Then repeat from RED with the next test.

    STILL GREEN
Java
// RED: write this first, watch it fail @Test @DisplayName("rejects a write to a read-only path") void should_reject_when_path_is_read_only() { var result = handler.apply(new WriteTaskRequest(READ_ONLY_PATH, value)); assertThat(result).isInstanceOf(OperationResult.Denied.class); } // GREEN: minimal guard in WriteTaskHandler, then refactor
IllustrationRed, then green, on a Java handler. The names follow the Java standard.

What can go wrong?

Two mistakes pick the wrong way. One misuse skips a gate. One problem is expected: the repository contradicts the plan.

Over-processDesign-first on a one-line change

  • The design pass costs more than the change.
  • Send the change to bugfix-agent as MINOR, or to the coding agent of the stack.

Wrong testTest-first with an unknown design

  • You test the wrong thing.
  • The task is architecture-led. Write the design brief first.

MisuseA run skips a gate

  • No design brief, code without tests, or a commit with --no-verify. The engine is always on, so this is its only misuse.
  • Return to the gate. A run-cost budget never buys the right to skip a first verification.

ExpectedThe repository contradicts the plan

  • The coding agent stops and returns PLAN_INVALIDATED with its evidence.
  • The run returns to design. Play this scenario on the map.

What to read next

This page chooses the way. These pages hold the detail.

The pipelineThe stages, checkpoints, lenses and test adversary are on Quality Pipelines.
The agentsThe agent fleet is on Claude Toolkit.
The rules for codeThe rules for a Java change are in the Java standard.
Writing a Design Brief