Requirement
A Requirement is one file carrying one coherent normative obligation with its complete record. It states what the system must do now, observable and yes/no checkable, and is rewritten in place when the obligation changes.
Identity and file layout
Section titled “Identity and file layout”Each Requirement carries a stable identifier of the form PROJECT-REQ-NNNN, allocated by specful new requirement and
never edited by hand. Files live under the owning architectural scope:
docs/specs/<architectural-scope...>/requirements/<sequence>-<subject...>.mdCross-component requirements belong to the narrowest scope that completely owns the obligation; system-wide requirements stay at system scope rather than being duplicated across components. Scope is a placement and navigation hierarchy, not an authored container artifact: moving a requirement between scopes preserves its identifier.
Frontmatter
Section titled “Frontmatter”| Field | Meaning | Read by |
|---|---|---|
type |
Always REQ. |
validate (selects the schema) |
profile-version |
The Requirement profile version this document conforms to. | validate (schema requires 1) |
id |
The allocated PROJECT-REQ-NNNN identifier. |
validate; index; show; trace |
title |
Concise navigation title for the obligation. | validate (H1 parity); index; show |
governed-by |
ADRs whose rationale this obligation embodies. Omit when empty. | validate; index; show; trace |
A Requirement may cite an accepted ADR in governed-by, or a proposed ADR as a provisional citation when one change
introduces a proposal alongside dependent artifacts; a proposed citation carries no architectural authority until the
maintainer accepts the ADR. Citations to deprecated or superseded ADRs fail validation.
Sections
Section titled “Sections”specful validate checks structure, not judgement. It requires Statement, Rationale, and Acceptance criteria, in that
exact order and wording, and requires Statement to be a single paragraph carrying an uppercase BCP 14 keyword. Each
required heading must appear exactly once, in order, and carry content; a missing, duplicated, out-of-order, or empty
required section is a finding. When present, More information must be non-empty. Validation also rejects foreign
canonical level-two headings belonging to Designs or ADRs, Markdown task checkboxes outside code, and any required
section or present More information section consisting solely of bare filler (Not applicable, N/A, NA, None,
TBD, TODO, or TBA). The document H1 must match the frontmatter title, and no template placeholder residue may
remain outside a code span. The tool cannot tell whether an acceptance criterion is genuinely checkable, whether the
Statement’s condition is objectively determinable, whether a cited external standard supports the obligation, or whether
a “not applicable” is honest: that judgement is the author’s and reviewer’s, and the authoring skills teach it.
A Requirement carries three canonical headings, never renamed, plus an optional fourth. A required section with nothing
to say keeps its heading and states why it does not apply (for example Not applicable: <reason>); bare filler without
a reason fails validation.
- Statement: one normative paragraph, using at least one uppercase BCP 14 keyword (MUST, MUST NOT, SHOULD, SHOULD NOT, MAY). Name the acting system or component where one exists, the triggering condition, and the observable behaviour; put the condition before the keyword. How the system meets the obligation belongs in the Design that satisfies it, not in the Statement, though an externally imposed constraint (a mandated protocol, format, mechanism, or interoperability contract) is itself a legitimate obligation. Avoid vague qualifiers (“reasonable”, “appropriate”, “quickly”) and escape clauses (“where possible”, “as appropriate”); every term the statement relies on must be defined or linked, and every bound must be objectively determinable.
- Rationale: why the obligation exists, the need it serves, who or what depends on it, and the consequence of not meeting it. Concise; it does not restate the Statement. When the obligation implements, extends, or departs from an external standard, apply External standards.
- Acceptance criteria: observable conditions that distinguish satisfaction from non-satisfaction, each independently checkable with a yes or no answer. Use precise units, tolerances, and thresholds for quantitative bounds, and cover the negative and edge cases that define the obligation’s boundary, not only the happy path. There is no standalone verification section: acceptance criteria carry falsifiability directly, and where the means of checking a criterion is not obvious, the criterion states how satisfaction is determined. A criterion may reference a specific conformance clause of an applicable external standard when that clause is directly checkable.
- More information (optional): supporting context such as external references and examples, removed completely when
it adds nothing. It never restates a
governed-byrelationship the frontmatter already carries;specful showrenders that edge. An unresolved matter that affects the obligation or its acceptance boundary means the Requirement is not complete yet.
One obligation per file
Section titled “One obligation per file”One obligation per file does not mean one sentence per file: complex acceptance boundaries, tables, examples, and definitions may all be necessary. It does mean one obligation. If the Statement needs “and” to join independently verifiable duties, split it into separate Requirements.
External standards
Section titled “External standards”Cite an external standard only when the obligation implements, extends, or departs from one (for example OWASP ASVS, NIST SP 800-63B, IETF RFCs, W3C/WCAG, WHATWG, or OpenAPI). Ordinary internal product obligations with no applicable external standard omit standards citations and never add “Not applicable” boilerplate.
When an external standard applies, cite the primary source with its exact version or edition (or, for a living standard, a dated snapshot or commit), target conformance or assurance level where the standard defines tiers (such as ASVS L1/L2, NIST AAL, or WCAG level), and section or clause identifier. Quote the operative clause verbatim when brief, or pin its exact normative keyword and scope when verbatim quoting is impractical. If the primary source cannot be read directly (for example offline or behind a paywall), do not cite a version, pin, or clause number from memory; raise the gap to the maintainer or track it in the change plan, and do not mark the Requirement complete until the exact reference is supplied or verified.
Keep three things distinct in plain Rationale prose, without introducing fixed subheadings or empty placeholders for layers that do not apply:
- Normative standard clauses: what the primary standard assigns at the applicable edition and target level,
preserving each clause’s force and scope (
MUSTorSHALLrequirements,SHOULDrecommendations whose exceptions require weighing the implications, andMAYpermissions with their stated conditions). - Informative guidance: non-normative notes, cheat sheets, vendor guides, and secondary checklists. Cite these as supporting context, never as binding standard mandates.
- Project extension or departure: behaviour the project adds beyond the standard (with its justification), or any intentional departure that weakens, omits, or replaces required or recommended standard behaviour (with its justification, weighed implications, and compensating controls).
A direct implementation of a normative clause needs no informative-guidance or departure text. Place longer reference excerpts or conformance links in More information.
Where an intentional departure from a normative clause is a durable architectural choice with credible alternatives and
trade-offs, record that decision in an ADR and cite it through governed-by. Rationale then pins the governing clause
and points to the ADR rather than repeating option analysis. Where no ADR is warranted, such as a narrow local extension
or bounded exception, Rationale carries the brief justification directly, along with any compensating control when
departing from a standard clause.
Requirement versus ADR
Section titled “Requirement versus ADR”A Requirement binds the system; an ADR records a choice. For the full boundary and the two litmus questions that settle nearly every case, see Requirement versus ADR on the ADR profile page.