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-42and an assumption#assumed "reason". A Code that spells a reserved word is written with an@, such asobject @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.queuesand the rest. A model needs those words rewritten by hand.- Broker kind
storage-queue. Azure Storage Queues, whose channels are Queues, besideservice-bus.queues. The word is now reserved and cannot be used as a Code. graphqlandgraphql-api.a -> b/api over graphqlis a synchronous call that creates agraphql-apiwherebhas none. Both words are now reserved and cannot be used as a Code.ipcandipc-api.a -> b/api over ipcis 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 anipc-apiwherebhas none, and takes no payload format and noauth. Both words are now reserved and cannot be used as a Code.- A component realizing into several domains marks one realization
primary. Writeprimaryafter the target, before anyas, 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, andkq arrangefiles it with the top-level domain above it. Before, the landscape listed it under the first domain it realized, andkq arrangeleft it with its platform. signal-randsignal-r-hub.a -> b/hub over signal-ris an asynchronous direct connection to an ASP.NET SignalR hub, which it creates as asignal-r-hub. Both words are now reserved and cannot be used as a Code.- Storage kinds
table,documentandlog. Besidesql,fileandblob, a component can hold atable(entities by partition and row key, such as Azure Table Storage), adocumentstore (JSON documents, such as Cosmos DB or MongoDB) and alog(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-socketandweb-socket-api.a -> b/api over web-socketis an asynchronous direct connection, drawn from the client that opens it, that creates aweb-socket-api. Both words are now reserved and cannot be used as a Code.
The command line
kq arrangerenames through git. In a git repository, a tracked file it renames or deletes goes throughgit mvorgit rm, sogit statusshows 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 validateends its summary line with how many, such as4 assumptions, 2 carried, andkq buildprints the same count on standard error. The count never changes the exit code, and--strictdoes not read it. See kq validate. kq builddrops what can no longer stand. A line of<name>.g.kqwhose subject is gone, or which you now declare yourself, is left out of the rewritten file and printed asdropped 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
KBcode, such asx.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 validateandkq buildlist 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
kqfrom npm.kqis the npm package@extenza-works/kanoniq-app-cli: runnpm 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 loginandkq logoutin@extenza-works/kanoniq-lib-licensing, andkq svg,kq png,kq portal:buildandkq threats:initeach in its own export package. Without its package,kq license,kq loginorkq logoutsays which package to install. See Installing. kq auditchecks the model against every policy set, howeverkanoniq.repository.jsonsets them, those turned off included, so you see what your policies would report before you turn them on. Every finding isinfoand 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-ofand--require-licenseaskq validatedoes, and lists the model's assumptions after its findings. See kq audit.kq dissolvefolds a plateau into the one before it or after it,--into previousor--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-runonly shows and--applyacts without asking. View tiles whoseatortoname the plateau are repointed to the one that survives. See kq dissolve.kq guideshows 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.--scopecounts within one element,--jsonwrites JSON and--reportthe model depth report. It always exits with 0. See kq guide.kq initwrites an authoring brief for AI assistants.AGENTS.mdtells an assistant how to write and change the model, assembled for the version ofkqthat wrote it, andCLAUDE.mdand.github/copilot-instructions.mdpoint 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-agentsleaves all three out. See The authoring brief.kq initmakes a repository that builds. Besidemodel/andportal/Home.page.yml, it writes an Ecosystem named after the folder and a shorthow-to-use-kanoniq.md. Itskanoniq.repository.jsonholds the repository's permanentid, the end-of-support periods, the confidentiality levels, theeearesidency, both recommended policy baselines with hygiene atinfo, and three open properties,brand,pcfandbian, sokq validatepasses on it straight away. See kq init.- Sign in from the command line.
kq loginshows 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 logoutsigns the machine out, even when the license service cannot be reached, andkq licenseshows the lease beside every license file it finds. See kq login. kq materializewrites every baseline your repository'spresetnames out as a policy set of your own, inmodel/policies.kq, so you can change it, then removespresetfromkanoniq.repository.jsonand keeps everything else there. Each policy keeps its Id, so findings and exemptions still name it.--checklists what it would write and exits with 1 if anything would. See kq materialize.kq planprints 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 jsonwrites one JSON document for a script and--format markdownthe migration plan document. It writes nothing and is free. See kq plan.kq threats:initdeclares the STRIDE framework in your repository: it addsstrideand its six requirement ids toframeworksinkanoniq.repository.json, every one butrepudiationcheckable, so a policy may servestride/<id>. A file that already declaresstrideis left as it is. It needs no license, and--checkexits with 1 wherestridewould be added. See kq threats:init.kq threats:listwrites 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, eachopenorexemptedwith its exemption's reason and review date. It needs the Threat modeling package and astridedeclaration, whichkq threats:initwrites, and exits with 0 whatever the threats, sincekq validateis the check. See kq threats:list.kq validateandkq buildcheck your policies. On a model with no error, the findings of the policies your repository turns on follow the rest under apolicy findings:line, and one aterrorexits with 1. A baseline named bypresetis checked free; your own policy sets need a paid license, and without one they are skipped with a note saying so.--require-licensemakes a skipped set exit with 3 instead, for CI, andkq 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, andkq arrange,kq materializeandkq threats:initkeep them when they change it. Besidearranged, it now takesid,end-of-support-warning,end-of-support-error,confidentiality-levels,regulated-scopes,frameworks,residencies,portal,propertiesandpolicies. See Repository settings. kq validateneeds no license, in any format.--format sarifwrites its SARIF 2.1.0 log for everyone, sokq validateno longer takes--license. See kq validate.kq svgandkq pngdraw 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).--functionsadds the layered view's Functions band and--contextsdraws each bounded context's boundary. See kq svg.kq svgandkq pngdraw 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--atto 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 relationshipsandon N pages; click one for a peek on what it counts. Above a derived element in<name>.g.kqit says what derives it, or that it is an orphan, with a Prune lens to remove it. A hint such as⇒ derives http-apifollows 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 withkanoniq.codeLens.enabledandkanoniq.inlayHints.derivations. - Markdown pages are checked and completed. A
*.page.mdfile, a navigation page written as Markdown with a page's fields in its frontmatter, has its frontmatter checked as you type,KQP001andKQP002as for a page file, and its fields and their values completed. What its text's images and links name is checked bykq 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.kqfile. - Quick fixes. Press Ctrl+. (Cmd+. on a Mac), or click the light bulb, on an underlined problem in a
.kqfile. 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
.kqeditor to delete it with everything under it, in every file, the derived elements under it in<name>.g.kqincluded, 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.kqnaming 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
.kqeditor 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
.kqeditor, 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 }inkanoniq.repository.jsonandkq portal:buildadds 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.mdfile in a page's folder and it becomes a tile on that page and a page of its own. Its frontmatter gives adescription, astatusand optionally adate, 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. Asupersededrecord names its successor insuperseded-by, and both pages link each other. An Id the model lacks isKQP011, and a path out of date is the warningKQP103. See Decision records. - Markdown pages. Write a page that is mostly prose as
<name>.page.md: its frontmatter holds the page's fields, lesstext, 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 (KQP014toKQP017). 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 warningKQP105. A fencedkanoniq-viewblock embeds a view where it stands, written as a view tile'sview. See A page's text. kq portal:buildbuilds the portal, with the Portal package. It replaceskq site:buildand comes from@extenza-works/kanoniq-export-portal, installed besidekq. 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 theidinkanoniq.repository.jsonand 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:buildchecks each path at the view's plateaus. A path that decides which view opens, such asdomain,focusorcanvas, and names nothing or an element of the wrong type isKQP019; aselectedorcollapsedpath that names nothing is the warningKQP106, 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
viewneedsat, the Code of the plateau it is drawn in,initialin a model that declares none; a tile without it isKQP002.tonames a later plateau and opens the transition fromatto it. Anatortothat names no plateau, or atonot later than itsat, isKQP010, 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.focustakes a list of paths,functionsadds the Functions band,assumptions: falsehides the?marks, and an ERD takesproperties. See Views in tiles.
© 2026 Extenza Works. All rights reserved.