Skip to content
English

Common definitions

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: Shared definitions and Project uses
  accDescr: Common contains DisplayName, a Description candidate and technical metadata descriptors. Project uses DisplayName and the metadata.
  C["Common: shared definition space"]:::context -. records .-> V["Value Object: DisplayName"]:::value
  C -. records .-> D["Value Object: Description candidate"]:::value
  C -. records .-> T["Technical metadata descriptors"]:::context
  V -->|type used by| P["Project: DisplayName field"]:::field
  T -->|referenced by| E["Entity: Project"]:::entity
  classDef context fill:#343c4b,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 entity fill:#164c43,color:#f8fafc,stroke:#8792a2,stroke-width:2px

Text equivalent: Common records DisplayName, the Description candidate and technical metadata descriptors. Project uses DisplayName as a field type and references metadata descriptors. Description is absent from ProjectDescriptions. Dotted arrows organize this definition space; Common is not a Module and the metadata is not an approved Value Object.

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.

Shared definition space

Common is a shared definition space outside Projects, not a functional Module. Definitions are reused by reference, with status stated per entry. They have no asserted C# wrapper types. The domain owner approved the reusable concepts and this pilot, not every reuse candidate. The exact source observations at the pinned revision are not verification of execution. The page remains draft because it includes candidates.

DisplayName

Status: pilot target. Documentation key: Common.DisplayName (Value Object). A human-readable name for display; value type: text. Intrinsic rule Common.DisplayName.Length: maximum 60 characters for this pilot. IsValidDisplayName uses that default and NotEmpty(); it also allows an explicit maximum-length argument, so this pilot does not assert that every source call has the same bound.

Requiredness belongs to each use. Project’s use is required and non-empty. The target definition is distinct from the Project DisplayName Field. A future use requiring a different intrinsic bound must explicitly revise or distinguish the definition rather than silently weaken it.

Description

Status: reuse candidate, not an approved target definition. Documentation key: Common.Description (candidate Value Object). Descriptive text; candidate intrinsic rule Common.Description.Length: maximum 500 characters, mapped to the declared DescriptionMaxLength. IsValidDescription additionally declares NotEmpty(); IsValidOptionalDescription declares only the maximum length. These helpers support keeping contextual requiredness separate from type limits.

This is a reuse candidate, not a member of ProjectDescriptions: the reviewed ProjectDescriptions record has only DisplayName. No Description field, translation collection, or description group is invented for Project.

Auditability review

The following are shared technical metadata descriptors, retained here once for reference by Project. They are not promoted to domain Value Objects or business fields simply because the source uses primitive types.

Documentation key Source identifier and representation Meaning observed in ProjectAggregate
Common.Version Version: long Assigned from the source event version on creation and observed updates.
Common.CreatedAt CreatedAt: DateTimeOffset Source event timestamp converted to UTC at creation.
Common.ModifiedAt ModifiedAt: DateTimeOffset Source event timestamp converted to UTC at creation and observed updates.
Common.Deleted Deleted: bool Soft-deletion marker: initially false, set true on delete and false on restore.

Project’s local uses reference these keys and provide membership and context. This does not establish reuse by every entity, actor identity, a full audit log, retention, timestamp ordering rules, or a version-concurrency contract.

No shared Auditability Field Group is asserted: the source aggregate has these properties directly and does not declare a reusable group. They are candidates for shared Field/Field Group definitions after their domain type and complete update boundaries are evidenced and agreed. Keeping this review here avoids inventing an auditability domain concept or copying definitions into Projects.

Source observations

Repository: Tdp.Backend; revision: 2fc8f202a5d82c1edf55a46625f22b88bb1d2d0d. Observed on 2026-10-25 from a clean checkout, with content checked at this commit. The reviewed validation helpers supply the display/description mappings; the ProjectDescriptions record has one member; ProjectAggregate supplies the metadata observations. Per-file locators are maintained separately from this portable definition space.

Documentation-only target definitions; runtime enforcement and reuse outside the reviewed Project subset are unverified.