pub type ExecutionBudget = ExecutionLimits;Expand description
Request-scoped resource caps enforced by the Monty/VFS adapter.
Aliased Type§
pub struct ExecutionBudget {Show 13 fields
pub max_program_bytes: usize,
pub max_duration: Duration,
pub max_recursion_depth: usize,
pub max_memory_bytes: usize,
pub max_os_calls: u64,
pub max_read_bytes: u64,
pub max_write_bytes: u64,
pub max_io_call_bytes: usize,
pub max_path_bytes: usize,
pub max_directory_entries: u64,
pub max_output_bytes: usize,
pub max_result_bytes: usize,
pub max_exception_bytes: usize,
}Fields§
§max_program_bytes: usizeMaximum UTF-8 bytes accepted as one program.
max_duration: DurationCumulative time Monty may spend executing bytecode.
max_recursion_depth: usizeMaximum Python call-stack depth.
max_memory_bytes: usizeMaximum interpreter heap bytes enforced by the supervised worker allocator. The process-local correctness harness cannot install a per-call global allocator.
max_os_calls: u64Maximum typed OS calls and high-level VSH tool calls serviced by the host adapter.
max_read_bytes: u64Maximum cumulative bytes materialized by read and append operations.
max_write_bytes: u64Maximum cumulative bytes submitted by write and append operations.
max_io_call_bytes: usizeMaximum payload bytes materialized by one typed read or write call.
max_path_bytes: usizeMaximum UTF-8 bytes accepted in one Monty-visible path.
max_directory_entries: u64Maximum cumulative directory entries returned to Monty.
max_output_bytes: usizeMaximum UTF-8 bytes retained from print() output.
max_result_bytes: usizeMaximum deep host footprint of the returned Monty value.
max_exception_bytes: usizeMaximum retained exception message, traceback and structured payload bytes.