package file→ .shtukbase/packages/code-functional-core/judges/decisions-in-core.md
judges/decisions-in-core.md
15 lines, 799 B.
- # Judge: decisions are in the core, the shell is thin
- Norm FC-R04. Branching, calculations and rules live in the core; the shell only reads the world, calls the core and writes the result, and has little branching.
- **Who judges.** The reviewer of the change.
- **When.** On a change that adds logic next to input and output: a handler of a command, a request, a file.
- **What the judge looks at.**
- 1. New branching or a calculation landed in the shell, although it could be a pure function over the data already read.
- 2. The core receives time, chance and settings as values and does not read them itself.
- 3. The shell reads, then calls the core, then writes; there are almost no decisions in it.
- **Result.** "holds" or "violated: which decision to move into the core, which function to create".