Changes
A change to the integration landscape (a new receiver, an alert, a field that payroll needs) starts as a need and ends as merged code in a few projects. On the way it is designed, split into work and built, often by several people and Kloker. Changes follows each change from the request to merged work and shows where it stands, without keeping a record of its own: a change request is an issue in GitLab, and everything that answers or carries it out is linked to that issue. It is also where Kloker plans, asks, splits and implements, and where it stops and leaves the decision to a person.
- In the menu: Build → Changes (
/changes), with the tabs Requests and Work (/changes/work); one change request at/changes/requests/<iid> - For: architects and product owners request and follow a change; developers build it; a Tenant Admin or a Domain Admin starts Kloker's planning and building and closes a change request
- Reads: GitLab, on every read: the issues of
<tenant>/integration-solutionsand everything linked to them, and.beads/on each project's default branch; Kloker's tasks from the agent service, and the last progress each bead reported, from klok.dev's database
What You See
Requests counts the open change requests by where they stand, and lists them with their kind, solution, status, how many implementation issues are done and how many merge requests are merged. The status is worked out from GitLab on every read, in this order:
| Status | When |
|---|---|
| Closed | The issue is closed |
| Implementing | An implementation issue linked to it is open |
| Ready to close | Every implementation issue is closed |
| Design in review | A design merge request is open |
| Designed | A design merge request is merged |
| Planning | Kloker is planning it |
| Proposed | None of the above |
Waiting for answers is shown beside the status while a question issue is open or a Kloker task waits for an answer.
A change request's page says where it stands in one line, Request · Design · Issues · Build · Close, with the current stage named by its status, and has one primary button: the next step. Below it are the request, its Questions, its Design with the plan's items, the Implementation issues with their merge requests, the Beads, every Kloker task started for it, and its business cases with Start a business case. ⋮ holds Refresh, Open in GitLab and Close.
Work lists every bead of every project you may read, as a list or a board. An open bead is Ready when every bead it depends on is done and Waiting until then; In progress and In review come from reports; Done when its merge request is merged.
Walkthrough: From A Need To A Design
-
Choose New change request, or Request a change on a solution's page. Say what should change, the kind (add, change or remove a system, or other), the system, the solution, why and any constraints. Create change request writes the issue in the registry and opens its page. A change that needs a new solution is labelled
solution:new, and its page offers Reserve a solution for it instead of planning. -
With a solution named, Let Kloker plan it now is ticked, and Kloker starts planning at once; on the page it is Plan with Kloker. Kloker reads the issue, its comments and its questions, and delivers the design as one merge request in the registry: the solution document brought to its new state, with every new leg marked
planned, and the plan of the change,changes/<iid>/ISSUE_MANIFEST.json. The page does not follow the task by itself: when Kloker is done, ⋮ → Refresh shows Design in review (pages that refresh from pushed updates are klok-integration-agent#80). -
When Kloker lacks a fact it stops and asks. The change request says Waiting for answers, and the task waits under Kloker → Tasks with its question and suggested answers. Answer there; klok.dev also writes your answer on the change request as your comment, and Kloker plans on. To ask a person instead, Ask a question writes a
questionissue assigned to them. -
Review the design opens the merge request in GitLab, where the solution document's diff is the design. Under Design, tick Build this on the items you want built and Save: klok.dev commits the approvals onto the design's branch. A person merges the design; merging it is the approval.
Read Kloker's plan as a first draft. Today it can plan a datamodel that was never released as "reused as is" (klok-integration-agent#78), and the design merge request's title repeats "plan" (klok-integration-agent#77).
Walkthrough: From Issues To Merged Code
-
Once approved items are on
main, Create N issues makes one implementation issue per approved item, in the project that does the work, linked to the change request. No model is involved: the issues are written by rule from the plan, and running it again makes nothing twice. -
The Implementation list says who builds each issue: Kloker, Developer or Not decided. Break into beads with Kloker in a row's ⋮ menu lets Kloker split the issue into small beads, each one thing in one repository with nothing left to decide, delivered as a merge request in the project, or say why a developer should build it. Merge the beads merge request to make the beads available. Hand to a developer and Work on it in your harness are in the same menu.
-
On Work, Implement on a Ready bead lets Kloker build it: the bead is reported in progress at once, a coding agent changes only the files the bead names inside Kloker's sandbox, the build runs, and Kloker opens a merge request that sets the bead to done. If the build never passes, the merge request is a draft labelled
build-failed; after two failed attempts the issue becomes a developer's. -
A developer builds the rest in their own harness:
klok bead claim <id>so that Kloker leaves the bead alone, then the merge request, thenklok bead done <id> --merge-request <url>. Today this is the way for Klok's Java projects: Kloker's sandbox cannot yet read the private package registry, so it cannot build them (klok-integration-agent#2). The bead creation also leaves the build file out of a bead's scope when the bead needs a new dependency (klok-integration-agent#79). -
A person reviews and merges each implementation merge request. A bead is done when its merge request is merged, and the change request reads Ready to close when every implementation issue is closed.
-
Bring the solution document to the built state in a merge request to the registry, every leg the change added named as built, then choose Close. The dialog says whether the document names the legs that are built on
main, and the closing comment records it with the registry's commit. Today that check reads klok.dev's copy of the registry as it was when someone last opened Build → Solutions: open that list first (frontend-klok-dev#156).
What Happens In Git
| In klok.dev | What it writes and where | Who decides | By hand |
|---|---|---|---|
| New change request | An issue in <tenant>/integration-solutions labelled change-request, solution:<KEY> (or solution:new) and change:<kind> |
— | The same issue and labels in GitLab |
| Plan with Kloker | A status comment on the change request; one design merge request in the registry from an agent/ branch, titled docs(<KEY>): plan …, labelled klok-integration-agent, with the solution document and changes/<iid>/ISSUE_MANIFEST.json |
An architect reviews; a person merges | klok agent plan --change <registry>#<iid> |
| Answering Kloker's question | Your answer as your own comment on the change request | You | klok agent answer <task id> |
| Ask a question | A question issue in the registry, assigned to the person and linked to the change request |
The person answers and closes it | The same issue in GitLab |
| Build this and Save | A commit docs(<KEY>): approve the plan of <registry>#<iid> on the design's branch, or on a klok-dev/approve-… branch with a merge request of its own once the design is merged |
Merging it is the approval | "status": "approved" in the manifest, in a merge request |
| Create N issues | One issue per approved item in its project, labelled solution:<KEY>, with a footer naming the change request and a related-issue link |
— | The same issues, with the footer line - Change request: `<registry>#<iid>` |
| Break into beads with Kloker | A merge request docs(beads): split #<iid> into <n> beads with .beads/<id>.json files, and the issue labelled kloker; or the label developer and a comment |
A person merges the beads | .beads/<id>.json files (klok-bead-v1) in a merge request |
| Hand to a developer | The label developer and your reason as a comment |
You | The label and a comment |
| Implement | A merge request <type>: <bead title> from an agent/ branch, labelled klok-integration-agent, that closes or refers to the issue and sets the bead to done |
A person reviews and merges | klok bead claim <id>, your merge request, klok bead done <id> --merge-request <url> |
| Close | A closing comment with the legs check and the registry's commit; the issue closed | A Tenant Admin or Domain Admin | Comment and close the issue in GitLab |
Requesting a change, asking a question and adding an issue need a developer role in the tenant or a domain. Starting
Kloker's planning, issue creation, bead creation or implementation, and closing, need a Tenant Admin or Domain Admin;
Domain Developers are refused those today
(frontend-klok-dev#107). Opening and closing a
change request from klok-cli has no command yet
(klok-integration-agent#63). Every comment
klok.dev or Kloker writes on its own ends with <!-- klok:status -->, so that Kloker reading the thread skips it. See
What klok.dev Does In Git.
Who Does What
| Automation | Kloker | You |
|---|---|---|
| klok.dev works out every status from GitLab on every read and notes a bead's new status on its issue. Create N issues writes the issues by rule, without a model. Every merge request's pipeline builds it | Plans the change into a design merge request and stops to ask when a fact is missing; splits an issue into beads or says why a developer should build it; implements a bead in its sandbox as a merge request; with the tenant's policy, picks up ready beads by itself (Kloker → Background). It never merges and never pushes to main |
Write the need, answer the questions, approve the plan's items, merge every merge request, build what Kloker should not, and close |
You, The Automation And Kloker draws the same flow step by step.
How It Connects
A change starts from a solution and changes its document (Solutions). Its issues, beads and code live in the projects that do the work (Integration Projects), and it may need a new datamodel release (Datamodels) or topics and grants (Broker). Every step Kloker takes is a task under Kloker, and Home shows a task that waits for your answer. A change request's Start a business case puts a price and a value on it (Business Cases), which prepares the decision to make the change at all.
Read More
- klok.dev's reference: Changes and work and the decision Change requests are GitLab issues
- The agent's side: Change requests and Bead implementation
- From Requirement To Design and From Need To Running Integration