mirror of
https://github.com/Monkopedia/rouse-context.git
synced 2026-11-22 05:16:11 +00:00
The gate matched `$token` and let `${token}` through, uniformly across all
29 names, for its whole life. `${...}` is not a stylistic variant in
Kotlin -- it is mandatory for anything that is not a bare identifier, so
the gate covered the spelling a covered name takes as a local and missed
the one it takes as a property.
Widened the shared interpolation prefix from `\$(` to `\$\{?(` -- one
optional brace, not a brace-wrapped second copy of the alternation, which
would double it and give it two places to drift (the #564/#574 repair).
The trailing `\b` is untouched and still load-bearing: `${token}` is
caught because `}` is a word boundary, `${tokenEntity}` stays green
because `E` is not. Both halves of that pair are asserted, along with
every name in its braced spelling, the braced form of the #577 `": *"`
case, and the braced block-comment exemption. The braced positives were
added first and run against the un-widened gate: 30 red.
Two residues are pinned by tests rather than left to prose, since #690's
symmetric-difference check polices the gloss's names but not the "does
not catch" bullets: `${user.token}` property chains are still uncovered,
and `${token.length}` is now flagged despite the policy calling a length
safe -- an ERE cannot tell `.length` from `.take(4)`, and a prefix of a
secret is never-log, so the shared prefix errs toward flagging. The doc's
safe-length idiom now binds the length to a local.
The doc's PATTERN block, prose gloss and "does not catch" list move with
the gate, and the test's alternation parse follows the new prefix -- its
anti-vacuity control was confirmed to go red against the stale parse.
Widened gate over the real tree: clean across all 12 production source
sets, verified with a planted-violation positive control and a
probe-removed negative control.
Closes #692
Claude-Session: https://claude.ai/code/session_01YYSPuh9bZEJkrzvnEpY1QK
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
|
||
|---|---|---|
| .. | ||
| flows | ||
| index.html | ||
| logging.md | ||