Writing a Design Brief

A design brief is the one-page design of an architecture-led task. ft-developer drafts it from the template deploy/templates/SDD.md. You approve it before any production code starts. For an architecture-led task with a release tag, you also approve the human SDD that ft-sdd writes.

  1. ft-developerGrade the task

    Only an architecture-led task gets a brief.

  2. ft-developerDraft the brief

    13 sections, on one page.

    DRAFT
  3. Verifier lensesCheckpoint D

    Review agents try to refute the design.

  4. YouApproval gate

    You approve it, or you ask for a revision.

    APPROVED
  5. ft-developerDelegate the code

    Coding agents build the approved design.

When a task needs a brief

A design brief makes decisions visible and approved. It does not describe code, so small work skips it.

A new feature, module or endpoint → design brief

The grade is architecture-led. A cross-cutting change gets the same grade. So does anything that touches a contract, the data model, a protocol surface or security.

A bug fix, one business rule, or a protocol message with a known spec → mini-plan

The grade is TDD-led (test-first), and the failing test is the spec. You confirm a plan of 3 to 5 lines.

A small addition in one stack → mini-plan

The grade is simple-addition: about 50 lines across about 3 files, with no new surface. You confirm a plan of 3 to 5 lines that carries this budget.

A bug that the diagnosis finds feature-sized → design brief

The bugfix pipeline hands over a diagnosis dossier. ft-developer grades it architecture-led and seeds section 0 from the dossier.

ft-developer sets the grade. Ways of Working compares the grades and what each one passes.

A run has two documents, and "SDD" means the human SDD

The design brief is internal. It says how the code is built, and its file is SDD.md. The human SDD says what changes. You approve it, and QA reads it and writes test cases from it. The run has one approval act: your single answer. ft-developer asks ft-sdd to write it. When you say "SDD" to the agents, you mean the human SDD. The agent files and the template still call the design brief the SDD, and this portal uses that word for the brief only where you meet those literals. The rules are in rules/agents/human-sdd.md, sections 1 to 5.

From draft to code

The lenses attack the brief first, and you read it second. Each orange box can send the brief back.

  1. 1. Draft

    ft-developer seeds the brief from the template. It weighs at least 2 approaches and records the rejected ones.
    • DRAFTThe status line of the brief.
  2. 2. Checkpoint D

    The verifier lenses are separate review agents, with one perspective each. They try to refute the brief.
    • SOUNDThe brief goes to the approval gate.
    • REFUTEDft-developer revises once for all objections, and the affected lenses run again.
    • CAPAfter 2 rounds without progress, or 5 rounds, the open objections come to you.
    More about the rounds

    A round makes progress when new evidence or a design change closes an objection. A reworded objection is not progress.

    NEEDS_EVIDENCE: ft-developer supplies the named artifact, and that lens runs once more. NEEDS_HUMAN: the exact question comes to you at the gate.

  3. 3. The human SDD

    Only when Stage 1 records human SDD: write: the task is architecture-led and a release tag is reachable from the starting branch. After checkpoint D closes, ft-developer sends one ft-sdd brief. ft-sdd writes the human SDD as an artifact and checks its own gates.
    • checkedThe gate shows you the link, STATUS, Shape: and Pre-show: in plain words, and the questions as yes or no lines.
    • unchecked: <field name>The gate does not show the human SDD for approval. It tells you which field failed. You decide: proceed on the internal design brief, or stop. If a repair did not publish, you read the update was not published; the earlier version at <url> is stale, and the earlier version stays at the link. A repair that returned a published Draft did publish: the link shows that Draft, and you read the unchecked field name.
    When no human SDD is written

    The grade can be TDD-led or simple-addition, or no release tag can be reached from the starting branch, or the run can be a design split. The path block then reads none — <reason>. The gate still names the reason in a Human SDD: line.

  4. 4. Approval gate

    You see the brief, and what the verification caught or changed. When the human SDD is checked, you see it too. One answer approves both documents.
    • APPROVEThe status becomes APPROVED, with the date and the approver.
    • REVISEThe work returns to step 1. A material design change runs the affected lenses and this gate again.
  5. 5. Code

    ft-developer delegates the code. No production code is delegated before your approval.
  6. 6. Delivered repair

    After the commit, ft-developer sends one more ft-sdd brief with Mode: repair and State: delivered. ft-sdd rewrites the same artifact against the committed code. It runs only when four conditions hold: the path is write, the run never split, the commit check is sound, and the approval reader yields <url> · doc.md <40-hex>. That last condition means a checked human SDD that your answer approved. If you answered "proceed on the internal design brief" on an unchecked document, no repair runs, and Stage 9 reads unchecked at approval.
    What the repair does not promise

    The delivered document can differ from the text you approved. The final report says so, and the run never calls it approved. Your answers never change the document in this run, whatever the question. An answer that changes a design statement revises the design brief and runs the human SDD update again before approval. The Stage 9 report counts every answer in the slot answers <n> not in the document. An answer reaches the document only through a later repair by the person who launched the run. If a repair does not publish, the earlier version stays at the link, and the Stage 9 line reads earlier version at <url> stale.

Read Design-first in Ways of Working for what to check at the gate. Quality Pipelines describes checkpoint D and the approval gate in full.

A complete, approved design brief

This is a whole brief for one small feature. It fits on one page, and every section is present.

docs/specs › bulk-disable-cpe.md

SDD: Bulk-disable CPEs by serial — example-service

APPROVED 2026-01-01, the approver · Task grade: architecture-led · Ticket: EX-1

0. Requirements & assumptionsAsked: who may call the endpoint? Answer: the existing ops role. Assumed: the per-device line logs at info level (impact: logging only, a wrong guess is a one-line change).
1. Problem & goalDuring an incident, ops must disable many CPEs fast. Today it is one by one in the UI. Goal: one call that disables a list of serials and reports which were unknown.
2. ScopeIn: REST endpoint, service, the disable path through CpeWriteService. Out: UI, scheduling and automation, re-enable (separate ticket).
3. Affected componentsexample.cpe.rest.CpeController (new action). example.cpe.service.CpeWriteService (reuse). A new request record in example.cpe.rest (role sub-package).
4. Design / approachAdd a POST api/Cpe action with a request DTO that carries the serial list. Fan out through the existing CpeWriteService batch path. Rejected: (a) a per-serial loop in the controller, N round trips. (b) A new async job, because ops needs a synchronous result now.
5. Data model & DB changesNo schema change. Audit columns are already present. Batch the write at the J-DB relational tier (~1000).
6. FE↔BE contract changesPOST api/Cpe DisableCpeRestRequest { serials } → DisableCpeRestResponse { unknownSerials }. Domain or validation error: HTTP 200 + StatusResponse { errorCode, message }. No internal UI-to-BE change.
7. ProtocolN/A (no parameter-path changes).
8. Logging & observabilityPer device: serial=<serial> deviceId=<number> action=disable result=..., plus sessionId=<id> when a session exists. Counter: cpe.disable.count.
9. Test planshould_disable_all_when_serials_valid (*IT, emulator). should_report_unknown_serials_when_some_missing (*IT). should_cap_when_list_exceeds_batch_limit (*Test).
10. Doc planNone.
11. Risks, rollout, follow-upsLarge lists: cap at 1000. A longer list gets HTTP 200 with a StatusResponse that has errorCode 203. No migration. Safe to ship behind the existing ops role.
12. Lens exemptionsVisual/UX: no screen touched.
IllustrationThe service, ticket, date, classes and test names are invented. The title line follows the template: # SDD: <feature> — <repo>.
  • Section 0 asks about access

    Who may call the endpoint is a security question, so the brief records an answer and not a guess.
  • Section 4 names the rejected options

    Each rejected option has its reason, so you can challenge the choice.
  • Section 6 is an exact signature

    Checkpoint F, the review of the finished diff, compares this fragment with the code. The change obeys the External API contract: the verb is POST and an error travels in the body.
  • Empty sections stay

    Sections 7 and 10 say N/A and None, so you can see that nobody forgot them.

Terms in this example

  • CPE: customer premises equipment, the device that the Auto Configuration Server (ACS) manages.
  • J-DB: the database rules of the Java standard.
  • StatusResponse: the response envelope of the External API contract.
  • Other words: lens, checkpoint and mini-plan are in the Glossary.

What each section must answer

The brief has a status line and 13 sections. Section 0 carries a Human SDD field with the path block line. Five fields seed the human SDD. Open a section to see what it must answer. The headings are the template headings, word for word.

13sections on one pageLink to the component map or the contract. Do not restate them.
3written as artifactsSections 5, 6 and 7 hold a DDL skeleton, an exact signature or exact paths.
4can say None or N/ASections 6, 7, 10 and 12. Write the word, and keep the heading.
0. Requirements & assumptions → a short list

Each blocking question with its answer. "None needed" is valid. Each assumed default with its impact tag, and why a wrong guess is cheap to change. An assumption whose wrong default silently changes a contract, data or security is a blocking question. After the list of assumptions, section 0 holds the Human SDD field, which carries the path block line. Checkpoint F checks every listed assumption again.

1. Problem & goal → one paragraph

What is wrong or missing, and the one outcome this delivers.

2. Scope → bullets

In and Out. The Out list stops the scope from growing. The Change list seeds the index of the human SDD. Each row has a change number, the area, the change in operator-visible names, the reads and writes in step order, and the requirement IDs. List only what changes.

3. Affected components → a short list

The modules, packages and files from COMPONENT-MAP.md, and which new role sub-packages the change creates.

4. Design / approach → a paragraph + 2 bullets

The chosen approach and the options you rejected, with the reason for each. Libraries and versions lists what the release ships at the baseline, with the manifest file:line. A new library needs a reason, and the reason becomes an owner question.

5. Data model & DB changes artifact → only what changes

The DTOs (data transfer objects) as records, the entities, the tables and columns, and the migration. Names use snake_case and singular tables, with no foreign keys, named indexes and audit columns. The migration is portable across MySQL and Oracle. ClickHouse is for quality of experience (QoE) data only. Write the schema statements (DDL) or the Liquibase changeset skeleton itself. Deployment mechanism at Baseline states how this product line applies the change, with file:line and the operator step.

6. FE↔BE contract changes artifact None → the delta only

Any change to the envelope, pagination, error codes, /{controller}/{action}, or the identity fields serial and deviceId. FE means frontend and BE means backend. Confirm that both sides stay identical. Write the exact endpoint signatures, or an envelope or OpenAPI fragment.

7. Protocol artifact N/A → the paths touched

Exact TR-069, TR-181, TR-369 or LwM2M parameter paths and messages. ft-developer validates them against the spec with cwmp-xml, oma-lwm2m-expert or bbf_params.

8. Logging & observability → 1 to 3 lines

What gets logged with serial (a string), deviceId (a number) and sessionId (when a session or transaction exists), as key=value with no thread-bound context (MDC). Also the levels, any metric, and any throttling on a hot path.

9. Test plan → bullets

Unit *Test with mocked collaborators, and integration *IT on real infrastructure, never a mocked database. At least 80% diff coverage on new code. The behaviors and edge cases to assert, with fixtures derived from the spec. Test data and emulator verification names the tool that produces the test data. It states the flow and the expected result on the Friendly emulator of the protocol, on MySQL and on Oracle. A product line that ships one engine raises that as an owner question.

10. Doc plan None → a short list

Which .adoc files, diagrams and parameter tables the change adds or updates.

11. Risks, rollout, follow-ups → bullets

Migration and back-compat risks, a feature flag if any, and what is deferred. Proposed limits are one line each, and you can answer each with yes or no.

12. Lens exemptions None → bullets

Which verifier lenses do not apply, with a one-line reason each. The verifiers check that this list is sound, and no lens is skipped silently.

Do and don't

Approval before code is the purpose of the brief. Check the brief against these eight points.

DoA brief you can approve

  • Decide. Name the approach and the rejected alternatives.
  • Stay on one page. Link the component map or the contract.
  • Make the test plan concrete: the asserts and the real infrastructure.
  • Get approval before code.

Don'tA brief that is not ready

  • Paste pseudo-code or a class-by-class design. That is implementation.
  • Leave "TBD" in Scope or Design. Resolve it, or the brief is not ready.
  • Document the standard again. The agent already enforces it.
  • Write a brief for a bug fix or a one-line change.

Common questions

Where does the file live?

The template asks for one file per feature, for example docs/specs/<slug>.md. The template itself is deploy/templates/SDD.md.

What if the code later proves the approved brief wrong?

The coding agent returns PLAN_INVALIDATED with its evidence, and the work returns to design. A material design change runs the affected lenses and the approval gate again.

Which fact in the brief needs a source?

Every fact about existing code cites file:line at the baseline.

What if the human SDD is unchecked?

The gate does not present it for approval. You decide whether to proceed on the internal design brief or to stop. If you proceed, the human SDD stays unapproved, no repair runs after the commit, and the final report says unchecked at approval.

What do I read if an update of the human SDD fails?

An update that publishes nothing leaves the earlier version at the link. You read the update was not published; the earlier version at <url> is stale. After the commit, the Stage 9 line adds earlier version at <url> stale to the unchecked field name. An update that publishes a Draft is not stale: the link shows that Draft, and you read the unchecked field name.

Which sections does a TDD-led task fill in?

None. A TDD-led or simple-addition task has a mini-plan: the goal, files, approach, test names and assumptions.

Where to go next

This page shows what a good brief contains. These pages hold the rest.

The checks on a briefLenses and rounds, in Quality Pipelines.
The document for peopleThe finished design document, in SDD for QA and Product.
Every pageThe map of this portal, in the Overview.
Back to Ways of Working