pub struct DecisionStep {
pub step: usize,
pub observation_id: String,
pub decision: Decision,
}Expand description
One captured decision step of a single backtest run: the agent’s raw output
at one point-in-time observation. This is the persisted artifact — it holds the
agent’s Decision (orders, sizing, conviction, reasoning) tagged with the
observation it was made against, and deliberately stores no returns, NAV, or
any self-reported metric. The score is recomputed by replaying these decisions
through the engine, never read from the agent’s word.
Fields§
§step: usize0-based step index within the run’s window (window.start + step is the
dataset index the observation was drawn from).
observation_id: StringStable id of the point-in-time observation this decision answered — the observation’s ISO date. Lets a verifier confirm the decision lines up with the frozen dataset’s bar at the replayed step.
decision: DecisionThe agent’s raw decision at this step (orders + reasoning).
Trait Implementations§
Source§impl Clone for DecisionStep
impl Clone for DecisionStep
Source§fn clone(&self) -> DecisionStep
fn clone(&self) -> DecisionStep
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more