test(p2): prove foreign/plugin shortcuts fail in the pure lane

- Add negative tests: foreign.call -> permission.denied and plugin.invoke ->
  structured failure under --mode pure, complementing the 21-fixture pure lane.
- Update P2 evidence/tests README/changelog.

Gate: fmt, clippy -D warnings, 438 tests passed.
This commit is contained in:
cflmy committed 2026-11-20 23:29:14 +08:00
1 parent 974102dfc3
commit 313ac035e8
4 files changed
+49 -1

No files matched your search

@@ -28,6 +28,16 @@ The independently-run conformance harness (`conformance_semantics.rs`) also
builds `StdHost` with `SandboxMode::Pure` and `Capabilities::pure()` for every
fixture.
Negative shortcuts:
```text
foreign.call in pure -> permission.denied
plugin.invoke in pure -> structured failure
```
so the lane proves both that the algorithms run without host shortcuts and that
the shortcuts are actually unavailable.
## Criterion mapping
| Criterion | Fixtures | What is proven |