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

+2 -1
View File
@@ -206,7 +206,8 @@ the cargo gate).
`crates/cli/tests/p2_closure.rs`: 21 semantic fixtures run through
`run --mode pure --json`, sources are scanned for foreign/plugin/import
shortcuts, and value/stdout are compared with the goldens; the stdlib table
self-test also runs in pure mode.
self-test also runs in pure mode. Negative cases prove `foreign.call` is
`permission.denied` and `plugin.invoke` fails in the pure lane.
RFC-CM CM-A08 table stdlib (ADR-0032) is pinned by
`crates/cli/tests/stdlib_table.rs`, which runs `stdlib/tests/table.mq.md` and