cli: inspect generic uses with an explicit worklist

This commit is contained in:
dev committed 2026-10-10 13:04:58 +03:00
1 parent b2a0251376
commit 24a3876003
4 files changed
+183 -7

No files matched your search

+2
View File
@@ -477,6 +477,8 @@ The [cache-free nominal property increment](air-type-depth-audit.md#cache-free-n
The [source parser increment](air-type-depth-audit.md#source-type-syntax-parser) repairs a confirmed `typeExpr` failure at 16,384 source-array levels, preserving syntax, argument order, split-angle spans and existing shallow diagnostic envelopes. Deep speculative slice-advice parsing also returns its original E7001 instead of aborting. The same monomorphic file now formats but full checking reaches a confirmed recursive `usesGenerics` failure; that remaining source AST traversal keeps Q-059 open. The generic depth-64 guard is not silently extended to ordinary parsed annotations.
The [source generic-use increment](air-type-depth-audit.md#source-generic-use-detection) replaces the confirmed recursive AST scan with explicit borrowed work entries. Generic-use markers, field order and the specialization path are unchanged; independent shallow comparisons, deep positive/negative ASTs and failed-allocation cleanup cover the query. The repeated 16,384-array check now passes this stage and confirms the next native-stack failure in lower.resolveType. Source lowering/remaining traversals and the closing audit keep Q-059 open; no generic guard is imposed on monomorphic parsing.
## 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.