Skip to content
/ Lonca
Documentation contents

Orchestration

The hand-off brief

Tell a task what the issue does not say, before or after the hand-off, and how far a change sends it back.

An issue rarely says everything: the method you want, a constraint, a screenshot of what you mean, the Figma selection to build from. The task’s brief is where that goes. You tell the task’s lead, it proposes the brief, and nothing is written until you save it. Every stage reads the saved brief, before the hand-off and after it, and a change after the hand-off sends the task back only as far as the change reaches.

What goes in a brief

With no brief saved yet, the Brief section says: “Your own instructions for this task: a method, a constraint, a screenshot, a Figma link. Every stage reads them.”

  • Use it for what shapes the work: how to build it, what not to touch, what the result must look like.
  • A passing remark for one step goes to that stage agent instead (below): it is read once, by that agent’s next run, and changes nothing else.
  • Stage agents are told that your words stand over the plan where the two differ.

Writing it with the task lead

The Brief section is on the task’s Flow tab: on the hand-off card before the hand-off, and folded under the pull request after it, until the task is done. With no brief yet it offers Write a brief with Task Lead; with one saved it shows the brief, when it was saved, and Talk to Task Lead. ⌘K with the task selected opens the same conversation, in the conversation drawer.

  1. Tell the lead what the issue does not say, in your own words. Paste screenshots into the conversation.
  2. The lead proposes the brief as a whole new text in its reply.
  3. The conversation shows the proposal as a difference from the saved brief, with Save brief (Save and update the task once the task is in the pipeline) and Discard.
  4. Nothing is written until you save. Discard keeps nothing.

While a proposal waits, the Brief section says so: “The task lead proposed a change to the brief. It waits in the conversation for you to save or discard it.”

What a brief may hold

A proposal that breaks a rule is refused with the reason, and nothing is kept:

RuleRefused with
Not empty“The brief is empty.”
At most 32 KB“The brief is longer than 32 KB.”
No invisible or control characters“The brief holds an invisible or control character.”
Images only from this conversation, or already in the brief“An image in the brief is not one pasted in this conversation: …”, or “A pasted image is no longer there; paste it again: …”
At most 20 images“The brief holds more than 20 images.”
A change“The brief is the saved one already: nothing to change.”

Which conversation writes it

The task lead talks about the brief in one of two ways:

In a pipeline
Handed off, with the leads set up (orchestration.workspace_lead on Claude Code or Codex) and a plan that includes them: the lead has Lonca’s tools as well (see The leads).
Brief mode
Before the hand-off, with no leads configured, or on the Free plan once plans start: the lead reads, answers and proposes the brief, and has no tools. It runs on the task leads’ agent where it can, otherwise on Background AI (ai:), read-only.

So the brief works on every plan. With neither the leads’ agent nor ai:, the conversation says “Writing a brief needs Background AI: turn on Background AI.”, with a button to Settings → Agents beside it. A lead that already holds a proposal still opens, read-only, and saving and discarding still work: they need no AI.

Where it is kept

  • What binds is the copy Lonca seals in its own state. Stage agents may write in the task’s context directory, so the brief.md and brief/ there are only a readable copy, put back from the sealed one before every stage run. If an agent changed it, the progress log says so.
  • The task’s Documents tab shows the brief.
  • A brief written before the hand-off is kept in the folder the task’s setup will use, so a task with no worktree yet can have one.
  • A brief that names Figma selections of its own replaces the issue’s: only the brief’s are built from (see Figma UI step).

Changing it after the hand-off

Once the task is in the pipeline, the section is folded under Brief · saved … (or Brief · none yet): the brief is for what changes the foundation, and the section should not invite small edits. Saving a changed brief has Lonca weigh how far back the change reaches, as it does for a change in the issue, and send the task back only that far:

The changeWhere the task goes
The work standsIt continues; the current step is told what to keep in mind.
It alters what is to be builtThe planner plans again.
The plan stands, the code needs a changeThe implementer gets the change.
Only the test scenarios are affectedThe scenarios are written again.
It is unclear or contradicts itselfYou are asked.

Under consultant or autopilot the task goes back by itself; under assistant, or without task leads, the move waits on Flow as a proposal for you to make. Without an e2e: block, a change for the scenarios sends the task to the final check instead. A paused task, or one stopped at a loop, keeps the change until it goes on.

A change never sends the work forward: one that names a step the task has not reached yet continues. The brief’s change never changes the acceptance criteria. The task lead is told what was decided, but never moves the task for a brief change itself. See When the issue changes for how the same assessment handles an issue update.

Telling a stage agent something yourself

For a word to one step rather than the whole task, go to the stage agent. Every stage agent shows in the Sessions panel under the task’s tabs (⌘J shows and hides it; see Sessions and agents).

A stage agent with a terminal

The implementer, the UI implementer and the E2E runner are watched while Lonca drives them: you can scroll (the wheel, Page Up, Page Down) but not type. Take over pauses the pipeline and the terminal is yours; Hand back resumes it.

A stage agent with no terminal

The planner, the test scenario writer, the final check and the reviewer show their run as a conversation with a message box. What you write there:

  • goes into that stage agent’s next run, once;
  • reaches the task’s lead at once, as a note;
  • is kept in the progress log, and waits in the pipeline record until a run carries it, so a restart in between does not lose it.

The decisions list records that you wrote to a stage agent, not what you wrote.

Clarifications from a pause

When you pause a task to clarify something, the paused card on Flow asks What did you decide?. With text in that field, Resume first adds it to the brief under a Clarifications heading, through the same save and the same checks as any brief change, then resumes. Lonca assesses it as it does any brief change, and every stage agent reads it from then on, with or without a task lead. A note the brief's checks refuse does not resume the task: the card says why and keeps what you wrote. See Pausing a task.

Handing a task off again

There is no Take back since 11.0.0: archiving a task is how Lonca lets it go. A task Lonca let go of (one you archived and unarchived, or one taken back before 11.0.0) can be handed off again, and the hand-off card on Flow offers to continue, depending on what happened meanwhile. The orchestration log, pipeline/progress.md, records when Lonca let the task go and where its branch stood.

Since Lonca let it goWhat it offers
The branch has not movedContinue from …, at the step it stood at, without planning again.
You committed on the branchContinue at implementation with the plan it has; the log tells the implementer which commits are yours.
Uncommitted changes in the worktree, or let go of before there was a planNo continue: it starts over. The files Lonca itself leaves in the worktree do not count as changes.
The brief changedIt is assessed, as above, before the task continues.
  • Start over always runs every step from the plan.
  • Adding a dependency needs a fresh start: “A dependency needs a fresh start: the plan is made again with it.”
  • Either way the stage agent terminals left from before are closed, so the new runs start fresh conversations; a terminal that is still working blocks the hand-off. The orchestration log carries what they need.
  • Retries of failures that may pass by themselves start afresh.