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

+49
View File
@@ -0,0 +1,49 @@
# [Digital Core](../domain.md)
## Entities
### Payment Initiator
A Payment Initiator is a Party Role representing whoever instructed a transaction, when that is not the payer themselves. A platform charging a saved card on a schedule, an accountant paying a client's invoices, an app initiating a payment through an open banking API — all are initiators acting on someone else's behalf.
Recording the initiator separately answers "who actually triggered this?", which matters when a payment is disputed.
```mermaid
---
config:
layout: elk
---
classDiagram
class PaymentInitiator{
* Payment Initiator Identifier : string
Initiation Channel : string
}
PaymentInitiator --|> PartyRole
class PartyRole["<a href='./party_role.md'>Party Role</a>"]
```
```yaml
extends: Party Role
existence: independent
mutability: slowly_changing
attributes:
Payment Initiator Identifier:
type: string
identifier: primary
description: Unique identifier for the payment initiator role instance.
Initiation Channel:
type: string
description: The channel or integration the instruction arrived through.
```
```yaml
governance:
retention_basis: Inherited from the domain default of 7 years post relationship end
```
## Relationships
No relationships are sourced directly from Payment Initiator. The canonical direction is Transaction-owned — see [Transaction Initiated By Payment Initiator](transaction.md#transaction-initiated-by-payment-initiator).