test(grammar): give the walk vocabulary number-shaped tokens #61
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/grammar-schema-keywords"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
walkVocab exists to carry the acceptor across a schema decision point in
a single step -- a token is allowed only if every one of its bytes is, so
one can commit to a position the acceptor never got to reconsider. Its
tokens covered keys, separators and closers, but numbers only as the
single digit
0, which predates numeric bounds being enforced at all.Numbers are now a decision point of their own:
12can carry a prefixfrom feasible to unreachable without the acceptor ever seeing the
1alone, and
e-or.5commits to a shape that freezes what theremaining digits can reach. Those are the steps where the no-dead-end
property is hardest to hold, and none of them were reachable before.
No failures; the walk finds new states, which is the point.
Co-Authored-By: Claude Opus 5 noreply@anthropic.com
Automated review by pr-reviewer v0.44.2 | Safety Check | Claude Sonnet 5 | tracking id
r-726cd5-76611aThis is an AI-generated review and may contain mistakes.
Status: ✅ Completed
✅ Verdict: LGTM — The change only adds test vocabulary tokens with no production code impact, so nothing alarming stands out.
This is a small, self-contained test-only change that adds new multi-byte number-shaped tokens to a fake tokenizer's vocabulary used for exhaustive walk testing. It's additive (no removed tokens), doesn't touch production logic, and the comment explains the rationale clearly. No secrets, no binaries, no breaking changes — just new test fixtures to exercise previously-unreached acceptor states.