cli: validate structural source type positions before AIR
This commit is contained in:
1 parent
5f76e92ff3
commit
caf3b86e80
48 files changed
+423
-33
No files matched your search
@@ -237,3 +237,11 @@ The invariant is unchanged borrow mode, aliasing, provenance and child-first tem
|
||||
Read-only review also found a missing formatter space in grouped `ref (*p)` / `mut (*p)` arguments. The grouped-form regression failed before correcting the keyword spacing; both spellings now preserve tokens and canonical AIR. The separate existing source type-position gap is recorded as Q-042 without changing its semantics here.
|
||||
|
||||
Validation: 12 new conformance tests pass with per-instruction collection; full conformance is 1,269/1,269 and unit tests 126/126. Formatter passes 4,357 checks over 983 public files (975 parsed, eight existing syntax errors, 631 identical AIR outputs); source coverage stays 121/121. Old/new CLI comparison over the 971 preceding public sources preserves all diagnostics and 624 successful canonical lowerings. Final independent Claude review passes.
|
||||
|
||||
## P6-2 structural type positions (2026-10-07)
|
||||
|
||||
Q-042/spec 15 §10 closes source annotation gaps using the verifier's existing pure position predicates. Nested borrows, non-value content, fields/payloads, local annotations and known unused generic/static-contract constructors reject E7005 at their own annotation; restrictions involving unknown parameters wait for substitution. Graph-content properties retain E2111. The invariant remains that second-class borrows cannot be stored or nested in forbidden positions. AIR independently enforces the same rule; no ownership transfer, runtime allocation/cleanup or deterministic interpreter behavior changes.
|
||||
|
||||
Thirty-four conformance fixtures cover valid runs/unused headers, forbidden positions, specialization and graph-diagnostic preservation. CLI checks exercise exact fields/positions, all diagnostic commands, package reachability and source/AIR/hosted parity. Existing invalid-source fixtures now expect the earlier E7005. No syntax, code, feature, verifier/runtime state or evaluation input changes; source bundle growth is recorded in docs/agent/README.md. Q-043 records the separately reproduced Copy-content validation gap. P6-2 remains open; the historical P6A-12 checkpoint does not establish completeness for the current language.
|
||||
|
||||
Validation: full conformance 1,303/1,303; all 34 new fixtures also pass with per-instruction collection. Unit tests and formatting checks pass. CLI integration passes 74 checks, existing generics/buffers/linear suites pass, and formatter passes 4,453 checks over 1,015 public files (1,007 parsed, eight existing syntax errors, 631 identical AIR outputs). Source coverage remains 121/121. Comparison of 983 preceding public sources finds only five expected invalid-type diagnostic changes, with no check acceptance changes and all other canonical lowerings identical. All 333 public AIR files preserve check diagnostics and acceptance. Independent Claude review passes after clarifying feature-gate precedence.
|
||||
Reference in new issue
Block a user