Document status:active Immutable event with causal metadata for distributed conflict detection.
Immutable event with causal metadata for distributed conflict detection.
Timestamp semantics
-------------------
The ``timestamp`` field is the producer-assigned wall-clock occurrence time
of the modelled event. Consumers (SaaS ingestion, dashboards, audit, sync
drains, projections, scorecards) MUST preserve this value end-to-end and
MUST NOT substitute server-receipt, import, drain, or replay time for it.
Consumer-side receipt/import time, if persisted, MUST be stored under a
distinct field name — the recommended name is ``received_at``.
See ``kitty-specs/teamspace-event-contract-foundation-01KQHDE4/data-model.md``
(Timestamp Semantics: Rules R-T-01, R-T-02, R-T-03) for the authoritative
rules, and ``spec_kitty_events.conformance.assert_producer_occurrence_preserved``
for an executable consumer-side conformance helper.
Normative envelope 3.0.0. The on-wire envelope every event family rides in. The CloudEvents write profile and read profile of the producer contract are non-normative until 12.0.0.
Generated from src/spec_kitty_events/schemas/event.schema.json by scripts/schema_pages.py; never hand-edit (C-001).
event_type (string, required): Event type identifier (e.g., 'WPStatusChanged', 'TagAdded')
lamport_clock (integer | null): Optional Lamport logical clock value (monotonically increasing). An envelope without it is unclocked and orders before clocked ones.
node_id (string, required): Required causal emitter identity used for Lamport ordering and deterministic tie-breaking
payload (object): Event-specific data (opaque to library)
project_uuid (string, required): UUID of the project this event belongs to
schema_version (string): Envelope schema version (semver)
timestamp (string, required): Producer-assigned wall-clock occurrence time (ISO-8601 UTC). Records when the modelled event actually happened on the producing system (CLI machine, runtime worker, tracker subsystem). Consumers MUST preserve this value through ingestion, persistence, projection, reduction, and serialization, and MUST NOT substitute receipt/import/server time for this field. Consumer receipt time, if persisted, MUST be stored under a distinct field (recommended: 'received_at'). Not used for ordering — Lamport clock and node_id own ordering.