tests: audit source rejections before AIR lowering
This commit is contained in:
1 parent
a491eba193
commit
ba99ad6727
7 files changed
+192
-9
No files matched your search
@@ -393,6 +393,8 @@ The exhaustive inventory in `tools/source_reject_twins.py` keeps these rows visi
|
||||
|
||||
Proposed criterion, for owner decision: retain every AIR rejection test; for each source-authorable rule/context, require a compiled source twin with the same code or its spec-prescribed E7xxx translation, stable facts and independent positions. Generated-only contexts require an explicit governing source-policy audit. Every newly discovered public AIR rejection remains pending until audited. This proposal changes no language rule and does not count a matching code alone as a twin. It is not adopted; the literal gate and doing status remain unchanged.
|
||||
|
||||
2026-10-09: after the Q-058 size correction, all 205 public AIR rejection files are classified: 96 verified same-code pairs, 45 E7xxx analogues, 63 AIR-only cases and one `source_early` analogue. The last category retains an authorable cyclic-array declaration whose AIR budget rejects E5101 while source finite-layout validation rejects E1003 before lowering. Both codes, facts, declaration positions and reviewed artifact fingerprints are checked; it contributes no same-code coverage. The final criterion must also account explicitly for such earlier verifier-code rejections, rather than label their authorable shape AIR-only or change diagnostics for coverage. No policy is adopted; `--require-complete` still exits 1.
|
||||
|
||||
## Q-054 — Executable contract obligations and invariant boundaries
|
||||
|
||||
P6-6 requires contracts and their four audit statuses, but spec 13 §1/spec 08 §8 do not define predicate purity, snapshot/result lifetime, boundary coverage or a proof calculus. AIR has no contract table. Current probes at `94414da` show identical audit reports for mandatory/bypassable assertions, effects-empty mutation and ambient task.cancelled observation, and E3001 after consuming an observed owner. New contract headers also need an AIR0 rejected-code audit: an unfeatured header currently reports E0001, outside §8.7's E0004/E0006 exceptions; Q-055 records the conflict with §8.1.
|
||||
|
||||
@@ -335,6 +335,8 @@ Five Q-058 regression cases now have verified source/AIR twins with identical E5
|
||||
|
||||
One row remains pending: nested_size_cycle_overflow.air reports E5101 before finite-layout validation, while the same source declaration necessarily rejects earlier with E1003. A separate source fixture preserves that actual code; it is not falsely linked as an E5101 twin. The current inventory's E7xxx analogue category cannot represent this earlier verifier-code rejection. Q-053's literal completion decision remains open; no rejection rule or diagnostic is changed for coverage. Full conformance passes 1765/1765; sixteen nested-size cases also pass with collection before every instruction. All 62 checker regressions pass, and source construct coverage stays 121/121. No fresh Claude review was available for this increment. P6-7 remains doing.
|
||||
|
||||
The final size row is now explicitly classified as `source_early`, retaining its authorable cyclic-array shape and unlike E5101/E1003 codes. The inventory tool pins both reviewed artifacts, AIR budget facts and source type facts, checks independent declaration markers, and requires lower/check rejection parity without fabricated AIR coordinates. It does not infer cycle equivalence or waive the same-code completion gate. All 205 AIR rows are classified: 96 same-code, 45 E7xxx analogues, one source-early analogue and 63 AIR-only; zero pending. Eight new failure probes cover artifact/fact/position drift, lower/check disagreement and a category that cannot satisfy `--require-complete`. All 70 checker regressions and 16 focused GC conformance cases pass. No compiler/normative/bundle changes or fresh Claude review. Q-053 and P6-7 remain open.
|
||||
|
||||
## P6-1 source specification consistency (2026-10-09)
|
||||
|
||||
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.
|
||||
|
||||
Reference in new issue
Block a user