cli: propagate host allocation errors from source queries

This commit is contained in:
dev committed 2026-10-10 18:32:23 +03:00
1 parent 6945b511a4
commit 50a7575efb
6 files changed
+401 -127

No files matched your search

+2
View File
@@ -533,4 +533,6 @@ The [expected-use increment](source-expression-depth-audit.md#expected-use-query
The [binary operand increment](source-expression-depth-audit.md#binary-operand-lowering-continuations) shares explicit continuations with unary lowering, preserving type/error priority, instruction order and short-circuit CFG. Arithmetic checks/lowerings accept through 65,536 operations; deep boolean chains now reach the existing E5101 block limit without stack failure. No normative depth limit or operator rule changes. Current parenthesized and generic-unary checks still abort at 1,024 levels; Q-061's remaining inventory and independent Phase 6 gates stay open.
The [external review and host-OOM follow-up](source-expression-depth-audit.md#external-review-and-host-oom-follow-up) supersede the initial query OOM-to-unknown policy. A one-shot allocation failure reproduces false E7007 before repair. Expression/expected-use queries and their annotation, field, signature and place callbacks now propagate host OOM separately from optional unknown answers. Worklist buffers retain caller-arena lifetime; list deinit is not immediate physical release. The audit explicitly inventories non-scalar parsing/lowering, generic cloning/path callbacks and liveness/read/assignment scans. Build/units/format checks, all 1,793 ordinary conformance cases, 360 expression-depth and 234 independent-error CLI checks pass; frozen old/new public checks/lowerings remain exact (1,423/506). Recovering caller/callback and public-lowering allocation tests reject false diagnostics and partial publication. Q-061 remains open; this follow-up has no external review yet.
Audit these paths separately with finite public/generated source inputs before claiming whole-frontend bounded native-stack processing. Prefer explicit continuations preserving existing syntax, evaluation/query order, diagnostics and OOM behavior. A new depth rejection requires a normative decision; Q-059's type-traversal resolution does not authorize one.