interp: copy aggregate value trees without native recursion

This commit is contained in:
dev committed 2026-10-09 21:52:08 +03:00
1 parent b1b9b4cf03
commit afc40f8502
6 files changed
+367 -7

No files matched your search

+6
View File
@@ -410,3 +410,9 @@ Old/new comparison of 1,410 pre-existing source files preserves every diagnostic
The [Q-060 zero-materialization increment](../design/runtime-value-depth-audit.md#zero-materialization-repair) fills zeroable values iteratively, retaining field/element order, declaration identities, independent payloads, whole-local publication, allocator errors and fuel/scheduling. Unit cases cover 32,768 array/nominal levels with pending siblings and an allocation failure; a mixed AIR/source run pair checks initialization and subsequent writes. The original fuel-8 probe now returns normally and forty shallow mixed-type old/new records are identical. Follow-up probes independently confirm recursive local-load copying and sharing-preserving collection failures. Q-060 and Phase 6 remain open; no normative/bundle/feature/code change or new depth limit. No fresh Claude review was available.
Validation: all units/format checks, test-extended and 1,785/1,785 conformance cases pass; both new mixed-type cases also pass with collection before every instruction. A verified 32,768-level unit probe pins exact fuel 0–3 boundaries and instruction counts. Source/AIR semantics and bundle size are unchanged; the separate deep collector/copy failures are retained in Q-060.
## P6-1 runtime storage/value copying (2026-10-09)
The [Q-060 storage/value-copy increment](../design/runtime-value-depth-audit.md#storagevalue-copy-repair) replaces recursive aggregate/array copying with pending-sibling continuations. Every source payload occurrence remains independently copied; scalar/variant/declaration facts, identity handles, allocator errors and instruction/fuel counts remain unchanged. Deep unit cases cover 32,768 alternating levels, siblings/empty fields, duplicate payloads, identity leaves and failed local.store publication. A mixed Copy-record/enum/array AIR/source pair and 42 exact old/new run comparisons cover observable copying. The prior deep local.load probe now returns, while an added local.store independently reaches the remaining collector failure under its ordinary threshold. Units/format checks, test-extended and all 1,787 conformance cases pass. No normative/bundle/feature/code change or new depth limit; Q-060 and Phase 6 remain open. No fresh Claude review was available.
Both new copy cases also pass with collection before every instruction; their shallow sharing-preserving GC behavior is covered separately from the retained deep collector failure.