Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.
Go
fix(daemon): record in_progress when work on the issue's ask starts, not only at turn end (MUL-6417 follow-up) (#7283)
Bohan Jiang4ff37edf9174
diff --git a/apps/docs/content/docs/assigning-issues.mdx b/apps/docs/content/docs/assigning-issues.mdxindex 502f2adbd0..fda0efa99c 100644--- a/apps/docs/content/docs/assigning-issues.mdx+++ b/apps/docs/content/docs/assigning-issues.mdx@@ -37,7 +37,7 @@ While executing, the agent can:What it can actually do is still limited by the agent's configuration, the runtime environment, and your permission to run it.-During the run, the agent manages the issue's status by judging, at the end of each turn, what its work changed: delivery moves the issue to `in_review`, work continuing beyond the turn keeps it `in_progress`, and research or discussion leaves the status untouched — these actions appear under the agent's identity in the timeline. Task lifecycle and issue status are separate: a task completing does not by itself change the issue status.+During the run, the agent manages the issue's status by judging what its work changes: starting on the issue's own ask moves it to `in_progress` right away, delivery moves it to `in_review`, work continuing beyond the turn keeps it `in_progress`, and research or discussion leaves the status untouched — these actions appear under the agent's identity in the timeline. Task lifecycle and issue status are separate: a task completing does not by itself change the issue status.When the assignee is a [squad](/squads), the same rule applies: Multica enqueues the leader, and dispatching members is not delivery — a dispatch turn leaves the parent issue `in_progress`, and the leader only moves it to `in_review` once the overall goal is met.diff --git a/apps/docs/content/docs/assigning-issues.zh.mdx b/apps/docs/content/docs/assigning-issues.zh.mdxindex a17d45c07d..40bc442e33 100644--- a/apps/docs/content/docs/assigning-issues.zh.mdx+++ b/apps/docs/content/docs/assigning-issues.zh.mdx@@ -37,7 +37,7 @@ Multica 会为智能体创建一条[执行任务](/tasks)。在线运行时领具体能力仍受智能体配置、运行时环境和你的调用权限限制。-执行过程中,智能体在每轮结束时根据工作对 issue 的实际影响管理状态:交付即推到 `in_review`,工作跨轮继续则保持 `in_progress`,仅调研或讨论则不动状态——这些动作以智能体的身份出现在时间线中。task 的生命周期和 issue 状态是分开的:task 完成本身不会改变 issue 状态。+执行过程中,智能体根据工作对 issue 的实际影响管理状态:开始做 issue 本身要求的工作时立刻推到 `in_progress`,交付即推到 `in_review`,工作跨轮继续则保持 `in_progress`,仅调研或讨论则不动状态——这些动作以智能体的身份出现在时间线中。task 的生命周期和 issue 状态是分开的:task 完成本身不会改变 issue 状态。负责人是[小队](/squads)时,同样的规则适用:Multica 入队的是队长,派活不等于交付——派活轮结束时父 issue 处于 `in_progress`,整体目标达成后队长才推到 `in_review`。diff --git a/apps/docs/content/docs/issues.mdx b/apps/docs/content/docs/issues.mdxindex 8af8210f41..58666c25a9 100644--- a/apps/docs/content/docs/issues.mdx+++ b/apps/docs/content/docs/issues.mdx@@ -52,7 +52,7 @@ Assignment does not bypass an agent's Access; when assigning to a squad, the leaThere is no fixed flow between statuses — members and agents can change them directly.-Agents judge status at the end of a turn, from what the work changed about the issue: delivering what the issue asks for moves it to `in_review`; work that continues beyond the turn keeps it `in_progress`; research, answers, or discussion leave the status untouched. There is no automatic `in_progress` write when a run starts — an in-flight run is already visible on the issue. These updates are written explicitly by the agent through the Multica CLI during the run — the server does not flip issue status when a task starts or completes (apart from the two system exceptions below). `done` is usually a human confirmation, or an integration such as a PR with close intent that merges.+Agents write the status the issue is in as their work changes it: starting work on what the issue asks for moves it to `in_progress` right away, so the board shows the work while it runs; delivering moves it to `in_review`; work that continues beyond the turn keeps it `in_progress`; research, answers, or discussion leave the status untouched throughout. These updates are written explicitly by the agent through the Multica CLI during the run — the server does not flip issue status when a task starts or completes (apart from the two system exceptions below). `done` is usually a human confirmation, or an integration such as a PR with close intent that merges.<Callout type="info">Two changes are made by the system:diff --git a/apps/docs/content/docs/issues.zh.mdx b/apps/docs/content/docs/issues.zh.mdxindex 7458165465..cd3251037d 100644--- a/apps/docs/content/docs/issues.zh.mdx+++ b/apps/docs/content/docs/issues.zh.mdx@@ -52,7 +52,7 @@ Issue 是 Multica 中安排工作的基本单位:一项功能、一个 bug、状态之间没有固定流转,成员和智能体都可以直接修改。-智能体在每轮工作结束时根据 issue 的实际进展判断状态:交付了 issue 要求的结果就推到 `in_review`;工作跨轮继续则保持 `in_progress`;仅调研、答疑或讨论则不改状态。运行开始时不会自动写入 `in_progress`——运行中的任务本身在 issue 上可见。这些状态变更由智能体在运行中通过 Multica CLI 显式写入——task 开始或完成时,服务端不会自动改 issue 状态(下面两个系统例外除外)。`done` 通常留给人工确认,或由集成完成(例如带关闭意图的 PR 合并)。+智能体随着工作对 issue 的实际影响写入状态:开始做 issue 本身要求的工作时立刻推到 `in_progress`,让看板在工作进行中就能反映出来;交付后推到 `in_review`;工作跨轮继续则保持 `in_progress`;仅调研、答疑或讨论则全程不改状态。这些状态变更由智能体在运行中通过 Multica CLI 显式写入——task 开始或完成时,服务端不会自动改 issue 状态(下面两个系统例外除外)。`done` 通常留给人工确认,或由集成完成(例如带关闭意图的 PR 合并)。<Callout type="info">两个变化由系统执行:diff --git a/apps/docs/content/docs/squads.mdx b/apps/docs/content/docs/squads.mdxindex 3c45a128fb..4febf6b4cb 100644--- a/apps/docs/content/docs/squads.mdx+++ b/apps/docs/content/docs/squads.mdx@@ -34,7 +34,7 @@ When a non-Backlog issue is assigned to a squad, Multica immediately enqueues a2. **Leader is briefed.** On claim, Multica appends three sections to the leader's system prompt — see [What the leader sees on every turn](#what-the-leader-sees-on-every-turn) below.3. **Leader posts one delegation comment.** The comment `@`-mentions the chosen member(s) using the exact mention markdown from the roster — that mention triggers a new `task` for each mentioned agent.4. **Leader records its evaluation** via `multica squad activity <issue-id> action --reason "..."`. This writes an entry to the issue's activity timeline so humans can see the leader actually evaluated the trigger.-5. **The dispatch turn ends with the parent `in_progress`.** Same agent-managed status contract as a direct agent assignment — status is judged at the end of the turn, and dispatching members is not delivery, so the parent leaves `todo` for `in_progress` and stays there while the squad works.+5. **The dispatch turn leaves the parent `in_progress`.** Same agent-managed status contract as a direct agent assignment — coordinating the squad is working the parent's ask, so the parent moves from `todo` to `in_progress`, and dispatching members is not delivery, so it stays there while the squad works.6. **Leader stops.** The leader does not do the implementation itself. When the delegated member posts back — or when a sub-issue / stage barrier closes — the leader is re-triggered to read the update and either delegate the next step, escalate, move the parent to `in_review` once the overall goal is met, or stay silent. `done` is left to a human reviewer or existing integrations (for example a PR with close intent that merges).If the issue is in **Backlog**, the leader is not triggered — Backlog is a parking lot, same rule as for direct agent assignment.diff --git a/apps/docs/content/docs/squads.zh.mdx b/apps/docs/content/docs/squads.zh.mdxindex e4769e2caf..178cd8ec94 100644--- a/apps/docs/content/docs/squads.zh.mdx+++ b/apps/docs/content/docs/squads.zh.mdx@@ -34,7 +34,7 @@ import { Callout } from "fumadocs-ui/components/callout";2. **队长拿到 briefing。** 领走的瞬间,Multica 会在队长的指令后面追加三段内容,见下文[队长每次执行看到的内容](#队长每次执行看到的内容)。3. **队长发一条派活评论。** 评论里用花名册给好的 mention markdown `@` 选中的成员——这个 `@` 会触发被派的成员入队新 task。4. **队长记录 evaluation**:`multica squad activity <issue-id> <outcome> --reason "..."`。这一行会写进 issue 的 activity 时间线,方便人类回溯队长的每次评估。-5. **派活轮结束时父 issue 处于 `in_progress`。** 和直接分配给智能体同一套状态约定:状态在每轮结束时按实际进展判断,派活不等于交付——所以父 issue 离开 `todo` 进入 `in_progress`,小队干活期间保持不变。+5. **派活轮让父 issue 处于 `in_progress`。** 和直接分配给智能体同一套状态约定:协调小队就是在推进父 issue 本身的工作,所以父 issue 从 `todo` 进入 `in_progress`;派活不等于交付,小队干活期间保持不变。6. **队长停下。** 派完活,队长不亲自动手。被派成员有回复时,队长会被自动唤醒,决定下一步:继续派活、上抛给人类、在整体目标达成后把父 issue 推到 `in_review`,或保持沉默。`done` 留给人工确认或既有集成(例如带 close intent 的 PR merge)。如果 issue 仍在 `backlog`,分配本身不会触发队长。移出 `backlog` 后才会开始执行。diff --git a/server/internal/daemon/execenv/runtime_config_sections.go b/server/internal/daemon/execenv/runtime_config_sections.goindex 1e36d6f780..d0ffa88a90 100644--- a/server/internal/daemon/execenv/runtime_config_sections.go+++ b/server/internal/daemon/execenv/runtime_config_sections.go@@ -541,17 +541,25 @@ func writeWorkflowAutopilot(b *strings.Builder, ctx TaskContextForEnv) {// - Delivery routes on data: the per-turn message either carries a// triggering comment with this turn's --parent value (reply in that// thread) or it does not (post a new top-level comment).-// - Status is judged once, at the END of the turn, from what the work-// actually changed about the issue — not from the trigger type, not from-// the run lifecycle, and not gated on being the assignee. Lifecycle-// writes oscillate under concurrent runs (every run flips its own-// open/close pair — the churn MUL-6300's assignee gate existed to stop);-// fact writes converge, because agents judging the same fact write the-// same value or nothing. The board's in-flight signal is the issue-// activity indicator, which renders independently of status, so no-// opening in_progress write is needed — and a todo issue the agent was-// only asked to research correctly stays todo, which the old-// unconditional arc got wrong twice.+// - Status is written when the FACT changes, judged from what the work+// changes about the issue — not from the trigger type, not from the run+// lifecycle, and not gated on being the assignee. Lifecycle writes+// oscillate under concurrent runs (every run flips its own open/close+// pair — the churn MUL-6300's assignee gate existed to stop); fact+// writes converge, because agents judging the same fact write the same+// value or nothing. A todo issue the agent was only asked to research+// correctly stays todo, which the old unconditional arc got wrong twice.+//+// The in_progress moment is the START of work, not the end of the turn: a+// turn that advances the issue's own ask makes "being worked" true the moment+// it begins, and the first work turn on a fresh assignment can run for half+// an hour — judged only at turn end, the board showed todo the whole time+// (Bohan's post-merge report on MUL-6417). This is the old rule's timing+// with the fact anchor's conditionality: an ancillary turn still writes+// nothing at either moment, so the research case and the concurrency+// convergence are unchanged. The activity indicator still shows the run+// itself, but columns, filters, and sorting read status — the indicator+// alone proved not to be the board surface people actually watch.//// The invariants MUL-6300 pinned survive as consequences instead of gates: a// conversational turn changes nothing about the issue's state, so it writes@@ -598,15 +606,16 @@ func writeWorkflowIssue(b *strings.Builder, ctx TaskContextForEnv) {}b.WriteString("5. Before exiting, pin or clear a metadata key via `multica issue metadata set`/`delete` only if it clears the bar in `## Issue Metadata`. Most runs write nothing here — that is the expected outcome, not a gap. When in doubt, do not write.\n\n")- b.WriteString("**Issue status — judge once, at the end of the turn** (skip any status call your Agent Identity forbids)\n\n")- b.WriteString("Status reflects the state the ISSUE is in, not your run's lifecycle: a run in flight is already visible on the issue, so do not open with a status write. When your work is done, write the status the issue is now actually in — only if it differs from the current value, whoever the assignee is:\n\n")+ b.WriteString("**Issue status — write the state the issue is in, whenever it changes** (skip any status call your Agent Identity forbids)\n\n")+ b.WriteString("Status reflects the state the ISSUE is in, not your run's lifecycle — and it can change when your work STARTS, not only when it ends. Write a status only when the new value differs from the current one, whoever the assignee is:\n\n")+ b.WriteString("- The moment you know this turn advances what the issue itself asks for — usually right after reading it — set `in_progress`: the board should show the issue being worked while you work, not only after.\n")b.WriteString("- You delivered what the issue itself asks for and it awaits acceptance → `in_review`. Delivering an issue assigned to you — including a sub-issue in a chain or stage — always lands here; stage barriers and parent notifications depend on that signal. `done` stays human.\n")b.WriteString("- The issue's work continues beyond this turn — you dispatched sub-issues, or delivered one part with more underway → `in_progress`.\n")b.WriteString("- You cannot proceed without something you are missing → `blocked`, and post a comment explaining the blocker unless your Agent Identity forbids issue comments.\n")if ctx.IsSquadLeader {b.WriteString("- Squad leader: dispatching members is not delivery — a dispatch turn leaves the parent `in_progress`, and it moves to `in_review` only on the later turn (a member update or stage-barrier re-trigger) where you confirm the overall goal is met.\n")}- b.WriteString("- Your turn only researched, answered, reviewed, or discussed — the issue's own state did not move → write nothing. A `todo` issue you were asked to research stays `todo`; questions, discussion, and acknowledgements never touch status. This no-write default is what keeps concurrent runs from flapping the board.\n\n")+ b.WriteString("- Your turn only researches, answers, reviews, or discusses — the issue's own state never moves → write nothing, at the start or the end. A `todo` issue you were asked to research stays `todo`; questions, discussion, and acknowledgements never touch status. This no-write default is what keeps concurrent runs from flapping the board.\n\n")}// writeSubIssueCreation emits the Sub-issue Creation section.diff --git a/server/internal/daemon/execenv/runtime_config_test.go b/server/internal/daemon/execenv/runtime_config_test.goindex 1c1133ccbc..382da1cc11 100644--- a/server/internal/daemon/execenv/runtime_config_test.go+++ b/server/internal/daemon/execenv/runtime_config_test.go@@ -139,21 +139,24 @@ func TestBriefHasNoParentNotificationGuidance(t *testing.T) {}}-// The status rule is a single end-of-turn fact judgment (MUL-6417): no-// trigger-type modes, no assignee gate, no opening in_progress write. The two-// invariants MUL-6300 pinned as gates (PR #205, reinforced by Elon's blocking-// review on PR #2918) survive as consequences of the fact anchor and stay-// pinned here:+// The status rule is a fact judgment with two write moments (MUL-6417): no+// trigger-type modes, no assignee gate. A turn that advances the issue's own+// ask records in_progress when it STARTS — judged only at turn end, a fresh+// assignment sat in todo for the whole first work turn (Bohan's post-merge+// report) — and the end of the turn records the state the work reached. The+// two invariants MUL-6300 pinned as gates (PR #205, reinforced by Elon's+// blocking review on PR #2918) survive as consequences of the fact anchor and+// stay pinned here://// - a purely conversational turn changes nothing about the issue's state,-// so it writes nothing;+// so it writes nothing — at either moment;// - concurrently triggered agents judging the same fact write the same// value or nothing, so the board cannot flap.//// The brief must also still carry no unconditional placeholder flip: a bare// `multica issue status <this-issue-id> in_review` command would fire on every// turn regardless of whether the turn delivered anything.-func TestStatusRuleIsEndOfTurnFactJudgment(t *testing.T) {+func TestStatusRuleIsFactJudgmentAtBothMoments(t *testing.T) {t.Parallel()ctx := TaskContextForEnv{IssueID: "55555555-6666-7777-8888-999999999999",@@ -166,10 +169,12 @@ func TestStatusRuleIsEndOfTurnFactJudgment(t *testing.T) {}for _, want := range []string{- // The anchor: issue state, not run lifecycle, judged once at the end.- "**Issue status — judge once, at the end of the turn**",+ // The anchor: issue state, not run lifecycle, written when it changes.+ "**Issue status — write the state the issue is in, whenever it changes**","Status reflects the state the ISSUE is in, not your run's lifecycle",- "so do not open with a status write",+ // The start moment: a work turn shows on the board while it runs.+ "The moment you know this turn advances what the issue itself asks for",+ "the board should show the issue being worked while you work, not only after",// No assignee gate: the judgment applies to whoever is running."whoever the assignee is",// Delivery lands in in_review and the ceiling keeps `done` human.@@ -192,7 +197,9 @@ func TestStatusRuleIsEndOfTurnFactJudgment(t *testing.T) {}// The retired gates must not come back: no trigger-type modes, no- // assignee-scoped arc, no opening flip.+ // assignee-scoped arc, no UNCONDITIONAL opening flip (the start moment is+ // conditional on the turn advancing the issue's ask), and no end-only+ // timing that hides a long first work turn in todo.for _, banned := range []string{"Turn mode","Ownership mode",@@ -200,6 +207,8 @@ func TestStatusRuleIsEndOfTurnFactJudgment(t *testing.T) {"when this issue is assigned to you and this turn does substantive work on it","set `in_progress` when you start","Before step 3, run `multica issue status",+ "judge once, at the end of the turn",+ "do not open with a status write",} {if strings.Contains(out, banned) {t.Errorf("brief still carries retired status gate %q (MUL-6417)\n---\n%s", banned, out)diff --git a/server/internal/daemon/prompt_test.go b/server/internal/daemon/prompt_test.goindex 3219e71f07..bcad1521d6 100644--- a/server/internal/daemon/prompt_test.go+++ b/server/internal/daemon/prompt_test.go@@ -1667,8 +1667,8 @@ func TestBriefCarriesNoModeRouter(t *testing.T) {t.Errorf("brief still references the retired turn-mode split via %q (MUL-6417)\n---\n%s", banned, brief)}}- if !strings.Contains(brief, "**Issue status — judge once, at the end of the turn**") {- t.Errorf("brief lost the unified end-of-turn status rule\n---\n%s", brief)+ if !strings.Contains(brief, "**Issue status — write the state the issue is in, whenever it changes**") {+ t.Errorf("brief lost the unified status rule\n---\n%s", brief)}}diff --git a/server/internal/handler/squad_briefing.go b/server/internal/handler/squad_briefing.goindex 529e37a85a..6c5d870b3b 100644--- a/server/internal/handler/squad_briefing.go+++ b/server/internal/handler/squad_briefing.go@@ -75,9 +75,10 @@ Your responsibilities, in order:// the parent's status arc.//// Since MUL-6417 the runtime brief has no grant routing that consumes this-// section by name: the unified workflow judges status once, at the end of the-// turn, from what the work changed, and the leader's only brief-side special-// case is that a dispatch turn leaves the parent in_progress. This section's+// section by name: the unified workflow writes status as the work changes it+// (in_progress when a turn starts advancing the issue's ask, the reached+// state at turn end), and the leader's only brief-side special case is that a+// dispatch turn leaves the parent in_progress. This section's// job is the owning/guest permission boundary, drawn at the Agent Identity// layer (Instruction Precedence puts it above the workflow). The owning// leader needs the standing wrap-up instruction below — the @mention-dispatchdiff --git a/server/internal/service/builtin_skills/multica-squads/references/squad-source-map.md b/server/internal/service/builtin_skills/multica-squads/references/squad-source-map.mdindex c27ee87f9d..4b2147e2e7 100644--- a/server/internal/service/builtin_skills/multica-squads/references/squad-source-map.md+++ b/server/internal/service/builtin_skills/multica-squads/references/squad-source-map.md@@ -143,8 +143,8 @@ Contracts:- archived squad / archived leader rejected at assign-time (issue.go:2622-2627);- pending task dedup is applied (squad.go:1042-1048);- parent status is agent-managed: since MUL-6417 the brief's status rule is a- single end-of-turn fact judgment (`writeWorkflowIssue`), and the leader- variant adds one bullet — dispatching members is not delivery, so a dispatch+ fact judgment written when the work changes it (`writeWorkflowIssue`), and the+ leader variant adds one bullet — dispatching members is not delivery, so a dispatchturn leaves the parent `in_progress` and `in_review` waits for the re-triggerthat confirms the overall goal is met. Squad Operating Protocol(`squad_briefing.go`) still states the ongoing `in_progress` → later@@ -236,7 +236,7 @@ Contracts:standing "Own the parent issue status" responsibility (present exactly whenthe issue is assigned to this squad) states the same expectation; the systemcomment marks the wrap-up moment. Since MUL-6417 the write itself needs no- grant — the brief's end-of-turn fact judgment covers it — but `done` remains+ grant — the brief's fact judgment covers it — but `done` remainshuman / integration owned.## Private Leader Accessdiff --git a/server/internal/service/builtin_skills/multica-working-on-issues/SKILL.md b/server/internal/service/builtin_skills/multica-working-on-issues/SKILL.mdindex 159eb97017..c1d3a385fe 100644--- a/server/internal/service/builtin_skills/multica-working-on-issues/SKILL.md+++ b/server/internal/service/builtin_skills/multica-working-on-issues/SKILL.md@@ -190,18 +190,19 @@ on it. These are the contracts, not advice:the assigned agent then.- **`in_progress` / `in_review`** are agent-managed CLI mutations, not`StartTask` / `CompleteTask` side effects. The runtime brief asks agents to- judge status once, at the END of a turn, from what the work changed about- the issue — not from the trigger type or the run's lifecycle, and not gated- on being the assignee: delivered the issue's own ask → `in_review`; work- continues beyond the turn (dispatched sub-issues, partial delivery) →- `in_progress`; stuck → `blocked`. A turn that only researched, answered,- reviewed, or discussed writes nothing — a `todo` issue researched on- request stays `todo`, and questions, discussion, or acknowledgements never- move the status. There is no opening `in_progress` write; the in-flight- run is already visible on the issue. Squad leaders: dispatching members is- not delivery — a dispatch turn leaves the parent `in_progress`, and it- moves to `in_review` only when a later re-trigger confirms the overall- goal is met.+ write the state the issue is in whenever their work changes it — not from+ the trigger type or the run's lifecycle, and not gated on being the+ assignee. A turn that advances the issue's own ask sets `in_progress` as+ soon as that is known, so the board shows the work while it runs; at the+ end of the turn the work's state is recorded: delivered the issue's own+ ask → `in_review`; work continues beyond the turn (dispatched sub-issues,+ partial delivery) → `in_progress`; stuck → `blocked`. A turn that only+ researched, answered, reviewed, or discussed writes nothing at either+ moment — a `todo` issue researched on request stays `todo`, and questions,+ discussion, or acknowledgements never move the status. Squad leaders:+ dispatching members is not delivery — a dispatch turn leaves the parent+ `in_progress`, and it moves to `in_review` only when a later re-trigger+ confirms the overall goal is met.- **`in_review`** is an accepted issue status. Some workflows use it while a PRis open and awaiting review; moving to it is an explicit mutation.- **`done`** on a child issue posts a system comment on its parent. If a PRdiff --git a/server/internal/service/builtin_skills/multica-working-on-issues/references/working-on-issues-source-map.md b/server/internal/service/builtin_skills/multica-working-on-issues/references/working-on-issues-source-map.mdindex 2e1ffe42fa..6cdda5e69b 100644--- a/server/internal/service/builtin_skills/multica-working-on-issues/references/working-on-issues-source-map.md+++ b/server/internal/service/builtin_skills/multica-working-on-issues/references/working-on-issues-source-map.md@@ -130,7 +130,7 @@ and is hidden from the PR list.| Child → `done` notifies + wakes the parent, gated by the stage barrier | `server/internal/handler/issue_child_done.go:66` (`notifyParentOfChildDone`; doc comment at `:15`; barrier gate at `:115`) | func def `:51` || Status change (incl. → `cancelled`) does NOT cancel in-flight tasks; only issue deletion does (MUL-4465) | no-cancel note in `server/internal/handler/issue.go:2652-2658` (`UpdateIssue`) and `:3170-3171` (`BatchUpdateIssues`); deletion still cancels at `:2863` (`DeleteIssue`) / `:3239` (`BatchDeleteIssues`) via `CancelTasksForIssue` (`server/internal/service/task.go:1229`) | new citation || `StartTask` / `CompleteTask` do not write issue status (agent CLI owns progress) | `server/internal/service/task.go` (`StartTask` / `CompleteTask` comments) | new citation |-| Runtime brief: status judged once at end of turn from what the work changed (delivery → `in_review`, continuing → `in_progress`, stuck → `blocked`, research/conversation → no write; no assignee gate, no opening `in_progress`); squad leader dispatch is not delivery (MUL-6417) | `server/internal/daemon/execenv/runtime_config_sections.go` (`writeWorkflowIssue`) | new citation |+| Runtime brief: status written when the work changes it — starting the issue's own ask → `in_progress` immediately; at turn end delivery → `in_review`, continuing → `in_progress`, stuck → `blocked`; research/conversation → no write at either moment; no assignee gate; squad leader dispatch is not delivery (MUL-6417) | `server/internal/daemon/execenv/runtime_config_sections.go` (`writeWorkflowIssue`) | new citation || Failed task may roll `in_progress` → `todo` when no active task remains | `server/internal/service/task.go` (`HandleFailedTasks`) | new citation |Creation with `--status todo` (or any non-backlog status) on an agent-assigned@@ -175,8 +175,8 @@ wakes the parent assignee. Promoting the next stage's `backlog` sub-issues to`todo` is the woken agent's decision, not a server side effect. When the wokenassignee (often a squad leader) decides the parent is complete, the systemcomment explicitly asks for `multica issue status <parent-id> in_review`. Any-turn may move the status on its own too, judged at the end of the turn from-what the work changed about the issue — there is no assignee gate (MUL-6417).+turn may move the status on its own too, judged from what the work changes+about the issue — there is no assignee gate (MUL-6417).## Metadata CLI