Skip to main content
Version: Next

Kanoniq 0.4.0

Released on 2026-11-01. What changed, by what you use.

The language​

  • # for annotations, @ for a Code that is a reserved word, and kebab-case keywords. A property is written #cost-center CC-42 and an assumption #assumed "reason". A Code that spells a reserved word is written with an @, such as object @customer "Customer" : selling, and the Model holds the bare Code. Every keyword that was camelCase is kebab-case: user-facing-app, http-api, web-socket, client-credentials, service-bus.queues and the rest. A model needs those words rewritten by hand.
  • Broker kind storage-queue. Azure Storage Queues, whose channels are Queues, beside service-bus.queues. The word is now reserved and cannot be used as a Code.
  • graphql and graphql-api. a -> b/api over graphql is a synchronous call that creates a graphql-api where b has none. Both words are now reserved and cannot be used as a Code.
  • ipc and ipc-api. a -> b/api over ipc is a synchronous call to another process on the same machine through a pipe, standard input and output, a Unix domain socket, a named pipe or Node IPC, such as an editor talking to its language server; it creates an ipc-api where b has none, and takes no payload format and no auth. Both words are now reserved and cannot be used as a Code.
  • A component realizing into several domains marks one realization primary. Write primary after the target, before any as, on the realization into the domain the component belongs to. KQ045 and KQ046 refuse a model with more than one mark, a mark on anything but a component, a component realizing into several domains with none marked, or a mark where its realizations all lead to one domain. Mark yours where the check asks. The site's generated landscape lists the component under that domain, and kq arrange files it with the top-level domain above it. Before, the landscape listed it under the first domain it realized, and kq arrange left it with its platform.
  • signal-r and signal-r-hub. a -> b/hub over signal-r is an asynchronous direct connection to an ASP.NET SignalR hub, which it creates as a signal-r-hub. Both words are now reserved and cannot be used as a Code.
  • Storage kinds table, document and log. Beside sql, file and blob, a component can hold a table (entities by partition and row key, such as Azure Table Storage), a document store (JSON documents, such as Cosmos DB or MongoDB) and a log (an append-only store of time-ordered events, such as Application Insights). Each word is now reserved and cannot be used as a Code.
  • web-socket and web-socket-api. a -> b/api over web-socket is an asynchronous direct connection, drawn from the client that opens it, that creates a web-socket-api. Both words are now reserved and cannot be used as a Code.

The command line​

  • kq arrange renames through git. In a git repository, a tracked file it renames or deletes goes through git mv or git rm, so git status shows a rename as a rename; new files are left for you to add. A file whose text moves unchanged to another path is renamed rather than rewritten. See kq arrange.
  • Assumptions are counted. Where the model holds assumptions, kq validate ends its summary line with how many, such as 4 assumptions, 2 carried, and kq build prints the same count on standard error. The count never changes the exit code, and --strict does not read it. See kq validate.
  • kq build drops what can no longer stand. A line of <name>.g.kq whose subject is gone, or which you now declare yourself, is left out of the rewritten file and printed as dropped from <file>:<line>. Its Id is kept, or orphaned if nothing takes it. See kq build.
  • Every build error has a code. A parse, reference or other build error is printed with its file, line and column and a KB code, such as x.kq:4:10 error KB003 'b' names nothing, in every output format, and each code has its entry in Build errors.
  • Findings in file order. kq validate and kq build list their findings by file, line and column, then by code, those with no position last, so the same model prints them in the same order on every run. See kq validate.
  • Install kq from npm. kq is the npm package @extenza-works/kanoniq-app-cli: run npm install --global @extenza-works/kanoniq-app-cli. The commands that sign in or draw come in packages of their own, installed beside it the same way: kq license, kq login and kq logout in @extenza-works/kanoniq-lib-licensing, and kq svg, kq png, kq portal:build and kq threats:init each in its own export package. Without its package, kq license, kq login or kq logout says which package to install. See Installing.
  • kq audit checks the model against every policy set, however kanoniq.repository.json sets them, those turned off included, so you see what your policies would report before you turn them on. Every finding is info and it exits with 0; with --enforce, every finding is an error and it exits with 1 on any but an exempted breach. It takes --format, --as-of and --require-license as kq validate does, and lists the model's assumptions after its findings. See kq audit.
  • kq dissolve folds a plateau into the one before it or after it, --into previous or --into next, and removes it. It shows the state lost, what leaves the model and the files it changes, then asks you to type the plateau's Code; --dry-run only shows and --apply acts without asking. View tiles whose at or to name the plateau are repointed to the one that survives. See kq dissolve.
  • kq guide shows how much of Kanoniq the model puts to work: each capability, such as roles or identities, with the level the model reaches on it, from Not yet to Connected. Given a capability's id, it lists each level's next steps, every element still left and why. --scope counts within one element, --json writes JSON and --report the model depth report. It always exits with 0. See kq guide.
  • kq init writes an authoring brief for AI assistants. AGENTS.md tells an assistant how to write and change the model, assembled for the version of kq that wrote it, and CLAUDE.md and .github/copilot-instructions.md point Claude Code and GitHub Copilot at it. A file of one of those names already in the folder is left as it is, and --no-agents leaves all three out. See The authoring brief.
  • kq init makes a repository that builds. Beside model/ and portal/Home.page.yml, it writes an Ecosystem named after the folder and a short how-to-use-kanoniq.md. Its kanoniq.repository.json holds the repository's permanent id, the end-of-support periods, the confidentiality levels, the eea residency, both recommended policy baselines with hygiene at info, and three open properties, brand, pcf and bian, so kq validate passes on it straight away. See kq init.
  • Sign in from the command line. kq login shows a code and a Customer Hub page; sign in there with the email your seat is assigned to and confirm the code, and the machine holds a lease shared with the VS Code extension, on your seat or on the free plan. kq logout signs the machine out, even when the license service cannot be reached, and kq license shows the lease beside every license file it finds. See kq login.
  • kq materialize writes every baseline your repository's preset names out as a policy set of your own, in model/policies.kq, so you can change it, then removes preset from kanoniq.repository.json and keeps everything else there. Each policy keeps its Id, so findings and exemptions still name it. --check lists what it would write and exits with 1 if anything would. See kq materialize.
  • kq plan prints the model's data migrations gap by gap between its plateaus, in time order, each with its dates and the Domain Objects whose authority it moves, then the API versions each gap adds, removes or moves callers between. --format json writes one JSON document for a script and --format markdown the migration plan document. It writes nothing and is free. See kq plan.
  • kq threats:init declares the STRIDE framework in your repository: it adds stride and its six requirement ids to frameworks in kanoniq.repository.json, every one but repudiation checkable, so a policy may serve stride/<id>. A file that already declares stride is left as it is. It needs no license, and --check exits with 1 where stride would be added. See kq threats:init.
  • kq threats:list writes the model's threat list, as HTML, CSV or SARIF: for every call, leg or sync that crosses a trust boundary, and for each of the six STRIDE categories, the threats found, each open or exempted with its exemption's reason and review date. It needs the Threat modeling package and a stride declaration, which kq threats:init writes, and exits with 0 whatever the threats, since kq validate is the check. See kq threats:list.
  • kq validate and kq build check your policies. On a model with no error, the findings of the policies your repository turns on follow the rest under a policy findings: line, and one at error exits with 1. A baseline named by preset is checked free; your own policy sets need a paid license, and without one they are skipped with a note saying so. --require-license makes a skipped set exit with 3 instead, for CI, and kq validate --as-of <yyyy-mm-dd> judges the policies as of that day. See Governance.
  • More repository settings, and comments in kanoniq.repository.json. The file takes // and /* … */ comments, and kq arrange, kq materialize and kq threats:init keep them when they change it. Beside arranged, it now takes id, end-of-support-warning, end-of-support-error, confidentiality-levels, regulated-scopes, frameworks, residencies, portal, properties and policies. See Repository settings.
  • kq validate needs no license, in any format. --format sarif writes its SARIF 2.1.0 log for everyone, so kq validate no longer takes --license. See kq validate.
  • kq svg and kq png draw every view. Beside the layered and focused views, they draw an IAM view (--iam-idp, --iam-platform), a motivation view (--motivation), a value-stream view (--value-stream), an impact map (--impact-map), a deployment view (--env), a process view (--process), a data-flow view (--data-flow), a scenario view (--scenario) and a context map (--context-map). --functions adds the layered view's Functions band and --contexts draws each bounded context's boundary. See kq svg.
  • kq svg and kq png draw a point in time. --at <plateau> draws the model as it is in that plateau, the first one by default, and --to <plateau> draws the transition from --at to a later one, with what goes and what arrives marked. See kq svg.

VS Code​

  • Code lens and inlay hints. A lens above each Domain, Platform, monolith, Component and Broker shows N references, N relationships and on N pages; click one for a peek on what it counts. Above a derived element in <name>.g.kq it says what derives it, or that it is an orphan, with a Prune lens to remove it. A hint such as ⇒ derives http-api follows a statement that creates an Interface or a Channel; Ctrl+click (Cmd+click on a Mac) goes to the derived element in <name>.g.kq. While the model has an error, the hints go and the lenses keep their last text. Turn them off with kanoniq.codeLens.enabled and kanoniq.inlayHints.derivations.
  • Markdown pages are checked and completed. A *.page.md file, a navigation page written as Markdown with a page's fields in its frontmatter, has its frontmatter checked as you type, KQP001 and KQP002 as for a page file, and its fields and their values completed. What its text's images and links name is checked by kq portal:build.
  • One extension. Kanoniq is now a single extension, extenza-works.vscode-kanoniq, holding the language and the diagram panel. Kanoniq Language, Kanoniq Visualizer and the Kanoniq pack are gone. There is one Kanoniq: Prune: it prunes the model of the file or folder picked, else of the diagram that has the focus, else of the active .kq file.
  • Quick fixes. Press Ctrl+. (Cmd+. on a Mac), or click the light bulb, on an underlined problem in a .kq file. A path segment or a keyword that names nothing is offered the closest that fits there (ordres → orders, bakend → backend, over htpp → over http). KQ022, KQ024, KQ026 and KQ030 get the one edit that puts them right. Other problems get no fix, because putting them right is a modeling choice. A fix never edits <name>.g.kq.
  • Refactor: Delete. Right-click an element's Code, or a path naming it, in a .kq editor to delete it with everything under it, in every file, the derived elements under it in <name>.g.kq included, and every relationship naming it. It shows what goes and asks first, then saves. Before, deleting a Platform or a Component that had derived Interfaces left .g.kq naming a parent that was gone, and neither a save nor Prune could recover.
  • Refactor: Move… Right-click an element's Code, or a path naming it, in a .kq editor to put it under a new parent, with its Code or a new one. Every path naming it follows in every file, its Ids are kept, and a folder named after it moves too. It shows what changes and asks first, then saves, and refuses a move that would break the model, saying why.

The viewer​

  • A right-click on a box opens its menu: Select, Focus, Open Layered View, Collapse or Expand, Copy Path and Copy Id.
  • Hovering shows what is related. A box dims everything more than one relationship away from it, and a line shows its relationship type, protocol and ends.
  • Move around the diagram without the mouse. The arrow keys, Tab and Enter select and go to boxes, Shift+F10 opens a box's menu, 0, 1, F, Shift+F, + and − zoom and fit, and Ctrl+F finds an element. The canvas and its buttons are named for a screen reader.
  • A legend over the diagram says what the colors, outlines, marks and line styles on screen mean, and Collapse all and Expand all fold every container at once.
  • A model that does not build says so. The diagram keeps its last picture under a banner linking to every error, or, when it has never built, lists them in its place.
  • Show in Kanoniq Viewer. Press Ctrl+K V (Cmd+K V on a Mac), or right-click in a .kq editor, to show the element at the cursor in the viewer: a Domain that has a layered view opens it, anything else is focused in the whole model, and the pane says what it is. Back returns to what the viewer showed before. A viewer already open on the model is reused, and the cursor stays in the text.
  • The viewer's actions are commands. While the viewer has the focus, the Command Palette offers Find Element in Viewer…, Export View as SVG and as PNG (through a Save dialog), Back and Forward (Alt+Left and Alt+Right), Lens: All, Implementation, Communication and Data, Clear Focus, Collapse All and Expand All.

The portal​

  • The Assumptions page. Where the model holds any assumption, the site generates an Assumptions page, whether or not the landscape is on, with its tile on the home page: a section per Ecosystem listing each assumed element and relationship by path, with its reason, linked to it in the editor. See The generated landscape.
  • The auto-generated landscape. Set "portal": { "auto-generated-landscape": true } in kanoniq.repository.json and kq portal:build adds a landscape for each Ecosystem, with no page file to write: a page per platform and monolith, the domains its components realize, and a page per component, under its primary domain. Each page shows the element's path and Id, its focused view, its data, transport and motivation, and an Ecosystem with bounded contexts gets a Contexts page with its context map and each context's canvas. See The generated landscape.
  • Decision records. Put a <name>.adr.md file in a page's folder and it becomes a tile on that page and a page of its own. Its frontmatter gives a description, a status and optionally a date, and names the model elements the decision is about by Id and path, or none; the record's page shows them in one focused view above your text. A superseded record names its successor in superseded-by, and both pages link each other. An Id the model lacks is KQP011, and a path out of date is the warning KQP103. See Decision records.
  • Markdown pages. Write a page that is mostly prose as <name>.page.md: its frontmatter holds the page's fields, less text, and the Markdown after it is the page's text. It is a page in every other way, and may be the home page. Every page's text is now CommonMark with GitHub's tables, strikethrough, task lists, bare URLs and footnotes, and a heading takes the id GitHub gives it. See Markdown pages.
  • The migration plan page. Where the landscape is on and the model has two or more plateaus in sequence, the site generates a Migration plan page: a section per gap with a lane per data migration on its dates, a card per migration, and the interface versions each gap changes. A page a data migration links shows a Linked from box pointing at its card. See The migration plan.
  • Images, links and views in a page's text. An image is a PNG, JPEG, GIF, WebP or SVG file under portal/, at most 5 MiB, named by a relative path, and copied once into the site (KQP014 to KQP017). A link names another page file or decision record by a relative path, and reaches it in the site (KQP018); a link to a page that is not built is shown as text, with the warning KQP105. A fenced kanoniq-view block embeds a view where it stands, written as a view tile's view. See A page's text.
  • kq portal:build builds the portal, with the Portal package. It replaces kq site:build and comes from @extenza-works/kanoniq-export-portal, installed beside kq. It needs the Portal package, on a signed-in seat or in a CI license that lists it; without it, it builds nothing and exits with 3. It asks for a license for the repository by the id in kanoniq.repository.json and builds it into the site, so readers see its views without signing in. See kq portal:build.
  • A view's paths are checked. kq portal:build checks each path at the view's plateaus. A path that decides which view opens, such as domain, focus or canvas, and names nothing or an element of the wrong type is KQP019; a selected or collapsed path that names nothing is the warning KQP106, and the view still opens without it. When an element has moved, the message says where. See Views in tiles.
  • Every view tile names its plateau. A view tile's view needs at, the Code of the plateau it is drawn in, initial in a model that declares none; a tile without it is KQP002. to names a later plateau and opens the transition from at to it. An at or to that names no plateau, or a to not later than its at, is KQP010, so a renamed or removed plateau fails the build rather than drawing another state. See Views in tiles.
  • View tiles open every view. Beside the layered view, the ERD and a focused view, a tile opens an IAM view (iam), a motivation view (motivation), a value-stream view (valueStream), a deployment view (env), an impact map (impactMap), a scenario, process or data-flow view (scenario, process, dataFlow), a context map (contextMap) or a Bounded Context Canvas (canvas), each with its own glyph and meta line. focus takes a list of paths, functions adds the Functions band, assumptions: false hides the ? marks, and an ERD takes properties. See Views in tiles.

© 2026 Extenza Works. All rights reserved.