Files
semprini-domain-digital-dat…/data_model/entities/agreement.md
T
paulandClaude Opus 5.5 f66230b1fb Rename the domain Digital Core to Digital (2.0.0)
"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>
2026-09-27 16:19:39 +13:00

2.2 KiB

Digital

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