package file→ .shtukbase/packages/code-pragmatic/judges/dry-knowledge.md
judges/dry-knowledge.md
15 lines, 914 B.
- # Judge: one piece of knowledge, one place (in different words)
- Norm PRG-R01. Every piece of knowledge (a path, a key, a format, a rule, a number with a meaning) is written in the system once; the same string literal is not repeated in minFiles files (3).
- **Who judges.** The reviewer of the change.
- **When.** On a change that adds a format, a schema, constants, check rules or documentation for them.
- **What the judge looks at.**
- 1. One piece of knowledge is written in two places in different words: a schema in code and in a document, a list of fields in two modules, a rule in a check and in text.
- 2. Can one place be generated from the other (a document from a schema, a type from a table).
- 3. Repeated code that does not repeat knowledge (two similar but independent checks) is not a violation.
- **Result.** "holds" or "violated: which knowledge, where the second place is, what to generate from what".