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.

500 B
Raw Blame
//! Pure decision logic for cohort-of-cohort cascade re-evaluation.
//!
//! [`should_emit`] and [`first_cascade`] are pure functions over [`CascadeMessage`]; the module
//! depends only on the data types [`CohortId`](crate::filters::CohortId) and
//! [`CohortMembershipChange`](crate::producer::CohortMembershipChange), never on I/O or Stage 2 state.

pub mod decision;
pub mod message;

pub use decision::{first_cascade, should_emit};
pub use message::{CascadeDecision, CascadeMessage, DropReason};