Skip to content
English

Values, fields, groups, and validation

Document content and editorial review: approved on 2026-11-16 by Codex under the repository user’s delegated editorial review. Approval covers this explanation within its stated evidence limits; semantic, mapping, lifecycle and target states remain independent.

Conceptual overview

%%{init: {'theme':'base','fontFamily':'Arial, sans-serif','themeVariables':{'lineColor':'#8792a2','textColor':'#f8fafc','nodeTextColor':'#f8fafc','primaryTextColor':'#f8fafc','arrowheadColor':'#8792a2','dropShadow':'none','useGradient':false,'edgeLabelBackground':'#252b36','fontFamily':'Arial, sans-serif','fontSize':'16px'}}}%%
flowchart TD
  accTitle: Values and their uses
  accDescr: Entities own fields and groups; fields use Value Object types. Validation scopes are shown in the following diagram.
  E["Entity"]:::entity -. owns .-> G["Field Group"]:::group
  G -. owns .-> F["Field"]:::field
  E -. owns .-> F
  F -->|has type| V["Value Object"]:::value
  classDef entity fill:#164c43,color:#f8fafc,stroke:#8792a2,stroke-width:2px
  classDef group fill:#51421c,color:#f8fafc,stroke:#8792a2,stroke-width:2px
  classDef field fill:#214655,color:#f8fafc,stroke:#8792a2,stroke-width:2px
  classDef value fill:#49355c,color:#f8fafc,stroke:#8792a2,stroke-width:2px
%%{init: {'theme':'base','fontFamily':'Arial, sans-serif','themeVariables':{'lineColor':'#8792a2','textColor':'#f8fafc','nodeTextColor':'#f8fafc','primaryTextColor':'#f8fafc','arrowheadColor':'#8792a2','dropShadow':'none','useGradient':false,'edgeLabelBackground':'#252b36','fontFamily':'Arial, sans-serif','fontSize':'16px'}}}%%
flowchart TD
  accTitle: Validation rule scope
  accDescr: A Validation Rule constrains a Value Object, Field or Field Group according to its declared scope.
  R["Validation Rule"]:::rule -->|constrains| V["Value Object"]:::value
  R -->|constrains| F["Field"]:::field
  R -->|constrains| G["Field Group"]:::group
  classDef rule fill:#572b36,color:#f8fafc,stroke:#8792a2,stroke-width:2px
  classDef value fill:#49355c,color:#f8fafc,stroke:#8792a2,stroke-width:2px
  classDef field fill:#214655,color:#f8fafc,stroke:#8792a2,stroke-width:2px
  classDef group fill:#51421c,color:#f8fafc,stroke:#8792a2,stroke-width:2px

Text equivalent: Entities and Field Groups own named members; fields reference Value Object types. Validation Rules constrain types, uses or groups. A group can also contain nested groups, omitted from this compact view. Grouping does not turn a group into a Value Object. Dotted arrows show ownership; solid arrows show type use or constraint.

Provenance: a reading view of the source observations and target mappings already recorded on this page. Per-file implementation evidence is maintained separately from the portable corpus. It adds no cardinalities or runtime verification.

Status and identity

The domain owner approved these target definitions on 2026-10-25. They refine the functional ontology; they do not assert that Tdp.Backend already implements these ontology kinds. The existing Module, Feature, Entity, and Relationship definitions retain their identities.

This document’s anchors identify the four definitions locally. Model tables use owner-qualified documentation keys; these are distinct from source identifiers and runtime values. Paths remain portable locators. No global identity, serialization, or compatibility contract is settled (ASM-002/004).

Value Object

A Value Object is a reusable definition of a domain value, its meaning, structure, and intrinsic constraints. It may be simple or composite. Its instances have value equality, not entity identity. A documentation key identifies the definition, not a business identity for each instance.

Value Type means the type defined by a Value Object; it is not another ontology kind. A C# record or IDomainModel alone does not establish that a source representation is a domain Value Object.

Field

A Field is a named use of a Value Object type, with identity within its owner, a type reference, and a description of contextual meaning and use. A reusable type and its field use have distinct documentation identities. A field implies neither a UI control nor a database column.

Record use-specific constraints, including requiredness, separately from type constraints. A use can strengthen but cannot relax the intrinsic constraints of its referenced type. Technical source properties may be mapped without claiming that a domain Value Object has been approved for each primitive.

Field Group

A Field Group is an explicit unit of storage, transmission, and atomic update, containing fields and/or nested groups. A one-member group is valid. Supplying a group means supplying its complete value and validating the whole group. Partial member updates require a separately defined mechanism. Omission might later mean unchanged; this task defines no command omission semantics.

A composite Value Object defines a meaningful value and invariants. A Field Group defines values maintained and updated together. Equal shapes do not make them equivalent, and grouping does not automatically create a Value Object.

Future commands will combine fields and groups under a larger atomic update. This is a design constraint only: command contracts, transaction boundaries, and guarantees about external effects remain outside this model.

Validation Rule

A Validation Rule is an explicit constraint attached to a Value Object, Field, or Field Group. Universal restrictions belong to the type; contextual restrictions to a field use; cross-field restrictions to the group.

Each rule records its owner, scope, meaning, source mapping, and evidence status. Presence (supplied or omitted), nullability, empty values, and defaults are separate properties. A non-nullable declaration or validator does not demonstrate that every execution path validates the value. State-dependent uniqueness and existence checks are separate from intrinsic rules.

Relationships and constraints

Relationship Allowed endpoints Meaning and constraint
owns Entity or Field Group → Field or Field Group Explicit membership; a named member has identity within its owner. Nested groups retain complete-value semantics.
has type Field → Value Object One referenced value definition for each modeled domain field use; shared definitions are referenced, never cloned.
constrains Validation Rule → Value Object, Field, or Field Group The rule’s declared scope; a field restriction cannot weaken a type rule.
uses common definition Local membership → Common definition Reuse with contextual meaning; does not create another shared definition or make Common a Module.

These are descriptive target relationships, not an executable schema or validation engine. The Project pilot documents exact membership and type references; unresolved source behavior stays explicit.

Pilot