Expand description
Primary Rust SDK for VSH.
The implementation remains isolated in vsh-runtime; this crate is the stable
application-facing registry handle.
Structs§
- Access
Set - Compact set of path capabilities denied by a protected rule.
- Approval
Binding - Exact fields covered by an independent approval grant.
- Approval
Grant - An independent approval bound to one exact transaction and expiry window.
- Approval
Id - The digest identity of one exact bounded approval grant.
- Artifact
Limits - Hard allocation and cardinality bounds for durable approval artifacts.
- Base
Snapshot - An immutable metadata manifest with content that becomes immutable on first capture.
- BlobId
- The content digest of an immutable blob.
- Blob
Store - Filesystem-backed immutable content-addressed blob storage.
- Call
Policy - Immutable pre-call policy used on the Monty hot path.
- Canonical
Diff - Stable, path-ordered virtual filesystem diff.
- Canonical
Diff Metrics - Work performed while deriving one canonical diff.
- Captured
Content - Bytes captured between two metadata observations of the same host node.
- Commit
Config - Hard bounds applied before durable commit work begins.
- Commit
Plan - Borrowed exact transaction artifact accepted by the trusted committer.
- Commit
Receipt - Compact proof that an exact transaction reached verified durable state.
- Commit
Reservation - Non-cloneable proof that one transaction won the atomic commit reservation.
- Commit
Resolution - Result of resolving a prepared commit request.
- Committer
- Capability-rooted workspace snapshot, revalidation, commit, and recovery engine.
- Content
Load Error - Error returned by a lazy snapshot content loader.
- Data
Directory - A pinned capability for VSH’s durable data directory.
- Data
Directory Error - Failure to create or pin a durable VSH data directory.
- Denied
Access - A denied path capability, retained even when sandboxed code catches the exception.
- Deny
Manifest - Deterministic denial payload.
- Diff
Digest - The digest identity of one canonical virtual filesystem diff.
- Diff
Entry - One path change in a canonical virtual filesystem diff.
- Directory
Digest - The digest identity of one observed directory listing.
- Effect
Event - One sequence-numbered observed effect.
- Execution
Limits - Per-execution limits enforced independently from Monty’s bytecode tracker.
- Execution
Outcome - Successful result of a process-local Monty execution.
- Execution
Stats - Host-side counters from one execution.
- File
Stamp - Metadata identity captured for one immutable base-snapshot node.
- File
Store Config - Hard bounds for the dependency-free compacting transaction state store.
- File
Transaction Store - Durable cross-process transaction state using only the Rust standard library.
- Hook
Config - Trusted, transaction-bound configuration for one commit hook.
- Hook
Decision Record - Provenance for the hook decision applied to one exact event.
- Hook
Handler Error - Contained handler failure. Runtime resolution applies fail-closed semantics first.
- HookId
- The opaque digest identity of one configured commit hook.
- Hooked
Runtime - Native runtime plus a host-owned commit handler.
- InProcess
Config - Configuration for the process-local Monty correctness harness.
- InProcess
Monty - Process-local typed adapter used for correctness tests and trusted embedding.
- Intent
Digest - The digest identity of transaction intent supplied out of band.
- Memory
Transaction Store - Process-local reference backend for state-machine and concurrency correctness.
- NoFaults
- Production fault injector that never interrupts work.
- Node
State - Canonical state of a virtual filesystem node.
- Platform
File Id - Platform-specific identity of a host filesystem node.
- Policy
Digest - The digest identity of one deterministic policy configuration.
- Policy
Input - Inputs observed by deterministic transaction policy.
- Policy
Thresholds - Deterministic thresholds for escalation and hard denial.
- Principal
Id - The opaque digest identity of an independent approval principal.
- Program
Digest - The digest identity of the exact untrusted program source.
- Protected
Rule - One canonical protected-path rule.
- Read
Observation - Dependency observed while virtual code was executing.
- Read
SetDigest - The digest identity of one canonical transaction read set.
- Receipt
- Compact proof of virtual execution, policy, and optional verified commit.
- Recovery
Conflict - Fail-closed recovery result requiring operator resolution.
- Recovery
Report - Aggregate result of scanning durable commit journals.
- Request
Event - Immutable, bounded evidence supplied to a commit hook.
- Request
Event Id - The digest identity of one exact commit-hook request event.
- Review
Content - Hash-verified bytes for one transaction-owned path/content identity.
- Risk
Manifest - Bounded evidence shown to a fresh approval principal.
- Risk
Metrics - Exact bounded metrics used for a deterministic policy decision.
- RunRequest
- One borrowed native execution request.
- Runtime
- One native VSH engine instance with no process-global execution lock.
- Runtime
Config - Immutable runtime configuration shared by Rust and
PyO3callers. - Runtime
Config Digest - The digest identity of security-relevant runtime configuration.
- Snapshot
Builder - Builder for one immutable snapshot manifest.
- Snapshot
Id - The digest identity of an immutable base snapshot.
- Snapshot
Limits - Bounds for eager host metadata traversal; file and link bytes remain lazy.
- Snapshot
Metrics - Observable snapshot size and lazy-materialization state.
- Stage
Timings - Monotonic stage costs recorded without string allocation in the hot path.
- Subprocess
Config - Configuration for the crash-isolated, typed Monty subprocess adapter.
- Subprocess
Monty - A short-lock worker pool backed by Monty’s official typed subprocess protocol.
- Transaction
Binding - Exact immutable inputs bound into an approval and commit identity.
- Transaction
Id - The digest identity of an exact VSH transaction.
- Transaction
Identity Input - Inputs used to construct an approval-bound transaction identity.
- Transaction
Policy - Deterministic transaction policy and its pre-call capability rules.
- Transaction
Record - The storage-facing identity and state of a transaction.
- Transition
Error - An invalid persisted transaction transition.
- VPath
- A normalized, workspace-relative virtual path.
- Verification
Failure - Expected and observed state for a failed operation or final-state check.
- VfsMetrics
- Transaction-local virtual filesystem size counters.
- Virtual
Fs - Copy-on-write filesystem over one immutable snapshot.
- Virtual
Root - A validated absolute namespace prefix exposed to Monty.
- Worker
Failure - Failure reported by the supervised subprocess boundary.
- Write
Precondition - Base state that must still hold before a path may be written.
- Write
SetDigest - The digest identity of one canonical transaction write set.
Enums§
- Access
Kind - Semantic capability requested for one virtual path.
- Approval
Grant Error - Invalid approval grant input.
- Artifact
Error - Durable pending-artifact encoding or validation failure.
- Blob
Store Error - A blob-store operation failed or immutable content did not verify.
- Commit
Error - Trusted-commit, revalidation, or recovery failure.
- Commit
Plan Error - Invalid or unbounded immutable commit artifact.
- Commit
Preparation - Prepared commit evidence, revalidated by the runtime before resolution.
- Content
Version - Content identity carried by a node state.
- Deny
Reason - Stable reason a deterministic policy must reject a transaction.
- Diff
Kind - Semantic category of one canonical diff entry.
- Effect
- Semantic event emitted by the operation that actually observed or changed state.
- Effect
Origin - Source of an observed virtual filesystem effect.
- Execution
Error - Failure of a Monty execution adapter.
- Execution
Limit Exceeded - Why execution stopped before a normal Monty result was produced.
- Fault
Point - Deterministic crash boundary exposed to fault-injection tests.
- Hook
Baseline - Deterministic policy outcome that caused a hook event.
- Hook
Decision - Decision returned by a hook handler.
- Hook
Scope - Which policy-authorized commit candidates a hook may inspect.
- Hook
Verdict - Stable normalized outcome retained next to a hook resolution.
- Host
Error - Capability-scoped host filesystem observation failure.
- Journal
Error - Durable operation-journal or commit-marker validation failure.
- Monty
Failure Phase - Phase in which Monty raised an exception outside sandboxed exception handling.
- Monty
Object - An owned Python value exchanged between Monty and its host.
- Monty
Type - The Python type of a value at the host boundary — the public mirror of the
internal runtime
Typeenum. - Node
Kind - The semantic kind of a virtual filesystem node.
- OsFunction
Call - Tagged dispatch value for OS-level operations.
- Parse
Digest Error - A canonical 32-byte lowercase/uppercase hexadecimal identifier was malformed.
- Pattern
Error - Invalid protected-path pattern.
- Plan
Decode Error - Durable commit-plan decoding failure.
- Policy
Config Error - Invalid deterministic-policy threshold configuration.
- Policy
Decision - Final deterministic transaction decision.
- Policy
Profile - Built-in deterministic transaction posture.
- Receipt
Detail - Amount of canonical change detail retained in a receipt.
- Result
Compatibility - Host surface whose value-conversion contract must accept an execution result.
- Result
Compatibility Error - A bounded Monty result cannot be represented by the selected host surface.
- Revalidation
Conflict - One exact dependency mismatch detected before the first host mutation.
- Risk
Flag - Why an otherwise valid transaction requires an independent approval principal.
- RunMode
- Whether one call stops after policy or commits deterministic auto-approvals.
- Runtime
Decision - Deterministic policy result retained in the native receipt.
- Snapshot
Error - Snapshot content-capture and manifest validation failure.
- Transaction
State - A persisted transaction state.
- Transaction
Store Error - Atomic transaction-store failure.
- VPath
Error - A reason a virtual path was rejected.
- VfsError
- Virtual filesystem operation failure.
- Virtual
Path Error - A Monty path that cannot name a node in the configured virtual root.
- Virtual
Root Error - Invalid synthetic-root configuration.
- VshError
- Stable native error surface shared with the Python exception mapper.
- Worker
Failure Kind - Supervised-worker failure category.
Constants§
- DEFAULT_
SECRET_ PATTERNS - Secret-like paths denied by the default call policy for every access kind.
- DEFAULT_
VIRTUAL_ ROOT - Canonical absolute path exposed to sandboxed code for the workspace root.
- VERSION
- The VSH semantic version shared by native and Python packages.
Traits§
- Commit
Hook - Synchronous Rust hook. Async hosts should drive
prepare_commitandresolve_commitaround their own executor instead of blocking the runtime. - Content
Loader - Capability-scoped provider for one lazily captured snapshot node.
- Fault
Injector - Test seam for simulating process loss at durable boundaries.
- Transaction
Store - Atomic transaction-state operations required by the runtime and committer.
Functions§
- bind_
transaction - Bind every approval-relevant artifact into one immutable transaction identity.
- engine_
kind - Identify the implementation behind all public SDK surfaces.
- read_
set_ digest - Canonically hash a read dependency set.
- validate_
result_ compatibility - Validate one result before any host mutation that a binding could report as failed.
- write_
set_ digest - Canonically hash write preconditions.
Type Aliases§
- Execution
Budget - Request-scoped resource caps enforced by the Monty/VFS adapter.