05 You The Automation And Kloker

You, The Automation And Kloker

Three kinds of work happen around klok.dev. Automation does the same thing every time it gets the same input: pipelines, synchronisations and timers, with no AI in them. Kloker, Klok's AI, reads the context, answers, proposes and drafts. And you decide: you approve, merge, answer and close. Nothing in between is magic. Every step leaves a trace you can open, a pipeline, a task with its events, a merge request, an issue or a comment, and no step that changes what runs is taken without a person.

The rule behind it is short: AI proposes, a person approves, the pipeline verifies. What cannot be undone, the AI never does on its own, and everything can also be done by hand.

A Change, Step By Step

Every arrow into GitLab from Kloker ends in a merge request, labelled klok-integration-agent, that a person merges. Every arrow from the automation is a pipeline or a job you can open in GitLab. See Changes for the same flow on its pages.

Three Kinds Of Work

Question Automation Kloker You
What it is Code that does the same thing for the same input Klok's AI model, reading the context it is given The person with the role
What it does Builds, tests, releases, updates the catalog and the deploy manifests, publishes documentation, refreshes klok.dev's copies, flags stale runs Answers questions, plans changes, splits work into beads, writes code, analyses failures, fills in fields Writes the need, answers questions, reviews, approves, merges, closes
What it never does Merge a merge request Merge, deploy, touch secrets or Vault, push to a default branch, do anything that cannot be undone —
Where you see it Pipelines in GitLab, Repositories, Process runs Kloker → Tasks with every event, its merge requests and comments Your merges, approvals and comments

What Runs On Its Own

What Started by What it does
Merge request pipeline Every merge request Builds; checks a datamodel's schema and its compatibility; builds the documentation; validates the solution registry. It publishes nothing
Pipeline on main A merge Pushes the image; checks topics and the solution, warning by default; updates the deploy manifest; publishes the documentation payload
Release and catalog update A library's or a datamodel's main Publishes the release and records its version in the dependency catalog
Documentation Every build's documentation payload KlokDocumentationEgress builds the documentation project; klok.dev updates the context graph and the REST API changelog
klok.dev's synchronisations Opening a page, or a button Reads Git again: solutions, datamodels, projects, systems, change requests, beads
Stale run detector Every minute Marks a silent run stale after ten minutes and fails it after two hours
Alert evaluator Every minute Checks the alert rules and the file flows' expectations
Argo CD A deploy manifest commit Rolls out what the manifest names
Topic requests after a build A build on main reports its routes Asks the owners for the topics and grants the routes need and lack; a datamodel's missing generic topic klok.dev declares itself
Ensure (a tenant's setup) A platform admin, by button Creates what the tenant's setup lacks; it never removes anything

What Kloker Does, And What Stops It

Where What Kloker produces What keeps it in bounds
Ask Kloker An answer with links (Fast uses Kloker-nothink, Expert uses Kloker) It only reads
Ask Kloker beside a page A proposed change or field values, as a card You apply it part by part; it never saves, publishes, sends or merges
Plan with Kloker The design, as a merge request in the registry It stops and asks when a fact is missing; every item stays planned until a person approves it
Break into beads Small, ordered beads as a merge request, or the verdict that a developer should build it The beads are checked before they are proposed; you merge them
Implement The code, as a merge request It may change only the files the bead names, has 90 minutes and two build attempts, and opens a draft marked build-failed if the build never passes
Analyse upgrade A proposal for moving a project to a newer datamodel release, into your draft No proposal for a breaking release; you review it like your own change
Logs → Analyses The analysis of a failed transaction, and a mail The facts are gathered by code, not by the AI; at most twenty analyses an hour
File flows (Describe it to Kloker, Ask Kloker why it was rejected) Field values in your draft of a flow The server checks every value; Kloker never sees a secret, never saves, tests or runs a flow
Business cases (Let Kloker count the work, Describe it to Kloker, Ask Kloker) The counted work and the values your words give, into your unsaved draft of the case; an assessment It does not guess what the business saves, and asks instead; it never sets a price, the overheads or the hours per item; you keep or undo it, then save
Kloker → Background Pipeline fixes, merge conflict fixes, and bead implementations it picks up The tenant's policy, kloker/policy.json in the solution registry: by default it asks before it pushes a repair and picks up no beads; a tenant that turns bead pickup on also sets its days, hours and limits
Generated documentation The AI sections of the documentation pages The facts sections and the agent skills are written by code, without a model

Some steps that start from a Kloker button use no AI at all: Create N issues writes the issues by rule, and Check build compiles and tests your draft.

Where Kloker Stops And Asks You

  • A question in a task. A task that lacks a fact stops with Needs answer under Kloker → Tasks. You answer on the task's page, and the answer is also written on the change request, where Kloker reads it when it goes on.
  • A question to a person. Ask a question on a change request writes a question issue to the person you name; they answer it in GitLab.
  • A repair waiting for your yes. With the default policy, Kloker → Background lists the fixes Kloker could make under Waiting for you; it pushes a fix only when you say so.
  • A gate on every capability. Each thing Kloker may do has a gate (reviewed in klok.dev, triaged by a person, through a merge request, or behind a confirmation dialog) and a minimum role; Kloker → Skills lists them. In klok.dev, starting, answering or cancelling a task that writes needs a Domain Admin, a Tenant Admin or platform staff; the repair tasks on a merge request (Let Kloker fix it) can be run by whoever may change the repository.

What Kloker Never Does

  • Merge a merge request, or push to a default branch: it works on agent/ and klok-dev/ branches only.
  • Deploy, read or write secrets, write Vault, change Keycloak, run Ansible or delete anything remote.
  • Cancel a running job without a person's yes.
  • Work as anyone but the person who asked: its tasks act in GitLab with that person's rights, for that task only.

From Assistant To Agent

Klok's AI strategy places every use of AI on a scale of execution modes, from no AI to a background agent:

Mode What it means In klok.dev
E0 No AI Pipelines, Ensure, synchronisations, Create N issues, Check build
E1 One AI call in a flow Transcribing a system's PDF, project images
E2 Fixed steps with AI in one of them Generated documentation, Logs → Analyses
E3 An interactive assistant Ask Kloker, Kloker beside a page, the file flow and business case fills
E4 An agent with tools Implement, Let Kloker fix it, Analyse upgrade
E5 A background agent Kloker → Background, under the tenant's policy

The higher the mode, the more the AI does on its own, and the more the gates above matter.

Read More