From ca9818b47018a8af2ebe6f892b32f9ee1bbb6863 Mon Sep 17 00:00:00 2001 From: Martin Vogel Date: Fri, 21 Aug 2026 15:27:52 +0200 Subject: [PATCH] security: catch prose smuggled into generated parser symbol tables Tier 2 of the hidden-instruction gate. A generated LR parser's string table holds grammar symbol names and punctuation terminals; an English sentence in there is anomalous by construction. That is the check which cleared a 353,744-line vendored parser by hand during review, and this mechanises it. The threshold was MEASURED rather than guessed. Across all 159 vendored grammars: 48,271 string literals, of which 63 contain a space, because multi-word keywords are real -- "is not", "not in", "static get". The longest legitimate literal is three words ("hide empty description"), so four is the tightest threshold with zero false positives, and it still catches a four-word instruction. Current tree: 0 findings. Deliberately NOT shipped: a tree-wide scan for hiding constructs. The measurement did not support it. `