83. Canonical-spelling docs gate and reasoning-enabled writable-from-docs harness (2026-11-21)
- Enforce accepted CP Lang spellings in
site/check_docs.py(check_canonical_spellings).- Rejects legacy
whereloop/comprehension filters, parenthesized getters (.len(),.is_empty(),.inv(),.rev(),.first(),.last(),.bounds()), legacy multitest dividers (--- multitest ---,@multitest),.preorder/.postorder,.pow(...)on numbers/Mod<P>, andcpl lintspelling rulesL0509–L0512across all docs, site examples, and course JSON. - Reason: Prevents documentation examples from drifting back to deprecated spellings after Decisions 53–70 and ensures models/readers learn only canonical syntax.
- Reverse: Remove
check_canonical_spellings()fromsite/check_docs.py.
- Rejects legacy
- Use
reasoning_effort="medium"(overrideable viaWFD_REASONING_EFFORT),max_completion_tokens=16384, and300sHTTP timeout forgpt-5*/o3/o4inscripts/writable-from-docs.py.- Reason: With default
reasoning_effort="none",gpt-5.4produced ~18 algorithmic WAs on Div2 C–E / ARC B problems that masked real CP Lang documentation gaps. Enabling medium reasoning surfaced genuine doc gaps (Mod<P>.v, lentStrslices,Int-only ranges, parenthesized multi-line expressions and??=,mutparameter semantics,[D]Charsep: " ",Map[k]trap semantics) and lifted pass rate from 29/55 (52.7%) to 48/55 (87.3%). - Reverse: Remove
payload["reasoning_effort"]and restoremax_completion_tokens = 4096andtimeout = 180inscripts/writable-from-docs.py.
- Reason: With default