Skip to content

docs(arch): describe Domain contracts and CW1004 in the code-layers table - #1124

Merged
mforce merged 1 commit into
mainfrom
docs/architecture-contracts-cw1004
Oct 6, 2026
Merged

mforce merged 1 commit into
mainfrom
docs/architecture-contracts-cw1004

Conversation

@mforce

@mforce mforce commented Oct 6, 2026

Copy link
Copy Markdown
Owner

Refs #1116 (no issue closes).

Two rows in the code-layers table of docs/architecture.md were out of date after #1104 and #1116.

  • Domain. The old row said Contracts/ holds contract enums. The Domain Contracts/ folders now also hold value types (DiscountCeiling, CurrencyInfo) and static rules and constants (Roles, FarmCode, FarmImageErrors, CurrencyCatalog, SeedDefaults). The new row names three of them as examples.
  • Analyzers. The old row said the analyzer reports undeclared module edges. It now fails the build on an undeclared edge (CW1001) and on code that names another module's type outside its contract (CW1004).

I checked the rest of the file. The feature-module prose ("reach it through its Contracts/, Farm also declares a small seam") is still accurate, and every source path it cites still exists. The diagrams are unchanged.

Guards that read tracked docs pass: CouplingMatrixRealTreeTests and TenancyDocsFreshnessTests (4/4), and the SchemaDocsTests image-pin guards (2/2).

@mforce
mforce merged commit 8ab37fe into main Oct 6, 2026
13 checks passed
@mforce
mforce deleted the docs/architecture-contracts-cw1004 branch October 6, 2026 22:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant