Skip to main content

The knowledge layer

Grounding
Hands, and a brain to move them

The MCP tools are the hands: they operate components, the platform API and the cluster. The knowledge layer is what they read — what can exist, what each relationship really generates, and how working stacks are configured.

Why it is separate​

Knowledge embedded in a tool is knowledge you can only change by rebuilding and redeploying that tool. Stacktic keeps it outside: the MCP server loads the knowledge layer at startup and re-pulls it on demand, so corrections and new patterns reach every connected stack without a rebuild, a redeploy or a restart.

A model that answers from a stale catalog is worse than a model that says it does not know. This is the mechanism that prevents it.

GIT · PLATFORM KNOWLEDGEthe braincatalog · attributeslink semanticspatterns from real stacksupgrade recipespolicy schema · carve-outsplaybooksMCP SERVERreads it, answersclones at startpulls on refreshhot-reloads on changepullTHE HANDSplatform APIchange the graphstack agenttest · scan · proveper-technology toolsoperate what is linkedupdate the knowledge → no rebuild · no redeploy · no restart
Knowledge lives in its own repository. The MCP server reads it at start and on refresh, so a correction reaches every stack without touching any of them.

What it contains​

LayerWhat the model gets from it
Catalog knowledgeEvery component type: its attributes, what its generation logic does, which environment variables it produces, which files it writes
Link semanticsFor each link type: its kind, direction, which side plays which role, and how critical it is
Component semanticsThe why digest — a short, human-written explanation of what a component and each of its links is for, used when the model is choosing between options
PatternsAttribute values extracted from real working stacks, so a recommendation is grounded in something that runs
Curated patternsHand-written why / gotcha / suggestion notes for composite patterns that span several components
Lifecycle recipesPer-component upgrade and migration procedures, with preflight checks and ordering
Policy schema and carve-outsThe authoritative admission-policy attribute schema, and which namespaces a given policy must exclude for a given topology
PlaybooksDeep guides for the awkward parts: the identity model, where application code should live, media connectivity, secret-store token rotation, connector operability

What this changes in practice​

Without a knowledge layer
  • The model invents a component type that sounds plausible.
  • It picks a version that is not a catalog option, and generation rejects it.
  • It proposes an attribute value copied from a blog post.
  • It cannot tell you what a link will actually produce, so it describes it in general terms.
With it
  • Every option offered came from a tool result.
  • Versions come from the catalog, and the current default is used unless you say otherwise.
  • Values come from stacks that are running.
  • “What does this link generate” is answered with the files and variables, not a paraphrase.

Version currency​

Catalog entries are version-pinned, and each component has a current default. Older entries are kept so that existing stacks still generate, but they carry a reduced attribute and link surface.

The rule the model follows: use the current default, never offer legacy tags as a menu, and when a version is under discussion, also check the upstream project's latest release. If the catalog lags upstream it says so explicitly and offers both paths — proceed with the newest catalog option, or have the platform team add the newer version first. It never silently picks something outdated, and it never invents a version string.

Keeping it fresh​

knowledge(action='refresh') re-pulls the knowledge layer into a running MCP server. Several of the files hot-reload on change without even that. Nothing about updating platform knowledge requires touching your stack.

Access to the repository​

The knowledge repository is private and licensed. Its coordinates come with the MCP license and are set as three lines in the MCP component's configmap attribute — one KEY=VALUE per line, appended to the pod's environment:

MCP_KNOWLEDGE_REPO_URL=<repository URL from your license>
MCP_KNOWLEDGE_REPO_TOKEN=<token issued with your license>
MCP_KNOWLEDGE_REPO_BRANCH=main

Without it the server cannot design, explain or guide, and it says so instead of improvising. server_info, /readyz, workflow and every knowledge answer report the state of the repository, the reason when it fails, and the exact fix:

ReasonWhat it means
not_configured · placeholder_urlThe URL is missing, or still the placeholder
auth_failedThe token is missing, expired or rotated
not_found_or_no_accessThe URL is wrong, or the token cannot see the repository
networkThe server cannot reach the git host — check egress policy, DNS and proxy
branch_missingThe branch does not exist
incomplete_repoThe repository was reached but is not a knowledge repository
staleThe last pull failed; the server is answering from its previous copy

A failed sync is retried on the next call, so a fixed token or a restored network is picked up without restarting the pod. Changing the configmap attribute itself needs a build, an apply, and a pod restart.

Air-gapped stacks

Mirror the knowledge repository inside your network and point MCP_KNOWLEDGE_REPO_URL at the mirror.

Not the Knowledge page

This page is about the platform knowledge the MCP server reads. The why of your own design — the rationale written on each component and link — is a different thing, kept in your graph: see Knowledge.