R112 Keep the design in one directory

On by default

Keep a repository’s design in one directory, and write no design document anywhere else.

Reason

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

Verification

The design lives in one directory, for example docs/design/. A design document is a text that describes how the repository’s system is or will be built and why: a second design, or a design note that describes a part of the design apart from it. A record of decisions, one entry per decision with its context and its consequences, is not a design document here; whether a repository keeps one, and where, is left to other rules.

Violated when a design document lives outside that directory.

Provisions of the constitution it cites

Relations

Parent
R232 Design
Requires
none
Conflicts with
none

Metadata

ID
112
Revision
2
Kind
rule
Status
trial
Slug
design-in-one-directory
Default level
project
Constitution revisions
>=1
Check
none
Default
on
Uses
Instructions instructions, Review review
Original language
English en
Translations
Chinese zh