Skip to content
/ Lonca
Documentation contents

Orchestration

Autonomy and decisions

Assistant, consultant and autopilot; questions that reach you; and the project and workspace decisions every later task follows.

How often a handed-off task comes to you is one setting with three levels: assistant, consultant and autopilot. It decides what the leads, a task's lead and its Workspace Lead deciding as a pair, settle themselves and what they bring to you. Whatever the level, a question that reaches you arrives as a card on the task's Flow tab, and can be copied as Markdown for someone outside Lonca. A question settled once becomes a decision: a project decision binds every later task of that repository, a workspace decision every later task of the workspace.

The three levels

PlansFreeStandardProTeamAssistant and consultant: Standard. Autopilot: Pro and Team.
LevelWhat it decidesWhat comes to you
AssistantApproves the routine work (commands like curl, tests, commits, pushes of the task branch) and applies what is already decided.Every judgement call, with the task lead’s recommendation; the Workspace Lead may add its own. The task lead’s moves, its decisions and the moves an issue change calls for are proposed to you.
ConsultantThe task lead and the Workspace Lead apply their recommendations. A stage agent still working at its time limit, and not looping, is given more time.A question only after both have had it and are genuinely torn between options that matter.
AutopilotThe task lead and the Workspace Lead apply their recommendation every time, product and scope calls too. A stage agent still working at its time limit, and not looping, is given more time.A question only when neither has a recommendation to make.

On Free there are no levels: there are no leads, and every question the rules cannot settle comes to you. See Plans.

Choosing a level

Under Settings → Orchestration, How much the leads decide: a slider with the three levels. Its description says what the level under the thumb means. A level your plan does not have is shown locked, with the plan that has it.

Orchestration and the leads are always on: there is no switch for them since 12.0.0, and Pause all in the title bar makes every pipeline wait where it is. An install that had the leads switched off before 12.0.0 starts on Assistant, and a notice says so. Without a workspace_lead: block in the config, the tab shows no slider and says that every question comes to you, with Open the Configurator.

The level is a setting of the app, not of config.yaml, and it takes effect at once. A stored autopilot stays stored when a plan without it applies; the plan only changes which level is used.

The countdown

When a task lead settles a question itself (an answer, a step run again, a move), its decision is shown on the question card before it goes: Task Lead decided, what it decided and why, and a bar that empties over five seconds (Sending in 5s).

  • Stop — I will decide keeps it from being sent, and the question is yours.
  • A move a lead makes counts down the same way. Under assistant a move is only proposed: Flow shows it with Move to … and Stay where it is, and the task stays where it is until you answer.
  • After a restart, a held decision shows again with its countdown from the start, and is not asked of the lead again.

While a lead works on a question, the card says The task lead is thinking it over…. When the Workspace Lead has it, the card says why, for example With the Workspace Lead: the task lead asked it. (see The pair, before you).

Permission prompts

Terminal stage agents (the implementer, the UI implementer, the E2E runner) run in tmux, and Claude Code may stop to ask before a command. The task lead answers those prompts: routine ones at every level, the rest as the level says. You do not type into these terminals while the pipeline drives them; you can scroll them, and Take over pauses the pipeline and gives you the terminal.

  • A prompt that reaches you shows as The agent asks in its terminal, with the command it would run, and the task's row shows ›_ in an orange stage ring under Needs you. What you write goes to the stage agent as you write it; for a permission prompt, the option's number (1 = Yes). Open its session opens the Sessions panel on that agent, for a prompt that is easier to answer there. While the task lead is still handling a prompt, the row stays under In progress.
  • When the same terminal prompt, or the same failure, comes a third time in a task under consultant or autopilot, the task shows a notice and you get a notification, once per item. Nothing waits for you. The task lead answers the same prompt however often it comes, within the step's time limit.

Retries

Under consultant and autopilot, a failure that may pass by itself is tried again without asking: a push that did not reach the remote, a setup, publish or pre-PR gate that could not finish, an app slow to answer before the E2E run.

  • A publish failure only you can fix is not tried again: a sign-in, access, a remote not on GitHub, a push the remote rejected, remote commits the worktree does not have. It comes to you at once, with its cause (see Publishing).
  • The first try comes after 2 minutes; each wait is twice the last, up to 30 minutes.
  • A failure that reads as the network or GitHub blinking (a host that did not resolve, a dropped connection, a 5xx) is first tried again after 20 seconds, at every level, assistant too. Later tries wait as above.
  • At most 5 tries for the same failure (its round, step and kind), the quick one included. Then it waits for you.
  • The tries are kept in the pipeline record: a restart neither starts the count over nor drops a try that was due.
  • A paused task is not tried again until it is resumed. A task handed off again gets its tries afresh.
  • Under assistant, every such question is yours after that one quick try.

Time limits

Under consultant and autopilot, a terminal stage agent still working at its time limit gets another window instead of being stopped, when its screen still changes, its transcript grew since the last look, and its latest steps do not repeat one short sequence. Each window is judged again; the decision log says kept going or stopped at its limit. Under assistant the limit stands. The limits themselves are stage_timeout_minutes in config.yaml.

Findings held for a look

Under consultant and autopilot, a review whose findings are all minor, or all change no behaviour, does not send the work back at once: the task's lead looks first and may let some go; under assistant, or with no task lead, such a review sends the work back as usual. A pre-PR gate that failed only on specs outside the change, which fail when run alone too, is held the same way; under assistant, or with no task lead, it comes to you at once. When a held question reaches you (the leads handed it on, or did not answer in time), the card offers the choice the lead had:

Let these go
At review: the findings are set aside, not worked on, and the work goes on as reviewed.
Set aside
At the gate: those specs are skipped at the gate from now on, listed in the pull request, and the gate runs again.
Send back to implementation
The round goes back as it would have gone.

A security finding is never held or set aside.

The question card

A question that reaches you waits under Waiting on you on the task's Flow tab, its row moves to Needs you with an orange stage ring, and the task stays where it is until you answer. The card's title says what kind of question it is:

TitleWhen
A decision is neededA stage agent or a lead needs a judgement from you.
The agent asks in its terminalA terminal stage agent stopped at a prompt.
A step keeps failingA step failed more often than its retries allow.
A step ran out of timeA stage agent reached its time limit.
Something outside the codeAn environment problem: a push, a sign-in, a port, gh.
The work is stuckThe same findings keep coming back.
Needs more triesNothing failed, but the task ran out of tries before its next step.
The work may be doneA stage agent changed nothing this time, but says the work is already done.
The PR was closedThe pull request was closed without being merged.
E2E checks are openThe code is verified, and only E2E boxes are open.
The branch is behind its baseThe base moved and the branch needs a look.
The branch exists on the remoteThe task’s branch is already on the remote.

When Lonca hands you a question itself (a stuck task, a step that failed twice, something outside the code, a question the lead did not settle in time), the task's lead adds a few plain sentences in your language at the top of the card: what is wrong and what you can do. The question's own words and what Lonca saw fold under Technical details; anything a button on the card depends on, such as a terminal's choices or the message of a problem outside the code, stays in view. A question the task lead or the Workspace Lead hands you in its own words gets no explanation: it already is one. Its words lead the card, and the question it was asked folds under Technical details on the same terms. A command a lead suggests for you to run is a bash block with Copy and Run beside it, at the top of the card and under Technical details alike (see Copy and Run on a suggested command).

Under the question, the card says what to do next and offers what fits:

  • an answer box (Your answer); ⌘+Enter sends it;
  • buttons for the choices of that kind, such as Try again, Accept without E2E or Settle criteria;
  • on a stuck task, an Extra tries field (up to 5) to give the work more tries with your answer;
  • Open its session to see where a stage agent stopped;
  • Discuss with Task Lead, which opens the task's lead with the question quoted above its box.

Once you have answered, the card says Answered: ….

Copy as Markdown

The copy button on a question card (Copy the question as Markdown) puts the question on the clipboard as Markdown, for a colleague or a product owner who has not seen the task. Every plan has it.

The copy holds:

  • a heading with the kind of question and the task's key and title;
  • where the work stands (for example Test (scenario)) and who asks;
  • the question, and what it rests on: its context, or the command a stage agent would run, in a code block;
  • the choices the card offers, each with what it would do (Set aside, Let these go, Keep, Drop, Send back to implementation).

Nothing of Lonca's own that such a reader could not use goes in: no ids, rounds or file paths.

Project and workspace decisions

PlansFreeStandardProTeamFree: 15 and 15, recorded by you. Standard, Pro, Team: 45 per workspace and 90 per project, the leads record too.

A decision is a question settled once that later tasks follow: "the API returns dates in UTC", "mock the payment service in tests". Each is at most 300 characters on one line, with its reason. Decisions come in two layers:

Project decision
Numbered per repository (P3). It binds every later task of that repository, in any workspace that lists it. Most decisions are about one repository, and kept there they reach only its tasks.
Workspace decision
Numbered per workspace (D12). It binds every later task of the workspace, whatever its repository.

Every stage agent reads its workspace's decisions and its own project's in its prompt, from its next run on, and never another project's. A bare number still means a workspace decision. A new project decision that a workspace decision already says is caught (D7 already says this for the whole workspace.), unless you add it anyway as distinct.

Who records them

  • You, in the Decisions tab, on every plan, in either layer.
  • A task lead records and retires its own repository's project decisions, and only proposes a workspace decision (see The leads). Under assistant its project decisions are proposed to you too.
  • The Workspace Lead records, retires and merges the decisions of both layers, within its own workspace, and records or declines what a task lead proposes.
  • You, from a proposal card, under assistant or when the Workspace Lead is unavailable: Record or Dismiss on the task's Flow tab.

A decision a lead recorded names it as its author.

The Decisions tab

Open the Orchestration view from the title bar and pick the Decisions tab. It shows the current workspace (with two workspaces or more, All workspaces shows each one under its name): Workspace decisions with how full the layer is, then Project decisions, one folded section per repository of the workspace. Each decision shows its reference, text, reason, author and the task it came from (click it to open the task).

  • Add decision writes a new one, with Applies to (Whole workspace or one of its projects), a Decision and a Why field. Edit changes one.
  • A decision close to an existing one is caught before it is saved: Close to D…, with Replace D… or Add anyway. If yours changes it or says the opposite, replace it rather than keep both.
  • Retire takes a decision out of the stage agents' prompts. It is kept: Show retired lists them, and a reference is never used again.
  • Move to project… on a workspace decision retires it and records it in up to five projects you tick.
  • A repository that two workspaces list has one set of project decisions; each workspace names it by its own repository id.

How many each layer keeps

Free keeps 15 standing decisions per workspace and 15 per project; the other plans 45 per workspace and 90 per project. A stage agent reads its workspace's and its own project's, so they cost tokens on every run: at most about 9 KB of prompt on Free, about 40 KB on the other plans. It is a memory, not a monthly count. See Decision memory.

  • A workspace at 45 or over is frozen on a paid plan: nothing new is added to it, while editing a decision in place, retiring one and moving one to its projects still work. The tab says why: decisions about one project belong in that project.
  • On Free, a layer over its limit after a move to a smaller plan stays in force but is read-only until it is under the limit: it takes a retirement and, for the workspace layer, a move, and nothing else. The tab says how many.

The distribution offer

When a frozen workspace turns a new decision away, the Workspace Lead may offer to move the workspace decisions that are about one repository into that repository's project. One offer waits per workspace.

  • The card sits at the top of the Decisions tab: The Workspace Lead proposes moving 12 decisions to their projects., the lead's summary, then each move with a checkbox, its reference, its text and its target. A repository another workspace also lists says also read by tasks in …, since its project decisions are read there too. A decision changed since it was offered is marked.
  • Move selected approves the ticked moves, and the Workspace Lead carries them out, to exactly the repositories the card showed. Not now dismisses the offer; the lead offers again only after another refusal.
  • Approved moves the lead has not carried out yet are listed in the tab, with Run them to make them yourself.
  • After a move, the lead of every live task on a target repository is told to reconcile the new project decision with its own.
  • With no leads (Free) there is no offer; Move to project… is always yours.

A decision's script

A decision of either layer may carry a script: the commands the project runs as written, such as a sign-in request, a seed or a build step. The decision's text still says in one line what the script is and when to use it. In the form, Attach a script opens the field.

  • At most 2,000 characters and 60 lines, outside the text's 300. A project keeps at most 8 decisions with a script, a workspace 4.
  • A stage agent reads a script as data, beside its decision, and runs it only where its work needs it.
  • No secret in a script. A script names a value as $NAME or ${NAME}, never the value. Lonca refuses a write that holds a credential (an Authorization or Bearer value, a password or token after its name, a password in a URL, a known token shape, a long random string, or any secret Lonca keeps), whoever makes it, and keeps the refused text nowhere.
  • Under a finding in your form, a name field and Use a variable save the value as a secret project variable and put $NAME in its place. A long random string that is not a secret can be kept with This is not a secret. Keep it.
  • A row's Uses lists the names its script uses, set or not set for each repository, with Set beside them. A name a script uses shows as not set in the task's Variables tab until it is.