You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Producer-neutral name for the ownership-annotated wasm custom
section. Removes the brand-coupling that made typed-wasm's wire
format embed one of its producers' names. Both AffineScript and
Ephapax (and any future producer) now share a producer-neutral
section name.
Hard-flip across the three estate repos in coordinated PRs:
- typed-wasm (this PR): OWNERSHIP_SECTION_NAME constant + comments
/ docs / tests / aspect assertion
- affinescript (sibling PR): codegen, tw_verify, tw_interface,
affine-js loader, tea bridges, CLI output strings
- ephapax (sibling PR): bump typed-wasm-verify rev pin + comment
updates
Tests: cargo test -p typed-wasm-verify → 43 unit + 10 cross_compat
passing; tests/aspect/claim-envelope.mjs → 57 assertions passing.
Refs: estate disentangling — typed-wasm is producer-agnostic; the
wire format must not brand one of its consumers.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: crates/typed-wasm-verify/README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ Post-codegen verifier for typed-wasm **L7 (aliasing safety)** and **L10 (lineari
5
5
6
6
## What it does
7
7
8
-
Given a wasm module that carries an `affinescript.ownership` custom section, this crate:
8
+
Given a wasm module that carries an `typedwasm.ownership` custom section, this crate:
9
9
10
10
1.**Intra-function check** — walks every function body and computes per-path `(min_uses, max_uses)` for each parameter. Linear params must be `(1, 1)` on every path; ExclBorrow params must have `max_uses ≤ 1`.
11
11
2.**Cross-module check** — given a callee's exported ownership interface plus a caller module that imports those functions, verifies that Linear-param imports are invoked exactly once per execution path.
0 commit comments