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.
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-developergrades 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-*-standardsskill of its stack.A stack with no standard goes toft-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
- You type
/ft-devwith a feature, a ticket or an idea. - Jev grades the task first. The grade is architecture-led.
ft-developerasks every blocking question before design. A safe default becomes a recorded assumption.- It writes the design brief, with at least two approaches. It records why it rejected the others.
- Checkpoint D. The verifier lenses attack the design brief.
- You read the verified design brief and what the verification caught.
- You approve. No production code starts before this answer.
- A coding agent implements the approved design brief.
- The coding agent enforces the standard of its stack.
- It returns code and tests together.
- Baseline gate: no new failure against the run from before the first edit.
- The test adversary tries to prove the tests insufficient.
- Checkpoint F. The verifier lenses attack the diff.
ft-developerdelivers the docs and the report.- The report reaches you.
Test-first: one business rule
- You type
/ft-devwith one business rule. - Jev grades the task first. The grade is TDD-led: the failing test is the spec.
ft-developerasks every blocking question. A safe default becomes a recorded assumption.- It writes a mini-plan of 3 to 5 lines. A TDD-led task has no design brief.
- You read the mini-plan and get one quick confirm question.
- You confirm. The approval gate holds for this grade too.
- The brief tells the coding agent to write the failing test first.
- RED, GREEN, REFACTOR, under the standard of its stack.
- It returns code and tests together.
- Baseline gate: no new failure against the run from before the first edit.
- The test adversary tries to prove the tests insufficient.
/code-reviewruns on the diff. This grade has no checkpoint D and no checkpoint F.- A non-trivial slice also gets
ft-architecture-audit. ft-developerdelivers the docs and the report.
A small addition
- You type
/ft-devwith an addition that follows an existing pattern. - The grade is simple-addition: about 50 lines in about 3 files.
- The mini-plan carries the grade budget.
- You read the mini-plan and get one quick confirm question.
- You confirm.
- The coding agent gets the budget and the overrun rule.
- Tests ship with the code. The agent files name no build order for this grade.
- Baseline gate.
- Test adversary.
/code-reviewon the diff.ft-developerdelivers the docs and the report.
The repository contradicts the plan
- The coding agent returns
PLAN_INVALIDATEDwith its evidence. A simple-addition run over its budget returns the same status. ft-developerreturns to design with the new evidence. A busted budget also gets a new grade, usually architecture-led.- A material change re-runs the affected lenses.
- A material change also runs the approval gate again.
- You approve the changed plan.
- The build continues on the new plan.
The tests are not enough
- The coding agent reports green. The test adversary starts.
- It returns each missing or weak test as a precise brief.
ft-developersends each brief to the coding agent.- The new tests return.
- The test adversary runs again on the new tests.
- The loop stops after 2 rounds with no new accepted finding, or at 5 rounds.
- 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-developerasks Jev for the grade.ft-developerwrites the plan of the grade.- You read the plan at the approval gate.
- The verifier lenses attack the design brief.
ft-developerdelegates the approved plan.- The coding agent enforces the standard skill.
ft-developercompares the test run with the baseline.ft-developersends the tests and the diff to independent review.ft-developerdelivers 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. Is there a design choice in it?
Wording, a path and a one-line config have none.- NONo grade. Send it to
bugfix-agentas MINOR, or to the coding agent of the stack. - YESGo to question 2.
- NONo grade. Send it to
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. 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.
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.
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-led | TDD-led | Simple-addition |
|---|---|---|---|
| Before code | |||
ElicitationEvery blocking unknown gets a question before design. A safe default becomes an explicit assumption, in design brief section 0 or in the mini-plan. | always | always | always |
Design briefThe one-page design. See Writing a Design Brief. | always | ||
Mini-plan3 to 5 lines instead of a design brief. A simple-addition mini-plan also carries the grade budget. | always | always | |
Checkpoint DThe | always | ||
Approval gateNo production code is delegated before the approver approves the plan: the verified design brief, or the mini-plan. | always | always | always |
| While building | |||
Failing test firstThe 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 codeA coding agent never ships code without tests. The target is 80% diff coverage. | always | always | always |
Authoritative skillsThe coding agent enforces the | always | always | always |
| After green | |||
Baseline gateNo new failure against the test run from before the first edit. | always | always | always |
Test adversaryAfter green, | always | always | always |
Checkpoint FThe | always | ||
| always | always | |
| some runs | some runs | some 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.
Design brief skeleton
| Goal | Bulk-disable CPEs (customer premises equipment, the devices) by serial list. Ops needs it for incidents. |
| Scope | In: REST endpoint and service. Out: UI, scheduling. |
| Design | New POST api/Cpe action with a request DTO. Batch via the existing CpeWriteService. No new dependency. |
| Data | No schema change. Audit columns are already present. One IT against the emulator. |
| Tests | should_, should_ |
| Risks | Large lists: cap at 1000 (J-DB batch tier). |
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 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.
- Coding agentRED
A failing test
FAILSshould_X_when_Y - Coding agentGREEN
The minimum code to pass
PASSES - Coding agentREFACTOR
Clean the code. Then repeat from RED with the next test.
STILL GREEN
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-agentas 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_INVALIDATEDwith 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.