ShtukbaseStandard
package file→ .shtukbase/packages/code-deep-modules/judges/information-hiding.md

judges/information-hiding.md

15 lines, 967 B.

  1. # Judge: a decision is known to one module
  2. 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.
  3. **Who judges.** The reviewer of the change: an agent or a human, not the author.
  4. **When.** On a change that adds a module, a format, a protocol, a settings file, or changes the border between modules.
  5. **What the judge looks at.**
  6. 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).
  7. 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.
  8. 3. The interface gives out details the callers do not need (internal structures, implementation flags).
  9. **Result.** "holds" or "violated: which knowledge, in which modules, where to gather it".