pub struct TypedPagesConfig {
pub enabled: bool,
pub enforcement: TypedPagesEnforcement,
pub audit_path: String,
pub audit_channel_capacity: usize,
}Expand description
Configuration for typed-page compaction invariants (#3630).
Controls classification, batch-level assertion checking, and audit logging.
All behavior is disabled by default; set enabled = true to activate.
§Example (TOML)
[memory.compression.typed_pages]
enabled = true
enforcement = "active"
audit_path = ""
audit_channel_capacity = 256Fields§
§enabled: boolEnable typed-page classification and batch-level assertion checking.
Default: false.
enforcement: TypedPagesEnforcementEnforcement mode:
observe: classify and emit audit records only; no behavioral change.active: classify +SystemContextpointer-replace + batch assertions + audit.
Default: "observe".
audit_path: StringPath for JSONL audit log. Empty string resolves to {data_dir}/audit/compaction.jsonl.
Default: "".
§Security
This field is operator-only trusted input read from the agent’s configuration file. Write access to the config file implies file-system write access, so no additional canonicalization is enforced here. Do not expose this field to end-users or untrusted configuration sources.
audit_channel_capacity: usizeBounded channel capacity for the async audit writer. Default: 256.
Trait Implementations§
Source§impl Clone for TypedPagesConfig
impl Clone for TypedPagesConfig
Source§fn clone(&self) -> TypedPagesConfig
fn clone(&self) -> TypedPagesConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for TypedPagesConfig
impl Debug for TypedPagesConfig
Source§impl Default for TypedPagesConfig
impl Default for TypedPagesConfig
Source§impl<'de> Deserialize<'de> for TypedPagesConfigwhere
TypedPagesConfig: Default,
impl<'de> Deserialize<'de> for TypedPagesConfigwhere
TypedPagesConfig: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl JsonSchema for TypedPagesConfig
impl JsonSchema for TypedPagesConfig
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read more