ShtukbaseStandard
package file→ .shtukbase/packages/code-unix/judges/text-interface.md

judges/text-interface.md

15 lines, 769 B.

  1. # Judge: text as the interface, honest exit codes
  2. 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.
  3. **Who judges.** The reviewer of the change.
  4. **When.** On a change to a command-line command, a script, a package action.
  5. **What the judge looks at.**
  6. 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.
  7. 2. Exit code 0 is success only; a refusal is non-zero.
  8. 3. There are no interactive questions where another program calls the program.
  9. **Result.** "holds" or "violated: what goes to the wrong stream, where the exit code lies".