02 Ecosystem Overview

Ecosystem Overview

The Klok ecosystem combines an admin GUI, Git-based project repositories, generated documentation, runtime services, and Kloker, an AI integration agent. Each part has a clear role.

Main Building Blocks

Building Block What It Represents Where You Work With It
Tenant A customer, organization, or legal boundary Manage → Tenant
Domain A business or information boundary inside a tenant Manage → Tenant, tab Domains
Environment Runtime scope such as dev, test, stage, or prod Deployment configuration and topic names
System An external or internal application, database, file source, API, or SaaS Build → Systems
Integration Solution A business-level integration capability with ownership, SLR, documentation, and route grouping Build → Solutions
Information Model / Data Model A versioned data contract used by routes and topics Build → Datamodels
Integration Project A Git repository containing route legs and project metadata Build → Integration projects
Route Leg A runnable onramp, processing route, offramp, custom route, or adapter Integration project source code and Build → Context graph
Topic A Pulsar channel carrying CloudEvents with a data model Run → Broker and Build → Context graph
Kloker AI-assisted analysis, tasks, change planning, the beads it builds, and saved prompts Ask Kloker and Manage → Kloker
Integration Context Graph Queryable registry/cache of relationships between systems, solutions, data models, routes, topics, files, repos, and documents Build → Context graph

How The Pieces Work Together

The admin GUI is not just a CRUD tool. It is the place where the integration landscape is described in a structured way so that project generation, documentation, access control, context ingestion, monitoring, and Kloker-assisted work can all use the same concepts.

Sources Of Truth

Klok deliberately separates durable truth from cached convenience:

  • GitLab root groups and repositories are the source of truth for tenants, code, templates, and generated project documentation.
  • Keycloak is the source of truth for identity, groups, roles, and runtime clients.
  • Vault is the source of truth for secrets.
  • Pulsar carries topics, namespaces and subscriptions; the grants it enforces are described in Git, in each tenant's Pulsar file in klok/environment/klok-environment-setup, and applied by a person with Ansible. klok.dev shows the broker live and proposes changes as merge requests to those files.
  • OpenSearch is the source of truth for logs, audit, runtime observability, and ODL-style operational data.
  • The admin GUI database caches metadata and workflow status so the UI is fast and coherent.
  • The Integration Context Graph is a queryable registry/cache over published and observed integration reality. It is not a replacement for GitLab, Pulsar, Vault, Keycloak, or OpenSearch.

A central design principle follows from this: everything that can be done through the admin GUI must also be possible by creating or changing repositories in Git directly, and every cache in the GUI, the context graph, and the documentation flows must be refreshed when Git changes manually. See Git Is The Truth: Everything Must Be Possible By Hand.

Typical Lifecycle

  1. A business need is described as an Integration Solution.
  2. Existing systems, data models, topics, and projects are checked for reuse.
  3. Missing information models are created or versioned.
  4. An integration project is created from the standard template.
  5. Route legs are implemented with Klok framework patterns.
  6. CI/CD builds the service and its image, checks its broker topics, generates documentation, and publishes context snapshots. The tests run in the project's own build (./gradlew build); the integration template's pipeline does not run them yet (build-ci-templates#19).
  7. Runtime logs, traces, failure events, and health signals are monitored.
  8. A change request in the solution registry keeps the questions, design, issues and merge requests of a change traceable, in GitLab.

The same lifecycle, step by step and with who does what, is From Business Need To Running Integration.