Model command alias prefix rewriting

This commit is contained in:
2026-10-19 15:11:43 +00:00
parent b3fb795224
commit 80d4d6e1bd
4 changed files with 468 additions and 0 deletions

View File

@@ -291,6 +291,12 @@ count; target expansion; group suffix preservation; shorter fallback after
a failed longer token match; unknown tokens; empty suffixes. The compiler
and direct resolver agree on these terminating cases.
**Completed:** Added the independent longest-prefix resolver and compiled its
trie into a finite stack machine with literal and `OTHER` symbols, end and
flag-boundary markers, shorter-match fallback, restoration, and normalized
pushes. A test-only interpreter matches direct resolution for the recorded
finite cases. Verified with `go test ./internal/alias`.
## Stage 3: Prove and test termination validation
**Work**