Skip to main content
A build returns a Solution, and writes the same thing to <output>/.kapso/solution.json every time it returns: finished, paused for you, or out of budget. From any process, later or elsewhere:
Before the build has returned there is no solution yet; open() says so and names kapso watch.

What the Solution holds

explain() renders these as a block; diff() is git diff from the seed to the delivered commit, empty when nothing succeeded.
A build on a harness adds two rows before the feedback: Harness: with the name, version and hash, and Verified: with the verdict and its summary. A build whose sessions failed adds Sessions failed: after the experiments line, each kind with its count and the error’s first line (implementation on codex ×2 (Quota exceeded …)).

Three ways a build ends

  • The objective was met. goal_achieved is true, stopped_reason is goal_achieved. Deploy it, or learn from it.
  • The budget ran out. stopped_reason is max_iterations or budget_exhausted; branch is the best candidate so far and score its measurement. Resume with a bigger budget, or change the target. See Resume and budgets.
  • The campaign is waiting on you. stopped_reason is waiting_for_user and requests says what for. Answer through the inbox; the campaign continues the session that asked.
When branch is None, no candidate produced a valid measurement; the experiment branches are still in the directory, and kapso trace campaign shows what each one did.

The search, branch by branch

Every experiment stays checked in; the delivered one is checked out. Read the record walks the trace section by section.

What next

Resume and budgets

Give a stopped build more

Deploy

From a Solution to running software

Learn

What a finished campaign teaches

Python API

Every field, typed
Related pages: Resume and budgets · Deploy · Learn · Python API Kapso is an open-source framework by Leeroo that builds software toward measurable goals through experiment campaigns. Source code: github.com/Leeroo-AI/kapso · Install: pip install leeroo-kapso · Every page as plain text: llms.txt.