R126 Keep in a private source only the private assets a requirement rests on
Keep in a private source only the private assets a requirement rests on, and write the rest of the requirement into a public source.
Reason
A rule applies to every project in a jurisdiction that adopts it (Art. VIII §7(1)), but only those who can read a private source can adopt its rules: a requirement kept there cannot be adopted, reviewed or improved by other users, and is written again wherever another user needs it. A private source is there for what may not be published, and that is the private assets alone.
Verification
A private asset is what rule 259 keeps out of a public repository: for example a host name, an account, the name of a private repository, a path in a secret store, the name of an agent. That rule, not this one, keeps private assets out of a public source.
The test: take the private assets out of the requirement and see what is left.
- A complete requirement: the whole rule goes into a public source.
- A principle, whose concrete values are private assets: the principle goes into a public source as a rule of its own, and the private source keeps only a rule that sets those values and names the public rule in
requires. - Nothing: the rule stays in the private source.
When the test does not settle whether a part of a requirement goes into a public source, the author asks a competent principal (Art. V §3(1)) and keeps that part in the private source until the answer comes; the author does not decide it alone, and the answer settles it.
Violated when a change adds or rewrites a rule so that a private source holds a part of a requirement that the test, or a principal’s answer, puts into a public source.