package file→ .shtukbase/packages/code-deep-modules/judges/information-hiding.md
judges/information-hiding.md
15 lines, 967 B.
- # Judge: a decision is known to one module
- Norm DM-R03. Every design decision (a format, a protocol, the order of steps, a data layout) is known to one module; others use it through the interface.
- **Who judges.** The reviewer of the change: an agent or a human, not the author.
- **When.** On a change that adds a module, a format, a protocol, a settings file, or changes the border between modules.
- **What the judge looks at.**
- 1. Leakage: a file format, a data layout, field names or the order of steps are encoded in two places (reading and writing in different modules, parsing in two places).
- 2. Temporal decomposition: the code is split by the order of steps ("read", "parse", "write") and not by knowledge, so one piece of knowledge is smeared across the steps.
- 3. The interface gives out details the callers do not need (internal structures, implementation flags).
- **Result.** "holds" or "violated: which knowledge, in which modules, where to gather it".