Skip to content

A walkthrough: one change, start to finish

This page follows one piece of work through codeably as a story: the conversation, the tickets it files, the series master that leads them, the runs, the questions on the way, and the final merge. Each step links to the page that has the details.

The example is made up. A project called shop has two repositories, shop-api and shop-web, and the project keeps the defaults: review: end and requires_start: on_green_push. You want the admin area to export orders as CSV.

1. You describe the change

On the home page you pick shop and write: "Admins need to export orders as CSV, filtered by date. Later we also want a nightly export to the file share." The message opens a Work it out conversation.

The design partner reads the code before it answers. It finds the orders query in shop-api and the admin pages in shop-web, and asks what it can't find out by itself, for example whether the export includes cancelled orders. You answer in the conversation.

2. It proposes tickets with specs

Once you agree on the shape, it proposes a list of three tickets in the order they must merge:

Ticket Repository Requires
#101 Orders export endpoint shop-api nothing
#102 Export button in the admin area shop-web #101
#103 Nightly export job shop-api #101

Each ticket carries its own specs: a goal, steps and a Done when list. Mechanical checks run on the draft, such as whether every file a spec cites exists, and their findings show on the Proposal tab. The design partner can also brief a helper to review a spec against the code before it offers the draft.

Nothing is filed yet. Under the conversation you see what the draft would file and two buttons, Create 3 tickets and Keep chatting. If you say what's off, the draft is revised and the offer comes back once it is offered again. A proposal doesn't expire. Details: A list of tickets.

3. Filing

Create 3 tickets starts a file run. For each ticket it creates the tracker item, stores the approved specs with the ticket in the database, writes them to the ticket's branch agent-smith/<ticket> as their record, and links what it requires, on the tracker too. From then on the stored specs are what the ticket's runs build. To change one, you say so in the ticket's conversation. See Ticket dependencies.

The filing opens a series run for the three tickets. It reports in the conversation you filed from, which is now the series chat, and the series has its own page under Series in the sidebar.

4. The series master starts the first wave

A series master leads every ticket of the series. It is not a process that runs all the time: it works in short beats when something happens on its tickets, such as a run ending, a CI verdict or a message from you.

Under review: end the series works on its own branch, agent-smith/series/<id>, in every repository it touches. A ticket starts from that branch once the tickets it requires have landed on it.

So the first wave is #101 alone. #102 and #103 wait, and the ticket list shows them under Waits on another. Once #101 has landed on the series branch, the master starts both of them, and they run side by side as far as sandbox capacity allows. Every start passes the project's start gate; see Stacked start for how requires_start decides this when there is no series branch.

5. A run builds the ticket

101's run gets one workspace: on Kubernetes one pod, on Docker one set of volumes, with a container per toolchain image over a shared /work (The run's workspace). The run's master works the specs one at a time. For each one it reads the code the spec touches, has a sub-agent make the change, runs the repository's own build and tests, and reports on every Done when line. Then it opens the pull request against the series branch. Lifecycle of a run has the steps.

6. CI decides what happens next

codeably reads the pull request's CI and records it. The master is woken by the verdict:

  • Green. Under review: end the master merges #101 into the series branch. No person is asked at this point, because you review the whole series at the end.
  • Red. The master reads which checks failed, with an excerpt of the evidence. It retries the run when the failure wasn't the work's fault, or tells the ticket what failed, and the ticket's run fixes it on the same pull request. Meanwhile the ticket shows under Your move as CI failed, naming the checks, so you can see it too.

Nothing starts a fix run by itself; it is the master's decision. CI loop and merge policy has the details, including branch protection and required builds that never started.

7. A question on the way

103's run reaches a point the specs don't settle: how long exported files are kept on the share. It asks with ask_human. Because the ticket is in a series, the question goes to the series master, not to you. The run parks and holds no compute while it waits.

The master answers from what it knows when it can, with tell_ticket, and the run resumes. Here it can't, so it asks you in the series chat in its own words, names #103, offers choices as quick-reply buttons and highlights the one it recommends: Keep 30 days. You click a choice or write an answer, and the master passes it on to the run.

If nobody answers within dialogue.question_default_minutes (120 by default), the series takes the recommendation and says so in the chat. That only happens when dialogue.question_default_enabled is on, which is the default. Merge questions, the budget question, a run's questions about its environment (a missing credential, an unreachable service) and questions the master marks as ones only a person can carry out wait for a person. Questions has the rules.

8. What needs you

While the series runs, you don't have to watch it. What waits on a person shows up in a few places:

  • Your move in the sidebar and on the home page lists the tickets that need you.
  • On the series page, Needs you above the chat input has one line per ticket that waits on a person, with its link.
  • An agent connected over MCP reads the same list with needs_me.

Everything else reads "Nothing for you to do". A conflict on a series ticket, for example, is the master's job: it brings the branch up to date. The operator playbook lists everything that can land on you and what to do about it.

9. When you look: the review modes

review decides when a person looks at the work. The example uses the default:

review What happens
end (default) Tickets merge into the series branch on green. You review one final pull request per repository.
each No series branch. Each ticket's pull request goes into the default branch, and the master asks you before each merge.
none No series branch. The master merges each ticket into the default branch on green, under the host's branch protection.

A merge question is never answered by default. Nothing merges into the default branch because nobody replied. See When a person looks.

10. The final merge

When #101, #102 and #103 have all landed on the series branch, the series opens one pull request per repository from the series branch into the default branch. Here that is one for shop-api and one for shop-web. Each description has a section per ticket, covering what was built, what the master did and why, and what it could not verify.

A series-verify run then checks the specs' done criteria against the merged result on the series branch. A new failure becomes one follow-up ticket in the same series. A criterion the check's environment can't check is reported as not checkable here and is not a failure.

After the check passes, the series asks once, as the last entry in the chat: The series is ready. Shall I merge it, or do you want to look at the pull request first? You answer Merge it and the master merges, or you review and merge the pull requests on the host yourself.

11. Done

The series is done once every final pull request has merged. The final merge removes the series branch, and the head of the conversation reads series done. If the project is bound to a deployment template, a deploy can follow from there.

Next