cli: parse unary prefix chains iteratively

This commit is contained in:
dev committed 2026-10-10 16:32:29 +03:00
1 parent fb80413b37
commit c36b269289
5 files changed
+270 -32

No files matched your search

+6
View File
@@ -520,3 +520,9 @@ This closes type descent, not arbitrary expression/statement recursion (inspecti
The [Q-060 closing inspection](../design/runtime-value-depth-audit.md#closing-runtime-paths-and-error-exit-cleanup) repairs an execution-arena leak when host OOM interrupts execution or result copying. Deferred cleanup retains the public API, successful output lifetime, fuel, quotas and collection safe points. Exhaustive caller/heap allocator failures pass under ordinary/per-step collection; units, format checks, test-extended, all 1,793 ordinary conformance cases with exact coverage and 29 exact old/new fuel/value CLI pairs pass.
The earlier Debug full GC process is also still live, as is ReleaseSafe; host namespace inspection corrects the previous termination inference. Conformance now flushes each completed result, and an additional focused std GC run has live progress. These are unfinished validation, not full passes. Q-060 and Phase 6 exit gates remain open; no normative/bundle/feature/code/acceptance-limit change or new Claude review is claimed.
## Source unary parser depth (2026-10-10)
[Q-061 probes](../design/source-expression-depth-audit.md) confirm native-stack aborts without JSON: 1,024 `not` prefixes fail in lowering, while 16,384/65,536 fail earlier in parsing. Direct unary-prefix parsing now uses explicit continuations, preserving the grammar, borrow/place boundary, AST spans, exact failures and host OOM propagation. Independent shallow-oracle (448 cases), 32,768 mixed-prefix, deep missing-operand and allocation-failure tests pass. Syntax-only formatting works through 65,536 prefixes; this does not close the confirmed lowering failure.
Build/units/format checks, all 1,793 ordinary conformance cases with exact coverage, 312 grammar CLI checks and 6,078 formatter checks pass. Old/new public source check/lower output remains identical (1,423/506). No normative/reference bundle, feature, code or acceptance-limit change; P6-2, Q-061's remaining expression/statement paths, Q-060 GC validation and Phase 6 exit review remain open. No fresh Claude review covers this increment.