cli: write composed specialization identities iteratively
This commit is contained in:
1 parent
f5e2af15e8
commit
d98ddbc073
7 files changed
+284
-37
No files matched your search
@@ -194,3 +194,13 @@ The confirmed Lowerer.zeroValue failure is repaired by counting the array chain,
|
||||
Independent shallow comparison with the old derivation covers all leaves/wrappers and array lengths including zero/max-u64, reserved SSA-name collisions and exact error objects. A 1,024-level supported helper emits independently assembled exact instructions, preserving the original outer type pointer. A 65,536-level unsupported helper rejects without allocating even with a failing allocator; emitted prefixes and arena cleanup are checked across allocation failures on a supported chain. Units/format checks, independent-error integration (234 checks), reason integration (229 checks over 113 public E7006 fixtures), 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. Twelve generated source programs preserve byte-identical lowering and 46 old/new run records across zero/final fuel boundaries; their nested u8/bool values are independently checked through depth 512.
|
||||
|
||||
Complete checking of the previously failing 16,384-level source, and a 65,536-level counterpart, now returns exactly one E7006/zero_not_zeroable at 3:32 without stderr. Only child core capture is disabled; no timeout ends a probe. The supported deep-helper result is not a claim of complete CLI acceptance of its varying-length type. Specialization/call-path inventory keeps Q-059 open; Q-056 policy, Q-060 closing validation and Phase 6 gates remain separate. No normative/bundle/feature/code, ownership/runtime/effect or accepted-depth limit changes; no fresh Claude review is claimed.
|
||||
|
||||
## Composed specialization identity
|
||||
|
||||
At f5e2af1, a recursive generic call adding 31 or 63 arrays around T aborts before the fixed active-expansion guard: the 272/432-byte sources produce no JSON and exit -6, with 1,851/2,340 identity frames and 61/39 instantiate frames. Adding one array instead reaches the existing depth-64 E7006; a single 64-array argument reaches the existing structural-traversal E7006. The guarded ty query can return an already composed environment argument, so it does not bound the subsequent recursive identity writer. These are executed failures, not a proposed wider source depth limit. Only child core capture is disabled; no timeout ends probes.
|
||||
|
||||
The identity writer now emits prefixes through a type cursor and stores suffix lengths/spans in explicit arena-owned frames. Its leaf checkpoint and each inner-to-outer closing checkpoint retain the original >16,384-byte test and exact offending span. Named defining-module identities, generated-type/function keys, capability/file spelling and punctuation are unchanged. It does not add a prefix checkpoint or alter expansion/structural/key/count limits, reuse, sorting or SHA-based AIR names. Host OOM propagates before a complete key/module is published; private prefix bytes retain their existing partial-output behavior, and caller-arena lifetime owns the metadata.
|
||||
|
||||
Independent shallow comparisons cover scalar/nominal/generated names, capabilities, file modes, static functions, all wrappers, array lengths and prefixes around the exact byte boundary, including complete error objects and intermediate bytes. Writer-only deep fixtures produce an independently assembled 4,095-array key (16,382 bytes), reject the next array at its outer closing span (16,386 bytes), and reject a 32,768-array prefix at the original leaf checkpoint. These helper fixtures are not full source acceptance claims. Failed allocations check propagated OOM, prefix bytes and arena cleanup. Units/format checks and generic/static-function CLI integration (42/25 checks) pass; both new conformance regressions pin code E7006, and hosted checks pin implementation_limit/name/call-site provenance and identical check/lower/report/run/explore diagnostics.
|
||||
|
||||
Both previously failing growth sources now reach one E7006/implementation_limit at 2:35 without stderr; the one-array and single-64-array results retain their prior behavior. All 1,421 pre-existing public source checks and 506 accepted lowerings retain exact old/new exit/stdout/stderr. The full 1,791-case snapshot plus the two added focused regressions cover all 1,793 current conformance files exactly, with every case passing. Closing call-path inventory keeps Q-059 open; Q-056, 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.
|
||||
@@ -495,6 +495,8 @@ The [remaining source linear-query increment](air-type-depth-audit.md#remaining-
|
||||
|
||||
The [source SSA zero increment](air-type-depth-audit.md#source-ssa-zero-emission) repairs that native failure with explicit parent storage, preserving constant/splat ordering and the implemented leaf classification. Both 16,384/65,536-level checks now return the existing E7006/zero_not_zeroable, with no new traversal allocation for unsupported leaves. Exact emission/error comparisons, supported helper sequencing, OOM cleanup and old/new fuel-boundary runs constrain compatibility. Specialization/call-path inventory keeps Q-059 open; Q-056's source zeroability decision is not resolved here.
|
||||
|
||||
The [composed identity increment](air-type-depth-audit.md#composed-specialization-identity) repairs independently reproduced native failures during expanding generic substitution. Iterative key emission retains postorder byte-limit checks, spans, canonical identities and all existing specialization limits. Two tiny source regressions now reach E7006/implementation_limit instead of aborting; all 1,793 current conformance files are covered by the full prior snapshot plus the two additions. Closing call-path inventory keeps Q-059 open; helper-only deep identity tests are not broader source acceptance claims.
|
||||
|
||||
## 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.
|
||||
|
||||
@@ -502,3 +502,9 @@ The [Q-059 query increment](../design/air-type-depth-audit.md#remaining-source-l
|
||||
## Source SSA zero emission (2026-10-10)
|
||||
|
||||
The [Q-059 zero increment](../design/air-type-depth-audit.md#source-ssa-zero-emission) makes array zero generation iterative, preserving the implemented leaf classification and constant/splat ordering. Deep checks at 16,384/65,536 levels now return one E7006/zero_not_zeroable without stderr. Units/format checks, independent shallow emission/error comparisons, exact 1,024-level helper output, allocation failures, reason/independent-error integration (229/234) and all 1,791 conformance cases with exact coverage pass. All 1,421 source checks and 506 accepted lowerings retain exact old/new exit/stdout/stderr. Twelve generated programs retain exact lowering and 46 old/new fuel-boundary records with independently checked values. Specialization/call-path inventory, Q-056 policy, Q-060 validation and Phase 6 gates remain open. No normative/bundle/feature/code or accepted-depth limit changes; no fresh Claude review is claimed.
|
||||
|
||||
## Composed specialization identity (2026-10-10)
|
||||
|
||||
The [Q-059 identity increment](../design/air-type-depth-audit.md#composed-specialization-identity) repairs native failures on tiny expanding-substitution sources. Key emission is iterative; canonical bytes, postorder size/error-span checks, reuse/names and all existing specialization limits remain unchanged. Two permanent conformance cases and hosted CLI checks retain one E7006/implementation_limit at the call site across all rejection entry points.
|
||||
|
||||
Units/format checks, shallow/deep key-boundary and OOM tests, generic/static-function integration (42/25), and old/new checks/lowerings over the pre-existing source corpus (1,421/506) pass. The full 1,791-case snapshot plus the two focused additions cover all 1,793 current conformance files exactly. Closing call-path inventory, Q-056 policy, Q-060 validation and 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