Activities
Everything that happens in the engine, recorded — and the two patterns you build against it
An activity is a record of one thing that happened. Every state change in the engine writes one, in the same transaction as the change itself, so a happening without an activity is impossible.
That is what makes the stream usable as more than a log. It is the audit trail, the reconciliation source for your own database, and the activity envelope delivered to a configured webhook endpoint.
The activity stream
The envelope, the type registry, the filters, and paging through them.
The type registry
Every type the engine can emit, what it records, and whether it is available today.
The reconciliation sweep
The normative pattern for keeping your own replica complete. Two reads, one dedupe.
Verifying signatures
How to verify the signed activity deliveries received by your endpoint.
Three properties hold across all of it, and they are worth knowing before you write a consumer:
- At-least-once, no ordering promise. Deduplicate on the activity's
act_id. Payloads carry full snapshots, which makes ordering mostly moot. - The vocabulary is closed and additive. New types arrive without a new API
version. Tolerate a
typeyou have never seen rather than failing on it. - Retention is indefinite. Nothing is swept out from under you, and there is no window inside which you have to have consumed something.