Add the Digital Core domain model from semprini-blog-dataproducts

The MD-DDL model (domain, entities, enums, the Canonical Party product
declaration) moves into its own repository, owned by the domain's modelling
team. Engineering teams consume its product declarations and generate products
from semprini-data-product-templates.

Adds the MD-DDL agent wrappers (md-ddl init), pyproject with md-ddl, and
README/CLAUDE.md describing the team split and the handoff interface.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
paulandClaude Opus 5 committed 2026-09-17 22:51:50 +12:00
commit aeba56e5f2
41 files changed
+3007

No files matched your search

+77
View File
@@ -0,0 +1,77 @@
# Digital Core — domain data model
The MD-DDL model of the **Digital Core** domain: the shared spine of a digital business —
parties, the roles they play, how to reach them, what they hold, the agreements that govern
them, and the transactions that move value between them. It describes meaning, not storage:
no tables, keys or platform assumptions.
It started as the model in
[semprini-blog-dataproducts](https://git.semprini.me/paul/semprini-blog-dataproducts), where
one repository held the platform, the model, the template and the products. In the enterprise
setup each of those belongs to a different team, and this repository is the model's home.
## Who owns what
| Team | Owns | Repository |
|---|---|---|
| **Modelling team** (this domain) | The domain model and its data product declarations | this one |
| Data product engineering teams | Data product templates; generating, deploying and operating products | [semprini-data-product-templates](https://git.semprini.me/paul/semprini-data-product-templates), the domain repositories |
| Data platform team | The management zone, the Integration Bus, the domain platform template | [semprini-data](https://git.semprini.me/paul/semprini-data), [semprini-data-domain](https://git.semprini.me/paul/semprini-data-domain) |
All of them use semprini-core, the enterprise landing zone, for identity (Keycloak) and
source control (Gitea at git.semprini.me).
## Layout
```
data_model/
domain.md Domain summary: metadata, entities, relationships, data products
entities/ One file per entity
enums.md Enumerations
data_products/ Data product declarations, e.g. canonical.md
.claude/commands/ MD-DDL agent wrappers for Claude Code (md-ddl init)
.github/agents/ MD-DDL agent wrappers for Copilot (md-ddl init)
.md-ddl/ The MD-DDL standard, unpacked by md-ddl init (not committed)
```
## Working on the model
```bash
uv run md-ddl init --no-instructions # after cloning: unpacks .md-ddl/
uv run md-ddl lint data_model # mechanical pre-flight checks
```
Modelling is agent-driven: `/agent-guide` to start, `/agent-ontology` for entities,
relationships and sources, `/agent-architect` for data product declarations and ODPS,
`/agent-governance` for conformance. See [CLAUDE.md](CLAUDE.md).
## What engineering teams consume
The interface between this team and the engineering teams is the **data product
declaration**: a level-3 section in `data_model/data_products/*.md` with its `class`,
entities, owner, consumers, SLA and interfaces, plus the entity and enum files it
references. The MD-DDL `class` picks the template that generates the product:
| MD-DDL class | Product class | Template in semprini-data-product-templates |
|---|---|---|
| `domain-aligned` | Canonical | `canonical_data_product/` |
| `source-aligned` | Source aligned | planned |
| `consumer-aligned` | Experience | planned (one template per experience class) |
Decisions a template cannot read from the model (a scope boundary, an assumption about
temporal tracking) go with the request as a handoff note, in the MD-DDL handoff format:
`handoffs/<product-slug>.md` here, with `to: <engineering team>` and `status: pending`. The
engineering team's generation agent reads it and marks it `consumed`.
Engineering teams pin a released version of this repository rather than following `main`.
Tag a release whenever `data_model/domain.md`'s `version` changes:
```bash
git tag -a v1.0.0 -m "Digital Core 1.0.0" && git push origin v1.0.0
```
## Declared products
| Product | Class | Declaration | Status |
|---|---|---|---|
| Canonical Party | domain-aligned | [data_model/data_products/canonical.md](data_model/data_products/canonical.md) | Active; generated and verified in the blog repository |