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>
2.2 KiB
2.2 KiB
Digital Core
Entities
Agreement
An Agreement is the contract behind a relationship: the terms binding one or more Party Roles to a Product.
It is the answer to "what did we actually promise?". Keeping it as a first-class entity rather than a few columns on Account means the terms can outlive any individual account and be pointed at from several places.
---
config:
layout: elk
---
classDiagram
class Agreement{
* Agreement Identifier : string
Agreement Number : string
Agreement Status : enum~AgreementStatus~
Effective Date : date
Maturity Date : date
}
PurchaseAgreement --|> Agreement
SubscriptionAgreement --|> Agreement
Agreement "1" --> "0..*" PartyRole : governs
class AgreementStatus["<a href='../enums.md#agreement-status'>Agreement Status</a>"]{<<enumeration>>}
class PurchaseAgreement["<a href='./purchase-agreement.md'>Purchase Agreement</a>"]
class SubscriptionAgreement["<a href='./subscription-agreement.md'>Subscription Agreement</a>"]
class PartyRole["<a href='./party_role.md'>Party Role</a>"]
existence: independent
mutability: slowly_changing
attributes:
Agreement Identifier:
type: string
identifier: primary
description: Unique identifier of the agreement record.
Agreement Number:
type: string
description: Human-facing agreement reference quoted to customers.
Agreement Status:
type: enum:Agreement Status
description: >
Current lifecycle state. Active agreements govern current obligations; expired and
terminated ones are kept because disputes are usually about agreements that have ended.
Effective Date:
type: date
description: Date the agreement became enforceable.
Maturity Date:
type: date
description: Date the agreement is scheduled to end, if it has a fixed end.
governance:
retention_basis: Inherited from the domain default of 7 years post relationship end
Relationships
Agreement Involves Party Roles
An Agreement governs one or more Party Roles participating in the contract.
source: Agreement
type: governs
target: Party Role
cardinality: one-to-many
granularity: atomic
ownership: Agreement