How it works

From a spec to the last merged pull request

A feature starts as a spec, the document that says what it is for and what belongs to it. It is worked as tickets, and a ticket is one agent session and one pull request. This page follows one feature through Trellisly in five steps, and says at each step who acts.

Four take part in the loop

A human A member of the workspace, the team with its repositories and its plan. Humans decide what is built, and they review what comes back. An agent in your own session A Claude Code session that a person starts. It reaches the plan through the MCP server of Trellisly, and it plans a feature or works a ticket. A runner A program that takes tickets and runs one agent session for each, with no human starting it. It runs on a machine of your own, in your GitHub Actions or on hosts that Trellisly operates. Trellisly Keeps the plan and follows the pull requests on GitHub. It computes what can start, composes what an agent receives and sees every merge.

The loop, in five steps

The feature of this example is a small command line that converts a length, such as 5 km to miles. Its spec described four pieces of work, and they became the four tickets of the plan that is drawn at every step.

  1. Step 1The drafts are approved, and A is on the frontier
  2. Step 2A is submitted, and its result carries a deviation
  3. Step 3A is done, and B and C join the frontier
  4. Step 4B and C are worked at the same time
  5. Step 5D joins the frontier only when both are merged

Step 1 of 5

The drafts are approved, and A is on the frontier

A planning agent drafted these four tickets from one spec, the document that describes a feature, and a human approved them in one action. An arrow runs from a blocker to the ticket that waits for it: A blocks B and C, and B and C block D. A has no blocker, so it is on the frontier: the tickets an agent can take right now.

Specs and drafts

Ticket A Unit table

OpenFrontier

Ticket B Quantity parsing

Open

Blocked by: Unit table.

Ticket C Quantity formatting

Open

Blocked by: Unit table.

Ticket D Command line

Open

Blocked by: Quantity parsing, Quantity formatting.

Who acts

A human Writes the spec: the goal of the feature, why it matters and what belongs to it. Approves the drafts of the spec, all of them in one action. An agent in your own session Drafts the tickets from the spec. Each draft names the tickets it waits for, what it will produce for the tickets that wait for it, and the paths it expects to change. This planning agent is always a session of your own. A draft cannot be claimed and is not on the frontier until a human approves it. Trellisly Computes the frontier from the plan, every time it is asked for. Nobody keeps that list.

Step 2 of 5

A is submitted, and its result carries a deviation

An agent claimed A, which gave that one session the right to work it, worked it on a branch of its own and submitted it: it opened a pull request and wrote the result. A ticket declares what it produces for the tickets that wait for it, its contract, and the result sets that against what shipped. The contract of A declared the units as an array, and they shipped as a record keyed by symbol: the result says so, as a deviation. Nothing is on the frontier until the pull request is merged.

Contract, result and work order

Ticket A Unit table

Submitted

Result
Deviation: the units are a record keyed by symbol, not the array the contract declared.

Ticket B Quantity parsing

Open

Blocked by: Unit table.

Ticket C Quantity formatting

Open

Blocked by: Unit table.

Ticket D Command line

Open

Blocked by: Quantity parsing, Quantity formatting.

Who acts

An agent in your own session Asks Trellisly for the frontier and claims A. It works on a branch of its own, opens the pull request and writes the result. Or a runner Claims A by itself and runs one session on it, with no human starting it. Before it submits, it runs the verify commands that the ticket names: when one of them fails, nothing is submitted. Trellisly Gives the claim to one session and to no other. Once the ticket is submitted, it reads from GitHub whether the pull request can merge. A human Reads the result while the ticket is submitted. The agent judged every check of the ticket, an acceptance criterion in plain language, and a human confirms or disputes that judgement. A disputed check is shown on the ticket, and it never decides done.

Step 3 of 5

A is done, and B and C join the frontier

The pull request of A is merged. Trellisly sees the merge on GitHub, and A is done. B and C have no other blocker, so both join the frontier in that moment. D still waits for the two of them.

Checks, verify and holds

Ticket A Unit table

Done

Result
Deviation: the units are a record keyed by symbol, not the array the contract declared.

Ticket B Quantity parsing

OpenFrontier

Blocked by: Unit table.

Ticket C Quantity formatting

OpenFrontier

Blocked by: Unit table.

Ticket D Command line

Open

Blocked by: Quantity parsing, Quantity formatting.

Who acts

A humanMerges the pull request of A on GitHub.Or Trellisly Merges it itself where an owner, a member who manages the workspace, turned auto-merge on for the repository, unless the spec is held to human merge. It does so once GitHub reports that the pull request can merge and the result carries no hold: the statement of a result, with a reason, that a human must merge. Trellisly Sees the merge on GitHub, and only then is A done. It waits for that also after a merge of its own.

Step 4 of 5

B and C are worked at the same time

Two sessions claim B and C. A claim is exclusive, so neither session takes the ticket of the other. Each gets the work order of its ticket: the ticket, its spec and the result of every blocker, in one document. The work order of B names the deviation of A before what A delivered as declared, so B is built on what shipped and not on what was planned.

Claims and attempts

Ticket A Unit table

Done

Result
Deviation: the units are a record keyed by symbol, not the array the contract declared.

Ticket B Quantity parsing

Claimed

Blocked by: Unit table.

Session 1

Work order
Deviation of A: the units are a record keyed by symbol, not an array.

Ticket C Quantity formatting

Claimed

Blocked by: Unit table.

Session 2

Ticket D Command line

Open

Blocked by: Quantity parsing, Quantity formatting.

Who acts

An agent in your own session Two sessions, each started by a person, claim one ticket each and work it on a branch of its own. Or a runner One runner runs both sessions at the same time, up to its limit of parallel sessions. Trellisly Refuses a second claim on a ticket that is claimed. It composes the work order of a ticket when a session takes it, so the work order holds the results as they stand then.

Step 5 of 5

D joins the frontier only when both are merged

B and C are submitted, and the pull request of B is merged first. D stays where it is, since C is a blocker that is not done. Only when the pull request of C is merged as well does D join the frontier, and its work order will hold the results of B and C.

The plan, blockers and the frontier

Ticket A Unit table

Done

Result
Deviation: the units are a record keyed by symbol, not the array the contract declared.

Ticket B Quantity parsing

Done

Blocked by: Unit table.

Ticket C Quantity formatting

Done

Blocked by: Unit table.

Ticket D Command line

OpenFrontier

Blocked by: Quantity parsing, Quantity formatting.

Who acts

A humanMerges the two pull requests, one after the other.Or Trellisly Merges each of them itself, under the conditions of step 3. Trellisly Sees each merge. After the first one D still has a blocker that is not done, and stays where it is. After the second one D is on the frontier, and the loop goes on with it.

D is worked as A, B and C were. When its pull request is merged, the last ticket of the feature is done: steps 2 and 3 have run once for every ticket, from the spec to the last merged pull request.

This plan was run

The four tickets are those of a run on a real repository, with merges that Trellisly saw through its GitHub App. Three things that were observed in it:

  • The deviation came before the session

    A human told the session of A to ship the units as a record, and its result said so as a deviation. The work order of B listed that deviation before the session of B was started, and the session built on the record that shipped.

  • Two sessions, one ticket each

    Two sessions were started in the same second, with the same prompt and no ticket named. Both went for B. Trellisly refused the second claim, and that session claimed C.

  • D waited for both merges

    A claim on D was refused while B and C were submitted, and again after the merge of B alone. Only when Trellisly had seen the merge of C as well was D on the frontier, and a session claimed it.

Done is read from the merge, never typed

A ticket is done when Trellisly sees its pull request merged into the main branch of its repository. Nobody sets it by hand: not the agent, not a member, not an owner.

What done does
Done lets the tickets that wait for this one start, and their agents build on what it promised. That promise has to be on the main branch, where they will look for it.
What a typed status can say
A status that someone types can say done while the change still sits on a branch, or was never merged at all. A merge cannot.
A cancelled ticket lets nothing start
A ticket that will never be done is cancelled. What it promised was never shipped, so the tickets that wait for it stay where they are.
Also when Trellisly merges
Where Trellisly merges a pull request itself, it sets nothing to done either. It waits to see the merge on GitHub, as it does for every other.

Ticket states

Two ways a ticket is worked

The loop is the same in both: the same frontier, the same claim, the same work order, and done at the merge. In one a person starts each session, and in the other a runner does.

In a session of your own

You start a Claude Code session, and it reaches the plan through the MCP server of Trellisly. It asks for the frontier, claims a ticket, gets the work order, and submits when the work is done: it opens the pull request and writes the result.

A feature is always planned this way: the planning agent is a session of your own.

For developers

By a runner

A runner takes tickets from the frontier by itself and runs one agent session for each, with no human starting it. Before it submits, it runs the verify commands that the ticket names.

A session that needs an answer only a human has does not fail for it. It asks a question and carries on with the answer it proposes. Where it cannot go on without the answer, its ticket is parked: the session ends, the runner takes other tickets, and the session resumes with its conversation when the answer comes. Questions and parked tickets

For team leads

Both work from the same plan. A runner leaves alone a ticket that is assigned to a person, which is how someone keeps a ticket for themselves.

Run the loop on a feature of your own

Your first sign-in gives you a workspace. The documentation takes it from there, one page for each step, from the spec to the merged pull request.