Module domain

Module domain 

Source
Expand description

Domain layer containing core business logic.

This module contains the core domain types and logic for ADRScope, independent of external concerns like I/O, parsing, or rendering.

Structs§

Adr
A fully parsed Architecture Decision Record.
AdrId
Unique identifier for an ADR, typically derived from the filename.
AdrStatistics
Aggregated statistics for an ADR collection.
Edge
An edge connecting two ADRs in the graph.
Facet
A facet is a filterable dimension with all its possible values.
FacetValue
A single facet value with its count.
Facets
Collection of all facets computed from ADRs.
Frontmatter
Parsed YAML frontmatter from an ADR file following the structured-madr schema.
Graph
The complete ADR relationship graph.
Node
A node in the ADR relationship graph.
RecommendedFieldsRule
Rule that warns about missing optional but recommended fields.
RequiredFieldsRule
Rule that checks for required frontmatter fields.
ValidationIssue
A single validation issue found in an ADR.
ValidationReport
Aggregated result of validating a collection of ADRs.
Validator
A validator that runs multiple rules against ADRs.

Enums§

EdgeType
The type of relationship between two ADRs.
Severity
Severity level for validation issues.
Status
The status of an Architecture Decision Record in its lifecycle.

Traits§

ValidationRule
Trait for implementing validation rules.

Functions§

default_rules
Returns the default set of validation rules.