diag: preserve factual source atomic-access diagnostics
This commit is contained in:
1 parent
ee09a7a290
commit
edfef82cc6
18 files changed
+346
-9
No files matched your search
@@ -320,8 +320,10 @@ Validation: unit tests and Zig formatting pass; full conformance is 1,655/1,655.
|
||||
|
||||
## P6-7 public rejection-twin audit (2026-10-08)
|
||||
|
||||
Verified same-code coverage is 90/199 across ownership/resources, borrows, effects/capabilities, tasks, graphs, atomics, linear aggregates and buffer operations. The inventory retains 3 pending, 45 prescribed E7xxx analogues and 61 AIR-only cases; all three categories remain unmet under the literal exit criterion (Q-053). P6-7 remains doing.
|
||||
Verified same-code coverage is 91/199 across ownership/resources, borrows, effects/capabilities, tasks, graphs, atomics, linear aggregates and buffer operations. The inventory retains 0 pending, 45 prescribed E7xxx analogues and 63 AIR-only cases; those 108 classified cases do not meet the literal same-code exit criterion (Q-053). P6-7 remains doing.
|
||||
|
||||
The [checker documentation](../../tests/conformance/README.md) records the diagnostic-fact, independent-position and context witnesses. Named type tables preserve the nominal diamond; early cycle pairs pin the two artifacts that exist before lowering. Five CFG loan pairs pin original AIR, source and canonical lowering after a manual shape review: single br handoff, lend/plain merge, loop-carried loans, cancelled-handle forwarding and parent access after handoff. Three cases remain pending: direct cbr/switch arm parameters are not preserved by the tested source merges, while ordinary atomic access produces E4202 before lowering, without AIR's structured found/use/operand facts. A code-only early match would weaken verification; it remains pending. The current early mode covers declarations only. The task-parameter feature pair validates each full repair header before comparing its missing closure; unrelated declared features do not decide that rule. Reserved channel endpoint elements retain their feature/construct at channel.make. The linear swap pair compares named enum tables and pins the array/unpack and specific arm where the old value leaks. Source-boundary analogues retain exact fields and independent markers; the nominal-call analogue records its local rather than linked declarations. The guard-unlock pair retains the returned view's mutex.borrow ancestor through the generated unlock. Fingerprints attest unchanged artifacts, not audit correctness, and introduce no provenance or lifetime analysis.
|
||||
The [checker documentation](../../tests/conformance/README.md) records the diagnostic-fact, independent-position and context witnesses. Named type tables preserve the nominal diamond; early cycle pairs pin the two artifacts that exist before lowering. Five CFG loan pairs pin original AIR, source and canonical lowering after a manual shape review: single br handoff, lend/plain merge, loop-carried loans, cancelled-handle forwarding and parent access after handoff. The final direct cbr/switch arm-argument cases are AIR-only under spec 15 §4, supported by inspection of lowering and every branch argument in the 740 successful lowerings of the preceding 1,352 public source fixtures. Ordinary atomic access now has a full-AIR twin: a shared field read retains the same load/type/use facts; its reported operand must be the actual load operand. The task-parameter feature pair validates each full repair header before comparing its missing closure; unrelated declared features do not decide that rule. Reserved channel endpoint elements retain their feature/construct at channel.make. The linear swap pair compares named enum tables and pins the array/unpack and specific arm where the old value leaks. Source-boundary analogues retain exact fields and independent markers; the nominal-call analogue records its local rather than linked declarations. The guard-unlock pair retains the returned view's mutex.borrow ancestor through the generated unlock. Fingerprints attest unchanged artifacts, not audit correctness, and introduce no provenance or lifetime analysis.
|
||||
|
||||
Validation: full conformance is 1,707/1,707; unit tests, Zig formatting, all 58 checker regressions and the 90-pair source/AIR position check pass. All 65 source reject_twins fixtures pass collection before every instruction; source coverage remains 121/121. The completion gate still rejects partial coverage. Claude independently reviewed the feature/CFG witnesses and the remaining public rule boundaries, including the swap fingerprints and nominal family. New probes reject mutex creation substituted for channel creation, another swapped enum, a replacement call needing further identity review, omitted array/unpack and a leak on the other arm. The atomic bool analogue marks the source value operand; its AIR error instead marks the cell. Existing Git attributes already force LF for pinned AIR/source files. No compiler, verifier, runtime, normative rule, diagnostic code or reference bundle changes.
|
||||
Validation: full conformance is 1,713/1,713; unit tests, Zig formatting, all 62 checker regressions and the 91-case source/AIR position check pass. All 66 source reject_twins fixtures and five atomic_access fixtures pass collection before every instruction; source coverage remains 121/121. The completion gate still rejects partial same-code coverage. Claude independently reviewed the feature/CFG witnesses, all remaining classifications and the atomic operand checks. New probes reject another scalar or borrow mode, an unrelated borrow reported as the operand, and inconsistent raw/source identities. Existing Git attributes force LF for pinned artifacts.
|
||||
|
||||
The frontend ordinary-dereference E4202 now adds concrete found and use fields, retaining the code, message, primary position and early failure. CLI tests pass 33 checks; comparison with the previous compiler passes 52, including generic/package provenance, first-error selection, untouched alternative errors and identical valid AIR. No SSA identity or AIR location is fabricated for a frontend rejection. Atomic access invariants, verifier/runtime rules and deterministic execution remain unchanged; valid reads use explicit atomic.load orderings. The schema is additive; the source bundle grows by 30 tokens (docs/agent/README.md). Q-053 remains the owner decision on the literal criterion; there are no unaudited public rows.
|
||||
Reference in new issue
Block a user