/** * Detect **degenerate repetition** — the most common LLM failure mode: a model that gets stuck * emitting the same character or short phrase forever (often with no punctuation), e.g. `啊啊啊啊…` * or `the answer is the answer is the answer is…`. Brains poll this over the growing output and, on a * hit, **cancel the stream** and mark the turn errored, so the loop doesn't keep paying for garbage and * downstream (e.g. a team member) treats it as a failed turn rather than a real statement. * * Only an *exact* tail repetition trips it (character-for-character). The original header claimed * normal code "won't false-positive" because repeated structure differs in content — **falsified in * the field** (docs/DEADTARGET-WINNING-AVG-COREWARS-2026-07-10.md §〇-3): legitimate code repeats the * SAME line verbatim (redcode boot blocks `mov