cli: propagate host allocation errors from source queries
This commit is contained in:
1 parent
6945b511a4
commit
50a7575efb
6 files changed
+401
-127
No files matched your search
@@ -511,7 +511,7 @@ Units/format checks, shallow/deep key-boundary and OOM tests, generic/static-fun
|
||||
|
||||
## Type-depth closing audit (2026-10-10)
|
||||
|
||||
Q-059 is resolved for the [compiler type-traversal inventory](../design/type-traversal-inventory.md). The final repair removes a confirmed `typeOfNoFail` failure reached through shallow field expressions; complete checks accept 16,384/65,536 nested field-array levels. The best-effort query retains its type classification and OOM-to-null contract without publishing partial output. Independent shallow/deep/allocation tests, units/format checks, all 1,793 conformance cases with exact coverage, nominal CLI integration (130 checks) and byte-identical old/new source checks/lowerings (1,423/506) pass.
|
||||
Q-059 is resolved for the [compiler type-traversal inventory](../design/type-traversal-inventory.md). The final repair removes a confirmed `typeOfNoFail` failure reached through shallow field expressions; complete checks accept 16,384/65,536 nested field-array levels. At this historical checkpoint the query retained its type classification and OOM-to-null contract; the host-OOM follow-up below supersedes that error policy. Independent shallow/deep/allocation tests, units/format checks, all 1,793 conformance cases with exact coverage, nominal CLI integration (130 checks) and byte-identical old/new source checks/lowerings (1,423/506) pass.
|
||||
|
||||
This closes type descent, not arbitrary expression/statement recursion (inspection-only Q-061), Q-056 policy, Q-060's unfinished full per-step GC validation or Phase 6 exit review. No normative/bundle/feature/code or acceptance-limit changes; Claude's earlier nominal-property review does not cover these later frontend increments.
|
||||
|
||||
@@ -535,13 +535,13 @@ Independent unary/addressability oracles, 32,768-node cases and allocation clean
|
||||
|
||||
## Source expression type queries (2026-10-10)
|
||||
|
||||
The [Q-061 query increment](../design/source-expression-depth-audit.md#expression-type-query-continuations) replaces expression/built-in result recursion with explicit continuations, retaining classification, lazy fallback and callee priority. Its callee callbacks build qualified paths iteratively with one complete string. Best-effort queries retain unknown on output OOM and now use the same outcome on continuation OOM; host allocation counts need not match. No normative/bundle/feature/code/acceptance-limit or runtime/ownership change.
|
||||
The [Q-061 query increment](../design/source-expression-depth-audit.md#expression-type-query-continuations) replaces expression/built-in result recursion with explicit continuations, retaining classification, lazy fallback and callee priority. Its callee callbacks build qualified paths iteratively with one complete string. At this historical checkpoint, queries returned unknown on output/continuation OOM; the host-OOM follow-up below supersedes that policy. Host allocation counts need not match. No normative/bundle/feature/code/acceptance-limit or runtime/ownership change.
|
||||
|
||||
Independent shallow descent comparisons (703), deep structural/built-in/fallback cases, 65,536-field path construction and allocation cleanup tests pass. Final build/units/format checks and all 1,793 ordinary conformance cases with exact coverage pass, as do 139 expression-depth, 635 non-value, 33 atomic-access and 6,078 formatter CLI checks; old/new public checks/lowerings remain exact (1,423/506). The formerly crashing cast/dereference source now returns its inner E7005. A separate unsuffixed-binding probe accepts 1,024 negations but confirms the next native failure in useIn at 16,384. Q-061's expected-use, other expression/statement and generic paths, Q-060's full per-step validation and Phase 6 exit review remain open. Claude's earlier Q-059 property review does not cover this increment.
|
||||
|
||||
## Source expected-use queries (2026-10-10)
|
||||
|
||||
The [Q-061 expected-use increment](../design/source-expression-depth-audit.md#expected-use-query-continuations) replaces mutual expression/statement/block query recursion with explicit requests. Deferred comparison/shift/for hints preserve lazy search order; the outer rest cursor, top-level let rebinding barrier, cast hint removal and skipped kinds retain their original policy. Host metadata OOM is unknown without diagnostics/output; no new inference, normative/bundle/feature/code/acceptance-limit or runtime/ownership rule is introduced.
|
||||
The [Q-061 expected-use increment](../design/source-expression-depth-audit.md#expected-use-query-continuations) replaces mutual expression/statement/block query recursion with explicit requests. Deferred comparison/shift/for hints preserve lazy search order; the outer rest cursor, top-level let rebinding barrier, cast hint removal and skipped kinds retain their original policy. The initial metadata-OOM-to-unknown policy is superseded by the host-OOM follow-up below; no new inference, normative/bundle/feature/code/acceptance-limit or runtime/ownership rule is introduced.
|
||||
|
||||
Independent shallow comparisons (967), 32,768-level unary/mixed/block helpers, deferred-hint allocation traps and worklist-OOM cleanup tests pass. Final build/units/format checks, all 1,793 ordinary conformance cases with exact coverage, 186 expression-depth, 635 non-value and 234 independent-error CLI checks pass; old/new public checks/lowerings remain exact (1,423/506). The previously crashing inferred-binding source accepts through 65,536 negations, while missing context retains E7007. Follow-up probes confirm separate native failures at 1,024 levels in binary lowering, parenthesized parsing and generic expression transformation. Q-061's remaining inventory, Q-060's full per-step validation and Phase 6 exit review remain open. No fresh Claude review covers this increment.
|
||||
|
||||
@@ -550,3 +550,25 @@ Independent shallow comparisons (967), 32,768-level unary/mixed/block helpers, d
|
||||
The [Q-061 binary increment](../design/source-expression-depth-audit.md#binary-operand-lowering-continuations) shares scalar continuations with unary lowering, eliminating native re-entry on alternating operator trees. Eager operand type/error priority, instruction/span/name order and boolean RHS/join construction are retained; runtime short-circuit behavior and fuel remain unchanged. Worklist OOM propagates without public partial AIR. No normative/bundle/feature/code/acceptance-limit or ownership/runtime rule changes.
|
||||
|
||||
Independent binary/wrapper/context comparisons (6,048), deep left/right/mixed/boolean helpers and exact failed-allocation block prefixes pass. Build/units/format checks, all 1,793 ordinary conformance cases with exact coverage, 360 expression-depth, 635 non-value and 234 independent-error CLI checks pass; old/new public checks/lowerings remain exact (1,423/506). Arithmetic checks/lowerings accept through 65,536 operations. Boolean chains accept at 1,024; at 16,384 they reach the existing E5101 block limit (`max: 16384`, `found: 32769`), rather than aborting. Current probes retain separate parenthesized/generic failures at 1,024 levels; their callbacks and other expression/block paths still need repair/audit. Q-061, Q-060's full per-step validation and Phase 6 exit review remain open. No fresh Claude review covers this increment.
|
||||
|
||||
## Source query host-OOM follow-up (2026-10-10)
|
||||
|
||||
Claude's relayed read-only review covers the five Q-061 increments through
|
||||
6945b51. It found no grammar/span/query/error/emission/CFG divergence, but
|
||||
identified host OOM erased into unknown and subsequently reported as E7007.
|
||||
The [follow-up](../design/source-expression-depth-audit.md#external-review-and-host-oom-follow-up) reproduces this with a recovering one-shot allocation failure
|
||||
and makes the query/callback closure fallible. Unknown remains optional; lazy
|
||||
lookup and source diagnostics without OOM are unchanged. No normative, bundle,
|
||||
feature, code, acceptance-limit or runtime rule change.
|
||||
|
||||
The audit corrects worklist memory claims: buffers allocated in the caller arena
|
||||
remain until arena destruction. It also lists the remaining non-scalar parser/
|
||||
lowerer and liveness/read/assignment paths explicitly. Build/units/format
|
||||
checks, all 1,793 ordinary conformance cases with exact coverage, 360
|
||||
expression-depth and 234 independent-error CLI checks pass. Recovering failures
|
||||
are covered at ten callers, twelve callbacks and every direct allocation in
|
||||
three public-lowering fixtures; existing worklist/array-output failure loops
|
||||
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.
|
||||
Reference in new issue
Block a user