Skip to main content

arbiter_behavior/
lib.rs

1//! Operation-type drift detection for Arbiter task sessions.
2//!
3//! Tracks sequences of tool calls within a session, classifies each call
4//! by its operation type (read/write/delete/admin), and flags divergence
5//! when operation types fall outside the session's declared scope.
6
7pub mod classifier;
8pub mod detector;
9
10// BehaviorTracker removed: it accumulated call records per session but was
11// disconnected from AnomalyDetector -- it never informed anomaly scoring.
12// The detector now handles all per-request analysis directly.
13// The tracker module is retained as dead code for historical reference
14// but not re-exported.
15#[doc(hidden)]
16pub mod tracker;
17
18pub use classifier::{OperationType, classify_operation};
19pub use detector::{AnomalyConfig, AnomalyDetector, AnomalyResponse};