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.

1.4 KB
Raw Blame
//! The seed wire contract shared by the backfill seeder (producer) and the stream processor
//! (consumer): the [`SeedTile`] day-tile, [`PersonSeed`] person-property verdict, [`ReconcileTile`]
//! control tile, their newtypes, and the tolerant [`decode_seed`] entry point. Lives here — not in
//! the seeder crate — for the same reason
//! as [`crate::events`]: both processes must agree on these bytes, and the processor cannot depend
//! on the seeder.
//!
//! The JSON layouts are frozen; the golden tests in [`tile`] and [`reconcile`] are the byte-level
//! regression gates. New fields must be additive and skipped when absent-equivalent (see
//! `redirect_hops`) so tiles produced by older seeders keep parsing and older consumers keep
//! ignoring newer producers.

pub mod decode;
pub mod ids;
pub mod person;
pub mod reconcile;
pub mod tile;

pub use decode::{decode_seed, DecodedSeed};
pub use ids::{
    ClaimEpoch, ConditionHash, ConditionHashError, CoverageStartMs, RunBoundaryMs, RunId, SChunkMs,
    ScannedAtMs,
};
pub use person::{PersonSeed, PersonSeedError, MAX_PERSON_SEED_HASHES};
pub use reconcile::{
    BehavioralShapeHash, CatalogMiss, PersonShapeHash, ReconcileCompleteMarker, ReconcileMarker,
    ReconcileScope, ReconcileTile, ReconcileTileError, ReconcileWithheldMarker, ScopeKind,
    ShapeHashError, UnknownScopeKind, WithheldReason,
};
pub use tile::SeedTile;