Lingtai
Docs
GitHub

Documentation

Concepts

How one attempt goes

Lingtai works a ticket in an attempt: ten steps, always in the same order. This chapter follows one attempt in the tutorial's Chapter Garden project, from claim to the end.

One ticket, start to finish#

You open a story ticket in Chapter Garden. Lingtai takes it from the queue and runs an attempt: ten steps, always in the same order. An agent writes the change, the recipe's checks run, the AI review reads it, and then the attempt stops where the recipe says a person decides.

One Chapter Garden ticket goes through the ten steps. A red build or a refusing review returns to implement in the same worktree. A person at the proposed wait either continues the saved work or starts over from base.

Open the diagram at full size.

The ten steps and their order never change. What runs at each step is yours to name in the recipe, and a step you say nothing about is still drawn, as empty.

StepWhat it is for
claimwhich tickets, and in what order
admitthe requirement, and the worktree it is built in
preparedgetting the worktree ready before the agent starts
designa document, or none; either is an answer
implementan agent, in that worktree
buildwhat must pass before review
reviewreads it cold and hands in findings; it does not decide
proposedthe only step that decides what is next
mergethe branch in, verify, push
endruns on every outcome

A card stops at proposed, the only step that decides. It stops there when the recipe names a person at it, or when a limit or a question needs one. When the agent asked questions with choices, the board offers Answer and continue the step; a question in prose has no answer button, only editing the ticket, starting a new attempt or closing. A question a person raised themselves is answered with Answer the question. When it fails has what a refusal looks like and what to do at a wait.

Two ways to go back#

A ticket can go round again two ways, and the difference is what matters: does the next try continue the saved branch, or cut a new one from the base branch?

Continues the saved branchStarts over from the base branch
LingtaiA fix round: when build goes red or review refuses, the agent works again in the same worktree, shown what refused it. The recipe's runtime.limits.attempt.refusalFixes caps it.A restart: the ticket is released and claimed again as a new attempt. The recipe's runtime.limits.ticket.newAttempts caps it.
YouAt the wait you choose Approve and continue or Fix the refusal on the saved work. The saved branch carries on.At the wait you choose Start a new attempt from base or Add to the ticket and start a new attempt.
  • A fix round is not a new attempt. It stays inside the attempt you are in.
  • Starting a new attempt from base spends no restart. The board says it plainly: This neither spends nor refunds an automatic restart.

The home page marks each problem Lingtai got past on its own as Handled for you; when it fails says how. What an attempt can cost is in checks and spend.

How a ticket ends#

  • Landed. The change merged into the branch the project lands on. In a solo project that is main and the ticket is closed; in a team project it is your own branch, and the ticket stays open until its PR merges (team).
  • Closed. A person chose Close the ticket at a wait, and no further attempt runs.
  • Still waiting. Nothing is lost while it waits. It can stay as long as you like, and the daemon takes other work meanwhile.

Next#

The board is where you watch an attempt and choose at a wait.

Rendered from doc/concepts.md at build time. The file is the document; this page is a projection of it, and never a copy — which is why the fix for anything wrong on it is a pull request against that file.