Skip to main content

Core concepts

Vocabulary
Six words that explain the whole platform

Everything in Stacktic — the UI, the API, the MCP tools, the generated repository and the runtime agent — is expressed with the same small vocabulary.

Visual explainerRelations are the system

Why the relationships between components, not the components themselves, are what makes a system hard — and what declaring them buys you.

COMPONENTgatewayAPISIXCOMPONENTyour appyour code, builtin-clusterlink · apisix-external_source_codesubdomain · path · OIDCattributes on the linkCOMPONENT · POSTGRESQLversion · storage · replicasattributes on the componentSUB-COMPONENT · DBordersname · owner · passwordattributes on the sub-componentSUB-COMPONENT · DBbillingname · owner · passwordits own credentials — never sharedlink · external_source_code-dbattributes live on a component, a sub-component or a link — nowhere else
Components hold sub-components; links join them. Attributes — in amber — live in exactly three places: on a component, on a sub-component, or on a link.

Component​

A component is one technology instance in your stack: your application, a database, a gateway, an identity provider, a metrics server. Its type selects the generation logic; its name is what everything else refers to.

Two components of the same type are ordinary — three PostgreSQL clusters, two gateways, five applications. Each carries its own namespace, version and configuration.

Your own code enters the stack as an application component that points at a Git repository. That component is the centre of the design: everything else exists to serve it.

Sub-component​

A sub-component is a resource a component owns and creates. It is a node in its own right, so it can carry attributes and be linked to directly.

OwnerSub-components it can own
PostgreSQL (CloudNativePG)db, pitr_cluster (a point-in-time-recovery cluster)
MongoDB · MariaDB · Neo4j · ClickHousemongo_db, shard · maria_db, maria_tenant_db · neo4j_db · clickhouse_db
Object storage (SeaweedFS)swbucket, remote_bucket, pv (a shared volume)
Kafkatopic, bridge, node_pool
RabbitMQexchange, queue — bindings are the links between them
Vector store (Qdrant)collection
Identity provider (Keycloak)client, realm, identity_provider
Gateway (APISIX)ai_gateway, gateway
Intrusion prevention (CrowdSec)waf
Models and MLvLLM model · KServe inference_service · MLflow experiment, registered_model
OrchestrationDagster code_location, asset, sensor, job · Airflow etl, ml, airflow_job
Autoscaling and loadKEDA prometheus_query · k6 endpoints
MCP serveragent, ai_task
Admission policy (OPA)securitycontext, disallow, pod_level_security, resource_policy, probes, image_policy, image_signing, label_deny, network_policy_enforcement, rbac_enforcement, custom

Sub-components are why "one database per application" is expressible without deploying a second database: the cluster is the component, each logical database is a sub-component with its own credentials.

Every instance needs its own identity

The moment a component owns a second sub-component of the same kind — two buckets, three databases, four OIDC clients — each one needs its own name, user and secret. Shared credentials across instances are rejected at generation time rather than discovered in production.

A link is a typed, directed edge. Its type is always sourceType-targetType, and that string is what selects the generation logic on both sides.

A link is not a diagram annotation. Drawing one produces, depending on its type: connection environment variables, a generated credential, a Kubernetes Secret, ingress and egress network policies, cross-namespace RBAC, a gateway route with TLS, a scrape target and alert rules, a backup subject, an OIDC client and the redirect URIs that go with it.

Sub-components link too — a Kafka topic to a database, a bucket to a backup target — so a relationship can be expressed at the level it actually exists.

→ Link type reference

Attribute​

Attributes are the only place configuration lives, and they live in exactly three places:

1On the component

Namespace, version, replicas, resources, storage size, which optional features are on.

2On the sub-component

The database name, the bucket name, the topic partitions, the client's redirect URIs.

3On the link

Values that belong to the relationship rather than to either end — the backup schedule and retention on a database-to-bucket link, the route path and auth mode on a gateway-to-application link.

Because there is no fourth place, the graph is a complete description. Regenerating from it produces the same system.

Environment​

One stack can generate several environments. The base output is shared, and each environment gets an overlay carrying the values that differ — replica counts, resource sizes, domains, which optional components are present.

An environment is not a copy of the design. It is the same design, rendered again.

Version​

The unit of version is the stack, not the file.

A version captures every component, every link, every sub-component and every attribute at once. That is what makes a duplicate into a real second environment, a rollback into a return of the whole system, and a comparison into an answer about the architecture rather than about YAML.

Two other versions sit inside it, and the three are easy to confuse:

VersionWhat it versionsWhere you see it
The stack versionThe whole graphEvery save, in the system's history
A component's catalog versionThe catalog entry a component was drawn from: its attributes, sub-components, links and generation logictag_version on each component in stack-metadata.yaml. A stack can mix versions; the catalog marks one version of each component as the default for new designs
The Stacktic versionThe stack-wide generation steps: metadata, network policies, the post-generation chainChosen on the build page, the current default preselected
VERSIONS OF THE WHOLE GRAPHv1app + databasev2+ queue + gatewayv3database upgraderoll back: every relation returnsONE VERSION, EVERY ENVIRONMENTdevelopmentsmall · one replicastagingthe same graphproductionsizes · domain · scalerender
A version is a snapshot of the whole graph. Rolling back returns every relation, not one file, and each version renders into every environment through its own overlay.

Declared state and runtime data​

The single most useful distinction when an AI is operating your stack.

Declared stateRuntime data
WhatComponents, links, attributes, system users, groups, routes, policiesA ticket, an invoice, an uploaded file, a chat message, a row your application wrote
Where it livesThe graph, and the generated repositoryThe application's own storage
How it changesThrough the platform, then a build and a deployThrough the application's own interface or API
If you change it the other wayDrift: invisible to the graph, skipped by the sync jobs, silently divergentNothing — that is where it belongs

Creating a system user directly in the identity provider is the classic mistake. It works for a day and disappears on the next build, because the graph never knew about it.

→ Identity and secrets