Validation
Kanoniq checks a model against the rules of the metamodel and reports what it finds. This page lists every rule, each linking to a page of its own with what it means and how to fix it.
Where it runs
In VS Code, as you type. Every finding shows in the Problems panel and under the text, across every file of the model.
On the command line, with kq validate, and on every kq build (see kq validate). An error makes either exit with 1, so a CI job running one of them stops an invalid model. A lint fails only kq validate --strict.
Six rules read your repository's settings: KQ058 and KQ059, the open properties, from properties, KQ090, the policy preset, from policies, and KQ123 and KQ268, the end-of-support periods, from end-of-support-warning and end-of-support-error, and KQ275, the confidentiality levels, from confidentiality-levels. Those two also read today's date, so a model that passed can fail on a later day. The rest depend on the model alone.
Build errors come before validation: a file that doesn't parse, or a reference that names nothing, has no model to check, so those are reported instead, each under a KB code of its own rather than a KQ one. See Build errors.
Quick fixes
In VS Code, some findings come with a fix. Put the cursor on the underlined text and press Ctrl+. (Cmd+. on a Mac), or click the light bulb. A fix is offered only where the right edit is certain:
| Finding | Fix |
|---|---|
A path segment that names nothing, such as ordres | Change to the closest Code that can be named there, up to three, closest first |
A misspelt keyword, such as bakend, or over htpp | Change to the closest keyword that fits there |
| KQ022, a connection over a protocol landing on a component | Change target to its one interface of that protocol's kind |
| KQ024, a protocol to a channel, or none to an interface | Remove the protocol, or Add the one the interface's kind implies |
| KQ026, a relationship written twice | Remove the repeated statement |
KQ030, a count on a user interface's environment | Remove the count |
Every other rule has no fix, because putting it right is a modeling choice: which element is wrong, or a Code, a name or a number only you can give. A fix never edits <name>.g.kq, and it is offered only if the model, checked with it applied, has no new error. Accepting a lint is not possible yet.
Errors and lints
| Severity | Codes | Means | You |
|---|---|---|---|
| Error | KQ001–KQ099, KQ200–KQ299 | The model is invalid: a rule is broken and nothing reading it can trust it | Must fix it |
| Lint | KQ100–KQ199 | The model is valid but suspect | May leave it |
Neither is configurable. A lint describes something a real, in-progress landscape can legitimately be; an error describes a model that can't be acted on.
An assumption is never a finding, neither an error nor a lint, and --strict does not read it.
A code is permanent: it always means the same rule, and a retired rule's code is never reused.
Every rule runs and reports everything it finds, so you see all the problems at once rather than one per run. Some rules stay quiet while another rule's problem would make their answer meaningless; fix the first one and they will speak up if there is anything left.
A finding names each element by its name and its path, Channel "Orders" (shop/events/orders), or by its path alone where nothing gave it a name.
A model with plateaus is checked at every plateau. Each plateau's landscape is checked as a whole model, and a finding names the plateaus it holds in, once however many there are. A model with one plateau names none. The rules under Plateaus check the timeline itself and its data migrations. Findings are sorted by rule code, so two runs over the same model print the same lines in the same order, and a diff of them shows only what changed.
Every rule
Each rule has a page of its own, with what it reports and how to put it right. Narrow the lists below by severity, area or quick fix:
Motivation and strategy
| Code | Rule | Severity | Quick fix |
|---|---|---|---|
| KQ052 | a Goal or a value stream stage is realized from the function side Only a Domain, a Function Group or a Function realizes a Goal or an impact, and only a Function Group a value stream stage. | Error | No |
| KQ053 | an influence and a value delivery join a legal pair An influence runs from an Assessment or a Value to a Driver, or from a Driver or an impact to a Goal, and a value stream delivers a Value. | Error | No |
| KQ054 | an influence and a value delivery stay in one Ecosystem An influence and a value delivery stay inside one Ecosystem. | Error | No |
| KQ055 | a value stream's stages are numbered from 1 A value stream's stages are numbered 1, 2, 3 and on, each number once. | Error | No |
| KQ056 | an element holds at most one purpose An element's motivation holds at most one purpose. | Error | No |
| KQ057 | a value stream stage is realized by a Function Group A value stream stage is realized by a Function Group, never by a Domain or a Function. | Error | No |
| KQ094 | an impact's actor is a Stakeholder of its own Ecosystem An impact's actor is a Stakeholder in the impact's own Ecosystem. | Error | No |
Domains
| Code | Rule | Severity | Quick fix |
|---|---|---|---|
| KQ025 | only a top-level Domain is an enabler Only a Domain directly in an Ecosystem is marked enabler. | Error | No |
| KQ095 | contexts do not nest A Component is in at most one bounded context, and no Domain marked bounded-context sits inside another. | Error | No |
| KQ096 | an Enabler Domain states no subdomain type An Enabler Domain, and every Domain under one, is generic and states no subdomain type of its own. | Error | No |
| KQ112 | a core Domain is not only bought A core Domain is realized by at least some custom-built software, not by SaaS or off-the-shelf products alone. | Lint | No |
| KQ113 | a generic Domain is not custom-built A generic Domain, an Enabler Domain aside, is realized by SaaS or off-the-shelf products, not by custom-built software. | Lint | No |
Processes
A business process orders the work under a value stream stage, in lanes that are job roles. These rules keep its flows inside it, its lanes in reach of the screens its tasks use, and its messages on the connections they name.
| Code | Rule | Severity | Quick fix |
|---|---|---|---|
| KQ119 | a flow node is reached from a start event A flow node of a process is reached by then from one of its start events. | Lint | No |
| KQ221 | a flow node is in a lane of its process Every flow node but an external step sits in one of its process's lanes. | Error | No |
| KQ222 | a lane is a job role of the process's Ecosystem A process's lane names a job role of the process's own Ecosystem. | Error | No |
| KQ223 | a sequence flow joins two flow nodes of one process A then joins two flow nodes of one process, neither an external step, never into a start event or out of an end event. | Error | No |
| KQ224 | a message flow joins a lane to an external party A message flow joins a node in a lane to a pool or one of its external steps, received by a start event or a task and sent by an end event or a task. | Error | No |
| KQ225 | a task's screen is of an application realizing its Function A task's on names a user-facing Interface of an application that realizes the Function the task performs. | Error | No |
| KQ226 | a task's lane holds a Role using its screen A task done on a screen sits in the lane of a job role holding a Role in that screen's application that uses it. | Error | No |
| KQ227 | a message's connections are in the model Every connection a message flow travels over is a connection of the model. | Error | No |
| KQ228 | a message's chain is unbroken Each connection a message travels over starts where the one before it landed. | Error | No |
| KQ229 | a message's chain starts or lands at its task's systems A message a task sends starts, and one it receives lands, at one of the task's systems. | Error | No |
| KQ230 | a message's chain reaches its pool's systems A message to a pool that says where its systems are lands there, and one from it starts there. | Error | No |
| KQ231 | a process stays within the stage it details Every Function a task performs lies under a Function Group realizing the stage its process details. | Error | No |
| KQ232 | a pool is an external party A pool's persona is external, and its site names an Ecosystem, a Platform or a monolith. | Error | No |
| KQ237 | a data action names its own data Every Domain Object a data mark names is in its node's Data: a task's, of the Domains holding its Function; a start event's, of the stage its process details. | Error | No |
| KQ238 | a data action's Domain Object has one holding Every Domain Object a data mark names is held, not as a replica, in exactly one Storage of its node's systems. | Error | No |
| KQ239 | a data mark sits on a task or a receiving start event Only a task, or a start event receiving a message over a chain, is marked data. | Error | No |
Context map
The context map's lines are derived from what crosses between two bounded contexts: a call, a message through a channel, a copy of the other's data. Its patterns are stated. These rules catch a stated pattern the model contradicts.
| Code | Rule | Severity | Quick fix |
|---|---|---|---|
| KQ204 | conforms-to and customer-of name an upstream A context states conforms-to or customer-of only toward a context the edges put upstream of it. | Error | No |
| KQ205 | a downstream conforms or is a customer A context does not state both conforms-to and customer-of toward one context. | Error | No |
| KQ206 | a conformist does not translate A context does not state conforms-to toward a context whose every crossing to it goes through an anticorruption layer. | Error | No |
| KQ207 | a relationship has an integration A relationship other than separate-ways joins two contexts something crosses between. | Error | No |
| KQ208 | separate ways cross nothing Nothing crosses between two contexts stated separate-ways. | Error | No |
| KQ209 | a symmetric relationship is stated once A partnership, a shared kernel or separate ways is stated in one of its two contexts, not both. | Error | No |
| KQ210 | a relationship joins two contexts A context relationship is written in an element marked bounded-context and names another one. | Error | No |
| KQ211 | published language beside an open host An Interface or a Channel marked published-language is marked open-host. | Error | No |
| KQ212 | acl is not stated through an integration Component A crossing whose downstream end is an integration Component states no acl. | Error | No |
| KQ213 | a Big Ball of Mud is a context An element marked big-ball-of-mud is marked bounded-context. | Error | No |
Realization
| Code | Rule | Severity | Quick fix |
|---|---|---|---|
| KQ007 | realization target Only a Domain, a Function Group, a Function, a Goal, a value stream stage or an impact is realized. | Error | No |
| KQ008 | realization stays in one Ecosystem A realization stays inside one Ecosystem. | Error | No |
| KQ009 | a Domain holds one altitude A Domain holds either sub-domains or Function Groups and Functions, never both, and a Domain with sub-domains is not realized itself. | Error | No |
| KQ045 | a primary mark is on one realization of a Component Only a Component, or a monolith with nothing inside it, marks a realization primary, and on one realization at most. | Error | No |
| KQ046 | a Component marks its primary Domain where it realizes into several A Component that realizes into several Domains marks the realization into its own primary, and one that realizes into one Domain marks none. | Error | No |
| KQ101 | a Platform realizes its Domain A Domain Object sits in a Platform that realizes the Domain owning it. | Lint | No |
| KQ104 | a Component realizes something A Component realizes a Domain, Function Group or Function, or sits in something that does, wherever its Ecosystem has Domains. | Lint | No |
Monoliths
| Code | Rule | Severity | Quick fix |
|---|---|---|---|
| KQ027 | a module sits in a monolith A Module sits in a monolith, never in a Platform or another Module. | Error | No |
| KQ028 | an in-process call stays in its monolith An in-process call joins two Components of one monolith. | Error | No |
Jobs, robots and screens
| Code | Rule | Severity | Quick fix |
|---|---|---|---|
| KQ079 | a job holds no Interface A job holds no Interface, declared or created by a connection. | Error | No |
| KQ080 | no delivery out of a Channel lands on a job No delivery out of a Channel lands on a job. | Error | No |
| KQ081 | a schedule is well formed A schedule names a known time zone, a time of day, a day of the month from 1 to 31, each weekday once, and a cron expression of five standard fields. | Error | No |
| KQ082 | a robot holds no Interface A robot holds no Interface, declared or created by a connection. | Error | No |
| KQ083 | ui comes only from a robot or a Role A connection over ui comes only from a robot or a Role. | Error | No |
| KQ084 | ui lands only on a declared user-facing Interface A connection over ui lands only on a declared user-facing Interface. | Error | No |
| KQ085 | a Role's ui stays in its own application A Role's connection over ui lands only on a user-facing Interface of the Role's own application. | Error | No |
| KQ111 | a robot's Identity holds a Role where its ui goes Where a robot uses an application's screens, the Identity it runs as holds a Role in that application. | Lint | No |
Connections
| Code | Rule | Severity | Quick fix |
|---|---|---|---|
| KQ022 | a connection names its target A connection lands on an Interface or a Channel, not on a Component or monolith, unless it is in-process. | Error | Yes |
| KQ023 | protocol matches the Interface A connection's protocol matches the kind of Interface it lands on, and no call lands on a user interface. | Error | No |
| KQ024 | a Channel is reached through its broker A Channel is reached through its broker with no protocol, an Interface always with one, and no connection joins two Channels. | Error | Yes |
| KQ102 | a Channel has both sides A Channel has both a sender and a receiver. | Lint | No |
| KQ121 | an Interface's version is called Some call names each version of a software-facing Interface. | Lint | No |
| KQ248 | only a software-facing Interface has a contract A user-facing Interface states no schema and no versions. | Error | No |
| KQ249 | a call names a declared version A call names a version its Interface declares, calls a versioned Interface with its version, and an unversioned one with none. | Error | No |
Events, commands and queries
| Code | Rule | Severity | Quick fix |
|---|---|---|---|
| KQ097 | a delivery carries what is published A delivery out of a Channel carries only events, and versions of them, that a leg into that Channel carries. | Error | No |
| KQ098 | a publishing leg carries its publisher's events A leg into a Channel carries only events its sending Component declares. | Error | No |
| KQ099 | a carried event names a declared version A leg names a version an event declares, names a versioned event with its version, and an unversioned event with none. | Error | No |
| KQ114 | a publisher holds what its event is about The Component publishing an event holds a Data Entity of the Domain Object the event is about. | Lint | No |
| KQ115 | an event is delivered Some delivery out of a Channel or some sync carries each event, and each version of one. | Lint | No |
| KQ116 | a handler holds what its command or query is about The Component handling a command or a query holds a Data Entity of the Domain Object it is about. | Lint | No |
| KQ117 | a command or a query is carried Some connection or some sync carries each command and query, and each version of one. | Lint | No |
| KQ200 | an event is about a Domain Object What an event is about is a Domain Object. | Error | No |
| KQ201 | a command or a query reaches its handler A call or a delivery carries only commands and queries the Component it reaches declares, and a leg into a Channel only those some Component declares. | Error | No |
| KQ202 | a carried command or query names a declared version A connection names a version a command or a query declares, names a versioned one with its version, and an unversioned one with none. | Error | No |
| KQ203 | a command or a query is about a Domain Object What a command or a query is about is a Domain Object. | Error | No |
Scenarios
A scenario walks over connections already declared, in order. These rules keep each step on a connection the model has, the walk in one piece, its messages ones the connections carry, and the scenario where it starts. Each holds at every plateau: a step whose connection is gone at a plateau is an error there.
| Code | Rule | Severity | Quick fix |
|---|---|---|---|
| KQ240 | a scenario's connections are in the model Every connection a scenario's step walks over, and both legs of a hop through a Channel, is a connection of the model. | Error | No |
| KQ241 | a scenario's walk is unbroken Each step of a scenario starts where the scenario starts or where an earlier step arrived. | Error | No |
| KQ242 | a scenario's step names a message its connection carries A step's message is carried by its connection, or by both legs of a hop, under a version the message declares. | Error | No |
| KQ243 | a scenario starts at its task's screen or systems A scenario for a task starts at the task's screen or at one of its systems. | Error | No |
| KQ244 | a scenario sits in the Ecosystem where it starts A scenario sits directly in the Ecosystem of its first step's source. | Error | No |
| KQ245 | a scenario is for a task of a process What a scenario is for is a task, a user task or a service task of a process. | Error | No |
Data
| Code | Rule | Severity | Quick fix |
|---|---|---|---|
| KQ010 | representation cardinality Every Data Entity holds exactly one Domain Object. | Error | No |
| KQ011 | authoritative cardinality Every Domain Object has exactly one authoritative holding across the whole model. | Error | No |
| KQ012 | a replica has a source A replica syncs from the authoritative holding or from another replica, never from a transient one. | Error | No |
| KQ013 | transient is local A transient holding neither syncs in nor syncs out. | Error | No |
| KQ014 | structure stays local part of and references stay inside one Component. | Error | No |
| KQ015 | no orphan entity Every Data Entity is a root or part of another. | Error | No |
| KQ016 | part of is a tree part of forms a tree: each Data Entity is part of at most one other, with no circle. | Error | No |
| KQ021 | a Domain Object has an origin Every Domain Object has a holding marked origin, where the data is first created. | Error | No |
| KQ118 | a sync carries messages about its entity A message a sync carries is about the Domain Object its replica represents. | Lint | No |
| KQ124 | a Domain Object with a property marked personal states its personal data A Domain Object one of whose Data Entities marks a property personal states personal-data, personal or special-category. | Lint | No |
| KQ126 | a Domain Object a data use names states its personal data A Domain Object a data use names states personal-data, personal or special-category. | Lint | No |
| KQ127 | personal data is held for a stated purpose In an Ecosystem with a data use, every Data Entity of personal or special-category data is a holding or a copy of a data use. | Lint | No |
| KQ128 | a data use states its legal basis A data use states its basis, one of GDPR Art. 6(1)'s lawful bases. | Lint | No |
| KQ137 | personal data leaves a transfer regime on a ground Personal data a call, a leg, a sync or a holding's own hop moves out of a residency stating adequate, to a country outside that list, goes where a contract covering what receives it states a transfer ground. | Lint | No |
| KQ138 | personal data does not leave a transfer regime for a place not stated Personal data moved from inside a residency stating adequate goes to a place whose country is stated. | Lint | No |
| KQ214 | a synced event is its source's A sync carries only events its source Component declares. | Error | No |
| KQ215 | a synced command is its holder's A sync carries only commands the Component holding the replica declares. | Error | No |
| KQ216 | a synced query is its source's A sync carries only queries its source Component declares. | Error | No |
| KQ217 | a pulled sync goes over a protocol A sync carrying a query goes over a protocol, never through a Channel. | Error | No |
| KQ218 | a sync carries messages or one mechanism A sync carries messages or one mechanism, never both, and never two mechanisms. | Error | No |
| KQ219 | an entity's syncs have one main feed Of the syncs into an entity, exactly one is not marked reconcile. | Error | No |
| KQ220 | two syncs into one entity differ No two syncs into one entity have the same source, the same route and the same carries. | Error | No |
| KQ246 | an access stays in its monolith An access joins a Component of a monolith to a data entity in a Storage the same monolith holds itself. | Error | No |
| KQ247 | an access names an aggregate An access names the root of an aggregate, or a data entity in no aggregate, never a part. | Error | No |
| KQ275 | a confidentiality is one of the repository's levels A Domain Object's confidentiality is one of the levels the repository's confidentiality-levels setting lists. | Error | No |
| KQ276 | no property is personal on data that is not personal No property is marked personal on a Data Entity of a Domain Object stated personal-data none. | Error | No |
| KQ277 | a data use names personal data No Domain Object a data use names is stated personal-data none. | Error | No |
| KQ278 | a data use's data is held in its systems Every Domain Object a data use names is represented by a Data Entity in a Storage of a system realizing what its via names. | Error | No |
| KQ279 | special-category data has a condition A data use naming special-category data states special, the condition it is processed under. | Error | No |
| KQ280 | a condition goes with special-category data A data use states special only where it names special-category data. | Error | No |
| KQ281 | a data use covers its own Ecosystem's work What a data use's via names is in the data use's own Ecosystem. | Error | No |
| KQ282 | a joint controller is another Ecosystem A data use's joint names other Ecosystems, never its own. | Error | No |
| KQ297 | a regulated scope is one the repository lists A Domain Object's or a significant property's regulated scope is one the repository's regulated-scopes setting lists. | Error | No |
Authentication
| Code | Rule | Severity | Quick fix |
|---|---|---|---|
| KQ060 | a scheme its transport accepts A connection's authentication scheme is one its protocol or broker accepts. | Error | No |
| KQ061 | via only on a token scheme via goes only with a scheme whose token someone issues. | Error | No |
| KQ062 | via names an Identity Provider via names an Identity Provider: a Component or monolith marked idp. | Error | No |
| KQ063 | a leg states one scheme Two statements of one leg into or out of a Channel state the same scheme. | Error | No |
People
| Code | Rule | Severity | Quick fix |
|---|---|---|---|
| KQ040 | a Role is in a user-facing application A Role sits in a Component or monolith that holds a user interface of its own. | Error | No |
| KQ041 | a Role names an Identity Provider A Role names an Identity Provider: a Component or monolith marked idp. | Error | No |
| KQ042 | a Role has holders A Role's Identity Provider holds an Identity of the Role's persona, so someone can hold the Role. | Error | No |
| KQ043 | an Identity is in an Identity Provider An Identity sits in a Component or monolith marked idp. | Error | No |
| KQ071 | a Role is never in an anonymous application A Component or monolith marked anonymous holds no Role. | Error | No |
| KQ072 | anonymous marks a user-facing application Only a Component or monolith that holds a user interface of its own is marked anonymous. | Error | No |
| KQ073 | an Identity Provider is never anonymous An Identity Provider is never marked anonymous. | Error | No |
| KQ120 | an internal Role is held by a job role In an Ecosystem with job roles, every Role of an internal persona in its applications and its Identity Providers is held by a job role. | Lint | No |
| KQ233 | a job role's persona is internal A job role's persona is an employee or a freelancer. | Error | No |
| KQ234 | a held Role is of the job role's persona A job role holds only Roles of its own persona. | Error | No |
Workload identity
| Code | Rule | Severity | Quick fix |
|---|---|---|---|
| KQ064 | a workload identity names an Identity Provider A workload identity names an Identity Provider: a Component or monolith marked idp. | Error | No |
| KQ065 | a role sits in a server workload identity App roles and scopes are declared in a server workload identity, never a client one. | Error | No |
| KQ066 | a credential sits on a client workload identity Only a client workload identity states a credential. | Error | No |
| KQ067 | stored-in names a vault A credential is stored in a vault element. | Error | No |
| KQ068 | a federated credential names its issuer A federated credential comes from an Identity Provider: a Component marked idp. | Error | No |
| KQ069 | a scheme the caller's credential carries A call's authentication scheme is one the caller's credential can produce. | Error | No |
| KQ070 | on-behalf-of rests on a scope A call on behalf of a user rests on a delegated scope granted on the API it calls. | Error | No |
| KQ106 | a Component holds one kind of workload identity A Component holds a client or a server workload identity, not both. | Lint | No |
| KQ107 | a workload identity is one workload's, in one environment A workload identity is the identity of one Component, in one Environment. | Lint | No |
| KQ108 | people and workloads do not share an identity Components do not run as people's accounts, and people do not sign in as a service. | Lint | No |
| KQ109 | a grant has a call behind it A client is granted a role only on an API it calls. | Lint | No |
| KQ110 | a credential is read from its vault A credential is stored in a vault the service connects to. | Lint | No |
Environments and database servers
| Code | Rule | Severity | Quick fix |
|---|---|---|---|
| KQ029 | an environment line names a stage An environment line names a stage its Ecosystem declares and sits on something that runs on its own. | Error | No |
| KQ030 | a client's environment line has no count A user interface's environment line states no number of instances; the device it runs on is a host that states its count. | Error | Yes |
| KQ031 | a replica is in its primary's environment A database server replica is of a database server in its own Environment. | Error | No |
| KQ032 | a Storage is on a database server A Storage is hosted on a database server or a storage account, if on anything. | Error | No |
| KQ086 | an environment line states its count The environment line of a part that runs, other than a client, a workload identity, a network, a DNS record or a certificate, states its number of instances. | Error | No |
| KQ087 | a held Component runs where its holder runs A Component or deployable module held by one that states environments states only stages its holder states. | Error | No |
| KQ088 | a client runs where its backend runs A user interface declared in its backend Component states only stages that Component runs in. | Error | No |
| KQ089 | a Storage is hosted where its owner runs A database server hosting a Storage runs only in stages the Storage's owner runs in. | Error | No |
Infrastructure
| Code | Rule | Severity | Quick fix |
|---|---|---|---|
| KQ122 | a private endpoint has a private DNS record A provider-run service reached in a network by a private endpoint has a private DNS record pointing at it, unless its provider resolves the name itself. | Lint | No |
| KQ250 | a network-only product is in a network A provider-run service of a product that cannot be public states the network it is in. | Error | No |
| KQ251 | a product's required parts are named Every part a product word requires is named: its network with in, its storage account with uses, its origin with forwards-to, its certificate by served-by. | Error | No |
| KQ252 | a call's gateway publishes its target The gateway a call goes via publishes the Interface the call lands on, unless it is a NAT the call leaves by. | Error | No |
| KQ253 | a Storage's pool is in its server The pool a Storage names is inside the database server it is hosted on. | Error | No |
| KQ254 | a vault holds what is stored in it A credential or a certificate is stored in a vault whose kind holds secrets or certificates. | Error | No |
| KQ255 | an infrastructure clause names what it takes Via names a gateway, backup a backup vault, covers a stage of the service's own Ecosystem, and a certificate's stored-in a vault and served-by what can serve one. | Error | No |
| KQ256 | a bucket holds one Storage A storage account of a bucket product holds exactly one Storage. | Error | No |
| KQ257 | a Storage is of a kind its account holds A Storage on a storage account is of a kind that account's product holds. | Error | No |
| KQ258 | only a client runs on a storage account Only a user-facing client is deployed on a storage account, a static site served from it. | Error | No |
| KQ259 | infrastructure stays in its stage What a part runs on, and what an infrastructure element runs on, is in and uses, is in the same stage, a registry aside, and a link joins two networks of one stage. | Error | No |
| KQ260 | a private DNS zone is in a network A DNS record in a private zone states the network its zone is linked to. | Error | No |
| KQ261 | a platform service states how it runs A platform service of a generic kind states paas or on the host it runs on. | Error | No |
| KQ262 | a product word fixes how it runs A platform service of a provider's product word states no paas, states on only after a self-run word, and states it after one. | Error | No |
| KQ269 | an endpoint stated plaintext is not proven encrypted A software-facing Interface or a Broker stated in-transit plaintext does not serve a certificate, is not of a transport that takes no plaintext, and is not reached with auth certificate. | Error | No |
| KQ270 | only a network endpoint states in-transit in-transit is stated on a software-facing Interface other than an ipc-api, or on a Broker, and nowhere else. | Error | No |
| KQ292 | a location is stated once An element in a network that states its location states none of its own: it is where its network is. | Error | No |
| KQ293 | a zone its location has Each zone an element names is one its location has: one its region's registry entry names, or one its data center declares. | Error | No |
| KQ294 | zones or zone-redundant An element names the zones it spans or says its provider spreads it with zone-redundant, never both. | Error | No |
| KQ295 | a stage on several lines is on different hosts A part that states one stage on several environment lines names what it runs on on each, a different host or platform on each. | Error | No |
Life cycle
| Code | Rule | Severity | Quick fix |
|---|---|---|---|
| KQ123 | support does not end within the warning period A run element that is not retired, phasing out or meant to be replaced, migrated or retired does not reach the end of its extended support or its contract within the repository's warning period, nor does a contract unless all it covers is so answered. | Lint | No |
| KQ263 | nothing live depends on a retired element Nothing that is not retired is deployed, hosted or installed on a retired element, uses it or calls it, and no Component that is not retired is held in a retired monolith. | Error | No |
| KQ264 | a phasing-out element is not invested in An element that is phasing out does not have a future of invest. | Error | No |
| KQ265 | a successor is of the element's type and its future A successor is named only with a future of replace or migrate, is of the same type as the element, or a Component for a monolith and a monolith for a Component, and is not the element itself. | Error | No |
| KQ266 | an installation is on a Host An installation names the Host it is installed on, and only a Host. | Error | No |
| KQ267 | extended support ends after mainstream support An element's end of extended support is not before its end of mainstream support. | Error | No |
| KQ268 | support does not end within the error period A run element that is not retired, phasing out or meant to be replaced, migrated or retired does not reach the end of its extended support or its contract within the repository's error period, nor past it, nor does a contract unless all it covers is so answered. | Error | No |
Suppliers and contracts
| Code | Rule | Severity | Quick fix |
|---|---|---|---|
| KQ129 | bought software has a supplier In an Ecosystem with a contract, every saas or cots Component or monolith is covered by a contract, a Component in a covered monolith counting as covered. | Lint | No |
| KQ130 | a critical contract has a way out A contract supporting a critical Function states its ends and its notice. | Lint | No |
| KQ131 | a contract supports a Function A contract supports a Function: something it covers realizes one, or it names one with via. | Lint | No |
| KQ134 | a Platform says whose work it does In an Ecosystem with two or more legal entities, every Platform and monolith names with for the entities or branches whose work it does. | Lint | No |
| KQ135 | a supplier is one company A supplier's is names an Ecosystem holding at most one legal entity; where it holds several, is names the legal entity by path. | Lint | No |
| KQ136 | a branch is abroad A branch is in another country than its legal entity's headquarters. | Lint | No |
| KQ284 | a contract covers its own Ecosystem's elements What a contract covers is in its own Ecosystem, or in the Ecosystem its supplier is, directly or through a legal entity. | Error | No |
| KQ285 | a contract supports its own Ecosystem's work What a contract's via names is in the contract's own Ecosystem. | Error | No |
| KQ286 | a covered element states no contract end An element a contract covers states no contract-end; it reads its contracts' ends. | Error | No |
| KQ287 | a contract ends after it starts A contract's ends is not before its starts. | Error | No |
| KQ288 | a contract's subcontractors form one chain Each subcontractor names another supplier of the Ecosystem than the contract's own, once, under its supplier or one in its chain, and the chain reaches the contract's supplier. | Error | No |
| KQ289 | a supplier's parent is another supplier A supplier's parent is another supplier of its Ecosystem, and parents form no cycle. | Error | No |
| KQ290 | a supplier is another Ecosystem A supplier's is names another Ecosystem than the one it is declared in, or a legal entity of another. | Error | No |
| KQ291 | an LEI is well formed A supplier's or a legal entity's lei is 18 capitals or digits and two check digits valid under ISO 7064 MOD 97-10. | Error | No |
| KQ298 | a legal entity's parent is another legal entity A legal entity's parent is another legal entity, in any Ecosystem, and parents form no cycle. | Error | No |
| KQ299 | an LEI names one legal entity No two legal entities of the model state one lei. | Error | No |
| KQ400 | for names an entity of its Ecosystem What a Platform's or a monolith's for names is a legal entity or a branch of its own Ecosystem. | Error | No |
| KQ401 | a contract is signed in its Ecosystem A contract's signed-by names a legal entity of the Ecosystem it is declared in. | Error | No |
| KQ402 | a contract names its signer In an Ecosystem with two or more legal entities, every contract states signed-by. | Error | No |
| KQ403 | a supplier that is a legal entity states no LEI A supplier whose is names a legal entity states no lei and no headquarters: it reads both from the entity. | Error | No |
| KQ405 | a contract states each transfer ground once A ground a contract's transfer clause lists is listed once. | Error | No |
Plateaus
| Code | Rule | Severity | Quick fix |
|---|---|---|---|
| KQ033 | plateaus form one sequence Plateaus line up one after another, in a single sequence. | Error | No |
| KQ034 | plateau dates rise Each dated plateau is later than the dated plateaus before it. | Error | No |
| KQ035 | the initial plateau changes nothing The first plateau adds, removes, moves and restates nothing. | Error | No |
| KQ036 | a change names what the plateau before holds A removal or a move names something the plateau before holds. | Error | No |
| KQ037 | a path is one element's A path that once was an element's is never another element's in a later plateau. | Error | No |
| KQ038 | a move lands on a free path A move puts an element where no other element has its Code. | Error | No |
| KQ039 | a relationship's end is alive A plateau removes nothing a remaining relationship still uses. | Error | No |
| KQ047 | a data migration follows a plateau A data migration is declared in a plateau after the initial one. | Error | No |
| KQ048 | a change of authority is covered once Each change of a Domain Object's authoritative holding is covered by exactly one data migration of its plateau. | Error | No |
| KQ049 | covers names a change A data migration covers only Data Entities its plateau adds, removes or restates. | Error | No |
| KQ050 | a data migration falls within its window A data migration starts and is due between the dates of the plateau before and the plateau it delivers, and starts before it is due. | Error | No |
| KQ051 | a link names a page A data migration's link is an absolute http or https URL, or the path of a page file in the repository. | Error | No |
| KQ404 | memberships form runs A subject's memberships are runs that neither overlap nor touch, and only a relationship whose Id is its ends has more than one. | Error | No |
| KQ406 | a constant is alive where it is used A constant a use names is alive in every plateau the policy, the element or the relationship holding the use is alive in. | Error | No |
Policies
These check that a policy makes sense, never whether your landscape follows it: a model that breaks its own policies is still valid.
| Code | Rule | Severity | Quick fix |
|---|---|---|---|
| KQ074 | a policy's clause is an aspect or a selector, with its values Every clause of a policy names an aspect or a selector Kanoniq knows, or a property the repository declares, and lists only values that clause takes. | Error | No |
| KQ075 | a clause appears once in a policy A policy names each clause once, listing several values in one clause. | Error | No |
| KQ076 | a policy's clauses apply to one subject type Some subject, a call, a leg, a sync, a grant or a workload identity, can match every clause of a policy. | Error | No |
| KQ077 | an exemption lifts a policy from a subject An exemption lifts a policy from an element, a call, a leg, a sync or a grant. | Error | No |
| KQ078 | an Ecosystem's policy set shares no Code with the model's No policy set of an Ecosystem shares its Code with a policy set of the model, the two default sets aside. | Error | No |
| KQ090 | a preset's set is written out only where no other preset is judged No policy set has a preset's Code while the repository sets a preset of its kind, and no two presets of one kind are both written out. | Error | No |
| KQ091 | a reserved policy set is of its own kind A policy set coded as a default set, a preset or a package's set is of the kind its Code names: default-model, the baseline-model presets and threats-stated model sets, default-architecture, the baseline-architecture presets and threats-stride architecture sets. | Error | No |
| KQ092 | a model policy denies what is unstated A policy in a model set is a deny whose tested clause lists only unstated, and no other clause lists it. | Error | No |
| KQ093 | an architecture policy judges what is stated A policy in an architecture set lists unstated in no clause. | Error | No |
| KQ132 | a requirement the model can check is served In a framework the repository's frameworks setting follows, every requirement the model can check is served by a policy in effect, a preset the settings name included. | Lint | No |
| KQ271 | a constant is used where it is seen A name used in a value's place is a constant written on the model, or on the element the value is written on or in, or on one that holds it. | Error | No |
| KQ272 | a constant's type fits where it is used A constant used in a bound is a period or a number in the unit its clause takes; as quoted text, a string; in a period's place, a period; as an open property's value, its declared type's. | Error | No |
| KQ273 | a constant's name is defined once A constant's name is defined once in the whole model, never again at another level. | Error | No |
| KQ274 | a constant's name is neither a stage nor a period A constant's name is capitals, digits and underscores, starting with a capital, and is neither a stage nor shaped as a period, so a value is never ambiguous. | Error | No |
| KQ296 | a requirement is listed once A policy or a policy set lists each requirement it serves once. | Error | No |
Structure
| Code | Rule | Severity | Quick fix |
|---|---|---|---|
| KQ001 | unresolved endpoint Every relationship names elements that are in the model. | Error | No |
| KQ002 | duplicate identity No two elements share an Id, and no two elements under one parent share a Code. | Error | No |
| KQ003 | Ecosystem presence A model has an Ecosystem, and every Ecosystem sits at the top level. | Error | No |
| KQ004 | parent cardinality Every element but an Ecosystem has exactly one parent. | Error | No |
| KQ005 | containment reaches an Ecosystem Following parents upward from any element reaches an Ecosystem, never a circle. | Error | No |
| KQ006 | owner cardinality A Data Entity sits in a Storage, and a Storage sits in the Component or monolith that owns it. | Error | No |
| KQ103 | an orphaned derived element A derived element is still named by something in the model. | Lint | No |
Splitting a model
| Code | Rule | Severity | Quick fix |
|---|---|---|---|
| KQ026 | a relationship is stated once A relationship is written once, in one file or across the files of a split model. | Error | Yes |
Open properties
| Code | Rule | Severity | Quick fix |
|---|---|---|---|
| KQ058 | a property is declared An open property is declared in the repository's settings, for the element type it is written on. | Error | No |
| KQ059 | a property's value is of its declared type An open property's value, and each value of a list, is of the type its declaration gives it. | Error | No |
Page rules
Page rules are checked by kq portal:build on the portal's pages, not on the model, and are reported under a KQP code. See What kq portal:build reports.
Page files
| Code | Rule | Severity |
|---|---|---|
| KQP001 | well-formed YAML A page file, a Markdown page's or a decision record's frontmatter, and a view block are well-formed YAML: one document, no key repeated. | Error |
| KQP002 | page shape A page file, a Markdown page's or a decision record's frontmatter, and a view block have every field they need and only those they take, each with a value it can take. | Error |
| KQP003 | page name A page file's name is the canonical encoding of the page's name. | Error |
| KQP004 | one file per page A page has one file: no two sibling files for names that differ only in case or composition, or for one name under two extensions. | Error |
| KQP009 | a known icon An icon is named as Lucide names one of its icons. | Error |
Navigation
| Code | Rule | Severity |
|---|---|---|
| KQP005 | one home page portal/ holds exactly one page file directly: the home page. | Error |
| KQP006 | every page is reachable Every page file and decision record sits in a directory that mirrors a page. | Error |
| KQP101 | published under unpublished A published page sits under a published parent, since it is not rendered otherwise. | Lint |
Tiles
| Code | Rule | Severity |
|---|---|---|
| KQP007 | a tile names a child A page tile names a child page or decision record in the page's mirror directory. | Error |
| KQP008 | a child is listed once A page's tiles list each child once. | Error |
| KQP102 | an unlisted child A page's tiles list every child page, so their order is chosen rather than by name. | Lint |
Views
| Code | Rule | Severity |
|---|---|---|
| KQP010 | a known plateau A view tile's or view block's at and to name plateaus of the model, its to later than its at. | Error |
| KQP019 | a known view path A path that decides which view opens, a view's domain, focus or anchor, names an element of the model of a type the parameter takes. | Error |
| KQP106 | a view's selected and collapsed paths A view's selected path and collapsed entries name elements of the model. | Lint |
Decision records
| Code | Rule | Severity |
|---|---|---|
| KQP011 | a known element A decision record's element Id names an element of the model. | Error |
| KQP012 | a known successor A superseded decision record's superseded-by names another decision record's file, by its path from portal/. | Error |
| KQP013 | a chain of successors that ends Following superseded-by from record to record never comes back to a record already passed. | Error |
| KQP103 | the element's path A decision record's element path is the path its element Id is at in the model. | Lint |
| KQP104 | a successor in force A superseded decision record's successor is not proposed or rejected, since then nothing has replaced the decision yet. | Lint |
Page text
| Code | Rule | Severity |
|---|---|---|
| KQP014 | an image path An image in a page's text is named by a relative path to a file inside portal/. | Error |
| KQP015 | an image that exists An image in a page's text names a file that exists. | Error |
| KQP016 | an image type An image in a page's text is a PNG, JPEG, GIF, WebP or SVG file, as its extension says and its first bytes agree. | Error |
| KQP017 | an image's size An image in a page's text is at most 5 MiB. | Error |
| KQP018 | a link's target A link in a page's text names a page file or decision record by a relative path, or is a fragment or an http, https or mailto address. | Error |
| KQP105 | a link to an unrendered page A rendered page links only to rendered pages, since a link to any other is written as its text. | Lint |
© 2026 Extenza Works. All rights reserved.