Skip to main content

TemporalAgent

Struct TemporalAgent 

Source
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: f64

Deadband 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: usize

Prediction horizon: how many steps ahead to predict. Higher = more anticipation but less accurate. Default: 4

§anomaly_sigma: f64

Anomaly sensitivity: how many sigmas for anomaly detection. Lower = more sensitive (more anomalies detected). Default: 2.0 (95% confidence)

§learning_rate: f64

Learning rate for adaptive funnel shape. Higher = faster adaptation but noisier. Default: 0.1

§chirality_lock_threshold: u16

Chirality lock threshold. Below this confidence, chamber is exploring. Controls when the agent commits to a chirality. Default: 500 (out of 1000 milliunits)

§merge_trust: f64

Merge trust: how much to trust fleet consensus vs local. 0.0 = only local, 1.0 = only fleet. Default: 0.5

Implementations§

Source§

impl TemporalAgent

Source

pub fn new() -> Self

Source

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:

  1. Snap the input (perception)
  2. Compare with prediction (prediction error)
  3. Update temporal model (learning)
  4. Predict next state (planning)
  5. Determine action (control)
Source

pub fn deadband(&self, t: f64) -> f64

Get the current deadband threshold at time t ∈ [0, 1]

Source

pub fn funnel_width(&self) -> f64

Get the current funnel width (0.0 = snapped, 1.0 = wide open).

Source

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).

Source

pub fn summary(&self) -> AgentSummary

Get a summary of the agent’s temporal state.

Trait Implementations§

Source§

impl Default for TemporalAgent

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.