Structs§
- Anomaly
Check Result - Poisoning
Policy - Configuration for
check_for_anomaly. - Quarantine
Replay Entry - One row returned by
replay_quarantine.
Constants§
- OUTLIER_
SCORE_ CONTRIBUTION - How much an outlier-flagged record contributes to the anomaly score.
Chosen so that an outlier alone crosses the
>= 0.5anomalous threshold without stacking profile-based signals.
Functions§
- check_
for_ anomaly - Check a newly inserted memory record for anomaly indicators.
- quarantine_
memory - Mark a memory as quarantined with a reason.
- replay_
quarantine - List every quarantined memory for
agent_idwithcreated_at >= since. Returns them in chronological order so operators can walk a review queue deterministically. - update_
agent_ profile - Update the agent profile with statistics from the new memory.