cli: transform generic source ASTs iteratively

This commit is contained in:
dev committed 2026-10-10 19:07:06 +03:00
1 parent 50a7575efb
commit d39a422b2b
5 files changed
+978 -89

No files matched your search

+24
View File
@@ -572,3 +572,27 @@ now assert OOM propagation and cleanup. Frozen old/new public checks/lowerings
remain exact (1,423/506). Generic transformation and parenthesized parsing still
have confirmed depth failures; Q-061, Q-060's full per-step validation and the
Phase 6 exit gates remain open. The existing review does not cover this repair.
## Source generic AST depth (2026-10-10)
The [Q-061 generic increment](../design/source-expression-depth-audit.md#generic-ast-transformation-continuations) replaces reflective expression/statement/block
cloning with typed work entries, retaining traversal/error/instance order, spans,
Copy-transfer and static-function/worker handling. Callee and constructor
callbacks retain their original ordering; qualified paths are built iteratively
with one complete allocation. Guarded type/instantiation re-entry retains its
existing limits. OOM propagates without public partial AST; buffers and nodes
retain caller-arena lifetime. No normative/bundle/feature/code/acceptance-limit
or ownership/runtime rule changes.
Independent shallow comparisons (1,760 expression contexts plus binding/
statement fixtures), deep mixed/callee/block/else-union and deepest-error helpers,
path/instance/worklist allocation failures and public recovering specialization
failures pass. Build/units/format checks, 497 expression-depth, 42 generic and 25
static-function CLI checks pass; frozen old/new public checks/lowerings remain
exact (1,423/506). All 1,793 ordinary conformance cases pass with exact coverage.
Full generic
scalar checks/lowerings accept through 65,536; deep qualified unknown calls
return exact E7002. Follow-up probes retain separate parser failures at 1,024
parenthesized/mixed-call levels and confirm Parser.exprPath failure at 16,384
qualified-variant fields. Q-061's remaining inventory, Q-060 validation and Phase
6 exit gates stay open. No external review covers this increment yet.