feat(sandbox): sandbox modes and honest strict-mode refusal

Blueprint section 9: advertise a security guarantee only when it can be
enforced.

- SandboxMode pure/project/strict with stable names.
- PlatformCapabilities detection reports strict isolation as unavailable in
  this build with an explicit reason; worker processes are reported false.
- enforce() refuses strict mode when OS-level isolation is not implemented,
  instead of pretending a cooperative in-process check is a sandbox.
- Pure/project modes remain available.
This commit is contained in:
cflmy committed 2026-11-20 10:43:50 +08:00
1 parent 46c9ca2fd3
commit d799617076
2 files changed
+188 -2

No files matched your search

-2
View File
@@ -9,7 +9,5 @@ repository.workspace = true
authors.workspace = true
[dependencies]
marqdo-span = { workspace = true }
serde = { workspace = true }
thiserror = { workspace = true }