first working template
This commit is contained in:
1 parent
62a3714562
commit
ca6bea351a
21 files changed
+684
-31
No files matched your search
@@ -14,7 +14,7 @@ shared a repository with its platform, model and products.
|
||||
|
||||
| Template | Product class | MD-DDL `class` | Status |
|
||||
|---|---|---|---|
|
||||
| [canonical_data_product/](canonical_data_product/README.md) | Canonical: a slice of the domain's canonical model, published as modelled through GraphQL, Kafka and Trino | `domain-aligned` | Available. Verified 2026-09-17 on the domain platform, 9 of 9 checks |
|
||||
| [canonical_data_product/](canonical_data_product/README.md) | Canonical: a slice of the domain's canonical model, published as modelled through GraphQL, Kafka and Trino | `domain-aligned` | Available, with generic unit tests. Example verified 2026-09-18 on the domain platform (9 checks, 12 unit tests); Canonical Party generated from it passes 65 checks and 100 unit tests |
|
||||
| `source_aligned_data_product/` | Source aligned: one source system's data in its own shape, for audit, replay and debugging | `source-aligned` | Planned |
|
||||
| `experience_<class>_data_product/` | Experience: shaped for an audience. Several classes, e.g. lake tables built by scheduled dbt models | `consumer-aligned` | Planned |
|
||||
|
||||
@@ -27,7 +27,8 @@ shared a repository with its platform, model and products.
|
||||
data_products/*.md ───────▶ <class>_data_product/ ◀── product contract ── data-domain CLI
|
||||
handoffs/<slug>.md .claude/agents/agent-<class>-product.md compose.domain.yml
|
||||
│ │
|
||||
└──────── generate ──────┴──▶ semprini-domain-<d>/products/<slug>/ ── deploy ──▶ domain stack
|
||||
└──────── generate ──────┴──▶ product repository (semprini-domain-cdp-<d>/<slug>/)
|
||||
── deploy, test, unit, register ──▶ domain stack + management zone
|
||||
```
|
||||
|
||||
- **From the modelling team:** a product declaration and the entities and enums it names,
|
||||
@@ -38,8 +39,9 @@ shared a repository with its platform, model and products.
|
||||
manifest the `data-domain` CLI reads, and the SQL, schema, job and smoke-test files it
|
||||
applies. A template that needs something the contract does not offer asks the platform team
|
||||
first.
|
||||
- **Products** are generated into the domain repository that runs them, and deployed and
|
||||
operated from there by the domain's engineering team.
|
||||
- **Products** are generated into the domain engineering team's product repository (or the
|
||||
domain repository), and deployed, tested and registered from the domain repository that runs
|
||||
them.
|
||||
|
||||
All teams work on semprini-core, the enterprise landing zone: Keycloak for identity, and Gitea
|
||||
(git.semprini.me) for these repositories.
|
||||
@@ -53,9 +55,12 @@ hand:
|
||||
/agent-canonical-product Generate Canonical Party for the digital-core domain
|
||||
```
|
||||
|
||||
The agent reads the declaration and any pending handoff, writes `products/<slug>/` in the
|
||||
domain repository, runs `uv run data-domain deploy` and `test` there, and reports the model and
|
||||
template versions it generated from. Commit the product in the domain repository with both.
|
||||
The agent reads the declaration and any pending handoff, writes the product directory
|
||||
(including `tests/expectations.yaml`), runs `uv run data-domain deploy`, `test`, `unit` and
|
||||
`register` from the domain repository, and reports the model and template versions it
|
||||
generated from. Commit the product, in its product repository or the domain repository, with
|
||||
both versions in the message. Digital Core's canonical products live in
|
||||
semprini-domain-cdp-digital-core.
|
||||
|
||||
## Versioning
|
||||
|
||||
@@ -63,8 +68,8 @@ template versions it generated from. Commit the product in the domain repository
|
||||
record the tag they generated from and regenerate deliberately, not on every commit here.
|
||||
- A template change that alters what a product directory contains may need a platform
|
||||
change first. Check the product contract, and agree the change with the data platform team.
|
||||
- Every template keeps a worked `example/` that deploys and passes `data-domain test` on the
|
||||
current domain platform. That example is the template's test, and the platform team's
|
||||
- Every template keeps a worked `example/` that deploys and passes `data-domain test` and
|
||||
`data-domain unit` on the current domain platform. That example is the template's test, and the platform team's
|
||||
smoke test for the domain template.
|
||||
|
||||
## Adding a template
|
||||
@@ -72,8 +77,9 @@ template versions it generated from. Commit the product in the domain repository
|
||||
1. Create `<class>_data_product/` with a `README.md` contract (what the product is, the
|
||||
mapping to platform interfaces, layout, naming, placeholders, type mapping, the generation
|
||||
input table, prerequisites and known gaps) and the template files.
|
||||
2. Add a worked `example/` and verify it on a domain stack with `data-domain deploy` and
|
||||
`test`.
|
||||
2. Add a worked `example/`, with a seed and `tests/` (generic test modules plus
|
||||
`expectations.yaml`), and verify it on a domain stack with `data-domain deploy`, `test` and
|
||||
`unit`.
|
||||
3. Add its generation agent as `.claude/agents/agent-<class>-product.md`, with a command
|
||||
wrapper in `.claude/commands/`.
|
||||
4. Add it to the catalogue above.
|
||||
|
||||
Reference in new issue
Block a user