Every inbound and outbound topic now declares the column producers must key messages by, and the stream tests assert it: a topic has three partitions, and only messages sharing a key share a partition, so without the key two changes to one party can be applied out of order. Verified on digital-core: 65 smoke checks, 100 unit tests. Source-aligned products on the Integration Bus publish to these topics under the same rule. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
110 lines
4.5 KiB
YAML
110 lines
4.5 KiB
YAML
# Canonical Party: Open Data Product Specification v4.0 manifest, the product's entry in the catalogue.
|
|
# The details, SLA, license and dataHolder blocks follow Agent Architect's odps-alignment
|
|
# mapping from the MD-DDL declaration (data_products/canonical.md). The dataAccess block is
|
|
# platform-specific and lists the product's four interfaces. Fields with TODO need business
|
|
# input outside the model.
|
|
schema: https://opendataproducts.org/v4.0/schema/odps.yaml
|
|
version: 4.0
|
|
product:
|
|
details:
|
|
en:
|
|
name: "Canonical Party"
|
|
productID: "digital-core.canonical-party"
|
|
description: "The governed canonical representation of Party, Party Role, and the identity entities around them, published for downstream domains and cross-domain integration. It publishes the canonical model as modelled, with no reshaping and no aggregation, so that consumers inherit the domain's definitions rather than inventing their own."
|
|
visibility: organisation
|
|
status: production # declaration status: Active
|
|
type: dataset # declaration class: domain-aligned
|
|
productVersion: "1.0.0"
|
|
categories:
|
|
- "Digital Core"
|
|
tags:
|
|
- "Party"
|
|
- "Person"
|
|
- "Company"
|
|
- "Party Role"
|
|
- "Customer"
|
|
- "Contact Address"
|
|
- "Address"
|
|
outputFileFormats:
|
|
- GraphQL
|
|
- JSON
|
|
- SQL
|
|
|
|
SLA:
|
|
declarative:
|
|
default:
|
|
name:
|
|
en: Default SLA
|
|
description:
|
|
en: "Service levels for Canonical Party"
|
|
dimensions:
|
|
- dimension: uptime
|
|
displaytitle:
|
|
en: Availability
|
|
objective: 99.95 # sla.availability "99.95%"
|
|
unit: percent
|
|
- dimension: updateFrequency
|
|
displaytitle:
|
|
en: Data Freshness
|
|
objective: 1 # refresh: real-time (declared sla.freshness "< 0.5 seconds")
|
|
unit: minutes
|
|
support:
|
|
email: "data.architecture@example.com"
|
|
|
|
dataAccess:
|
|
default:
|
|
name:
|
|
en: CRUD API
|
|
description:
|
|
en: "GraphQL reflected from the operational store by pg_graphql. Reads, inserts, updates and deletes on every entity."
|
|
outputPorttype: API
|
|
format: GraphQL
|
|
authenticationMethod: none # lab stack only
|
|
accessURL: "http://localhost:20000/rpc/canonical_party_graphql"
|
|
publish:
|
|
name:
|
|
en: Publish Input
|
|
description:
|
|
en: "Kafka topics that accept canonical records, one per entity. JSON payloads conform to the schema registered for the topic, and each message is keyed by the entity's identifier, which is what keeps changes to one entity in order."
|
|
outputPorttype: API
|
|
format: JSON
|
|
authenticationMethod: none
|
|
accessURL: "kafka://localhost:20001/digital-core.canonical-party.<table>.inbound"
|
|
specsURL: "http://localhost:8081/apis/registry/v3/groups/digital-core.canonical-party/artifacts"
|
|
subscribe:
|
|
name:
|
|
en: Subscribe Output
|
|
description:
|
|
en: "Compacted Kafka topics carrying every change to each entity, keyed by identifier. Deletes are tombstones."
|
|
outputPorttype: API
|
|
format: JSON
|
|
authenticationMethod: none
|
|
accessURL: "kafka://localhost:20001/digital-core.canonical-party.<table>.outbound"
|
|
specsURL: "http://localhost:8081/apis/registry/v3/groups/digital-core.canonical-party/artifacts"
|
|
sql:
|
|
name:
|
|
en: Analytic SQL
|
|
description:
|
|
en: "Trino over DuckLake, continuously replicated from the operational store by pg_duckpipe."
|
|
outputPorttype: SQL
|
|
format: SQL
|
|
authenticationMethod: none
|
|
accessURL: "jdbc:trino://localhost:20003/lake/canonical_party"
|
|
|
|
license:
|
|
en:
|
|
scope:
|
|
definition: "TODO: purpose statement for the licence"
|
|
restrictions: "Confidential. Contains personal data (Party, Person and Contact Address are pii: true). Domain-aligned: published unmasked as the canonical source; masking belongs to consumer-aligned products. Consumers: Cross-domain Integration."
|
|
permanent: false
|
|
exclusive: false
|
|
termination:
|
|
terminationConditions: "7 years post relationship end"
|
|
governance:
|
|
confidentiality: "Confidential, inherited from the Digital Core domain governance (classification: Confidential, pii: true)"
|
|
|
|
dataHolder:
|
|
en:
|
|
legalName: "TODO: organisation legal name"
|
|
email: "data.architecture@example.com"
|