Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions .claude/rules/dependency-boundary.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@ sits above `Polhem.Definition` but is inherited the same way. The reasons are in

**Unless it is necessary, do not add any further package reference (`PackageReference`) to these projects.**

They are the bottom of the framework's dependency graph: the direct downstream of `Polhem.Definition` spans the
contracts, data access, caching, business logic, API and UI layers, and `Polhem.Core` is a dependency of **every**
project. **Any package added to these two layers spreads along the dependency chain to every consumer**, including
pure UI heads and definition file tools that only want to read definitions.
Most of the framework stands on them: the direct downstream of `Polhem.Definition` spans the contracts, data access,
caching, business logic, API and UI layers, and nearly every package depends on `Polhem.Core`
(`docs/en/architecture/dependency-map.md` has the graph). **Any package added to one of the three spreads along the
dependency chain to every consumer**, including pure UI heads and definition file tools that only want to read
definitions.

Which projects the gates govern is set in `src/Directory.Build.targets` (`PolhemEnforceDependencyBoundary`), not
here.
Expand Down