Orchestration
When the issue changes
Updated in Jira, Refresh, and the reassessor that decides what a change means for a task in flight.
Issues change while the work is under way: a comment adds a requirement, a criterion is reworded, the parent story moves. Lonca notices when a Jira issue changed since it last read it and shows Updated in Jira on the task. Refresh reads the issue again. For a task in the pipeline, a read-only reassessor then reads what changed and decides what it means for the work: continue, plan again, fix only the implementation, rewrite the test scenarios, or ask you. Nothing refreshes by itself.
Updated in Jira
Every three minutes, and when you come back to its window, Lonca asks Jira about the issues it tracks. A status changed in Jira shows in the list and the header at once; an issue Jira no longer finds says so (see Moving the issue yourself). When an issue's update time is later than the one Lonca last read, the task shows it:
- updated in Jira, with how long ago, on the issue line of the card that opens when you hover the task in the list;
- an Updated in Jira · 2h ago badge in the task's header;
- a highlighted Refresh button beside it.
A status change Lonca made itself (a Jira move of the pipeline, one you approved on a pause, or one you made from the status chip) does not raise the mark: Lonca records the update time Jira returns after its own move. A change someone made just before it is not hidden by it. A Jira comment you approved does raise it, since Jira counts the comment as an update.
Refresh
Refresh in the task's header asks first: Re-read KEY from Jira?, with what it will do. Refresh from Jira goes on; Cancel leaves everything as it is.
- The issue snapshot and
ac.mdare rewritten on disk, so the agents read the issue as it is now. Your checkmarks and their evidence are kept. - For a task in the pipeline, the popover adds: Then Lonca reassesses what changed: it may update the criteria, plan again, or send the work back to implementation.
- If Jira cannot be reached, the cached issue is shown, nothing is assessed, and the mark stays.
- A local story has Re-read the file instead: it reads the story file again and updates
ac.md. The reassessor runs for Jira issues only.
What a refresh reads is the whole issue: fields, comments, history, links, subtasks, web links and attachments. See Task context. Figma links found there count from this refresh (see Which links count).
The change record
Before a refresh overwrites anything, Lonca keeps the files as the agents last read them. After the refresh it compares them and writes a change record to pipeline/changes/ in the task's context directory:
- the difference in the issue snapshot, which carries the new comments and history entries too;
- a status change, on a line of its own;
- the acceptance criteria added and removed (a reworded one shows as both);
- the parent story's difference, in a section of its own, since the parent story is binding;
- any source that could not be read, so the reassessor knows the record is incomplete.
Lines that change on every read (when it was retrieved, the update time) are left out. When nothing is left, or only the status changed, no agent runs and the work goes on.
The reassessor
The reassessor is a one-shot run of your ai: command (Background AI), beside the step at work, not a stage of the pipeline. It reads the change record, where the task stands (stage, status, round), the task's files and the files the work has changed so far. It cannot change anything: it runs without the tools that write or execute. Everything from Jira reaches it as data, never as instructions, whatever the text says.
| Decision | What it means | Where the task goes |
|---|---|---|
| continue | The work stands. | Nowhere. A note, if any, goes to the step at work. |
| replan | The change alters what is to be built. | Plan, with the note for the planner. |
| fix implementation | The plan stands; the code needs a change. | Implement, with the note for the implementer. |
| retest | Only the test scenarios need rewriting. | The scenario step; without an e2e: block, the final check, which reads the criteria again. |
| ask | The change is unclear or contradicts itself. | A question for you. |
A decision only ever sends the work back. One that names a step the task has not reached yet is taken as continue, with its note for the step that will read the change anyway.
What happens to the criteria
The criteria are a separate axis from the move: "the criteria change, and only the implementation needs a fix" is one decision.
- The issue author's criteria come from the issue text and are already regenerated by the refresh. The reassessor never edits them.
- Generated criteria, the ones Lonca inferred from the issue, are what it may add, remove or reword to match the issue as it is now. A criterion that appears only in a comment is added.
- A reworded criterion is unticked: its evidence belonged to the old text.
- Criteria changes are written at once, whatever the autonomy level: they record the source, not a move of the task. They are logged in the decision log.
- When the issue's own criteria cannot be read this time, none is edited, and a new requirement goes to the stage agent in the note.
See Acceptance criteria for generated criteria.
How the decision is carried out
- Under consultant and autopilot a move is made at once: the step at work stops, a new round starts at the target, and its stage agent gets the note and the change record.
- Under assistant, or without task leads, the move is proposed: the Flow tab shows The issue changed in Jira: move the task from implement to plan? with the note and the reason, and Move to … or Stay where it is. The task goes on where it is until you answer.
- A note for the step at work goes to a running terminal stage agent at once, or into the next stage agent's prompt.
- A move that is refused (for example a retest while a security finding is open) becomes a question, with the reason.
The decision and its reason go to the decision log and the task's progress log. For the rest of that round, the Flow tab shows it under the task's status, for example Issue changed: fix implementation. followed by the reason. When the reassessment gave a short plain summary in your language, that summary is shown instead, in the decision log and on a move proposal too, and the route and the English reason fold under Technical details. See Autonomy and decisions.
By the task's state
| The task is | What a refresh does |
|---|---|
| Not handed off | The refresh only: the files are rewritten, nothing is assessed. |
| Queued | Criteria are applied; the step it is about to start reads the change itself. |
| Paused, or stopped in a loop | The decision is kept and applied when the task resumes. |
| At the PR | A fix of the implementation is valid: the next push updates the PR. |
| Done | The decision is shown for information; the task is not reopened. |
A second Refresh while a reassessment runs cancels it, and the new one compares against the files the agents last read, so no change is missed.
When the reassessment fails
- A reply that cannot be read, a crash or a time-out is tried once more.
- A second failure becomes a question: the issue changed, Lonca could not assess what that means, read the change record and say how the task goes on.
A task never quietly continues on information that is out of date.
- If Lonca quits during a reassessment, the change shows as not yet seen at the next start, so Refresh assesses it again. The files the agents last read are kept until a decision has landed.
- Without an
ai:command, a refresh rewrites the files, and nothing is assessed.
When the brief changes
Saving the task's brief after the hand-off is assessed the same way, with its own change record: continue, plan again, fix the implementation, rewrite the scenarios, or ask. A brief changes no criterion. The proposal reads The brief changed: move the task from … to …? under assistant, and Flow's line reads Brief changed: …. The task lead is told the outcome, and never moves the task for a brief change itself. A task that is out of the pipeline when you save (archived, for example) is assessed when you continue it.
In short
- You see Updated in Jira
- Press Refresh in the task’s header when you want the agents to read the issue as it is.
- The task is handed off
- The reassessor decides; under assistant you confirm the move.
- The change is in the brief, not in Jira
- Tell the task lead, and save the brief it proposes.