{ "$id": "0pt.lineage_event.schema.v1", "description": "CONTRACT-ONLY -- 0pt's real lineage emissions today go through Aud0Client.ingestLineageEvent (src/clients/aud0-client.ts), whose Aud0LineageEvent shape is source_type/source_id -> target_type/target_id, not input_assets/output_assets. This wider multi-asset shape exists so tests/p0/enterprise-data-os-expansion.test.ts's contract assertions (from an earlier 'PROMPT 2' pass) have a real file to check; it documents an intended future generalization (multi-input/multi-output lineage), not a built/wired capability. NOTE (GitHub<->Gitea unification merge): the two remotes disagreed on `producer` -- one modelled it as an object {app_id, capability_id}, the other as a string plus flat top-level app_id/capability_id. The structured object is kept as canonical here because it names both parts unambiguously; `event_type`, `app_id` and `capability_id` are retained as optional top-level properties so the flat draft's fields are not lost. Nothing in this repo reads or validates against this file, so neither choice changes behaviour.", "type": "object", "required": [ "lineage_event_id", "tenant_id", "project_id", "producer", "input_assets", "output_assets", "created_at" ], "properties": { "lineage_event_id": { "type": "string" }, "tenant_id": { "type": "string" }, "project_id": { "type": "string" }, "event_type": { "type": "string", "description": "e.g. 0pt.lineage_emitted. From the flat draft; optional." }, "app_id": { "type": "string", "description": "Flat-draft alternative to producer.app_id; optional." }, "capability_id": { "type": "string", "description": "Flat-draft alternative to producer.capability_id; optional." }, "producer": { "type": "object", "description": "The capability/app that produced this lineage edge.", "required": ["app_id", "capability_id"], "properties": { "app_id": { "type": "string" }, "capability_id": { "type": "string" } } }, "input_assets": { "type": "array", "items": { "type": "object", "required": ["asset_type", "asset_id"], "properties": { "asset_type": { "type": "string", "enum": ["dataset", "iceberg_table", "artifact", "source", "document", "signal"] }, "asset_id": { "type": "string" } } } }, "output_assets": { "type": "array", "items": { "type": "object", "required": ["asset_type", "asset_id"], "properties": { "asset_type": { "type": "string", "enum": ["dataset", "iceberg_table", "artifact", "source", "document", "signal"] }, "asset_id": { "type": "string" } } } }, "st0re_artifacts": { "type": "array", "items": { "type": "string" } }, "quality_report_id": { "type": "string" }, "correlation_id": { "type": "string" }, "created_at": { "type": "string" } } }