Integration Context Graph
The Integration Context Graph is Klok's queryable map of the integration landscape. It connects tenants, domains, systems, solutions, integration projects, route legs, topics, data models, repositories, files, and documents.
What It Is
The graph is a metadata registry/cache. It stores technical and architectural context, not business payloads or secrets.
It answers questions such as:
- Which routes consume
InvoiceV1? - Which projects publish to a topic?
- Which egress legs deliver data to a target system?
- Which solutions lack fresh generated documentation?
- Which route classes implement a given solution?
- Which systems are affected by a model change?
What It Is Not
The graph is not:
- A replacement for GitLab.
- A replacement for Pulsar.
- A secret store.
- A log store.
- A full business event archive.
- A replacement for reading fresh
mainin Git. The graph is derived from Git and runtime and must be rebuilt when repositories change, including changes made manually outside klok.dev. See Git Is The Truth. - The final source of identity or authorization.
It may store references to GitLab URLs, topic names, OpenSearch trace indexes, Vault paths, and Keycloak client IDs so users and agents can navigate safely.
How It Becomes Living Context
Design-time metadata comes from GUI actions. Build-time metadata comes from CI/CD scans of source code and generated documentation. Runtime metadata can report liveness and configuration. Operations-time metadata can connect logs, DLQ events, transactions, and health.
Important Node Types
TENANT.DOMAIN.SYSTEM.SOLUTION.INTEGRATION_PROJECT.LEG.TOPIC.DATAMODEL.REPO.FILE.DOCUMENT.SERVICE_INSTANCE.
Important Edge Types
TENANT --HAS_DOMAIN--> DOMAIN.SOLUTION --HAS_PROJECT--> INTEGRATION_PROJECT.INTEGRATION_PROJECT --HAS_LEG--> LEG.LEG --DEFINED_IN--> FILE.FILE --IN_REPO--> REPO.LEG --PUBLISHES_TO--> TOPIC.LEG --CONSUMES_FROM--> TOPIC.TOPIC --USES_DATAMODEL--> DATAMODEL.
How To Use It
Use the graph in klok.dev, Build → Context graph, before making changes. It helps you see impact and avoid duplicating existing work. Use it after CI/CD to verify that generated documentation and observed route relationships match the intended solution design.