advisory.observation.updated@1 · Event contract

Purpose: unblock CONCELIER-GRAPH-21-002 by freezing the platform event shape for observation changes emitted by Concelier. This is the only supported event for observation churn; downstreams subscribe for evidence fan-out and replay bundles.

Envelope & transport

Payload (JSON)

FieldTypeRules
eventIdstring (uuid)Generated by publisher; idempotency key.
tenantIdstringurn:tenant:{uuid}; required for multi-tenant routing.
observationIdstring (ObjectId)Mongo _id of the observation document.
advisoryIdstringUpstream advisory identifier (e.g., CVE, GHSA, vendor id).
sourceobject{ vendor, stream, api, collectorVersion }; lowercase vendor, non-empty.
linksetSummaryobject{ aliases: string[], purls: string[], cpes?: string[], scopes?: string[], relationships?: object[] } all arrays pre-sorted ASCII.
supersedesIdstring (ObjectId, optional)Previous observation _id if this is a new revision; omitted otherwise.
documentShastringSHA-256 of raw upstream document.
observationHashstringStable hash over canonicalized observation JSON (tenant, source, advisoryId, documentSha, fetchedAt).
ingestedAtstring (ISO-8601 UTC)Timestamp when appended.
traceIdstring (optional)Propagated from ingest job/request; aids join with logs/metrics.
replayCursorstringMonotone cursor for offline bundle ordering (tick from change stream resume token).

Determinism & ordering

Error contracts for Scheduler

Sample payload

See advisory.observation.updated@1.sample.json (canonical field order, ASCII sorted arrays). Hashes intentionally short for readability; replace with real values in tests.

Schema

advisory.observation.updated@1.schema.json provides a JSON Schema (draft 2020-12) for runtime validation; any additional fields are rejected.

Compatibility note

Sprint tracker referenced sbom.observation.updated; this contract standardises on advisory.observation.updated@1. If a legacy alias is required for interim consumers, mirror the envelope on subject surface.sbom.observation.updated.v1 with identical payload.