interp: trace collector values with explicit continuations

This commit is contained in:
dev committed 2026-10-09 22:31:05 +03:00
1 parent afc40f8502
commit f92817b127
4 files changed
+286 -19

No files matched your search

+6
View File
@@ -415,4 +415,10 @@ Validation: all units/format checks, test-extended and 1,785/1,785 conformance c
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.
## P6-1 collector/result-copy depth repair (2026-10-09)
The [Q-060 sharing-preserving copy increment](../design/runtime-value-depth-audit.md#sharing-preserving-copy-repair) iterates payloads/cells/graphs and preserves forwarding identities, backing storage, projection paths, slice ranges, buffer metadata, mutex views and race shadows. Roots complete copying before execution resumes or a result escapes. Tests inspect cycles/sharing after freeing the old heap, fail each copier allocation request, traverse 32,768 internal payload/cell levels, and execute verified deep programmes under ordinary/per-step collection with exact fuel boundaries and live returned payloads. No normative/bundle/feature/code change or new depth limit is introduced.
Units/format checks, test-extended and all 1,787 ordinary conformance cases pass. Per-step collection passes 57 focused run cases plus 26 phase-3 run cases with stress 16; 146 old/new mixed-value and identity/schedule records are identical. The full per-step conformance run is still running at this checkpoint. Follow-up probes independently confirm valueBytes recursion on own.new and JSON output failure at std.json.Stringify's fixed nesting stack. 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.