How The Build Pages Fit Together
The seven Build pages are one workflow seen from seven places. A need becomes a change request; the change is designed into a solution; the solution's legs are built in integration projects, against datamodels, between systems; and the context graph and the business cases show what it all adds up to. Every step but the business cases lives in Git, and the pages are views and editors of the same repositories.
What Each Page Holds
| Page | Holds | Lives in Git as | You use it to |
|---|---|---|---|
| Changes | Change requests: a need in business words, its questions, design and implementation | Issues in <tenant>/integration-solutions, labelled change-request, solution:<ID> or solution:new, and change:* |
Ask for a change and follow it from need to merged code |
| Solutions | One row per business flow: its id, document and legs | The folder solutions/<ID>_<slug>/ in <tenant>/integration-solutions |
Find a solution, read its design, reserve the id of a new one |
| Systems | The source and target systems | systems/<slug>/ in the same registry, and the group <tenant>/datamodel/system/<slug> for their datamodels |
Describe a system before anything is built against it |
| Datamodels | The contracts between legs | One repository per model; its XSD generates Java, Python and TypeScript classes, and each release is recorded in the dependency catalog | Read or change a contract, see its topics and who uses it |
| Integration projects | The repositories that build the legs | <tenant>/integration/<group>/<repository>, created from the integration template |
Create a project; see its routes, build, documentation and broker setup |
| Context graph | Systems, solutions, projects, routes, topics and datamodels as one graph | klok.dev's database, built from every build's documentation payload | See what a change would reach before you make it |
| Business cases | What an integration costs to build and run, and what it saves, with every version | Not in Git: saved in klok.dev's database; why a solution exists goes into its document | Price a change and decide whether it is worth it, with Kloker counting the work |
From A Need To The Graph
Say the finance domain wants supplier invoices from Billo checked against the purchase order before they are booked in Fortnox, and no solution covers that yet. This is how it moves through the Build pages:
- Changes. Someone writes a change request in the business's words: what should change and why. It is labelled
solution:new, since no solution owns it yet, and its status follows from GitLab as the work goes on: Proposed, Planning, Design in review, Designed, Implementing, Ready to close, Closed. - Solutions. Reserve a solution for it on the change request, or New solution, starts a draft of the
solution's folder. When its merge request opens, the id is reserved (the next free one, for example
KLK019), and the change request's label becomessolution:KLK019. - Systems and Datamodels. The design names the systems (Billo and Fortnox, each documented under Systems) and the datamodels that carry the information between them. A model that is missing gets its own repository from the datamodel template, a change to a model is its own merge request, and a model is released before the code that uses it.
- The design. A merge request into the registry brings the solution document to the new steady state: the legs, each with its route id, pattern and topics with their purpose, and the datamodels. A person reviews it before any code is written.
- Integration projects. The legs are built in projects made from the integration template, one change at a time;
small, self-contained pieces can be built by Kloker and reviewed like any other merge request. A new leg also needs its
topics and access on the broker: the project's Broker setup lists them, and after each build on
mainklok.dev asks their owners for what is missing. A new project's deploy manifest arrives as a merge request that klok.dev opens when it creates the project. - Context graph. Every build on
mainreports what the project contains, so the graph shows the new legs, their topics and datamodels, and Solutions checks that the document names the legs that are built. - Business cases. A case can be started from the change request at any point; it is most useful before the work starts, when the business decides whether the need is worth it. A solution's Business value sums its cases, and why the solution exists is written into its document.
From Business Need To Running Integration follows the same path from the business's side, with what each role decides.
What Happens If Someone Does It In GitLab
Every Build page reads Git again, so work done directly in GitLab shows up:
| Page | Notices a change made in GitLab |
|---|---|
| Changes | On every read: status, labels, questions and linked merge requests are worked out from GitLab |
| Solutions | When the list opens and the last check is more than five minutes old, or at once with Refresh from GitLab; a folder in an open merge request shows as In review |
| Integration projects | On every page load, or with Refresh |
| Datamodels | When the list opens and the last reading is more than five minutes old (a repository whose latest commit has not moved is skipped), or at once with Sync now |
| Systems | As soon as the system's group exists under <tenant>/datamodel/system; Refresh → Preview changes says what a hand-made system still lacks |
| Context graph | With the next build on main of each project |
| Business cases | Not from GitLab: a case lives in klok.dev's database. It reads the change request and the tenant's solutions when you open it |
What klok.dev holds about Git is a copy with a way back to main, never the only copy.