Skip to content

Build and verify

A build is what Khala produces from one published spec version. It runs six steps, shown as a timeline with live logs:

  1. Plan. Read the spec and resolve the stack against the catalog.
  2. Generate. Write the agent’s code.
  3. Wire tools. Connect the MCP servers and skills of the spec. A build fails here if the spec uses a blocked or draft server.
  4. Prepare tests.
  5. Run evals.
  6. Package.

Every build keeps its steps, its logs and its resolved stack: one entry per category, saying whether the choice came from the team or from the recommended default. Builds are never overwritten; history is append-only.

How the code gets written and checked is described in How the builder works.

A finished build in the Khala panel, with its steps, logs, resolved stack and eval resultA finished build in the Khala panel, with its steps, logs, resolved stack and eval result
A finished build: its steps, its log, the stack resolved against the catalog and the result of its evals.

An eval run executes the agent’s tests against a build. It records, per test, the input, the expected result, the actual result, whether it passed and why. It compares each result with the previous build and marks it as the same, regressed, fixed or new. Regressions are highlighted.

KPIs whose source is evals are measured in the same run and shown against their targets.

Each build gets a score in four dimensions.

Dimension What it measures
Business The share of business tests that passed
Security The share of security tests that passed
Robustness The share of robustness tests that passed
Construction Whether the build follows your standards and architecture

Findings take points off the weighted score: a failed critical test, a failed security or robustness test, a rule or limit that no test covers. Each finding has a severity: critical, high, medium or low.

The weight and the minimum of each dimension, the penalty per finding and whether a critical finding blocks promotion are set by the risk policy template of the agent’s risk level.