air: query cache-free nominal properties without recursion

This commit is contained in:
dev committed 2026-10-10 12:13:49 +03:00
1 parent 897f538840
commit 35635603f9
9 files changed
+539 -229

No files matched your search

+2
View File
@@ -473,6 +473,8 @@ The [audit-report increment](air-type-depth-audit.md#audit-report-traversal) fix
The [cache-free nominal size increment](air-type-depth-audit.md#cache-free-nominal-accounted-size-queries) fixes an independently reproduced 32,768-declaration low-level query failure. Uncached queries use temporary explicit continuations, release their metadata and propagate host OutOfMemory separately from arithmetic overflow. Deep queries, 7,168 independent arithmetic comparisons, cached null/partial-cache reads and 54 cached/cache-free verified runtime outcome pairs constrain compatibility. Parsed depth-1,024/4,096 public verification/runtime programmes pass before and after; no old runtime failure at those depths is claimed. Uncached nominal property predicates and remaining public query call paths keep Q-059 open.
The [cache-free nominal property increment](air-type-depth-audit.md#cache-free-nominal-property-queries) repairs independently reproduced failures in all nine uncached structural queries at 32,768 declarations. Public allocator/error APIs reuse the existing iterative fixed-point preparation in temporary storage; cached reads and anonymous terminal paths allocate nothing. Independent shallow comparisons, deep leaf/sibling cases, failed-allocation cleanup and raw/prepared generic-argument accept/reject tests preserve structural rules and diagnostic facts. No acceptance limit or semantic feature is introduced. Closing public-call-path and frontend AST traversal audits keep Q-059 open.
## Q-060 — Native recursion while materializing runtime values
The [executed runtime audit](runtime-value-depth-audit.md) confirms that a verified one-byte value with 32,768 length-one nested arrays aborts inside zeroValue under `aji run --fuel 8`, rather than producing a run record. The instruction has not exhausted fuel. Iterative runtime traversal must preserve initialization, value shape, allocator/root lifetimes, collection safety and instruction accounting; adding a depth trap/acceptance limit needs a normative decision. At that baseline, recursive copying, value sizing, collection and serialization were additional audit candidates with unverified failure paths; the increment below records subsequent executed failures. Compiler type repairs in Q-059 do not resolve Q-060.