Skip to main content

Crate lean_ctx_fs

Crate lean_ctx_fs 

Source
Expand description

Filesystem and environment foundation for LeanCTX | OSS.

Policy-free building blocks the engine composes: crash-atomic writes, bounded advisory file locks, BLAKE3 hashing, the stable store-name hasher, JSONC parsing, home and Codex directory resolution, the managed-configuration carrier readers, the engine’s error types, a process liveness probe and the process-wide test environment lock. The engine reaches each module through a facade at its old core:: path; this crate never depends on the engine.

Modules§

atomic_fs
Shared, policy-free atomic-write mechanics.
confined_write
Writes that stay below a trusted root and never follow a symlink on the way.
env_lock
The process-wide test environment lock.
error
file_lock
hasher
Central hashing utility using BLAKE3.
home
jsonc
managed
Reads the machine’s managed configuration from its MDM carrier.
process
Process liveness probe shared by the atomic-write orphan sweep and the engine’s process management (ipc::process re-exports it).
stable_hash
A hasher whose output never changes between Rust releases, for names that are stored: the project directories under the data dir are keyed by it.