Expand description
Policy-as-data configuration for FrankenTUI decision controllers.
Captures all tunable parameters across the decision stack as a single
PolicyConfig that can be loaded from TOML or JSON at startup, removing
the need for compile-time constant changes.
§Loading
# ftui-policy.toml
[conformal]
alpha = 0.05
min_samples = 20
[cascade]
recovery_threshold = 10ⓘ
let policy = PolicyConfig::from_toml_file("ftui-policy.toml")?;
let policy = PolicyConfig::from_json_str(json)?;§Defaults
Every field has a default that exactly matches the current hardcoded values
in each decision component, so PolicyConfig::default() produces the same
behavior as the existing code.
Structs§
- Bocpd
Policy Config - BOCPD changepoint detection policy parameters.
- Cascade
Policy Config - Degradation cascade policy parameters.
- Conformal
Policy Config - Conformal predictor policy parameters.
- EProcess
Budget Policy Config - E-process budget controller policy parameters.
- EProcess
Throttle Policy Config - E-process throttle (recomputation gating) policy parameters.
- Evidence
Policy Config - Evidence logging policy parameters.
- Frame
Guard Policy Config - Conformal frame guard policy parameters.
- PidPolicy
Config - PID controller gains policy parameters.
- Policy
Config - Top-level policy configuration for the FrankenTUI decision stack.
- VoiPolicy
Config - VOI (value-of-information) sampling policy parameters.
Enums§
- Policy
Config Error - Errors that can occur when loading a policy configuration.