verifier: evaluate type sizes with explicit continuations
This commit is contained in:
1 parent
c94e5a0868
commit
3906ce5a9b
11 files changed
+353
-54
No files matched your search
@@ -341,6 +341,8 @@ The final size row is now explicitly classified as `source_early`, retaining its
|
||||
|
||||
The [Q-059 type-depth audit](../design/air-type-depth-audit.md) confirms a parser native-stack failure on a 37-KB, 4,096-depth AIR parameter type. Pending anonymous constructors now use an explicit arena-backed stack, preserving grammar, feature/member-gate order and diagnostic positions. Unit tests parse 32,768 levels and check deep unknown/malformed leaves; all unit/format checks and 1,765/1,765 conformance cases pass, and 364 public AIR checks preserve exact old/new outputs. The old crashing input now accepts. A 16,384-depth check still fails in the verifier's recursive size evaluation, so Q-059 remains open. No normative/bundle/feature/code change or new acceptance limit; no fresh Claude review was available.
|
||||
|
||||
The [Q-059 size-query increment](../design/air-type-depth-audit.md#size-query-repair) gives verifier sizing explicit continuations, iterates inner-budget visits and caches anonymous wrapper identities without changing size arithmetic or nominal cycle depth. Unit cases cover 32,768 anonymous/nominal levels, zero leaves, overflow/null caching, constructor identity and forged-cache rebuilding. The existing full 1,765-case snapshot, four new AIR/source zero/overflow fixtures and sixteen focused GC/quota cases pass; together the full/focused runs cover all 1,769 current conformance cases. Unit/format checks and test-extended pass, and 364 pre-existing AIR checks preserve exact old/new output. The new rejection twin brings P6-7 to 97/206, with zero pending, 45 source-error analogues, one source-early analogue and 63 AIR-only cases. A 16,384-depth probe now reaches the next failure in wellFormed; Q-059 and the phase stay open. No normative/bundle/feature or diagnostic code change, and no new syntax-depth limit; no fresh Claude review was available.
|
||||
|
||||
Spec 15's initial Phase 6A limits now point to its existing extensions. Its introductory diagnostic rule follows §10 and construct-specific codes; widening reports source E7005 while AIR retains E1002, including the corrected Quick Reference entry. Multi-result bindings include complete unpacking, byte escapes agree with the later exact list, and grammar comments locate graph access in §8. Old incremental limits link buffers/borrow returns to §17/§19. No grammar production, semantic rule or implementation changes. Six existing public fixtures confirm the reported code and deterministic successful AIR; Claude independently audited the corrections. The reference bundle rebuilds; source growth is +50/+47/+58 tokens across the three tokenizers, with unchanged Quick Reference token counts, AIR and std (docs/agent/README.md). P6-1/P6-5 remain open for their unimplemented surfaces.
|
||||
|
||||
## P6-6 contract spec gate (2026-10-09)
|
||||
|
||||
Reference in new issue
Block a user