Core concepts
Everything in Stacktic — the UI, the API, the MCP tools, the generated repository and the runtime agent — is expressed with the same small vocabulary.
Why the relationships between components, not the components themselves, are what makes a system hard — and what declaring them buys you.
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.
| Owner | Sub-components it can own |
|---|---|
| PostgreSQL (CloudNativePG) | db, pitr_cluster (a point-in-time-recovery cluster) |
| MongoDB · MariaDB · Neo4j · ClickHouse | mongo_db, shard · maria_db, maria_tenant_db · neo4j_db · clickhouse_db |
| Object storage (SeaweedFS) | swbucket, remote_bucket, pv (a shared volume) |
| Kafka | topic, bridge, node_pool |
| RabbitMQ | exchange, 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 ML | vLLM model · KServe inference_service · MLflow experiment, registered_model |
| Orchestration | Dagster code_location, asset, sensor, job · Airflow etl, ml, airflow_job |
| Autoscaling and load | KEDA prometheus_query · k6 endpoints |
| MCP server | agent, 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.
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.
Link
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.
Attribute
Attributes are the only place configuration lives, and they live in exactly three places:
Namespace, version, replicas, resources, storage size, which optional features are on.
The database name, the bucket name, the topic partitions, the client's redirect URIs.
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:
| Version | What it versions | Where you see it |
|---|---|---|
| The stack version | The whole graph | Every save, in the system's history |
| A component's catalog version | The catalog entry a component was drawn from: its attributes, sub-components, links and generation logic | tag_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 version | The stack-wide generation steps: metadata, network policies, the post-generation chain | Chosen on the build page, the current default preselected |
Declared state and runtime data
The single most useful distinction when an AI is operating your stack.
| Declared state | Runtime data | |
|---|---|---|
| What | Components, links, attributes, system users, groups, routes, policies | A ticket, an invoice, an uploaded file, a chat message, a row your application wrote |
| Where it lives | The graph, and the generated repository | The application's own storage |
| How it changes | Through the platform, then a build and a deploy | Through the application's own interface or API |
| If you change it the other way | Drift: invisible to the graph, skipped by the sync jobs, silently divergent | Nothing — 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.