R126 Keep in a private source only the private assets a requirement rests on

On by default

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.

  1. A complete requirement: the whole rule goes into a public source.
  2. 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.
  3. 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.

Provisions of the constitution it cites

Relations

Parent
R96 Writing Rules
Requires
none
Conflicts with
none

Metadata

ID
126
Revision
3
Kind
rule
Status
trial
Slug
private-source-only-for-private-assets
Default level
project
Constitution revisions
>=1
Check
none
Default
on
Uses
Instructions instructions, Review review
Original language
English en
Translations
Chinese zh