1.4 KiB
Runtime value-depth audit
Non-normative evidence at 53030ef, separate from Q-059's compiler type traversals. No acceptance limit or runtime rule is proposed here.
Generate TYPE as "array<" * 32768 + "u8" + ",1>" * 32768:
module depth.zero
air 0
lang 0.1
features [arrays, ownership]
fn @main() -> void
effects []
entry:
%a = local.alloc TYPE
local.zero %a
ret
Every array length is one. The accounted value/frame size is one byte, and aji check accepts with no output. aji run --fuel 8 aborts with exit -6, no JSON run record and a symbolized traceback containing 9,997 zeroValue frames. The input has three instructions; the failure occurs inside materialization, not because fuel is exhausted. Tests use the ordinary 8-MiB native stack; only child core capture is disabled. No timeout ends the run.
This confirms native recursion in zeroValue on a verified input. An iterative fix must retain zero initialization, value shape, heap/root lifetimes, allocation failure handling, collection safety and instruction/fuel accounting. A new accepted-depth limit or trap would require a normative decision; none is added by compiler-side repairs.
Source inspection also finds recursion in deepCopy/copyAll and valueBytes. Those failure paths are unverified: no deep-value input reached them in this probe. Runtime marking and output serialization also need inspection before claiming complete bounded native-stack behavior. Q-060 remains open.