The Heartbeat Evaluation Loop
The evaluation cycle is the agent's core loop. It runs on a schedule (the "heartbeat") and on-demand when important signals arrive.
What Happens in Each Cycle
- Signal ingestion: Collect new signals since the last evaluation — news articles, price changes, user notes, webhook data
- Node mapping: Map each signal to the relevant causal tree node(s)
- Probability update: Adjust node probabilities based on new information
- Root recomputation: Cascade updates through the tree to compute new thesis-implied prices
- Edge calculation: Compare updated thesis prices against current market prices
- Strategy evaluation: Check if any strategy entry/exit/stop conditions are now met
- Notification: Send alerts for significant changes (edge found, confidence shift, strategy trigger)
Evaluation Frequency
- Scheduled: Every 30-60 minutes during market hours
- Event-triggered: Immediately when a high-priority signal arrives (e.g., economic data release)
- Manual: You can force an evaluation with
sf thesis evaluate
What the Agent Produces
Each evaluation generates:
- Updated confidence score and delta (e.g., "confidence changed from 68% to 72%")
- Summary of what changed and why
- Updated edge snapshot across all linked markets
- Any triggered strategy actions
Evaluation History
All evaluations are stored as an append-only log. You can review past evaluations to understand how your thesis evolved over time and whether the agent's updates were accurate.