base/interface/exec/in_process/mod.rs
1//! The second provider: everything in this process, nothing on the machine.
2//!
3//! The acceptance for the execution layer is that two providers exist and
4//! switching between them is configuration. This is the second one, and it is
5//! not a stub — it is the shape this repository already uses for a second
6//! implementation (`InMemoryBlobStore`, `InMemoryLayers`, `FixedEnvironment`),
7//! and it has the use those have: running the tool layer without touching
8//! anything.
9//!
10//! Paired with a [`FixedEnvironment`], a whole session runs and replays with
11//! no disk, no subprocess and no network in it. Tool tests today create
12//! temporary directories and fork real processes, which is how a suite ends up
13//! measuring how fast a machine forks rather than what the code decides.
14//!
15//! # What it deliberately does not do
16//!
17//! It does not validate the contracts the way a remote provider would. It
18//! never has to chunk a transfer, resolve a symlink graph that is not this
19//! one, or answer what partial enforcement means across a machine boundary.
20//! Those stayed as design constraints in `docs/ARCHITECTURE.md` §5,
21//! precisely because this implementation cannot enforce them.
22//!
23//! [`FixedEnvironment`]: crate::interface::environment::FixedEnvironment
24
25mod filesystem;
26mod network;
27mod process;
28mod sandbox;
29
30pub use filesystem::InMemoryFileSystem;
31pub use network::OfflineNetwork;
32pub use process::{ScriptedProcess, ScriptedRun};
33pub use sandbox::NoSandbox;