Index by title

Event schema

Every event carries an id, a tenant, a source, an emitted-at timestamp in UTC, a schema version and a
payload. The id is generated by the emitter and is what makes the pipeline idempotent; an event
arriving twice with the same id is dropped at ingest.

Schema changes must be backward compatible within a major version: fields may be added, never removed
or retyped. The registry enforces this in CI, which is the work scheduled for Pipeline 8.

The payload is opaque to ingest and interpreted by the transform step. If you need a new field to be
queryable, add it to the transform and backfill; do not overload an existing field.


Replay

Replaying a window re-reads the raw events for that period and rebuilds the derived tables. It is the
tool of last resort and it must be safe to use, which means the loader has to be exactly-once.

Run a dry run first: it reports how many rows would change and in which tables, without writing. Then
replay into the shadow table, compare, and swap. The backfill-writes-to-the-live-table bug in the
current cycle is exactly the failure this procedure exists to prevent.


Delta Data Pipeline