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

Off by default

Superseded by R112 Keep the design in one directory, R113 Give each topic of the design a file of its own, R114 List every file of the design in its index.

Keep a repository’s design in one directory, split by topic into files so that changes to different topics touch different files, 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). Changes made in parallel each touch the file of their own topic, so they do not conflict when they are merged, as changes to one large file keep doing.

Verification

The design lives in one directory, for example docs/design/. Each file covers one topic, a part that a change can alter without altering the others, reads on its own and has one # title. A file that holds several such topics is split. 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, a file of the directory other than a translation is missing from the index, or one file holds several topics that changes alter apart.

Provisions of the constitution it cites

Relations

Parent
R16 Documentation
Requires
none
Conflicts with
none

Metadata

ID
82
Revision
4
Kind
rule
Status
superseded
Slug
design-files-by-topic
Default level
project
Constitution revisions
>=1
Check
none
Default
off
Uses
Instructions instructions
Original language
English en
Translations
Chinese zh