Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

652 B
Raw Blame
//! `cohort-stream-processor`: the stateful core of the Behavioral Cohorts stream pipeline.
//!
//! It consumes re-keyed events from `cohort_stream_events`, maintains per-`(team_id,
//! leaf_state_key, person_id)` state in RocksDB, evaluates cohort membership incrementally, and
//! emits membership transitions. A periodic sweep handles time-driven eviction.

pub mod cascade;
pub mod config;
pub mod consumers;
pub mod filters;
pub use cohort_core::hogvm;
pub mod kill_switch;
pub mod merge;
pub mod observability;
pub mod partitions;
pub mod producer;
pub mod recovery;
pub mod stage1;
pub mod stage2;
pub mod store;
pub mod sweep;
pub mod workers;