- add environment_id/environment_digest/interpreter_version to KernelDescriptor - require external CLI descriptors to pin an absolute executable and a full provider digest - verify the digest at registration and immediately before every spawn; tampering after registration fails with ForeignError::Integrity before spawn - validate digest formats and reject relative external entrypoints - pin the example provider digest and add an integrity test - document that uv/npm environment materialization and lock integration remain open; strict isolation is unchanged and still refused
External kernel provider example
mocklang is not built into marqdo-foreign. The descriptor registers it at
run time without changing interpreter or host source:
marqdo run examples/kernel-mock/demo.mq.md \
--kernel examples/kernel-mock/kernel.json \
--allow-foreign
The mocklang executable receives the source file path as argv[1] and the
versioned request envelope on stdin. For foreign.call it must print exactly
one typed wire value on stdout. A missing provider or wire version is
kernel.unavailable; the Code value itself remains inert until the explicit
call.