Skip to main content

Module poisoning

Module poisoning 

Source

Structs§

AnomalyCheckResult
PoisoningPolicy
Configuration for check_for_anomaly.
QuarantineReplayEntry
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.5 anomalous 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_id with created_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.