package file→ .shtukbase/packages/code-unix/judges/text-interface.md
judges/text-interface.md
15 lines, 769 B.
- # Judge: text as the interface, honest exit codes
- Norm UNX-R04. A program's output is fit to be the input of another: data goes to stdout line by line or as JSON on a flag, messages and trouble go to stderr; exit code 0 only on success.
- **Who judges.** The reviewer of the change.
- **When.** On a change to a command-line command, a script, a package action.
- **What the judge looks at.**
- 1. Data goes to stdout in a form convenient to the next program (one line per record, or JSON on a flag); progress and trouble messages go to stderr.
- 2. Exit code 0 is success only; a refusal is non-zero.
- 3. There are no interactive questions where another program calls the program.
- **Result.** "holds" or "violated: what goes to the wrong stream, where the exit code lies".