R17 Keep the design in one directory, one file per part, with an index

Off by default

Superseded by R82 Keep the design in one directory, one file per topic, with an index.

Keep a repository’s design in one directory, one file for each part, every file listed in the directory’s index; write no design or decision document anywhere else.

Reason

A reader finds every design decision in one place, and a fact about the design is written once and linked to from elsewhere (Art. VIII §5); a second kind of design document, such as a separate decision record, would hold the same decisions twice (Art. III §4).

Verification

The design lives in one directory, for example docs/design/. Each file covers one part, reads on its own and has one # title. The directory’s index, for example its README.md, links to every other file of the directory except the translations (rule 21), in reading order, with a line on what each covers. A change that adds a design file adds it to the index in the same change.

A decision is written into the part of the design it concerns, with its reasons; a decision that replaces another changes that part. No separate decision record, design note or second design is kept elsewhere in the repository.

Violated when a design or decision document lives outside that directory, or a file of the directory other than a translation is missing from the index.

Provisions of the constitution it cites

Relations

Parent
R16 Documentation
Requires
none
Conflicts with
none

Metadata

ID
17
Revision
3
Kind
rule
Status
superseded
Slug
one-design
Default level
project
Constitution revisions
>=1
Check
none
Default
off
Uses
Instructions instructions
Original language
English en
Translations
Chinese zh