Skip to main content
Every memory entry carries a confidence score that evolves over time based on real-world outcomes. This is SenseLab’s feedback loop — connecting agent observations to production reality.

Confidence Score

Confidence starts at 1.0 by default and represents how much trust to place in an entry:
Confidence is clamped to the range 0.01.0. Successes can never push an entry past certainty, and repeated failures floor at zero rather than going negative.

Outcome Types

When something significant happens in the real world, you record it as an outcome. Knowledge that led somewhere good is trusted more; knowledge that led somewhere bad is trusted less: Erosion is deliberately steeper than reinforcement: it takes many successes to rebuild the trust one critical failure removes.
Four older names are still accepted as aliases and map onto the same multipliers: clean_deploy (success), regression (minor failure), p2_incident (failure), and p1_incident (critical failure).

How It Works

Recording an Outcome

Confidence Formula

Confidence Over Time

Imagine an entry written with confidence=0.85:
Knowledge that keeps working climbs slowly back toward certainty. Knowledge that keeps misleading sinks, and agents filtering on min_confidence stop seeing it.

Auto-Causal Linking

If you don’t specify causal_entry_keys, SenseLab automatically links the outcome to every entry the agent read during the current session:
This is powered by the ReadTracker, which logs reads as the session runs. Exactly what lands in that causal set is worth knowing, because it decides which entries an outcome moves: The tracker is cleared after each commit_outcome(), so the next task starts with a fresh causal window rather than re-linking the previous one’s reads.

Four-Signal Decay Model

When decay_half_life_days is configured, SenseLab uses four signals to determine how fast an entry’s effective confidence decays: The effective half-life formula:
For example, a fact with decay_half_life_days=30, 10 reads, and 1 outcome:
This means actively used, production-validated knowledge persists far longer than cold, unvalidated beliefs.
Time decay is opt-in. With no decay_half_life_days, stored confidence changes only when you commit an outcome. When you do set it, decay is applied when an entry is read rather than written back to storage — the stored confidence stays put, and the decayed value is what gets compared against min_confidence.

Filtering by Confidence

Use min_confidence to filter out low-confidence entries:

The Feedback Loop

This creates a self-correcting system: advice that keeps causing incidents sinks out of the results agents rely on, advice that keeps working rises, and every agent inherits the corrections rather than rediscovering them.
If you are reading a much older version of this page, note that these multipliers were once inverted — confidence was described as a risk signal that failures increased. Confidence now means trustworthiness: failures erode it.