Files
semprini-data-product-templ…/canonical_data_product/product.yaml
T
paulandClaude Opus 5 62a3714562 Add the canonical data product template
Moves the data product template from semprini-blog-dataproducts, as adapted to
the semprini-data domain platform, into canonical_data_product/. Its worked
example passed 9 of 9 checks on the domain platform on 2026-09-17.

Adds agent-canonical-product, the blog's agent-product adapted to generate a
product into a domain repository from a declaration in the domain's model
repository, and README/CLAUDE.md describing the template catalogue, the
product contract with the domain platform, and team ownership. Source-aligned
and experience templates are planned.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-17 22:55:11 +12:00

58 lines
2.2 KiB
YAML

# Data product manifest.
# Read by `uv run data-domain deploy|test|undeploy <product dir>`.
# Names every platform resource the product owns. Derived from the MD-DDL declaration
# named in `declaration`; see README.md in the template for the naming rules.
product:
name: "{{product.name}}" # MD-DDL level-3 heading, e.g. Canonical Party
slug: "{{product.slug}}" # kebab-case identity, e.g. canonical-party
domain: "{{domain.slug}}" # kebab-case domain, e.g. digital-core
declaration: "{{product.declaration}}" # e.g. data_products/canonical.md
version: "{{product.version}}" # from the declaration's `version`
owner: "{{product.owner}}" # from the declaration's `owner`
ods:
schema: "{{product.schema}}" # snake_case of slug, e.g. canonical_party
tables:
# >>> repeat per entity table, parents before children, association tables last
- name: "{{table}}" # e.g. party_role
entity: "{{entity.name}}" # e.g. Party Role
key: "{{table}}_id"
# <<< end repeat
graphql:
endpoint: "/rpc/{{product.schema}}_graphql"
smoke: graphql/smoke.graphql
events:
registry_group: "{{domain.slug}}.{{product.slug}}"
compatibility: BACKWARD
topics:
# >>> repeat per entity table
- name: "{{domain.slug}}.{{product.slug}}.{{table}}.inbound"
role: publish-input # producers publish canonical records here
table: "{{table}}"
schema: events/schemas/{{table}}.schema.json
partitions: 3
cleanup_policy: delete
retention_ms: 604800000 # 7 days
- name: "{{domain.slug}}.{{product.slug}}.{{table}}.outbound"
role: subscribe-output # every change to the ODS table, keyed by {{table}}_id
table: "{{table}}"
schema: events/schemas/{{table}}.schema.json
partitions: 3
cleanup_policy: compact
# <<< end repeat
flink:
job: flink/job.sql
name: "{{product.slug}}"
lakehouse:
sync_group: ods # platform-level pg_duckpipe group pointing at the ODS
schema: "{{product.schema}}"
trino:
catalog: lake
smoke: trino/smoke.sql