docs: refine P6-7 scope and same-code breakdown
This commit is contained in:
1 parent
18d2976f24
commit
4bf92b23d6
2 files changed
+5
-3
No files matched your search
@@ -386,7 +386,7 @@ P6-7 rejection-twin work reproduced accepted source that returns the cancelled h
|
||||
|
||||
## Q-053 — P6-7's literal same-code exit criterion and the source boundary
|
||||
|
||||
P6-7 requires every conformance rejection to have a source twin with the same code. Spec 15 §10 instead requires fully source-decided type errors to use E7xxx, and malformed generated AIR/SSA/CFG to report E7900 as compiler defects. Spec 15 §1/§9 also makes SSA, CFG, local placement, lexical borrow ends and feature headers generated mechanics. Examples: AIR lossy widening is E1002 but source is E7005; missing borrow-return `from` is E2102 in AIR but E7006 in source (§19); explicit branch arity, unsupported AIR versions and duplicate feature headers have no source operation. Uninitialized locals and deliberately invalid proven-index fact forms likewise have no implemented source spelling.
|
||||
P6-7 originally required every conformance rejection to have a source twin with the same code; that criterion is now tracked in P6-14 (2026-10-13 decision below). Spec 15 §10 instead requires fully source-decided type errors to use E7xxx, and malformed generated AIR/SSA/CFG to report E7900 as compiler defects. Spec 15 §1/§9 also makes SSA, CFG, local placement, lexical borrow ends and feature headers generated mechanics. Examples: AIR lossy widening is E1002 but source is E7005; missing borrow-return `from` is E2102 in AIR but E7006 in source (§19); explicit branch arity, unsupported AIR versions and duplicate feature headers have no source operation. Uninitialized locals and deliberately invalid proven-index fact forms likewise have no implemented source spelling.
|
||||
|
||||
The exhaustive inventory in `tools/source_reject_twins.py` keeps these rows visible: same-code pairs, audited source-error analogues, AIR-only cases and pending audits. Only verified same-code pairs satisfy the current criterion; the other categories are not exclusions or completion evidence. The owner needs to decide how the final phase review should account for mandatory E7xxx translation and generated-only AIR defects, without weakening existing AIR tests, exposing raw mechanics in source, or changing diagnostics solely to satisfy coverage. Until then the original criterion and P6-7's doing status remain unchanged; unreviewed and authorable twins can still be completed.
|
||||
|
||||
@@ -396,6 +396,8 @@ Proposed criterion, for owner decision: retain every AIR rejection test; for eac
|
||||
|
||||
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.
|
||||
|
||||
2026-10-13: the owner confirmed moving the literal same-code criterion out of Phase 6 into P6-14; P6-7 is done for diagnostic source mapping. This supersedes the earlier statements that P6-7 remains doing. The alternative criterion above is still not adopted, and Q-053 remains open for that decision. The current inventory has 206 classified rows: 97 verified same-code pairs, 45 E7xxx analogues, one source-early analogue and 63 AIR-only cases. Deferral does not count the latter 109 rows as same-code completion.
|
||||
|
||||
## 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.
|
||||
|
||||
Reference in new issue
Block a user