Skip to main content

ctc_agents/
config.rs

1use serde::{Deserialize, Serialize};
2
3#[derive(Clone, Debug, Serialize, Deserialize)]
4pub struct AgentConfig {
5    /// Residual above which an agent flags a paradox risk.
6    pub paradox_residual: f64,
7    /// Weight below which a branch is considered sub-optimal.
8    pub suboptimal_weight: f64,
9    /// Magnitude scale for correction vectors injected into the past.
10    pub correction_scale: f64,
11    /// Maximum probes an agent executes per deployment.
12    pub max_probes_per_tick: usize,
13}
14
15impl Default for AgentConfig {
16    fn default() -> Self {
17        Self {
18            paradox_residual: 1.0,
19            suboptimal_weight: 0.05,
20            correction_scale: 0.01,
21            max_probes_per_tick: 8,
22        }
23    }
24}