06 Reviewing A Solution Document

Reviewing A Solution Document

The solution document is the design of a solution, written before any code and kept true to what is built for as long as the solution exists. It is the one document where the business, the architect and the developers agree on what is being built and why. This page explains how to read one and what each role checks before approving it.

Where It Is

Each solution has a folder in the organisation's integration-solutions repository in GitLab:

solutions/<SOLUTIONID>_<slug>/
    README.md              the solution document, what people read
    solution.meta.json     a short descriptor that klok.dev and the agents read
    changes/<iid>/         the plan of change request <iid>: the issues it needs

klok.dev lists the solutions under Build → Solutions and reads them from GitLab, so a solution added or changed directly in GitLab shows up there as well. A solution whose details do not fit in the document keeps them in a page next to it, which the document links to.

The registry's own README defines the sections. Two documents are the examples to compare with: KLK010, an integration between two systems, and KLK008, a shared platform service with every section filled in.

Section By Section

Section What it answers What the business checks What the architect and developers check
Header What exists and what is planned, the information domain, the first installation The status is honest: nothing is described as built that is not The status matches the code on main and what is deployed
1. Business context The problem, who the first installation is, what goes wrong without the solution It is the problem you described, in words the business recognises It is precise enough to design from
2. Scope What is in and what is out, and where the out-of-scope parts are tracked Nothing the business needs is out of scope without your agreement Each out-of-scope part has an issue or another owner
3. Systems Every system, its role and the interface it offers The systems and their owners are right The interfaces are confirmed by the system owners, or are open questions
4. Reuse The solutions and platform capabilities it builds on, and what each needs changed What is reused means what the need means Nothing that exists is built again
5. Datamodel The shared model, its class and types, and why it is neither system's format The business rules are there, and the meaning of the information is right The class is the narrowest that fits; every reader is known
6. Services by kind Every service: new project, new routes in an existing project, reused with a slight change, reused as is, client change The amount of work matches the expectations, and every changed service has an owner who knows Every repository is named; changes to other teams' services are agreed
7. Integration legs Every leg: route id, project, pattern, role and status The ids follow the naming rules, each leg has one pattern, unbuilt legs say planned
8. Flows How the legs interact, as diagrams You can follow each business flow from start to end Topics and purposes match on both sides of every flow
9. Service level requirements Freshness, availability, volume, recovery; agreed or assumed, and which They are what the business needs, and the assumed ones are marked as such The design can meet them
10. Security and tenant isolation Where the tenant comes from, who may read and write what Personal and sensitive information goes only where it should; sharing with another organisation is approved by its owner The topic decides the tenant, publishing stays in the own namespace, every grant across domains or tenants is one topic
11. Tactical decisions Every exception to the standard way, with its cost and the condition for removing it You accept the cost, and you know what would remove it Every exception is tagged [TACTICAL]; nothing deviates silently
12. Open questions One issue per question Questions addressed to the business are answered, or have an owner and a date Nothing is designed on a guess
13. Related documentation The projects' documentation and the platform pages it relies on The links work; route details are linked, not copied

Status And planned

The document describes what is built and deployed, and it says so when part of it is not:

  • The header's Status says in a sentence what exists and what is planned.
  • A leg that is not on main yet carries planned in the status column of the legs table.
  • When the leg is built and running, the merge request that brings it there removes the marking.

A solution document never describes an unbuilt part as if it existed. If you find one that does, it is a mistake to report, the same as a wrong number.

Tactical Decisions Are The Business's To Accept

A tactical decision is an agreed exception, for example a synchronous call where the standard is an event, or a nightly batch where the standard is one message at a time. Each one has a cost (more coupling, slower recovery, a rewrite later) and a condition that ends it ("when the vendor offers events"). The architect writes them; the business accepts them, because the business carries the cost. See Claim Check, Sync Over Async, And Other Tactics.

Open Questions

Every open question is an issue, worded so that it can be sent as it is to whoever can answer it: a system vendor, the business, another team. KLK010's open questions, for example, are three issues, one per counterpart. Answer in the issue; the architect brings the answer into the document.

Approving

The document is changed through a merge request, never directly on main, and the merge request is where it is reviewed:

  1. Read the merge request's changes in GitLab. The document is plain text with tables, readable without tools.
  2. Comment on what is wrong or unclear, line by line.
  3. Approve when the business sections are right. The merge request is merged when everyone who owns a part has approved it.

After Approval

Approval is not the end of the document. Every merge request that adds, changes or removes a leg updates it in the same piece of work, and klok solutions check compares the documents with the code. When the document and the code disagree, the code on main is what is built: the document is corrected, or an issue is filed when the code is the part that is wrong. A planned change starts as a change request, an issue in the registry that klok.dev shows on Build → Changes. Its design is a merge request that brings the document to the new state, with the legs it adds marked planned until they are built, so that nobody has to replay old change requests to know what the solution does now.

The checklist for the review is the Design Review Checklist.