Skip to main content

MAX_STATE_JSON_BYTES

Constant MAX_STATE_JSON_BYTES 

Source
pub const MAX_STATE_JSON_BYTES: usize = _; // 134_217_728usize
Expand description

Separate cap for long-lived JSON state files (e.g. state.json). The generic 8 MiB validated-read cap is tuned for corpus / sidecar inputs, but a real AICX install accumulates many projects’ seen_hashes and run history over months. Applying the generic cap would hard-fail on startup for legitimate large states. 128 MiB is well above any realistic state size yet still catches runaway growth or a corrupted file masquerading as state.