tests: preserve audited CFG loan handoff contexts
This commit is contained in:
1 parent
50d1bb2c4b
commit
fe63ae9586
12 files changed
+377
-8
No files matched your search
@@ -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 79/199. Audited pairs cover owner/file/receiver leaks, use after transfer, authority/effects, unsafe calls, Send/Share, live task loans, mutex guards, graph content/access, atomic orders/effects, linear unpack/projection, buffer views/failure, static calls and recursive layouts. Independent markers verify instruction, outcome-block and function/type declaration positions. An island-destroy fixture retains a child object borrow and its subsequent load; witnesses preserve discarded-unpack and returned-buffer-failure contexts. Failed-send closed/cancelled edges converge at one source error, matching AIR's merged failure path. E3101 callee identities resolve to their explicit flat effect sets. Send/Share argument comparisons preserve the complete rejected parameter type while normalizing worker/SSA names; source/raw identities and related values remain identical. The producer lookup recognizes island.borrow as a borrow. Three buffer pairs retain shared-view push exclusion, reserve effects and capability kind. Error-value and borrowed-element analogues keep their source-prescribed E7xxx codes; missing feature/dependency headers and reserved primitive floats are AIR-only. A user nominal f64 lowers to @f64 and does not exercise the reserved primitive rule. Module-level cancellation activated by a shield helper preserves the join-wait rule; a taken mutex preserves E3001 on its next borrow. Linear match/unpack, buffer operand/outcome and file-mode analogues keep their prescribed source diagnostics. Legacy nested-owner/resource signatures require the now-published linear_aggregates header, generated automatically in source. Q-016 records the nominal f64 naming decision needed before primitive activation. The legacy reserved_feature comment describes its actual missing_dependency rejection; its body and permanent name are unchanged. The inventory retains 42 pending, 34 E7xxx analogues and 44 AIR-only cases, all still unmet under Q-053. P6-7 remains doing.
|
||||
Verified same-code coverage is 86/199 across ownership/resources, borrows, effects/capabilities, tasks, graphs, atomics, linear aggregates and buffer operations. The inventory retains 32 pending, 34 prescribed E7xxx analogues and 47 AIR-only cases; all three categories remain unmet under the literal exit criterion (Q-053). P6-7 remains doing.
|
||||
|
||||
The diamond budget pair requires an identical named type-declaration table so equal-sized flat arrays cannot replace its shared nominal graph. Early cycle pairs, which produce no canonical AIR, pin both manually audited files with SHA-256; edits require a fresh context review while compiled diagnostics and positions remain checked. Exact opcode counts preserve the shared-view push function shape; an operand witness links the reported conflicting borrow to buffer.view, excluding ended decoys and views of other buffers. These are explicit fixture witnesses, not a second type/layout evaluator or proof of the manual audit.
|
||||
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 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,688/1,688; unit tests, Zig formatting, all 41 checker regressions and the 79-pair source/AIR position check pass. All 46 source reject_twins fixtures pass collection before every instruction; source coverage remains 121/121. The completion gate still rejects partial coverage. Claude independently audited the two new same-code pairs, eleven E7xxx analogues and thirteen AIR-only classifications, including exact structured fields, markers and governing rules. Earlier exclusive-view, ended-view and other-buffer decoys remain covered by regressions and the opcode/operand witnesses. No compiler, verifier, runtime, normative rule, diagnostic code or reference bundle changes.
|
||||
Validation: full conformance is 1,694/1,694; unit tests, Zig formatting, all 47 checker regressions and the 86-pair source/AIR position check pass. All 52 source reject_twins fixtures pass collection before every instruction; source coverage remains 121/121. The completion gate still rejects partial coverage. Claude independently verified all fifteen CFG fingerprints against another build, audited the seven new pairs and three AIR-only classifications, and confirmed the cross-shape/drift/guard-parent regressions. Existing Git attributes already force LF for pinned AIR/source files. No compiler, verifier, runtime, normative rule, diagnostic code or reference bundle changes.
|
||||
Reference in new issue
Block a user