feat(foreign): verify pinned environment directories (B-12)

- add environment_dir to KernelDescriptor and verify its deterministic
  file-set digest at registration and immediately before every spawn
- reject missing digests, relative/missing dirs, symlinks, special files and
  oversized environments; tampering fails with EnvironmentIntegrity
- inject MARQDO_FOREIGN_ENV and prepend <env>/bin to PATH for the child
- add a real provider test covering success and post-registration tampering
- document that uv/npm environment generation and lock-v3 integration remain
  open
This commit is contained in:
cflmy committed 2026-11-20 13:12:47 +08:00
1 parent f69c563afd
commit 1099ed6160
7 files changed
+251 -21

No files matched your search

Generated
+1
View File
@@ -370,6 +370,7 @@ dependencies = [
"sha2",
"tempfile",
"thiserror",
"walkdir",
]
[[package]]