# Kanoniq > An architecture repository on one canonical model Every page of this documentation is also served as Markdown, at the page's address plus `.md`. ## Start here - [User guides](https://kanoniq.extenza.dev/docs/index.md): Model your architecture with Kanoniq: write it in `.kq` files kept in git, check it, and see every view drawn from one canonical model. - [Working in VS Code](https://kanoniq.extenza.dev/docs/vscode.md): Install the Kanoniq extension for VS Code, then write, check and format `.kq` files, see the model beside the editor and build the portal. - [Repository settings](https://kanoniq.extenza.dev/docs/settings.md): Every setting in `kanoniq.repository.json` with its default, what happens when a key or value is wrong, and which commands change the file. ## Get started - [Get started](https://kanoniq.extenza.dev/docs/get-started.md): What Kanoniq is, how to install it, and where to begin your first model: in VS Code, from the command line or with an AI assistant. - [Install](https://kanoniq.extenza.dev/docs/get-started/install.md): Install the Kanoniq VS Code extension and the `kq` command line from npm, with the versions each needs, and add the packages for login and export. - [Your first model in VS Code](https://kanoniq.extenza.dev/docs/get-started/vscode.md): Make a repository, write a small model in VS Code, see it drawn as you type, fix a reported mistake and commit it, in about fifteen minutes. - [Your first model from the command line](https://kanoniq.extenza.dev/docs/get-started/command-line.md): Make a repository and write a small model, then format, build, check and draw it with `kq` the way a pipeline does, in about fifteen minutes. - [Your first model with an AI assistant](https://kanoniq.extenza.dev/docs/get-started/ai-assistant.md): Describe a small system to an AI assistant, let it write, check and build the model, and review what it wrote, in about fifteen minutes. - [Example models](https://kanoniq.extenza.dev/docs/get-started/examples.md): Four example models, a payments company, a logistics company, a retailer and a rail operator, each drawn as the viewer draws it. ## Concepts - [Concepts](https://kanoniq.extenza.dev/docs/concepts.md): The handful of ideas everything in Kanoniq follows from, one short page each, to read in order before or after you install. - [One model, many views](https://kanoniq.extenza.dev/docs/concepts/one-model-many-views.md): One model drawn as many views, each answering one question about the same elements, and why nothing a view invents is in the model. - [Model and views](https://kanoniq.extenza.dev/docs/concepts/model-and-views.md): Every element and relationship is stated once in the model and every view is drawn from it, with Kanoniq choosing the layout and colors. - [The model is the files](https://kanoniq.extenza.dev/docs/concepts/the-model-is-the-files.md): A model is every `.kq` file under a repository's `model/` folder, read as one, and `kanoniq.repository.json` marks the repository. - [Three sides](https://kanoniq.extenza.dev/docs/concepts/three-sides.md): The function, application, and motivation and strategy sides a model describes, which elements belong to each, and how realization joins them. - [The landscape in one picture](https://kanoniq.extenza.dev/docs/concepts/the-landscape-in-one-picture.md): One table of the whole landscape: the question each element type answers, and the relationships through which the answers meet. - [Nesting is containment](https://kanoniq.extenza.dev/docs/concepts/nesting-is-containment.md): A declaration written inside another's block is contained by it: every element but an ecosystem has one parent, and containment is never stated apart. - [Names, Codes and paths](https://kanoniq.extenza.dev/docs/concepts/names-codes-and-paths.md): How an element's name, its Code and the paths of Codes that refer to it work, each reference resolved from where it is written. - [Identity](https://kanoniq.extenza.dev/docs/concepts/identity.md): Every element has a UUID Id that survives renames and moves: how `kq build` keeps Ids in `.g.kq` files, and why you rename with F2. - [Authored, derived, projected](https://kanoniq.extenza.dev/docs/concepts/authored-derived-projected.md): Where content comes from: authored in your `.kq` files, derived by Kanoniq into `.g.kq`, or projected in a view only. - [The language is explicit](https://kanoniq.extenza.dev/docs/concepts/the-language-is-explicit.md): Why a Kanoniq statement has no defaults, an incomplete statement is an error, and the build only adds to what you wrote, never rewrites it. - [Grounding](https://kanoniq.extenza.dev/docs/concepts/grounding.md): Why every abstraction in a Kanoniq model is backed by something tangible, and why repetition is the honest answer to sameness. - [Time](https://kanoniq.extenza.dev/docs/concepts/time.md): A model as a sequence of plateaus: how an element keeps one Id through time, where undecided alternatives live, and how views pick a plateau. ## Modeling guides - [Modeling guides](https://kanoniq.extenza.dev/docs/guides.md): Step-by-step modeling guides, one task each, that grow a small model which builds at every step and point to the language reference. - [Model the motivation](https://kanoniq.extenza.dev/docs/guides/motivation.md): Model why your organization does what it does: what drives it, the goals it commits to, the functions that reach them and the value it delivers. - [Model what the organization does](https://kanoniq.extenza.dev/docs/guides/business-functions.md): Model what your organization does: its ecosystem, domains, function groups and functions, shared services, and which systems carry each out. - [Model a business process](https://kanoniq.extenza.dev/docs/guides/processes.md): Write a business process as BPMN in your model: the people who do the work, the steps in order, a decision and the customer, drawn in lanes. - [Mark bounded contexts](https://kanoniq.extenza.dev/docs/guides/domain-driven-design.md): Type your subdomains, mark bounded contexts and an open host, say how the contexts relate, and see the context map they make. - [Model the applications](https://kanoniq.extenza.dev/docs/guides/applications.md): Model the applications your organization runs: the systems people name, their components, how each is reached and which function it carries out. - [Model integration](https://kanoniq.extenza.dev/docs/guides/integration.md): Model how your systems reach each other: the interface a call lands on, messages through a broker, what travels, and a scenario walk-through. - [Model the data](https://kanoniq.extenza.dev/docs/guides/data.md): Model your data: name it, say which system is the authority for it, keep copies in step, and say why and where personal data is processed. - [Model people and access](https://kanoniq.extenza.dev/docs/guides/identity-and-access.md): Model who signs in where and with which role: mark identity providers, give each application its roles, and say why people have access. - [Model the technology](https://kanoniq.extenza.dev/docs/guides/technology.md): Model where each system runs: its deployment stages, how many instances, what it runs on, what hosts its data and who supplies it. - [Plan a change over time](https://kanoniq.extenza.dev/docs/guides/change-over-time.md): Plan how your landscape changes plateau by plateau: write what is there today, add the next plateau, remove what leaves and move what changes. - [Govern the landscape](https://kanoniq.extenza.dev/docs/guides/governance.md): Write your architecture rules as policies in the model, start from the baseline, grant exemptions, and see every breach beside other findings. - [Work on a large model](https://kanoniq.extenza.dev/docs/guides/a-large-model.md): Keep a model of hundreds of systems readable: split it into files that follow its structure and let `kq arrange` keep the layout. - [Change a model safely](https://kanoniq.extenza.dev/docs/guides/safe-change.md): Rename, move and restructure a model without losing what is bound to its elements: commit the `.g.kq`, rename with the editor, use Refactor: Move. ## Language reference - [Language areas](https://kanoniq.extenza.dev/docs/language.md): The language's areas, from motivation to governance, each grouping its element types, relationships and rules so you read one at a time. - [Motivation and strategy](https://kanoniq.extenza.dev/docs/language/motivation-and-strategy.md): Stakeholders, drivers, goals, impacts, principles and value streams: why the organization does what it does and the value it delivers. - [Business functions](https://kanoniq.extenza.dev/docs/language/business-functions.md): The ecosystem, Domains, function groups and functions: how you say what the organization does, with the reference for each. - [Processes](https://kanoniq.extenza.dev/docs/language/processes.md): Write a business process as BPMN in the language and see it drawn in lanes, with the reference for every process element. - [Domain-driven design](https://kanoniq.extenza.dev/docs/language/domain-driven-design.md): Subdomain types, bounded contexts, the context map, the relationships between contexts and anticorruption layers, with their reference. - [Applications](https://kanoniq.extenza.dev/docs/language/applications.md): Platforms, monoliths, modules, components, jobs, robots and interfaces: which systems realize which functions, and what they offer. - [Integration](https://kanoniq.extenza.dev/docs/language/integration.md): Brokers, channels, events, commands, queries, connections, syncs and scenarios: how systems reach each other and what travels between them. - [Data](https://kanoniq.extenza.dev/docs/language/data.md): Domain objects, storages, data entities, access and data uses: how you say what data the organization holds and how it moves. - [Identity and access](https://kanoniq.extenza.dev/docs/language/identity-and-access.md): People, workloads, identity providers, roles, job roles, workload identities, grants and authentication: who signs in where, with which role. - [Technology](https://kanoniq.extenza.dev/docs/language/technology.md): Environments, database servers, infrastructure, life cycle, suppliers, contracts and legal entities: where each system runs and what hosts its data. - [Change over time](https://kanoniq.extenza.dev/docs/language/change-over-time.md): Declare plateaus, say what a later plateau changes, write data migrations, and see what Kanoniq does with them, with the full reference. - [Governance](https://kanoniq.extenza.dev/docs/language/governance.md): Write your organization's architecture rules as policies: clauses, trust boundaries, constants, policy sets, exemptions, baselines and findings. - [Language basics](https://kanoniq.extenza.dev/docs/language/basics.md): What every statement shares: Ids, Codes, relationships, open properties, `extend`, splitting a model, formatting and the reserved words. - [Assumptions](https://kanoniq.extenza.dev/docs/language/assumptions.md): Mark unchecked statements as assumptions so reviewers see the guesswork: how to write one, how the tool and views show it, and how a policy denies it. - [What kq build adds](https://kanoniq.extenza.dev/docs/language/derivation.md): Every element `kq build` adds on your behalf, where it goes, what it never adds, and what happens to orphans that are no longer needed. ## Views and notation - [Views and notation](https://kanoniq.extenza.dev/docs/views.md): Every kind of view Kanoniq draws from the model, what each shows and is drawn for, and where you see them; a view holds no data of its own. - [Reading a diagram](https://kanoniq.extenza.dev/docs/views/reading.md): Read any Kanoniq diagram: what its boxes, colors, lines, Codes and marks mean in ArchiMate notation, and which views draw BPMN or sequences. - [The legend](https://kanoniq.extenza.dev/docs/views/legend.md): What the legend's colors, marks on a box, line styles and view-specific shapes mean, listed only for what the current view draws. - [Element shapes](https://kanoniq.extenza.dev/docs/views/shapes.md): The box every element type is drawn as, with its layer color, outline and ArchiMate glyph, the same on every view and in every export. - [Whole model](https://kanoniq.extenza.dev/docs/views/whole-model.md): How to read the whole-model view: everything in the model, drawn through a lens you choose, and exported with `kq svg` or `kq png`. - [Layered view](https://kanoniq.extenza.dev/docs/views/layered.md): How to read the layered view of a Domain: what it does, the components that do it, and what they lean on. - [A Domain's data](https://kanoniq.extenza.dev/docs/views/domain-data.md): How to read a Domain's data view: the data entities its components hold, grouped by the storage they sit in, and how they relate. - [IAM view](https://kanoniq.extenza.dev/docs/views/iam.md): How to read the IAM view: who reaches which applications, and through which identity provider, drawn per identity provider or platform. - [Motivation view](https://kanoniq.extenza.dev/docs/views/motivation.md): How to read the motivation view: what an ecosystem found, what drives it, what it aims for, and what carries each aim. - [Value-stream view](https://kanoniq.extenza.dev/docs/views/value-stream.md): How to read the value-stream view: what one value stream delivers, its stages in order, and what carries each stage. - [Impact map](https://kanoniq.extenza.dev/docs/views/impact-map.md): How to read an impact map: whose behavior must change for a goal, how, what the organization does to cause it, and what builds that. - [Process view](https://kanoniq.extenza.dev/docs/views/process.md): How to read the process view: one business process in BPMN, who does each step, in what order, and the outside parties it messages. - [Data-flow view](https://kanoniq.extenza.dev/docs/views/data-flow.md): How to read the data-flow view: where one value stream stage's data sits, how copies of it are kept and what moves it. - [Scenario view](https://kanoniq.extenza.dev/docs/views/scenario.md): How to read the scenario view: one scenario as a sequence diagram showing which system asks or tells which, first to last. - [Context map](https://kanoniq.extenza.dev/docs/views/context-map.md): How to read the context map: an ecosystem's bounded contexts, which depends on which, and the patterns between them. - [The Bounded Context Canvas](https://kanoniq.extenza.dev/docs/views/bounded-context-canvas.md): The Bounded Context Canvas: one bounded context on one page, with its purpose, language, decisions and who it talks to, and how to fill it in. - [Deployment view](https://kanoniq.extenza.dev/docs/views/deployment.md): How to read the deployment view: what runs in one stage of an ecosystem, how many of each, on which database servers, and who calls whom. - [Views over time](https://kanoniq.extenza.dev/docs/views/over-time.md): How a view drawn at one plateau, or as a transition between two, marks what changes, data migrations included. - [Exporting a view](https://kanoniq.extenza.dev/docs/views/export.md): Export a view as PNG or SVG from the viewer, or with `kq svg` and `kq png`: what each export draws, and where it needs a license. ## The viewer - [The viewer](https://kanoniq.extenza.dev/docs/viewer.md): Move around a view in the viewer, in VS Code, a browser or the portal, and view it at a plateau, starting with a short tour. - [Selecting and moving around](https://kanoniq.extenza.dev/docs/viewer/moving-around.md): Select an element to open its Information pane, focus on it, step back and forward through views, and pan and zoom the diagram. - [Find, focus and lenses](https://kanoniq.extenza.dev/docs/viewer/find.md): Narrow what you look at in the viewer: find one element, focus the view on some, or look through a lens. - [Hovering](https://kanoniq.extenza.dev/docs/viewer/hover.md): Hover a box to dim everything more than one relationship away from it, or hover a line to see its relationship type, protocol and ends. - [The box menu](https://kanoniq.extenza.dev/docs/viewer/box-menu.md): Right-click a box for Select, Focus, Open Layered View, Collapse or Expand, Copy Path and Copy Id; the menu never changes the model. - [Collapse and expand](https://kanoniq.extenza.dev/docs/viewer/collapse.md): Collapse a container such as a platform to one box and expand it again, one at a time or all at once, without changing the model. - [Plateaus](https://kanoniq.extenza.dev/docs/viewer/plateaus.md): Choose the plateau a view is drawn in: `at` in the editor's address, the plateau slider and its keys, and `--at` on the command line. - [When the model does not build](https://kanoniq.extenza.dev/docs/viewer/not-building.md): What the viewer shows when the model does not build, has never built, or is missing, and how you reach each error from the banner. - [Accessibility](https://kanoniq.extenza.dev/docs/viewer/accessibility.md): Use the viewer from the keyboard alone or with a screen reader, and how it avoids saying anything by color alone. - [Every command and shortcut](https://kanoniq.extenza.dev/docs/viewer/commands.md): Every key, gesture, button and command the viewer offers, on the canvas, on the plateau slider and in VS Code. ## Command line - [The kq command line](https://kanoniq.extenza.dev/docs/cli.md): Install the `kq` command line and use it to start a repository, build, validate, format and draw a model, with its exit codes and files. - [kq init](https://kanoniq.extenza.dev/docs/cli/kq-init.md): Make a repository: kanoniq.repository.json, model/ with one Ecosystem, portal/Home.page.yml, and AGENTS.md for AI assistants. - [kq build](https://kanoniq.extenza.dev/docs/cli/kq-build.md): Derive the model each path belongs to, write its .g.kq, and validate it. - [kq validate](https://kanoniq.extenza.dev/docs/cli/kq-validate.md): Check the model each path belongs to against every rule; write nothing. - [kq audit](https://kanoniq.extenza.dev/docs/cli/kq-audit.md): Check the model each path belongs to against its policies, however the repository sets them. - [kq prune](https://kanoniq.extenza.dev/docs/cli/kq-prune.md): Build, and remove orphaned derived elements and Ids from .g.kq. - [kq fmt](https://kanoniq.extenza.dev/docs/cli/kq-fmt.md): Rewrite .kq files to canonical form. - [kq arrange](https://kanoniq.extenza.dev/docs/cli/kq-arrange.md): Rewrite the model each path belongs to into the conventional layout. - [kq materialize](https://kanoniq.extenza.dev/docs/cli/kq-materialize.md): Write the repository's preset out as a policy set you can edit. - [kq dissolve](https://kanoniq.extenza.dev/docs/cli/kq-dissolve.md): Fold a plateau into its neighbor and remove it. - [kq plan](https://kanoniq.extenza.dev/docs/cli/kq-plan.md): Print the model's data migrations, gap by gap, in time order; write nothing. - [kq guide](https://kanoniq.extenza.dev/docs/cli/kq-guide.md): Show how much of Kanoniq the model puts to work, and the next steps. - [kq license](https://kanoniq.extenza.dev/docs/cli/kq-license.md): Show every license kq finds, what each grants, and the status they make together. - [kq login](https://kanoniq.extenza.dev/docs/cli/kq-login.md): Sign this machine in to Kanoniq, to the seat assigned to you or the free plan. - [kq logout](https://kanoniq.extenza.dev/docs/cli/kq-logout.md): Sign this machine out of Kanoniq. - [kq svg](https://kanoniq.extenza.dev/docs/cli/kq-svg.md): Draw one view of the model as an SVG file. - [kq png](https://kanoniq.extenza.dev/docs/cli/kq-png.md): Draw one view of the model as a PNG file. - [kq portal:build](https://kanoniq.extenza.dev/docs/cli/kq-portal-build.md): Build the portal of the repository a path belongs to. - [kq threats:init](https://kanoniq.extenza.dev/docs/cli/kq-threats-init.md): Declare the STRIDE framework in the repository. - [kq threats:list](https://kanoniq.extenza.dev/docs/cli/kq-threats-list.md): Write the threat list of a repository's model. ## The portal - [The portal](https://kanoniq.extenza.dev/docs/site.md): Turn a model into a static site your colleagues can walk through, with pages of tiles you write as YAML or Markdown files in `portal/`. - [Page files and their fields](https://kanoniq.extenza.dev/docs/site/page-files.md): How portal page files under `portal/` are named, every field a page file holds, and how a page's text is written. - [Tiles](https://kanoniq.extenza.dev/docs/site/tiles.md): The two kinds of portal tile, a page tile and a view tile, what each shows and carries, and what happens to child pages you don't list. - [Views in tiles](https://kanoniq.extenza.dev/docs/site/views-in-tiles.md): Every setting a portal view tile's `view` takes, from the required plateau `at` to `domain`, `erd` and `properties`, with its default. - [Statuses](https://kanoniq.extenza.dev/docs/site/statuses.md): The `published`, `upcoming` and `draft` statuses of a portal page or view tile, and whether each is built, shown and clickable. - [Announcements](https://kanoniq.extenza.dev/docs/site/announcements.md): Put a banner above a portal page's title with an `announcement`: its `info` or `warning` level and its inline Markdown text. - [Decision records](https://kanoniq.extenza.dev/docs/site/decision-records.md): Keep architecture decision records in the portal as `.adr.md` files beside a page's files: each becomes a tile and a page of its own. - [The generated landscape](https://kanoniq.extenza.dev/docs/site/generated-landscape.md): The portal pages generated from the model on every build, with no page file: the software landscape, the migration plan and the Assumptions page. - [Checking pages as you type](https://kanoniq.extenza.dev/docs/site/checking-pages.md): How the VS Code extension checks portal page files as you type, underlining invalid YAML and unknown fields and completing fields and values. - [kq portal:build](https://kanoniq.extenza.dev/docs/site/kq-portal-build.md): Run `kq portal:build` to turn the model and its pages into a static site, see where the site goes, and learn what each reported problem means. ## CI - [CI](https://kanoniq.extenza.dev/docs/ci.md): Run the checks you run locally on every pull request: `kq` exit codes, findings shown on the changed lines, and what needs a license. - [kq validate in GitHub Actions](https://kanoniq.extenza.dev/docs/ci/github-actions.md): Run `kq validate` in GitHub Actions on every pull request and see each finding on the line it is about, with no license needed. - [SARIF in code scanning](https://kanoniq.extenza.dev/docs/ci/sarif.md): Write `kq validate` findings as a SARIF 2.1.0 log, upload it to code scanning, and read what each result holds, with no license needed. - [--check gates](https://kanoniq.extenza.dev/docs/ci/check-gates.md): The five `kq` commands that take `--check`, write nothing and exit with 1 when a file would change, so a pipeline fails a stale pull request. - [A CI license](https://kanoniq.extenza.dev/docs/ci/license.md): Which pipeline steps need a license, and how you get a CI license from the Customer Hub for `kq svg`, `kq png` and `kq portal:build`. ## Rules - [Validation](https://kanoniq.extenza.dev/docs/rules.md): Every validation rule Kanoniq checks a model against, by area, with where the checks run, quick fixes, and errors versus lints. - [Build errors](https://kanoniq.extenza.dev/docs/rules/build-errors.md): Every build error Kanoniq reports when it cannot read, resolve or assemble a model, by code, with what it means and how to fix it. - [KQ052 — a Goal or a value stream stage is realized from the function side](https://kanoniq.extenza.dev/docs/rules/kq052.md): Only a Domain, a Function Group or a Function realizes a Goal or an impact, and only a Function Group a value stream stage. - [KQ053 — an influence and a value delivery join a legal pair](https://kanoniq.extenza.dev/docs/rules/kq053.md): 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. - [KQ054 — an influence and a value delivery stay in one Ecosystem](https://kanoniq.extenza.dev/docs/rules/kq054.md): An influence and a value delivery stay inside one Ecosystem. - [KQ055 — a value stream's stages are numbered from 1](https://kanoniq.extenza.dev/docs/rules/kq055.md): A value stream's stages are numbered 1, 2, 3 and on, each number once. - [KQ056 — an element holds at most one purpose](https://kanoniq.extenza.dev/docs/rules/kq056.md): An element's motivation holds at most one purpose. - [KQ057 — a value stream stage is realized by a Function Group](https://kanoniq.extenza.dev/docs/rules/kq057.md): A value stream stage is realized by a Function Group, never by a Domain or a Function. - [KQ094 — an impact's actor is a Stakeholder of its own Ecosystem](https://kanoniq.extenza.dev/docs/rules/kq094.md): An impact's actor is a Stakeholder in the impact's own Ecosystem. - [KQ025 — only a top-level Domain is an enabler](https://kanoniq.extenza.dev/docs/rules/kq025.md): Only a Domain directly in an Ecosystem is marked enabler. - [KQ095 — contexts do not nest](https://kanoniq.extenza.dev/docs/rules/kq095.md): A Component is in at most one bounded context, and no Domain marked bounded-context sits inside another. - [KQ096 — an Enabler Domain states no subdomain type](https://kanoniq.extenza.dev/docs/rules/kq096.md): An Enabler Domain, and every Domain under one, is generic and states no subdomain type of its own. - [KQ112 — a core Domain is not only bought](https://kanoniq.extenza.dev/docs/rules/kq112.md): A core Domain is realized by at least some custom-built software, not by SaaS or off-the-shelf products alone. - [KQ113 — a generic Domain is not custom-built](https://kanoniq.extenza.dev/docs/rules/kq113.md): A generic Domain, an Enabler Domain aside, is realized by SaaS or off-the-shelf products, not by custom-built software. - [KQ119 — a flow node is reached from a start event](https://kanoniq.extenza.dev/docs/rules/kq119.md): A flow node of a process is reached by then from one of its start events. - [KQ221 — a flow node is in a lane of its process](https://kanoniq.extenza.dev/docs/rules/kq221.md): Every flow node but an external step sits in one of its process's lanes. - [KQ222 — a lane is a job role of the process's Ecosystem](https://kanoniq.extenza.dev/docs/rules/kq222.md): A process's lane names a job role of the process's own Ecosystem. - [KQ223 — a sequence flow joins two flow nodes of one process](https://kanoniq.extenza.dev/docs/rules/kq223.md): A then joins two flow nodes of one process, neither an external step, never into a start event or out of an end event. - [KQ224 — a message flow joins a lane to an external party](https://kanoniq.extenza.dev/docs/rules/kq224.md): 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. - [KQ225 — a task's screen is of an application realizing its Function](https://kanoniq.extenza.dev/docs/rules/kq225.md): A task's on names a user-facing Interface of an application that realizes the Function the task performs. - [KQ226 — a task's lane holds a Role using its screen](https://kanoniq.extenza.dev/docs/rules/kq226.md): 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. - [KQ227 — a message's connections are in the model](https://kanoniq.extenza.dev/docs/rules/kq227.md): Every connection a message flow travels over is a connection of the model. - [KQ228 — a message's chain is unbroken](https://kanoniq.extenza.dev/docs/rules/kq228.md): Each connection a message travels over starts where the one before it landed. - [KQ229 — a message's chain starts or lands at its task's systems](https://kanoniq.extenza.dev/docs/rules/kq229.md): A message a task sends starts, and one it receives lands, at one of the task's systems. - [KQ230 — a message's chain reaches its pool's systems](https://kanoniq.extenza.dev/docs/rules/kq230.md): A message to a pool that says where its systems are lands there, and one from it starts there. - [KQ231 — a process stays within the stage it details](https://kanoniq.extenza.dev/docs/rules/kq231.md): Every Function a task performs lies under a Function Group realizing the stage its process details. - [KQ232 — a pool is an external party](https://kanoniq.extenza.dev/docs/rules/kq232.md): A pool's persona is external, and its `site` names an Ecosystem, a Platform or a monolith. - [KQ237 — a data action names its own data](https://kanoniq.extenza.dev/docs/rules/kq237.md): 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. - [KQ238 — a data action's Domain Object has one holding](https://kanoniq.extenza.dev/docs/rules/kq238.md): Every Domain Object a data mark names is held, not as a replica, in exactly one Storage of its node's systems. - [KQ239 — a data mark sits on a task or a receiving start event](https://kanoniq.extenza.dev/docs/rules/kq239.md): Only a task, or a start event receiving a message over a chain, is marked data. - [KQ204 — conforms-to and customer-of name an upstream](https://kanoniq.extenza.dev/docs/rules/kq204.md): A context states conforms-to or customer-of only toward a context the edges put upstream of it. - [KQ205 — a downstream conforms or is a customer](https://kanoniq.extenza.dev/docs/rules/kq205.md): A context does not state both conforms-to and customer-of toward one context. - [KQ206 — a conformist does not translate](https://kanoniq.extenza.dev/docs/rules/kq206.md): A context does not state conforms-to toward a context whose every crossing to it goes through an anticorruption layer. - [KQ207 — a relationship has an integration](https://kanoniq.extenza.dev/docs/rules/kq207.md): A relationship other than separate-ways joins two contexts something crosses between. - [KQ208 — separate ways cross nothing](https://kanoniq.extenza.dev/docs/rules/kq208.md): Nothing crosses between two contexts stated separate-ways. - [KQ209 — a symmetric relationship is stated once](https://kanoniq.extenza.dev/docs/rules/kq209.md): A partnership, a shared kernel or separate ways is stated in one of its two contexts, not both. - [KQ210 — a relationship joins two contexts](https://kanoniq.extenza.dev/docs/rules/kq210.md): A context relationship is written in an element marked bounded-context and names another one. - [KQ211 — published language beside an open host](https://kanoniq.extenza.dev/docs/rules/kq211.md): An Interface or a Channel marked published-language is marked open-host. - [KQ212 — acl is not stated through an integration Component](https://kanoniq.extenza.dev/docs/rules/kq212.md): A crossing whose downstream end is an integration Component states no acl. - [KQ213 — a Big Ball of Mud is a context](https://kanoniq.extenza.dev/docs/rules/kq213.md): An element marked big-ball-of-mud is marked bounded-context. - [KQ007 — realization target](https://kanoniq.extenza.dev/docs/rules/kq007.md): Only a Domain, a Function Group, a Function, a Goal, a value stream stage or an impact is realized. - [KQ008 — realization stays in one Ecosystem](https://kanoniq.extenza.dev/docs/rules/kq008.md): A realization stays inside one Ecosystem. - [KQ009 — a Domain holds one altitude](https://kanoniq.extenza.dev/docs/rules/kq009.md): A Domain holds either sub-domains or Function Groups and Functions, never both, and a Domain with sub-domains is not realized itself. - [KQ045 — a primary mark is on one realization of a Component](https://kanoniq.extenza.dev/docs/rules/kq045.md): Only a Component, or a monolith with nothing inside it, marks a realization primary, and on one realization at most. - [KQ046 — a Component marks its primary Domain where it realizes into several](https://kanoniq.extenza.dev/docs/rules/kq046.md): A Component that realizes into several Domains marks the realization into its own primary, and one that realizes into one Domain marks none. - [KQ101 — a Platform realizes its Domain](https://kanoniq.extenza.dev/docs/rules/kq101.md): A Domain Object sits in a Platform that realizes the Domain owning it. - [KQ104 — a Component realizes something](https://kanoniq.extenza.dev/docs/rules/kq104.md): A Component realizes a Domain, Function Group or Function, or sits in something that does, wherever its Ecosystem has Domains. - [KQ027 — a module sits in a monolith](https://kanoniq.extenza.dev/docs/rules/kq027.md): A Module sits in a monolith, never in a Platform or another Module. - [KQ028 — an in-process call stays in its monolith](https://kanoniq.extenza.dev/docs/rules/kq028.md): An in-process call joins two Components of one monolith. - [KQ079 — a job holds no Interface](https://kanoniq.extenza.dev/docs/rules/kq079.md): A job holds no Interface, declared or created by a connection. - [KQ080 — no delivery out of a Channel lands on a job](https://kanoniq.extenza.dev/docs/rules/kq080.md): No delivery out of a Channel lands on a job. - [KQ081 — a schedule is well formed](https://kanoniq.extenza.dev/docs/rules/kq081.md): 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. - [KQ082 — a robot holds no Interface](https://kanoniq.extenza.dev/docs/rules/kq082.md): A robot holds no Interface, declared or created by a connection. - [KQ083 — ui comes only from a robot or a Role](https://kanoniq.extenza.dev/docs/rules/kq083.md): A connection over ui comes only from a robot or a Role. - [KQ084 — ui lands only on a declared user-facing Interface](https://kanoniq.extenza.dev/docs/rules/kq084.md): A connection over ui lands only on a declared user-facing Interface. - [KQ085 — a Role's ui stays in its own application](https://kanoniq.extenza.dev/docs/rules/kq085.md): A Role's connection over ui lands only on a user-facing Interface of the Role's own application. - [KQ111 — a robot's Identity holds a Role where its ui goes](https://kanoniq.extenza.dev/docs/rules/kq111.md): Where a robot uses an application's screens, the Identity it runs as holds a Role in that application. - [KQ022 — a connection names its target](https://kanoniq.extenza.dev/docs/rules/kq022.md): A connection lands on an Interface or a Channel, not on a Component or monolith, unless it is in-process. - [KQ023 — protocol matches the Interface](https://kanoniq.extenza.dev/docs/rules/kq023.md): A connection's protocol matches the kind of Interface it lands on, and no call lands on a user interface. - [KQ024 — a Channel is reached through its broker](https://kanoniq.extenza.dev/docs/rules/kq024.md): A Channel is reached through its broker with no protocol, an Interface always with one, and no connection joins two Channels. - [KQ102 — a Channel has both sides](https://kanoniq.extenza.dev/docs/rules/kq102.md): A Channel has both a sender and a receiver. - [KQ121 — an Interface's version is called](https://kanoniq.extenza.dev/docs/rules/kq121.md): Some call names each version of a software-facing Interface. - [KQ248 — only a software-facing Interface has a contract](https://kanoniq.extenza.dev/docs/rules/kq248.md): A user-facing Interface states no schema and no versions. - [KQ249 — a call names a declared version](https://kanoniq.extenza.dev/docs/rules/kq249.md): A call names a version its Interface declares, calls a versioned Interface with its version, and an unversioned one with none. - [KQ097 — a delivery carries what is published](https://kanoniq.extenza.dev/docs/rules/kq097.md): A delivery out of a Channel carries only events, and versions of them, that a leg into that Channel carries. - [KQ098 — a publishing leg carries its publisher's events](https://kanoniq.extenza.dev/docs/rules/kq098.md): A leg into a Channel carries only events its sending Component declares. - [KQ099 — a carried event names a declared version](https://kanoniq.extenza.dev/docs/rules/kq099.md): A leg names a version an event declares, names a versioned event with its version, and an unversioned event with none. - [KQ114 — a publisher holds what its event is about](https://kanoniq.extenza.dev/docs/rules/kq114.md): The Component publishing an event holds a Data Entity of the Domain Object the event is about. - [KQ115 — an event is delivered](https://kanoniq.extenza.dev/docs/rules/kq115.md): Some delivery out of a Channel or some sync carries each event, and each version of one. - [KQ116 — a handler holds what its command or query is about](https://kanoniq.extenza.dev/docs/rules/kq116.md): The Component handling a command or a query holds a Data Entity of the Domain Object it is about. - [KQ117 — a command or a query is carried](https://kanoniq.extenza.dev/docs/rules/kq117.md): Some connection or some sync carries each command and query, and each version of one. - [KQ200 — an event is about a Domain Object](https://kanoniq.extenza.dev/docs/rules/kq200.md): What an event is about is a Domain Object. - [KQ201 — a command or a query reaches its handler](https://kanoniq.extenza.dev/docs/rules/kq201.md): 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. - [KQ202 — a carried command or query names a declared version](https://kanoniq.extenza.dev/docs/rules/kq202.md): A connection names a version a command or a query declares, names a versioned one with its version, and an unversioned one with none. - [KQ203 — a command or a query is about a Domain Object](https://kanoniq.extenza.dev/docs/rules/kq203.md): What a command or a query is about is a Domain Object. - [KQ240 — a scenario's connections are in the model](https://kanoniq.extenza.dev/docs/rules/kq240.md): Every connection a scenario's step walks over, and both legs of a hop through a Channel, is a connection of the model. - [KQ241 — a scenario's walk is unbroken](https://kanoniq.extenza.dev/docs/rules/kq241.md): Each step of a scenario starts where the scenario starts or where an earlier step arrived. - [KQ242 — a scenario's step names a message its connection carries](https://kanoniq.extenza.dev/docs/rules/kq242.md): A step's message is carried by its connection, or by both legs of a hop, under a version the message declares. - [KQ243 — a scenario starts at its task's screen or systems](https://kanoniq.extenza.dev/docs/rules/kq243.md): A scenario for a task starts at the task's screen or at one of its systems. - [KQ244 — a scenario sits in the Ecosystem where it starts](https://kanoniq.extenza.dev/docs/rules/kq244.md): A scenario sits directly in the Ecosystem of its first step's source. - [KQ245 — a scenario is for a task of a process](https://kanoniq.extenza.dev/docs/rules/kq245.md): What a scenario is for is a task, a user task or a service task of a process. - [KQ010 — representation cardinality](https://kanoniq.extenza.dev/docs/rules/kq010.md): Every Data Entity holds exactly one Domain Object. - [KQ011 — authoritative cardinality](https://kanoniq.extenza.dev/docs/rules/kq011.md): Every Domain Object has exactly one authoritative holding across the whole model. - [KQ012 — a replica has a source](https://kanoniq.extenza.dev/docs/rules/kq012.md): A replica syncs from the authoritative holding or from another replica, never from a transient one. - [KQ013 — transient is local](https://kanoniq.extenza.dev/docs/rules/kq013.md): A transient holding neither syncs in nor syncs out. - [KQ014 — structure stays local](https://kanoniq.extenza.dev/docs/rules/kq014.md): part of and references stay inside one Component. - [KQ015 — no orphan entity](https://kanoniq.extenza.dev/docs/rules/kq015.md): Every Data Entity is a root or part of another. - [KQ016 — part of is a tree](https://kanoniq.extenza.dev/docs/rules/kq016.md): part of forms a tree: each Data Entity is part of at most one other, with no circle. - [KQ021 — a Domain Object has an origin](https://kanoniq.extenza.dev/docs/rules/kq021.md): Every Domain Object has a holding marked origin, where the data is first created. - [KQ118 — a sync carries messages about its entity](https://kanoniq.extenza.dev/docs/rules/kq118.md): A message a sync carries is about the Domain Object its replica represents. - [KQ124 — a Domain Object with a property marked personal states its personal data](https://kanoniq.extenza.dev/docs/rules/kq124.md): A Domain Object one of whose Data Entities marks a property personal states personal-data, personal or special-category. - [KQ126 — a Domain Object a data use names states its personal data](https://kanoniq.extenza.dev/docs/rules/kq126.md): A Domain Object a data use names states personal-data, personal or special-category. - [KQ127 — personal data is held for a stated purpose](https://kanoniq.extenza.dev/docs/rules/kq127.md): 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. - [KQ128 — a data use states its legal basis](https://kanoniq.extenza.dev/docs/rules/kq128.md): A data use states its basis, one of GDPR Art. 6(1)'s lawful bases. - [KQ137 — personal data leaves a transfer regime on a ground](https://kanoniq.extenza.dev/docs/rules/kq137.md): 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. - [KQ138 — personal data does not leave a transfer regime for a place not stated](https://kanoniq.extenza.dev/docs/rules/kq138.md): Personal data moved from inside a residency stating adequate goes to a place whose country is stated. - [KQ214 — a synced event is its source's](https://kanoniq.extenza.dev/docs/rules/kq214.md): A sync carries only events its source Component declares. - [KQ215 — a synced command is its holder's](https://kanoniq.extenza.dev/docs/rules/kq215.md): A sync carries only commands the Component holding the replica declares. - [KQ216 — a synced query is its source's](https://kanoniq.extenza.dev/docs/rules/kq216.md): A sync carries only queries its source Component declares. - [KQ217 — a pulled sync goes over a protocol](https://kanoniq.extenza.dev/docs/rules/kq217.md): A sync carrying a query goes over a protocol, never through a Channel. - [KQ218 — a sync carries messages or one mechanism](https://kanoniq.extenza.dev/docs/rules/kq218.md): A sync carries messages or one mechanism, never both, and never two mechanisms. - [KQ219 — an entity's syncs have one main feed](https://kanoniq.extenza.dev/docs/rules/kq219.md): Of the syncs into an entity, exactly one is not marked reconcile. - [KQ220 — two syncs into one entity differ](https://kanoniq.extenza.dev/docs/rules/kq220.md): No two syncs into one entity have the same source, the same route and the same carries. - [KQ246 — an access stays in its monolith](https://kanoniq.extenza.dev/docs/rules/kq246.md): An access joins a Component of a monolith to a data entity in a Storage the same monolith holds itself. - [KQ247 — an access names an aggregate](https://kanoniq.extenza.dev/docs/rules/kq247.md): An access names the root of an aggregate, or a data entity in no aggregate, never a part. - [KQ275 — a confidentiality is one of the repository's levels](https://kanoniq.extenza.dev/docs/rules/kq275.md): A Domain Object's confidentiality is one of the levels the repository's confidentiality-levels setting lists. - [KQ276 — no property is personal on data that is not personal](https://kanoniq.extenza.dev/docs/rules/kq276.md): No property is marked personal on a Data Entity of a Domain Object stated personal-data none. - [KQ277 — a data use names personal data](https://kanoniq.extenza.dev/docs/rules/kq277.md): No Domain Object a data use names is stated personal-data none. - [KQ278 — a data use's data is held in its systems](https://kanoniq.extenza.dev/docs/rules/kq278.md): Every Domain Object a data use names is represented by a Data Entity in a Storage of a system realizing what its via names. - [KQ279 — special-category data has a condition](https://kanoniq.extenza.dev/docs/rules/kq279.md): A data use naming special-category data states special, the condition it is processed under. - [KQ280 — a condition goes with special-category data](https://kanoniq.extenza.dev/docs/rules/kq280.md): A data use states special only where it names special-category data. - [KQ281 — a data use covers its own Ecosystem's work](https://kanoniq.extenza.dev/docs/rules/kq281.md): What a data use's via names is in the data use's own Ecosystem. - [KQ282 — a joint controller is another Ecosystem](https://kanoniq.extenza.dev/docs/rules/kq282.md): A data use's joint names other Ecosystems, never its own. - [KQ297 — a regulated scope is one the repository lists](https://kanoniq.extenza.dev/docs/rules/kq297.md): A Domain Object's or a significant property's regulated scope is one the repository's regulated-scopes setting lists. - [KQ060 — a scheme its transport accepts](https://kanoniq.extenza.dev/docs/rules/kq060.md): A connection's authentication scheme is one its protocol or broker accepts. - [KQ061 — via only on a token scheme](https://kanoniq.extenza.dev/docs/rules/kq061.md): via goes only with a scheme whose token someone issues. - [KQ062 — via names an Identity Provider](https://kanoniq.extenza.dev/docs/rules/kq062.md): via names an Identity Provider: a Component or monolith marked idp. - [KQ063 — a leg states one scheme](https://kanoniq.extenza.dev/docs/rules/kq063.md): Two statements of one leg into or out of a Channel state the same scheme. - [KQ040 — a Role is in a user-facing application](https://kanoniq.extenza.dev/docs/rules/kq040.md): A Role sits in a Component or monolith that holds a user interface of its own. - [KQ041 — a Role names an Identity Provider](https://kanoniq.extenza.dev/docs/rules/kq041.md): A Role names an Identity Provider: a Component or monolith marked idp. - [KQ042 — a Role has holders](https://kanoniq.extenza.dev/docs/rules/kq042.md): A Role's Identity Provider holds an Identity of the Role's persona, so someone can hold the Role. - [KQ043 — an Identity is in an Identity Provider](https://kanoniq.extenza.dev/docs/rules/kq043.md): An Identity sits in a Component or monolith marked idp. - [KQ071 — a Role is never in an anonymous application](https://kanoniq.extenza.dev/docs/rules/kq071.md): A Component or monolith marked anonymous holds no Role. - [KQ072 — anonymous marks a user-facing application](https://kanoniq.extenza.dev/docs/rules/kq072.md): Only a Component or monolith that holds a user interface of its own is marked anonymous. - [KQ073 — an Identity Provider is never anonymous](https://kanoniq.extenza.dev/docs/rules/kq073.md): An Identity Provider is never marked anonymous. - [KQ120 — an internal Role is held by a job role](https://kanoniq.extenza.dev/docs/rules/kq120.md): 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. - [KQ233 — a job role's persona is internal](https://kanoniq.extenza.dev/docs/rules/kq233.md): A job role's persona is an employee or a freelancer. - [KQ234 — a held Role is of the job role's persona](https://kanoniq.extenza.dev/docs/rules/kq234.md): A job role holds only Roles of its own persona. - [KQ064 — a workload identity names an Identity Provider](https://kanoniq.extenza.dev/docs/rules/kq064.md): A workload identity names an Identity Provider: a Component or monolith marked idp. - [KQ065 — a role sits in a server workload identity](https://kanoniq.extenza.dev/docs/rules/kq065.md): App roles and scopes are declared in a server workload identity, never a client one. - [KQ066 — a credential sits on a client workload identity](https://kanoniq.extenza.dev/docs/rules/kq066.md): Only a client workload identity states a credential. - [KQ067 — stored-in names a vault](https://kanoniq.extenza.dev/docs/rules/kq067.md): A credential is stored in a vault element. - [KQ068 — a federated credential names its issuer](https://kanoniq.extenza.dev/docs/rules/kq068.md): A federated credential comes from an Identity Provider: a Component marked idp. - [KQ069 — a scheme the caller's credential carries](https://kanoniq.extenza.dev/docs/rules/kq069.md): A call's authentication scheme is one the caller's credential can produce. - [KQ070 — on-behalf-of rests on a scope](https://kanoniq.extenza.dev/docs/rules/kq070.md): A call on behalf of a user rests on a delegated scope granted on the API it calls. - [KQ106 — a Component holds one kind of workload identity](https://kanoniq.extenza.dev/docs/rules/kq106.md): A Component holds a client or a server workload identity, not both. - [KQ107 — a workload identity is one workload's, in one environment](https://kanoniq.extenza.dev/docs/rules/kq107.md): A workload identity is the identity of one Component, in one Environment. - [KQ108 — people and workloads do not share an identity](https://kanoniq.extenza.dev/docs/rules/kq108.md): Components do not run as people's accounts, and people do not sign in as a service. - [KQ109 — a grant has a call behind it](https://kanoniq.extenza.dev/docs/rules/kq109.md): A client is granted a role only on an API it calls. - [KQ110 — a credential is read from its vault](https://kanoniq.extenza.dev/docs/rules/kq110.md): A credential is stored in a vault the service connects to. - [KQ029 — an environment line names a stage](https://kanoniq.extenza.dev/docs/rules/kq029.md): An environment line names a stage its Ecosystem declares and sits on something that runs on its own. - [KQ030 — a client's environment line has no count](https://kanoniq.extenza.dev/docs/rules/kq030.md): A user interface's environment line states no number of instances; the device it runs on is a host that states its count. - [KQ031 — a replica is in its primary's environment](https://kanoniq.extenza.dev/docs/rules/kq031.md): A database server replica is of a database server in its own Environment. - [KQ032 — a Storage is on a database server](https://kanoniq.extenza.dev/docs/rules/kq032.md): A Storage is hosted on a database server or a storage account, if on anything. - [KQ086 — an environment line states its count](https://kanoniq.extenza.dev/docs/rules/kq086.md): 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. - [KQ087 — a held Component runs where its holder runs](https://kanoniq.extenza.dev/docs/rules/kq087.md): A Component or deployable module held by one that states environments states only stages its holder states. - [KQ088 — a client runs where its backend runs](https://kanoniq.extenza.dev/docs/rules/kq088.md): A user interface declared in its backend Component states only stages that Component runs in. - [KQ089 — a Storage is hosted where its owner runs](https://kanoniq.extenza.dev/docs/rules/kq089.md): A database server hosting a Storage runs only in stages the Storage's owner runs in. - [KQ122 — a private endpoint has a private DNS record](https://kanoniq.extenza.dev/docs/rules/kq122.md): 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. - [KQ250 — a network-only product is in a network](https://kanoniq.extenza.dev/docs/rules/kq250.md): A provider-run service of a product that cannot be public states the network it is in. - [KQ251 — a product's required parts are named](https://kanoniq.extenza.dev/docs/rules/kq251.md): 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. - [KQ252 — a call's gateway publishes its target](https://kanoniq.extenza.dev/docs/rules/kq252.md): The gateway a call goes via publishes the Interface the call lands on, unless it is a NAT the call leaves by. - [KQ253 — a Storage's pool is in its server](https://kanoniq.extenza.dev/docs/rules/kq253.md): The pool a Storage names is inside the database server it is hosted on. - [KQ254 — a vault holds what is stored in it](https://kanoniq.extenza.dev/docs/rules/kq254.md): A credential or a certificate is stored in a vault whose kind holds secrets or certificates. - [KQ255 — an infrastructure clause names what it takes](https://kanoniq.extenza.dev/docs/rules/kq255.md): 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. - [KQ256 — a bucket holds one Storage](https://kanoniq.extenza.dev/docs/rules/kq256.md): A storage account of a bucket product holds exactly one Storage. - [KQ257 — a Storage is of a kind its account holds](https://kanoniq.extenza.dev/docs/rules/kq257.md): A Storage on a storage account is of a kind that account's product holds. - [KQ258 — only a client runs on a storage account](https://kanoniq.extenza.dev/docs/rules/kq258.md): Only a user-facing client is deployed on a storage account, a static site served from it. - [KQ259 — infrastructure stays in its stage](https://kanoniq.extenza.dev/docs/rules/kq259.md): 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. - [KQ260 — a private DNS zone is in a network](https://kanoniq.extenza.dev/docs/rules/kq260.md): A DNS record in a private zone states the network its zone is linked to. - [KQ261 — a platform service states how it runs](https://kanoniq.extenza.dev/docs/rules/kq261.md): A platform service of a generic kind states paas or on the host it runs on. - [KQ262 — a product word fixes how it runs](https://kanoniq.extenza.dev/docs/rules/kq262.md): 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. - [KQ269 — an endpoint stated plaintext is not proven encrypted](https://kanoniq.extenza.dev/docs/rules/kq269.md): 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. - [KQ270 — only a network endpoint states in-transit](https://kanoniq.extenza.dev/docs/rules/kq270.md): in-transit is stated on a software-facing Interface other than an ipc-api, or on a Broker, and nowhere else. - [KQ292 — a location is stated once](https://kanoniq.extenza.dev/docs/rules/kq292.md): An element in a network that states its location states none of its own: it is where its network is. - [KQ293 — a zone its location has](https://kanoniq.extenza.dev/docs/rules/kq293.md): Each zone an element names is one its location has: one its region's registry entry names, or one its data center declares. - [KQ294 — zones or zone-redundant](https://kanoniq.extenza.dev/docs/rules/kq294.md): An element names the zones it spans or says its provider spreads it with zone-redundant, never both. - [KQ295 — a stage on several lines is on different hosts](https://kanoniq.extenza.dev/docs/rules/kq295.md): A part that states one stage on several environment lines names what it runs on on each, a different host or platform on each. - [KQ123 — support does not end within the warning period](https://kanoniq.extenza.dev/docs/rules/kq123.md): 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. - [KQ263 — nothing live depends on a retired element](https://kanoniq.extenza.dev/docs/rules/kq263.md): 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. - [KQ264 — a phasing-out element is not invested in](https://kanoniq.extenza.dev/docs/rules/kq264.md): An element that is phasing out does not have a future of invest. - [KQ265 — a successor is of the element's type and its future](https://kanoniq.extenza.dev/docs/rules/kq265.md): 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. - [KQ266 — an installation is on a Host](https://kanoniq.extenza.dev/docs/rules/kq266.md): An installation names the Host it is installed on, and only a Host. - [KQ267 — extended support ends after mainstream support](https://kanoniq.extenza.dev/docs/rules/kq267.md): An element's end of extended support is not before its end of mainstream support. - [KQ268 — support does not end within the error period](https://kanoniq.extenza.dev/docs/rules/kq268.md): 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. - [KQ129 — bought software has a supplier](https://kanoniq.extenza.dev/docs/rules/kq129.md): 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. - [KQ130 — a critical contract has a way out](https://kanoniq.extenza.dev/docs/rules/kq130.md): A contract supporting a critical Function states its ends and its notice. - [KQ131 — a contract supports a Function](https://kanoniq.extenza.dev/docs/rules/kq131.md): A contract supports a Function: something it covers realizes one, or it names one with via. - [KQ134 — a Platform says whose work it does](https://kanoniq.extenza.dev/docs/rules/kq134.md): In an Ecosystem with two or more legal entities, every Platform and monolith names with for the entities or branches whose work it does. - [KQ135 — a supplier is one company](https://kanoniq.extenza.dev/docs/rules/kq135.md): A supplier's is names an Ecosystem holding at most one legal entity; where it holds several, is names the legal entity by path. - [KQ136 — a branch is abroad](https://kanoniq.extenza.dev/docs/rules/kq136.md): A branch is in another country than its legal entity's headquarters. - [KQ284 — a contract covers its own Ecosystem's elements](https://kanoniq.extenza.dev/docs/rules/kq284.md): What a contract covers is in its own Ecosystem, or in the Ecosystem its supplier is, directly or through a legal entity. - [KQ285 — a contract supports its own Ecosystem's work](https://kanoniq.extenza.dev/docs/rules/kq285.md): What a contract's via names is in the contract's own Ecosystem. - [KQ286 — a covered element states no contract end](https://kanoniq.extenza.dev/docs/rules/kq286.md): An element a contract covers states no contract-end; it reads its contracts' ends. - [KQ287 — a contract ends after it starts](https://kanoniq.extenza.dev/docs/rules/kq287.md): A contract's ends is not before its starts. - [KQ288 — a contract's subcontractors form one chain](https://kanoniq.extenza.dev/docs/rules/kq288.md): 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. - [KQ289 — a supplier's parent is another supplier](https://kanoniq.extenza.dev/docs/rules/kq289.md): A supplier's parent is another supplier of its Ecosystem, and parents form no cycle. - [KQ290 — a supplier is another Ecosystem](https://kanoniq.extenza.dev/docs/rules/kq290.md): A supplier's is names another Ecosystem than the one it is declared in, or a legal entity of another. - [KQ291 — an LEI is well formed](https://kanoniq.extenza.dev/docs/rules/kq291.md): 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. - [KQ298 — a legal entity's parent is another legal entity](https://kanoniq.extenza.dev/docs/rules/kq298.md): A legal entity's parent is another legal entity, in any Ecosystem, and parents form no cycle. - [KQ299 — an LEI names one legal entity](https://kanoniq.extenza.dev/docs/rules/kq299.md): No two legal entities of the model state one lei. - [KQ400 — for names an entity of its Ecosystem](https://kanoniq.extenza.dev/docs/rules/kq400.md): What a Platform's or a monolith's for names is a legal entity or a branch of its own Ecosystem. - [KQ401 — a contract is signed in its Ecosystem](https://kanoniq.extenza.dev/docs/rules/kq401.md): A contract's signed-by names a legal entity of the Ecosystem it is declared in. - [KQ402 — a contract names its signer](https://kanoniq.extenza.dev/docs/rules/kq402.md): In an Ecosystem with two or more legal entities, every contract states signed-by. - [KQ403 — a supplier that is a legal entity states no LEI](https://kanoniq.extenza.dev/docs/rules/kq403.md): A supplier whose is names a legal entity states no lei and no headquarters: it reads both from the entity. - [KQ405 — a contract states each transfer ground once](https://kanoniq.extenza.dev/docs/rules/kq405.md): A ground a contract's transfer clause lists is listed once. - [KQ033 — plateaus form one sequence](https://kanoniq.extenza.dev/docs/rules/kq033.md): Plateaus line up one after another, in a single sequence. - [KQ034 — plateau dates rise](https://kanoniq.extenza.dev/docs/rules/kq034.md): Each dated plateau is later than the dated plateaus before it. - [KQ035 — the initial plateau changes nothing](https://kanoniq.extenza.dev/docs/rules/kq035.md): The first plateau adds, removes, moves and restates nothing. - [KQ036 — a change names what the plateau before holds](https://kanoniq.extenza.dev/docs/rules/kq036.md): A removal or a move names something the plateau before holds. - [KQ037 — a path is one element's](https://kanoniq.extenza.dev/docs/rules/kq037.md): A path that once was an element's is never another element's in a later plateau. - [KQ038 — a move lands on a free path](https://kanoniq.extenza.dev/docs/rules/kq038.md): A move puts an element where no other element has its Code. - [KQ039 — a relationship's end is alive](https://kanoniq.extenza.dev/docs/rules/kq039.md): A plateau removes nothing a remaining relationship still uses. - [KQ047 — a data migration follows a plateau](https://kanoniq.extenza.dev/docs/rules/kq047.md): A data migration is declared in a plateau after the initial one. - [KQ048 — a change of authority is covered once](https://kanoniq.extenza.dev/docs/rules/kq048.md): Each change of a Domain Object's authoritative holding is covered by exactly one data migration of its plateau. - [KQ049 — covers names a change](https://kanoniq.extenza.dev/docs/rules/kq049.md): A data migration covers only Data Entities its plateau adds, removes or restates. - [KQ050 — a data migration falls within its window](https://kanoniq.extenza.dev/docs/rules/kq050.md): 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. - [KQ051 — a link names a page](https://kanoniq.extenza.dev/docs/rules/kq051.md): A data migration's link is an absolute http or https URL, or the path of a page file in the repository. - [KQ404 — memberships form runs](https://kanoniq.extenza.dev/docs/rules/kq404.md): A subject's memberships are runs that neither overlap nor touch, and only a relationship whose Id is its ends has more than one. - [KQ406 — a constant is alive where it is used](https://kanoniq.extenza.dev/docs/rules/kq406.md): A constant a use names is alive in every plateau the policy, the element or the relationship holding the use is alive in. - [KQ074 — a policy's clause is an aspect or a selector, with its values](https://kanoniq.extenza.dev/docs/rules/kq074.md): 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. - [KQ075 — a clause appears once in a policy](https://kanoniq.extenza.dev/docs/rules/kq075.md): A policy names each clause once, listing several values in one clause. - [KQ076 — a policy's clauses apply to one subject type](https://kanoniq.extenza.dev/docs/rules/kq076.md): Some subject, a call, a leg, a sync, a grant or a workload identity, can match every clause of a policy. - [KQ077 — an exemption lifts a policy from a subject](https://kanoniq.extenza.dev/docs/rules/kq077.md): An exemption lifts a policy from an element, a call, a leg, a sync or a grant. - [KQ078 — an Ecosystem's policy set shares no Code with the model's](https://kanoniq.extenza.dev/docs/rules/kq078.md): No policy set of an Ecosystem shares its Code with a policy set of the model, the two default sets aside. - [KQ090 — a preset's set is written out only where no other preset is judged](https://kanoniq.extenza.dev/docs/rules/kq090.md): 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. - [KQ091 — a reserved policy set is of its own kind](https://kanoniq.extenza.dev/docs/rules/kq091.md): 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. - [KQ092 — a model policy denies what is unstated](https://kanoniq.extenza.dev/docs/rules/kq092.md): A policy in a model set is a deny whose tested clause lists only unstated, and no other clause lists it. - [KQ093 — an architecture policy judges what is stated](https://kanoniq.extenza.dev/docs/rules/kq093.md): A policy in an architecture set lists unstated in no clause. - [KQ132 — a requirement the model can check is served](https://kanoniq.extenza.dev/docs/rules/kq132.md): 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. - [KQ271 — a constant is used where it is seen](https://kanoniq.extenza.dev/docs/rules/kq271.md): 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. - [KQ272 — a constant's type fits where it is used](https://kanoniq.extenza.dev/docs/rules/kq272.md): 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. - [KQ273 — a constant's name is defined once](https://kanoniq.extenza.dev/docs/rules/kq273.md): A constant's name is defined once in the whole model, never again at another level. - [KQ274 — a constant's name is neither a stage nor a period](https://kanoniq.extenza.dev/docs/rules/kq274.md): 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. - [KQ296 — a requirement is listed once](https://kanoniq.extenza.dev/docs/rules/kq296.md): A policy or a policy set lists each requirement it serves once. - [KQ001 — unresolved endpoint](https://kanoniq.extenza.dev/docs/rules/kq001.md): Every relationship names elements that are in the model. - [KQ002 — duplicate identity](https://kanoniq.extenza.dev/docs/rules/kq002.md): No two elements share an Id, and no two elements under one parent share a Code. - [KQ003 — Ecosystem presence](https://kanoniq.extenza.dev/docs/rules/kq003.md): A model has an Ecosystem, and every Ecosystem sits at the top level. - [KQ004 — parent cardinality](https://kanoniq.extenza.dev/docs/rules/kq004.md): Every element but an Ecosystem has exactly one parent. - [KQ005 — containment reaches an Ecosystem](https://kanoniq.extenza.dev/docs/rules/kq005.md): Following parents upward from any element reaches an Ecosystem, never a circle. - [KQ006 — owner cardinality](https://kanoniq.extenza.dev/docs/rules/kq006.md): A Data Entity sits in a Storage, and a Storage sits in the Component or monolith that owns it. - [KQ103 — an orphaned derived element](https://kanoniq.extenza.dev/docs/rules/kq103.md): A derived element is still named by something in the model. - [KQ026 — a relationship is stated once](https://kanoniq.extenza.dev/docs/rules/kq026.md): A relationship is written once, in one file or across the files of a split model. - [KQ058 — a property is declared](https://kanoniq.extenza.dev/docs/rules/kq058.md): An open property is declared in the repository's settings, for the element type it is written on. - [KQ059 — a property's value is of its declared type](https://kanoniq.extenza.dev/docs/rules/kq059.md): An open property's value, and each value of a list, is of the type its declaration gives it. - [KQP001 — well-formed YAML](https://kanoniq.extenza.dev/docs/rules/kqp001.md): 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. - [KQP002 — page shape](https://kanoniq.extenza.dev/docs/rules/kqp002.md): 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. - [KQP003 — page name](https://kanoniq.extenza.dev/docs/rules/kqp003.md): A page file's name is the canonical encoding of the page's name. - [KQP004 — one file per page](https://kanoniq.extenza.dev/docs/rules/kqp004.md): 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. - [KQP009 — a known icon](https://kanoniq.extenza.dev/docs/rules/kqp009.md): An icon is named as Lucide names one of its icons. - [KQP005 — one home page](https://kanoniq.extenza.dev/docs/rules/kqp005.md): portal/ holds exactly one page file directly: the home page. - [KQP006 — every page is reachable](https://kanoniq.extenza.dev/docs/rules/kqp006.md): Every page file and decision record sits in a directory that mirrors a page. - [KQP101 — published under unpublished](https://kanoniq.extenza.dev/docs/rules/kqp101.md): A published page sits under a published parent, since it is not rendered otherwise. - [KQP007 — a tile names a child](https://kanoniq.extenza.dev/docs/rules/kqp007.md): A page tile names a child page or decision record in the page's mirror directory. - [KQP008 — a child is listed once](https://kanoniq.extenza.dev/docs/rules/kqp008.md): A page's tiles list each child once. - [KQP102 — an unlisted child](https://kanoniq.extenza.dev/docs/rules/kqp102.md): A page's tiles list every child page, so their order is chosen rather than by name. - [KQP010 — a known plateau](https://kanoniq.extenza.dev/docs/rules/kqp010.md): A view tile's or view block's at and to name plateaus of the model, its to later than its at. - [KQP019 — a known view path](https://kanoniq.extenza.dev/docs/rules/kqp019.md): 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. - [KQP106 — a view's selected and collapsed paths](https://kanoniq.extenza.dev/docs/rules/kqp106.md): A view's selected path and collapsed entries name elements of the model. - [KQP011 — a known element](https://kanoniq.extenza.dev/docs/rules/kqp011.md): A decision record's element Id names an element of the model. - [KQP012 — a known successor](https://kanoniq.extenza.dev/docs/rules/kqp012.md): A superseded decision record's superseded-by names another decision record's file, by its path from portal/. - [KQP013 — a chain of successors that ends](https://kanoniq.extenza.dev/docs/rules/kqp013.md): Following superseded-by from record to record never comes back to a record already passed. - [KQP103 — the element's path](https://kanoniq.extenza.dev/docs/rules/kqp103.md): A decision record's element path is the path its element Id is at in the model. - [KQP104 — a successor in force](https://kanoniq.extenza.dev/docs/rules/kqp104.md): A superseded decision record's successor is not proposed or rejected, since then nothing has replaced the decision yet. - [KQP014 — an image path](https://kanoniq.extenza.dev/docs/rules/kqp014.md): An image in a page's text is named by a relative path to a file inside portal/. - [KQP015 — an image that exists](https://kanoniq.extenza.dev/docs/rules/kqp015.md): An image in a page's text names a file that exists. - [KQP016 — an image type](https://kanoniq.extenza.dev/docs/rules/kqp016.md): 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. - [KQP017 — an image's size](https://kanoniq.extenza.dev/docs/rules/kqp017.md): An image in a page's text is at most 5 MiB. - [KQP018 — a link's target](https://kanoniq.extenza.dev/docs/rules/kqp018.md): 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. - [KQP105 — a link to an unrendered page](https://kanoniq.extenza.dev/docs/rules/kqp105.md): A rendered page links only to rendered pages, since a link to any other is written as its text. ## Licenses and plans - [Your license](https://kanoniq.extenza.dev/docs/licensing.md): What is free and what needs signing in, a paid seat or the Portal package, how signing in works, and licenses for offline use and CI. - [Telemetry](https://kanoniq.extenza.dev/docs/licensing/telemetry.md): What the `kq` command line and the VS Code extension report to Extenza Works, and how you turn telemetry off in each. ## AI-assisted authoring - [AI-assisted authoring](https://kanoniq.extenza.dev/docs/ai.md): Write, check and review a Kanoniq model with an AI assistant: the authoring brief it reads and the validate loop that checks each change. - [The authoring brief](https://kanoniq.extenza.dev/docs/ai/brief.md): What `AGENTS.md`, the authoring brief, holds for an AI assistant, and how you add it to a repository and refresh it. - [Prompt recipes](https://kanoniq.extenza.dev/docs/ai/recipes.md): Prompts to give an AI assistant for capturing a model from what exists, coaching you while you write, and reviewing what is written. - [Machine-readable resources](https://kanoniq.extenza.dev/docs/ai/resources.md): Every documentation page as Markdown, `llms.txt` and `llms-full.txt`, and the data the reference pages are generated from, for AI assistants. ## Release notes - [Release notes](https://kanoniq.extenza.dev/docs/releases.md): What changed in each release of Kanoniq, newest first, for the language, the command line, VS Code, the viewer and the portal. - [Kanoniq 0.4.1](https://kanoniq.extenza.dev/docs/releases/v0-4-1.md): What changed in Kanoniq 0.4.1, released on 2026-11-02. - [Kanoniq 0.4.0](https://kanoniq.extenza.dev/docs/releases/v0-4-0.md): What changed in Kanoniq 0.4.0, released on 2026-11-01. ## Help - [Help](https://kanoniq.extenza.dev/docs/help.md): Where to go when something does not work or a term is not Kanoniq's: troubleshooting, the FAQ, coming from ArchiMate and the glossary. - [Troubleshooting](https://kanoniq.extenza.dev/docs/help/troubleshooting.md): Fixes by symptom: `kq: command not found`, missing VS Code commands, `kq init` refusing, failing validation and a viewer asking you to sign in. - [FAQ](https://kanoniq.extenza.dev/docs/help/faq.md): Answers on placing diagram boxes yourself, where the model is stored, what is free, licensing in CI, ArchiMate, and several people on one model. - [Coming from ArchiMate](https://kanoniq.extenza.dev/docs/help/coming-from.md): How ArchiMate's elements and relationships correspond to Kanoniq's, whose metamodel is a superset that states each element precisely. - [Glossary](https://kanoniq.extenza.dev/docs/help/glossary.md): The terms the architecture market uses, such as system of record, and the word Kanoniq uses for each, pointing to its page. ## Data - [llms-full.txt](https://kanoniq.extenza.dev/docs/v/0.4.1/llms-full.txt): The language reference, the rules and the authoring brief in one file. - [AGENTS.md](https://kanoniq.extenza.dev/docs/v/0.4.1/AGENTS.md): The authoring brief, for an AI assistant working in a Kanoniq repository. - [kq-commands.json](https://kanoniq.extenza.dev/docs/v/0.4.1/kq-commands.json): Every kq command, its options and exit codes. - [rules.json](https://kanoniq.extenza.dev/docs/v/0.4.1/rules.json): Every rule: code, severity, area, summary and page. - [elements.json](https://kanoniq.extenza.dev/docs/v/0.4.1/elements.json): Every element type, relationship type and kind, with its description and language area. - [schema/model.schema.json](https://kanoniq.extenza.dev/docs/v/0.4.1/schema/model.schema.json): The JSON Schema of a built model. - [schema/page.schema.json](https://kanoniq.extenza.dev/docs/v/0.4.1/schema/page.schema.json): The JSON Schema of a navigation page. - [schema/markdown-page.schema.json](https://kanoniq.extenza.dev/docs/v/0.4.1/schema/markdown-page.schema.json): The JSON Schema of a Markdown page's front matter. - [schema/adr.schema.json](https://kanoniq.extenza.dev/docs/v/0.4.1/schema/adr.schema.json): The JSON Schema of a decision record's front matter.