tests: audit buffer and error-value rejection twins
This commit is contained in:
1 parent
2742867ef7
commit
5371eb7a2f
14 files changed
+273
-17
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 74/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. The legacy reserved_feature comment describes its actual missing_dependency rejection; its body and permanent name are unchanged. The inventory retains 82 pending, 17 E7xxx analogues and 26 AIR-only cases, all still unmet under Q-053. P6-7 remains doing.
|
||||
Verified same-code coverage is 77/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. The legacy reserved_feature comment describes its actual missing_dependency rejection; its body and permanent name are unchanged. The inventory retains 68 pending, 23 E7xxx analogues and 31 AIR-only cases, all still unmet under 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. These are explicit fixture witnesses, not a second type/layout evaluator or proof of the manual audit.
|
||||
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.
|
||||
|
||||
Validation: full conformance is 1,677/1,677; unit tests, Zig formatting, all 37 checker regressions and the 74-pair source/AIR position check pass. All 35 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 pairs, the ten additional E7xxx analogues and undefined-SSA classification, including their exact codes, fields, markers and normative basis. Renamed-worker, distinct-type and corrupted-identity probes supplement the earlier context regressions. No compiler, verifier, runtime, normative rule, diagnostic code or reference bundle changes.
|
||||
Validation: full conformance is 1,680/1,680; unit tests, Zig formatting, all 41 checker regressions and the 77-pair source/AIR position check pass. All 38 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 new buffer pairs, six E7xxx analogues and five AIR-only cases. Its exclusive-view, ended-view and other-buffer decoy findings are covered by regressions and the opcode/operand witnesses. No compiler, verifier, runtime, normative rule, diagnostic code or reference bundle changes.
|
||||
Reference in new issue
Block a user