Перейти к содержимому

arch.policy

Это содержимое пока не доступно на вашем языке.

Package arch.policy · Version 0.1.0

The governance package — reusable policies a workspace will import to enforce architecture rules from the model itself, rather than by reviewer vigilance. This is the архревью-как-код (architecture-review-as-code) payload: a policy is a query over the model that yields a finding.

Policies target the base kinds, so the vocabulary never forks — you keep writing service, and OwnershipCoverage will catch an unowned one. That is the strictness tier the base kinds deliberately leave off (arch.backend base kinds carry no required blanks; discipline lives here).

Status (v0.10): enforcing. Policy definitions evaluate over your model. archlang check fails on an error finding, editors surface findings as diagnostics (smart-quiet — only on a coherent model), and violating <Policy> selects them in a view. Import a policy like any member:

use policy OwnershipCoverage from arch.policy
use policy ExternalContract from arch.policy

one statement per policy, and it applies to your model — forbid/require state rules, except waivers, severity/escalate, and when … added change gates all bite.

For a governance unit you adopt and pin as a whole rather than policy by policy, see the packsarch.policy.deployment is the first.

This package exports no types.


See also: package.archspace reference · The standard library.