"Digital Core" is to be the name of a canonical data product the domain will run, so the domain itself is Digital: its title, description and owner address in domain.md, the back-link heading of every entity, enum and product file, and the README, CLAUDE.md, Copilot instructions and package description. A breaking change by MD-DDL's test: a product generated from 1.0.0, such as Canonical Party, names its domain, and would come out different now. So version 2.0.0. v1.0.0 is tagged on the commit Canonical Party was generated from, which was never tagged. Lint: no findings. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
82 lines
3.9 KiB
Markdown
82 lines
3.9 KiB
Markdown
# Digital — domain data model
|
|
|
|
The MD-DDL model of the **Digital** 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.
|
|
|
|
Until 2.0.0 the domain was called Digital Core. That name now belongs to a canonical data
|
|
product the domain will run, so the domain, its landing zone and its repositories are
|
|
**Digital** (`digital`).
|
|
|
|
## 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 v2.0.0 -m "Digital 2.0.0" && git push origin v2.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 |
|