Skip to main content
Every memory entry carries a confidence score that evolves over time based on real-world outcomes. This is AMFS’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 not capped at 1.0. An entry involved in multiple incidents can have confidence > 1.0, representing a strong risk signal.

Outcome Types

When something significant happens in the real world, you record it as an outcome:

How It Works

Recording an Outcome

Confidence Formula

Confidence Over Time

Imagine an entry written with confidence=0.85:
Over many successes, confidence trends toward zero — the risk signal fades. A single failure spikes it back up.

Auto-Causal Linking

If you don’t specify causal_entry_keys, AMFS automatically links the outcome to every entry the agent read during the current session:
This is powered by the ReadTracker, which logs every read() call during a session.

Four-Signal Decay Model

When decay_half_life_days is configured, AMFS 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.

Filtering by Confidence

Use min_confidence to filter out low-confidence entries:

The Feedback Loop

This creates a self-correcting system: risky patterns get flagged, safe patterns fade, and agents inherit the accumulated wisdom of past sessions.