cli: compare source types iteratively
This commit is contained in:
1 parent
936d65359c
commit
232f93f188
4 files changed
+121
-12
No files matched your search
@@ -172,3 +172,9 @@ The confirmed 16,384-array struct-member airType failure is repaired by an itera
|
||||
Independent shallow comparison covers 2,352 leaf/array/wrapper shapes, every registered capability and internal wrapper, plus allocation-free leaves. A 65,536-level mixed conversion is inspected and freed iteratively; exactly one output allocation per constructor proves no additional work allocation or borrowed source node. Per-node request lengths/alignments, OOM points, byte/allocation counts and cleanup match the old recursive derivation on a 64-level mixed type. Arena backing growth is deliberately not an equivalence oracle: in-place resize availability can differ between two arenas. Units/format checks, nominal/Copy-content/static-function integration (110/119/25), all 1,791 conformance cases with exact corpus coverage and old/new checks/lowerings (1,421/506) pass.
|
||||
|
||||
Complete checks of structs with 16,384 and 65,536 array levels now accept without output. A separate 65,536-level source return-equality input confirms the next native failure in Ty.eql (10,001 frames, exit -6, no JSON). Core capture alone is disabled; no timeout ends a probe. Source equality and closing query paths keep Q-059 open; Q-060 validation and Phase 6 gates remain separate. No normative/bundle/feature/code, runtime/effect/ownership or accepted-depth limit changes. No fresh Claude review is claimed.
|
||||
|
||||
## Source type equality
|
||||
|
||||
The confirmed Ty.eql failure is repaired with two type cursors and no allocation or mutation. Tag checks still precede descent, each array length is checked before its element, integer/capability names compare string contents, and nominal types compare declaration indices without expanding their graph. All wrapper and leaf identities are unchanged. An independent shallow copy of the old comparator covers every pair of leaf/array/wrapper shapes, including equal names in different storage and zero/max-u64 lengths. Separate 65,536-level mixed trees test equality in both directions and differences at the leaf, interior array length, interior wrapper and outer tag.
|
||||
|
||||
Units/format checks and all 1,791 conformance cases pass with exact corpus coverage; all 1,421 public source checks and 506 accepted lowerings preserve exact old/new exit/stdout/stderr. Complete return-equality checks now accept at 16,384 and 65,536 array levels without output. Changing the deep return leaf to u16 yields exactly one E7005 at 2:655407, with independently verified full found/expected types (655,362/655,363 bytes) and no stderr. A separate deep Copy-array move probe yields E7006/move_copy at 65,536 levels with its complete type; no native failure is observed in that query path. Only child core capture is disabled; no timeout ends a probe. Closing source-query inventory and Q-060 validation remain open, as do the independent Phase 6 gates. No normative/bundle/feature/code, runtime/effect/ownership or accepted-depth limit changes; no fresh Claude review is claimed.
|
||||
@@ -489,6 +489,8 @@ The [source type text increment](air-type-depth-audit.md#source-type-text-repair
|
||||
|
||||
The [source-to-AIR conversion increment](air-type-depth-audit.md#source-to-air-type-conversion) repairs airType using a constant-state target cursor with the same constructor allocations and host-error behavior. Deep struct-member checks now accept; an independent return-equality probe confirms Ty.eql native-stack exhaustion at 65,536 array levels. Source equality and closing query work keep Q-059 open; no accepted-depth limit or semantic rule changes.
|
||||
|
||||
The [source equality increment](air-type-depth-audit.md#source-type-equality) repairs Ty.eql with allocation-free cursors preserving structural identity. Deep equal returns accept and unequal leaves yield one factual E7005 with complete types. A deep move-on-Copy query produces E7006/move_copy without a native failure. Closing source-query inventory keeps Q-059 open; Q-060 and Phase 6 gates remain separate. No semantic rule or accepted-depth limit changes.
|
||||
|
||||
## 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.
|
||||
|
||||
@@ -490,3 +490,7 @@ Units/format checks, 3,696 independent shallow comparisons, deep mixed output an
|
||||
The [Q-059 conversion increment](../design/air-type-depth-audit.md#source-to-air-type-conversion) replaces native recursion with an output-target cursor, preserving source/AIR type shape, constructor allocation order and error publication. Structs with 16,384/65,536 array levels now pass complete checking. Tests cover 2,352 independent shallow comparisons, 65,536-level construction without work allocation, and per-node OOM/order/cleanup equivalence.
|
||||
|
||||
Units/format checks, nominal/Copy-content/static-function integration (110/119/25), all 1,791 conformance cases with exact coverage and old/new checks/lowerings (1,421/506) pass. A separate return-equality input confirms the next failure in Ty.eql at 65,536 array levels. Equality/closing query checks, Q-060 validation and Phase 6 gates remain open. No normative/bundle/feature/code change or accepted-depth limit is introduced; no fresh Claude review is claimed.
|
||||
|
||||
## Source type equality (2026-10-10)
|
||||
|
||||
The [Q-059 equality increment](../design/air-type-depth-audit.md#source-type-equality) removes native recursion from Ty.eql without allocation or changed type identity. Independent shallow pair comparisons and separate deep trees cover equal contents and outer/interior/leaf differences. Complete 65,536-level equal returns accept; unequal leaves return one E7005 with exact full types and source position. Units/format checks and all 1,791 conformance cases pass with exact coverage; all 1,421 source checks and 506 accepted lowerings retain exact old/new exit/stdout/stderr. Closing source-query inventory, Q-060 validation and the independent Phase 6 gates remain open. No normative/bundle/feature/code or accepted-depth limit changes; no fresh Claude review is claimed.
|
||||
Reference in new issue
Block a user