Skip to main content

Link types

Reference
418 typed edges, one naming rule

A link type is always sourceType-targetType. That string selects the generation logic on both sides — which is why the behaviour of a new link is predictable before you draw it.

external_source_code-dbSOURCE TYPETARGET TYPEthe string selects the generation logic on both sidesCOMPONENT → SUB-COMPONENTexternal_source_code-dbSUB-COMPONENT → COMPONENTtopic-opensearchSUB-COMPONENT → SUB-COMPONENTexperiment-registered_modelsub-component, inside its parentcomponent
A link type is sourceType-targetType. The string selects the generation logic on both sides, and either end can be a component or a sub-component.

The naming rule​

apisix-langflow       gateway publishes an AI workflow builder
fastapi-cnpg an application uses PostgreSQL
prometheus-mongodb metrics scrape a document database
fastmcp-stack_agent the MCP server uses the stack agent
cnpg-swbucket a database backs up to an object storage bucket

The source and target can each be a component or a sub-component, which is how a relationship gets expressed at the level it actually exists — a Kafka topic to a database, a bucket to a backup target, an experiment to a registered model.

FamilyOn the consumerOn the providerElsewhere
Application → dataConnection variables, mounted secret, egress policyThe database, bucket, topic or queue, its user and credential, ingress policyBackup subject, scrape target, cross-namespace access
Gateway → anything——Route, TLS certificate, path and method rules, rate limiting, authentication mode, websocket support
Anything → identity clientClient id, secret, issuer and callback configurationThe OIDC client and its redirect URIsGroup and role mapping
Metrics → anythingScrape configuration, alert rulesThe metrics endpointDashboards
Logs and tracing → anythingCollection configurationExport configurationRetention
Data → storage——Backup schedule and retention as link attributes; the restore surface
Autoscaler → workload——The scaling rule and its signal
Mesh → anything—Sidecar injectionMesh policy
Application → applicationService address and credentialsIngress policyThe declared dependency, used by blast radius and ordering
Event pipelines — topic → database or search, topic → sensor, sensor → job, job → application——A Kafka Connect sink connector; a Dagster sensor started on the events; a job that runs the application's image
Security sensor → SIEM — <source>-opensearchShipping of the source's eventsThe index template, dashboards and monitors for that sourceRetention by the index lifecycle policy
WAF profile → application — waf-<app>——The web application firewall plugin on the application's route
GitOps → anything — argo_cd-<type>——One Argo CD Application, tuned by the link's attributes; the component's Jobs become sync hooks
Across stacksThe other stack's address, from an attribute—Egress to that address — see External stacks

The link types an application uses most, layer by layer, with the variables each one puts into the application's environment, are in How a stack fits together.

Some configuration belongs to neither end of an edge. It belongs to the edge.

ExampleWhy it lives on the link
Backup schedule and retentionThey describe this database's protection in this bucket, not the database in general
Route path, authentication mode, body size limitThey describe how this gateway publishes this application
Access levelThe permission this relationship needs, which validation later proves both ways
Feature toggles on an integrationWhether this particular consumer uses a capability of the provider

A sub-component is a node, so it can be an endpoint of a link. Three shapes exist:

ShapeExample
Component → sub-componentAn application to one specific database of a cluster
Sub-component → componentA topic to a destination system
Sub-component → sub-componentAn experiment binding to a registered model

This is what allows a shared technology to serve many consumers without either sharing credentials or being deployed several times.

A link is not a network rule, and it is not documentation. It is a declaration of relationship, from which the network rule, the credential, the route, the monitoring and the backup are all derived — after the whole graph is known.

Which is why removing a link removes all of them, and why the security posture cannot drift away from the architecture.

Do not guess, and do not read this page as a substitute. Ask:

  • Through an AI client: knowledge for the link type, or knowledge(action='impact') for the files a given attribute touches.
  • In the generated repository: read the files. The output is plain YAML, on purpose.