Skip to main content

Knowledge

Guide
A layer of knowledge on top of the topology

The topology says what exists and how it is wired, and it is what Stacktic generates from. Papers add layers to the same drawing, cell by cell. A Rationale paper explains why each component and link is there: the logic of the application. A Test paper checks each component against the running cluster.

Two layers on one drawing​

LayerHoldsStoredRead by
TopologyComponents, sub-components, links and their attributesIn the drawingThe build: every template, every stack-wide step
Rationale paperOne text per component, sub-component and link: why it exists, what data it carries, which business rule depends on it, what breaks without itIn the drawing, next to each cell, saved with every versionPeople, AI clients through the MCP, and the Rationale Graph. Never the build
Test paperTests per component type and version: a command, a target, a filter, a severity and what success or failure meansIn the catalog, so a component brings its tests to every designThe stack agent, when the paper is opened in LiveView

A third category, Data, can be created but nothing reads it yet.

The two papers answer different questions about the same cell. The rationale says why the link from the order service to the payments database exists. The tests show whether that component and its links work in the cluster right now.

ONE CELL · ONE PAPER · ONE TEXT · STORED IN THE GRAPHdesign pageSwitch Paper → Knowledgeselect a cell · RationaleAPI or MCPset system · rationalestacktic_rationalethe cell, in the graphrationalesknowledge: "why this sink…"security: "who may read it"one text per paperRationale Grapha cell, its links,its neighbours, their textsgenerated stacknever reads itno build · no validationstored with the design · versioned with it
One cell, one paper, one text. The rationale is stored in the graph next to the cell, so the design page and the API read and write the same thing; the generated stack never sees it.

Papers​

A paper is a named sheet in the catalog with a category: Rationale, Test or Data. Catalog → Papers lists yours next to the ones Stacktic ships and creates new ones. The creation dialog starts on Data, so pick the category explicitly.

A Rationale paper named Knowledge is the usual place for the why of a stack. You can keep more than one, for example a Security paper written for auditors. Each holds its own text on each cell.

Writing the rationale on the design page​

Switch paper

On the design page, click Switch Paper and pick a Rationale paper. The drawing opens with the same cells and links, showing that paper's texts.

Select a cell

A component, a sub-component or a link. The inspector shows a Rationale field.

Write and save

The editor holds that cell's text for that paper. Saving stores it in the drawing, so it is part of every version from then on.

With Show Rationale Graph on, clicking a cell opens the Rationale Graph: the cell's text in the middle, every inbound and outbound link with its own text, the neighbouring cells, and the sub-components a component contains. It reads a topology as an explanation rather than a drawing.

Writing it through the API or an AI​

An AI client that has read your application can fill the Knowledge paper of a whole stack, cell by cell, through the MCP. The design page shows the texts the next time it opens.

  • The platform API attaches a rationale to one cell of a system without touching anything else in it (set system with the rationale sub-resource).
  • The MCP exposes the same thing as one tool that lists papers, reads texts and writes them.

Writing a rationale never triggers a build, a validation or a render. It needs the Admin, Maintain or Write role on the system.

Three facts to know when you automate it:

  • Cells are addressed by their label. The MCP refuses to write when two cells share a label, for example an application and the identity client named after it. Keep labels unique on a stack you plan to document this way.
  • The text is shown as HTML. Paragraph and line-break tags render; a bare newline does not.
  • Keep credentials out of it. People and AI tools read it.
caution

A single-attribute update through the API rewrites the drawing through a model that does not carry rationales, and erases every one of them. Change attributes from the design page, or through the MCP, which detects a documented stack and writes through the full drawing instead. A design page left open while automation writes rationales overwrites them on its next save, so reload it first.

What the rationale is not​

The rationale is documentation, not configuration. No template reads it, no policy comes from it, and it is not checked when the cell changes. When you change a component or a link, update its text yourself.

It belongs to one system. The same component type on another stack starts with no text.

It is also not the MCP's knowledge repository. That repository describes what the platform can express, for every stack. A Rationale paper describes why your stack is built the way it is.

→ LiveView · Catalog and sections · Platform API · Tool surface