pub struct TemporalAgent {
pub decay_rate: f64,
pub prediction_horizon: usize,
pub anomaly_sigma: f64,
pub learning_rate: f64,
pub chirality_lock_threshold: u16,
pub merge_trust: f64,
/* private fields */
}Expand description
A temporal constraint agent that reads dodecets and develops temporal intelligence.
Fields§
§decay_rate: f64Deadband decay rate. Controls how fast the funnel narrows. Higher = faster convergence but more overshoot. Default: 1.0 (square-root rate) Range: [0.1, 10.0]
prediction_horizon: usizePrediction horizon: how many steps ahead to predict. Higher = more anticipation but less accurate. Default: 4
anomaly_sigma: f64Anomaly sensitivity: how many sigmas for anomaly detection. Lower = more sensitive (more anomalies detected). Default: 2.0 (95% confidence)
learning_rate: f64Learning rate for adaptive funnel shape. Higher = faster adaptation but noisier. Default: 0.1
chirality_lock_threshold: u16Chirality lock threshold. Below this confidence, chamber is exploring. Controls when the agent commits to a chirality. Default: 500 (out of 1000 milliunits)
merge_trust: f64Merge trust: how much to trust fleet consensus vs local. 0.0 = only local, 1.0 = only fleet. Default: 0.5
Implementations§
Source§impl TemporalAgent
impl TemporalAgent
pub fn new() -> Self
Sourcepub fn observe(&mut self, x: f64, y: f64) -> TemporalUpdate
pub fn observe(&mut self, x: f64, y: f64) -> TemporalUpdate
Read a sensor value and update temporal model.
This is the main agentic control loop:
- Snap the input (perception)
- Compare with prediction (prediction error)
- Update temporal model (learning)
- Predict next state (planning)
- Determine action (control)
Sourcepub fn funnel_width(&self) -> f64
pub fn funnel_width(&self) -> f64
Get the current funnel width (0.0 = snapped, 1.0 = wide open).
Sourcepub fn temperature(&self) -> f64
pub fn temperature(&self) -> f64
Get the temporal “temperature” — how much the agent is still exploring. High T = exploring (entropy ≈ log₂(6)), Low T = committed (entropy ≈ 0).
Sourcepub fn summary(&self) -> AgentSummary
pub fn summary(&self) -> AgentSummary
Get a summary of the agent’s temporal state.