tests: audit swap leak and remaining source rule boundaries

This commit is contained in:
dev committed 2026-10-08 22:25:42 +03:00
1 parent 03305f0957
commit ee09a7a290
12 files changed
+408 -10

No files matched your search

+3 -3
View File
@@ -320,8 +320,8 @@ 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 88/199 across ownership/resources, borrows, effects/capabilities, tasks, graphs, atomics, linear aggregates and buffer operations. The inventory retains 22 pending, 40 prescribed E7xxx analogues and 49 AIR-only cases; all three categories remain unmet under the literal exit criterion (Q-053). P6-7 remains doing.
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.
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. Direct cbr/switch arm-parameter cases remain pending: the tested source expressions instead pass handles to a later br merge. The task-parameter feature pair validates each full repair header before comparing its missing closure; unrelated declared features do not decide that rule. Six more source-boundary analogues retain exact fields and independent markers. 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. 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.
Validation: full conformance is 1,700/1,700; unit tests, Zig formatting, all 53 checker regressions and the 88-pair source/AIR position check pass. All 58 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 CFG fingerprints and shape regressions, and the feature-header witness, two new pairs, six analogues and two AIR-only classifications. Corrupted repair headers, larger missing closures, task results substituted for parameters and relaxed source/raw payloads are rejected by independent probes. 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,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.