Skip to content

Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.

Go

fix(issues): stop blaming permission for an unresolved mention target (MUL-5548) (#6190)

Bohan Jiangf73250654fbd
diff --git a/packages/views/issues/blocked-trigger-copy.ts b/packages/views/issues/blocked-trigger-copy.ts
index 651a1fa707..49cd204f10 100644
--- a/packages/views/issues/blocked-trigger-copy.ts
+++ b/packages/views/issues/blocked-trigger-copy.ts
@@ -5,6 +5,13 @@ import type { useT } from "../i18n";
// same reason the same way. `reason_code` is the enumeration-safe wire code; the
// label it maps to never reveals the target's identity — the caller supplies the
// name it already has from the user's own mention markup.
+//
+// A label must not assert a cause the code does not carry. `invocation_not_allowed`
+// is deliberately ambiguous server-side (see dispatch/reason.go): it covers BOTH
+// "you may not invoke this target" and "this id resolved to nothing here". Copy
+// that blamed permission alone sent people to audit agent visibility settings over
+// what was really a mistyped mention uuid (MUL-5548), so both labels name the two
+// possibilities instead.
type IssuesT = ReturnType<typeof useT<"issues">>["t"];
// Full sentence — for tooltips and other surfaces with room to explain.
diff --git a/packages/views/issues/components/comment-trigger-chips.test.tsx b/packages/views/issues/components/comment-trigger-chips.test.tsx
index 3444159feb..be59119ab2 100644
--- a/packages/views/issues/components/comment-trigger-chips.test.tsx
+++ b/packages/views/issues/components/comment-trigger-chips.test.tsx
@@ -139,9 +139,10 @@ describe("CommentTriggerChips", () => {
);
// The name the user typed (not a "1 mention won't trigger" count) plus the
- // short no-permission reason.
+ // short reason, which must not assert a permission cause the server never
+ // gave: invocation_not_allowed also covers an unresolved id (MUL-5548).
expect(screen.getByText("Go")).toBeInTheDocument();
- expect(screen.getByText("No permission")).toBeInTheDocument();
+ expect(screen.getByText("Not found or no permission")).toBeInTheDocument();
expect(screen.queryByText(/won't trigger/i)).not.toBeInTheDocument();
});
@@ -164,7 +165,7 @@ describe("CommentTriggerChips", () => {
/>,
);
- expect(screen.getByText("No permission")).toBeInTheDocument();
+ expect(screen.getByText("Not found or no permission")).toBeInTheDocument();
expect(screen.queryByText("Go")).not.toBeInTheDocument();
});
@@ -183,7 +184,7 @@ describe("CommentTriggerChips", () => {
);
expect(screen.getByText("Go")).toBeInTheDocument();
- expect(screen.getByText("No permission")).toBeInTheDocument();
+ expect(screen.getByText("Not found or no permission")).toBeInTheDocument();
expect(screen.getByText("Ops")).toBeInTheDocument();
expect(screen.getByText("Runtime offline")).toBeInTheDocument();
});
diff --git a/packages/views/issues/components/comment-trigger-chips.tsx b/packages/views/issues/components/comment-trigger-chips.tsx
index d5cd2bdca0..f2158a0178 100644
--- a/packages/views/issues/components/comment-trigger-chips.tsx
+++ b/packages/views/issues/components/comment-trigger-chips.tsx
@@ -174,8 +174,9 @@ export function CommentTriggerChips({
}
// One blocked mention: named like an allowed chip ("Go"), but with an error
-// indicator and a short reason ("No permission") instead of "will start", so a
-// refused @mention reads as a clear, specific error rather than a vague count.
+// indicator and a short reason ("Not found or no permission") instead of "will
+// start", so a refused @mention reads as a clear, specific error rather than a
+// vague count.
function BlockedTriggerChip({
outcome,
label,
diff --git a/packages/views/locales/en/issues.json b/packages/views/locales/en/issues.json
index a0ba4b305e..16ca1f033b 100644
--- a/packages/views/locales/en/issues.json
+++ b/packages/views/locales/en/issues.json
@@ -369,11 +369,11 @@
"posted_partial_trigger_other": "Comment posted, but {{count}} mentions weren't triggered",
"posted_partial_trigger_named": "Comment posted, but {{name}} wasn't triggered ({{reason}})",
"trigger_blocked_chip_aria": "{{name}} won't be triggered — {{reason}}",
- "trigger_blocked_invocation_not_allowed": "You don't have permission to use this target",
+ "trigger_blocked_invocation_not_allowed": "This target can't be found, or you don't have permission to use it",
"trigger_blocked_target_unavailable": "This target is unavailable",
"trigger_blocked_runtime_offline": "This target's runtime is offline",
"trigger_blocked_generic": "This target won't be triggered",
- "trigger_blocked_short_invocation_not_allowed": "No permission",
+ "trigger_blocked_short_invocation_not_allowed": "Not found or no permission",
"trigger_blocked_short_target_unavailable": "Unavailable",
"trigger_blocked_short_runtime_offline": "Runtime offline",
"trigger_blocked_short_generic": "Won't start",
diff --git a/packages/views/locales/ja/issues.json b/packages/views/locales/ja/issues.json
index f08c7b9abd..4e036c1543 100644
--- a/packages/views/locales/ja/issues.json
+++ b/packages/views/locales/ja/issues.json
@@ -361,11 +361,11 @@
"posted_partial_trigger_other": "コメントを投稿しましたが、{{count}} 件のメンションはトリガーされませんでした",
"posted_partial_trigger_named": "コメントを投稿しましたが、{{name}} はトリガーされませんでした({{reason}})",
"trigger_blocked_chip_aria": "{{name}} はトリガーされません — {{reason}}",
- "trigger_blocked_invocation_not_allowed": "この対象を使用する権限がありません",
+ "trigger_blocked_invocation_not_allowed": "この対象が見つからないか、使用する権限がありません",
"trigger_blocked_target_unavailable": "この対象は利用できません",
"trigger_blocked_runtime_offline": "この対象のランタイムがオフラインです",
"trigger_blocked_generic": "この対象はトリガーされません",
- "trigger_blocked_short_invocation_not_allowed": "権限がありません",
+ "trigger_blocked_short_invocation_not_allowed": "未検出または権限なし",
"trigger_blocked_short_target_unavailable": "利用不可",
"trigger_blocked_short_runtime_offline": "ランタイム オフライン",
"trigger_blocked_short_generic": "トリガーされません",
diff --git a/packages/views/locales/ko/issues.json b/packages/views/locales/ko/issues.json
index dca760c1b5..c89b02f0ee 100644
--- a/packages/views/locales/ko/issues.json
+++ b/packages/views/locales/ko/issues.json
@@ -361,11 +361,11 @@
"posted_partial_trigger_other": "댓글이 게시되었지만 {{count}}개의 멘션이 트리거되지 않았습니다",
"posted_partial_trigger_named": "댓글이 게시되었지만 {{name}}이(가) 트리거되지 않았습니다 ({{reason}})",
"trigger_blocked_chip_aria": "{{name}}은(는) 트리거되지 않습니다 — {{reason}}",
- "trigger_blocked_invocation_not_allowed": "이 대상을 사용할 권한이 없습니다",
+ "trigger_blocked_invocation_not_allowed": "이 대상을 찾을 수 없거나 사용할 권한이 없습니다",
"trigger_blocked_target_unavailable": "이 대상을 사용할 수 없습니다",
"trigger_blocked_runtime_offline": "이 대상의 런타임이 오프라인입니다",
"trigger_blocked_generic": "이 대상은 트리거되지 않습니다",
- "trigger_blocked_short_invocation_not_allowed": "권한 없음",
+ "trigger_blocked_short_invocation_not_allowed": "찾을 수 없음 또는 권한 없음",
"trigger_blocked_short_target_unavailable": "사용 불가",
"trigger_blocked_short_runtime_offline": "런타임 오프라인",
"trigger_blocked_short_generic": "트리거 안 됨",
diff --git a/packages/views/locales/zh-Hans/issues.json b/packages/views/locales/zh-Hans/issues.json
index aa2d2f1d11..75ad22f7a8 100644
--- a/packages/views/locales/zh-Hans/issues.json
+++ b/packages/views/locales/zh-Hans/issues.json
@@ -361,11 +361,11 @@
"posted_partial_trigger_other": "评论已发布,但有 {{count}} 个提及未触发",
"posted_partial_trigger_named": "评论已发布,但 {{name}} 未触发({{reason}})",
"trigger_blocked_chip_aria": "{{name}} 不会被触发 —— {{reason}}",
- "trigger_blocked_invocation_not_allowed": "你没有该目标的使用权限",
+ "trigger_blocked_invocation_not_allowed": "找不到该目标,或你没有它的使用权限",
"trigger_blocked_target_unavailable": "该目标不可用",
"trigger_blocked_runtime_offline": "该目标的运行时已离线",
"trigger_blocked_generic": "该目标不会被触发",
- "trigger_blocked_short_invocation_not_allowed": "无使用权限",
+ "trigger_blocked_short_invocation_not_allowed": "找不到或无权限",
"trigger_blocked_short_target_unavailable": "不可用",
"trigger_blocked_short_runtime_offline": "运行时离线",
"trigger_blocked_short_generic": "不会触发",
diff --git a/server/internal/handler/comment.go b/server/internal/handler/comment.go
index f13bb4cf6e..8c04355cce 100644
--- a/server/internal/handler/comment.go
+++ b/server/internal/handler/comment.go
@@ -2575,9 +2575,13 @@ func (h *Handler) resolveMentionedAgentCommentTriggers(ctx context.Context, issu
agentUUID, err := util.ParseUUID(m.ID)
if err != nil {
// Untrusted comment text: MentionRe matches any hex/dash run, so a
- // malformed id must not reach the panicking Must* parser. It gets
- // the same enumeration-safe outcome as an id that owns no agent.
- blockTarget("agent", m.ID, ReasonInvocationNotAllowed)
+ // malformed id must not reach the panicking Must* parser. A string
+ // that is not a UUID at all cannot name an entity in ANY workspace,
+ // so there is no existence to conceal here and the invoke-permission
+ // code would be a false cause (MUL-5548): report the same
+ // target_unavailable the squad path above already uses. Only the
+ // well-formed-but-unresolved case below stays enumeration-safe.
+ blockTarget("agent", m.ID, ReasonTargetUnavailable)
continue
}
// Load the agent scoped to the current issue's workspace. Using the
diff --git a/server/internal/handler/comment_trigger_preview_test.go b/server/internal/handler/comment_trigger_preview_test.go
index 46f702a5b7..8e307a9b1c 100644
--- a/server/internal/handler/comment_trigger_preview_test.go
+++ b/server/internal/handler/comment_trigger_preview_test.go
@@ -1135,7 +1135,15 @@ func TestPreviewCommentTriggers_AllPlusMemberMentionStaysSuppressed(t *testing.T
// straight to the panicking parseUUID (util.MustParseUUID), turning attacker-
// controlled comment text into a 500 — and on the create path the comment row
// was already committed before the panic. Malformed ids must be reported as
-// blocked mentions, exactly like a well-formed id that owns no entity.
+// blocked mentions, never as an error response.
+//
+// The reason is target_unavailable on BOTH the agent and the squad path
+// (MUL-5548): a string that is not a UUID cannot name an entity in any
+// workspace, so it conceals no existence and must not be blamed on invoke
+// permission. This is deliberately NOT the well-formed-but-unresolved case,
+// which stays invocation_not_allowed so a blocked reason can never confirm a
+// private agent — that boundary is pinned by
+// TestCreateComment_BlockedMentionReasonDoesNotEnumeratePrivateAgent.
func TestPreviewCommentTriggers_MalformedMentionIDDoesNotPanic(t *testing.T) {
if testHandler == nil || testPool == nil {
t.Skip("database not available")
@@ -1156,14 +1164,14 @@ func TestPreviewCommentTriggers_MalformedMentionIDDoesNotPanic(t *testing.T) {
content: "[@Broken](mention://agent/-) please look",
targetType: "agent",
targetID: "-",
- reason: ReasonInvocationNotAllowed,
+ reason: ReasonTargetUnavailable,
},
{
name: "short hex agent id",
content: "[@Broken](mention://agent/dead-beef) please look",
targetType: "agent",
targetID: "dead-beef",
- reason: ReasonInvocationNotAllowed,
+ reason: ReasonTargetUnavailable,
},
{
name: "malformed squad id",
@@ -1177,7 +1185,7 @@ func TestPreviewCommentTriggers_MalformedMentionIDDoesNotPanic(t *testing.T) {
content: "[@all](mention://all/all) heads up [@Broken](mention://agent/-) please look",
targetType: "agent",
targetID: "-",
- reason: ReasonInvocationNotAllowed,
+ reason: ReasonTargetUnavailable,
},
{
name: "all plus malformed squad id",
diff --git a/server/internal/service/builtin_skills/multica-mentioning/SKILL.md b/server/internal/service/builtin_skills/multica-mentioning/SKILL.md
index 1c74ca7fa2..7ce4ef1401 100644
--- a/server/internal/service/builtin_skills/multica-mentioning/SKILL.md
+++ b/server/internal/service/builtin_skills/multica-mentioning/SKILL.md
@@ -113,30 +113,50 @@ evaluated BEFORE the `@all` short-circuit.
## What does NOT happen (so the result doesn't surprise you)
-These are all silent no-ops — no error, no run:
+None of these start a fresh run, and none produce an error response — but they
+are three different things, and the response tells you which. A mention that
+never parsed is a truly silent no-op. One that parsed and was refused comes back
+in `trigger_outcomes` as `status: "blocked"` with a `reason_code`. One whose
+target is already busy comes back `coalesced` or `deferred`: no second run, but
+your comment IS folded into the task that is already running, so it still gets
+read. Read that array after posting — it is the only place any of this shows up.
- **A name where a UUID belongs.** `mention://member/Alice` is dead. The id
group accepts only hex+dashes or `all`; the non-hex letters in a typical name
make the whole pattern fail to match, so the parser returns nothing.
- **A hex-ish but wrong UUID.** A well-formed-looking UUID that no entity owns
DOES parse, then no-ops at lookup: the workspace-scoped query finds no agent
- and the loop `continue`s. Same agent-visible result (nothing fires), but the
- mechanism is the lookup miss, not a parse failure. An id that matches the
- pattern but is NOT a valid UUID at all (`mention://agent/-`) is rejected by
- the id parser itself and reported as a blocked mention with the same
- enumeration-safe reason code — never an error response.
-- **An already-pending task.** Even a correct `@agent`/`@squad` is skipped when
- the target already has a pending task on this issue
- (`HasPendingTaskForIssueAndAgent` → `continue`). Edit preview is the only
- exception: `editing_comment_id` ignores pending tasks from the same comment
- being edited, because save cancels those old tasks before it re-computes
- triggers. It is still comment-scoped, not an agent-wide bypass.
-- **An archived agent**, or a squad whose leader is archived: skipped
- (`RuntimeID` invalid or `ArchivedAt` set).
-- **A private agent you cannot access:** skipped — the mention path gates on
- `canAccessPrivateAgent` directly for both `@agent` and `@squad` (the
- `canEnqueueSquadLeader` wrapper is the squad assignment/promote path, not this
- one; the child-done wake is ungated — see the multica-squads skill).
+ and the mention is reported blocked with `invocation_not_allowed`. That code
+ is deliberately ambiguous — **a typo'd UUID and a genuine permission denial
+ look identical on purpose**, because the id you typed could name a private
+ agent in another workspace and the reason must not confirm that it exists.
+ **So when you see `invocation_not_allowed`, check the UUID against the live
+ roster BEFORE you touch any visibility or invocation setting** (MUL-5548);
+ `multica squad member list <squad-id> --output json` returns the `member_id`
+ to build the mention from. An id that matches the pattern but is NOT a valid
+ UUID at all (`mention://agent/-`) is rejected by the id parser and blocked
+ with `target_unavailable` instead — a non-UUID names no entity anywhere, so
+ it conceals nothing. Neither case is ever an error response.
+- **An already-pending task.** Even a correct `@agent`/`@squad` starts no second
+ run when the target already has a pending task on this issue
+ (`HasPendingTaskForIssueAndAgent`). This is a fold, not a drop: the comment
+ merges into that task and the outcome is `coalesced` (same reviewed head) or
+ `deferred` (different head) — do NOT re-post it as "the mention didn't work".
+ Edit preview is the only exception: `editing_comment_id` ignores pending tasks
+ from the same comment being edited, because save cancels those old tasks
+ before it re-computes triggers. It is still comment-scoped, not an agent-wide
+ bypass.
+- **An archived agent, or one with no runtime bound** (likewise a squad whose
+ leader is): blocked with `target_unavailable` and `runtime_offline`
+ respectively. Both are checked only AFTER the invoke gate, so a caller who may
+ not invoke the target never learns its state.
+- **A private agent you cannot invoke:** blocked — the mention path gates on
+ `canInvokeAgent` for both `@agent` and `@squad`. That is the *run* gate, not
+ the *see* gate: since MUL-3963 a workspace admin who can open a private agent
+ in the UI still may not trigger it, so being able to view the target says
+ nothing about being able to mention it. (The `canEnqueueSquadLeader` wrapper
+ is the squad assignment/promote path, not this one; the child-done wake is
+ ungated — see the multica-squads skill.)
One nuance for automation (MUL-4857): when an UNATTRIBUTED autopilot run (a
schedule/webhook dispatch has no human originator, so the A2A gate has no human
diff --git a/server/internal/service/builtin_skills/multica-mentioning/references/mentioning-source-map.md b/server/internal/service/builtin_skills/multica-mentioning/references/mentioning-source-map.md
index e11f82b52b..c05516a4c3 100644
--- a/server/internal/service/builtin_skills/multica-mentioning/references/mentioning-source-map.md
+++ b/server/internal/service/builtin_skills/multica-mentioning/references/mentioning-source-map.md
@@ -76,21 +76,28 @@ a pointer.
| Negative regression test proves another comment's pending task still dedupes the preview | `server/internal/handler/comment_trigger_preview_test.go:267-290` |
| Edit-submit regression test proves `suppress_agent_ids` filters update-triggered tasks | `server/internal/handler/comment_trigger_preview_test.go:292-316` |
-## Guards that make a valid mention a silent no-op
+## Guards and outcomes for a parsed mention
-| Guard | Source |
-| --- | --- |
-| agent archived / no runtime → `continue` (`RuntimeID` invalid or `ArchivedAt` set) | `server/internal/handler/comment.go:1451-1452` |
-| squad leader archived / no runtime → `continue` | `server/internal/handler/comment.go:1417-1423` |
-| private agent the actor cannot access → `continue` (`canAccessPrivateAgent`) | `server/internal/handler/comment.go:1454-1458` |
-| private squad leader the actor cannot trigger → `continue` (`canAccessPrivateAgent`) | `server/internal/handler/comment.go:1425-1428` |
-| already-pending dedup (agent) → shared pending-task helper → `continue` | `server/internal/handler/comment.go:1459-1463` |
-| already-pending dedup (squad leader) → shared pending-task helper → `continue` | `server/internal/handler/comment.go:1429-1433` |
-| `canAccessPrivateAgent` definition | `server/internal/handler/agent_access.go` (search `func (h *Handler) canAccessPrivateAgent`) |
-| `canEnqueueSquadLeader` (loads leader, delegates to `canInvokeAgent`) | `server/internal/handler/agent_access.go:261-267` |
-| autopilot-delegation invoke authority: an unattributed autopilot run delegating on the issue it created falls back to the autopilot creator as the effective invoking user for the gate, bound to verified speaking-task lineage (author == task agent, `task.issue_id` == this issue) so no cross-issue borrow (MUL-4857) | gate application via `opts.effectiveInvoker()` in `server/internal/handler/comment.go` (search `func (o commentTriggerComputeOptions) effectiveInvoker`); lineage-verifying helper in `server/internal/handler/agent_access.go` (search `func (h *Handler) autopilotDelegationAuthority`); resolved from the trusted X-Task-ID / `comment.source_task_id` via `autopilotDelegationAuthorityFromRequest` / `autopilotDelegationAuthorityFromComment` |
-| autopilot-delegation authority on the DEFERRED path: a delegation to a busy target replays at the target's completion reconcile, which restores the same authority from `comment.source_task_id` (MUL-4857) | `server/internal/handler/daemon.go` (search `reconcileCommentsOnCompletion`, the `autopilotDelegationAuthorityFromComment` call) |
-| authority lineage is persisted per-action: only an agent editing its OWN comment re-stamps `source_task_id` to the current editing task (issue-scoped, like create); any other editor — including a workspace owner/admin editing an agent's comment (manage rights, not invoke rights) — CLEARS it, so a cross-issue edit or an admin edit makes every authority/originator read fail closed, including the deferred completion-reconcile — preview, save, and reconcile agree (MUL-4857) | `server/internal/handler/comment.go` (search `commentSourceTaskIDForIssue` and the `isAuthor` branch in `UpdateComment`) |
+A mention that parses is never silently dropped: every guard below either
+records a blocked outcome with a stable `reason_code`, or hands the trigger to
+enqueue, which resolves it to queued / coalesced / deferred. Only a mention
+that never parsed at all (a name where a UUID belongs) is a true silent no-op.
+
+| Guard | Outcome | Source |
+| --- | --- | --- |
+| mentioned agent is archived, or has no runtime bound | blocked `target_unavailable` / `runtime_offline` — evaluated in that order and AFTER the invoke gate, so a caller who may not invoke the target never learns its state | `server/internal/handler/comment.go` (search `resolveMentionedAgentCommentTriggers`, the agent-branch `ArchivedAt` / `RuntimeID` checks) |
+| mentioned squad's leader is archived, or has no runtime bound | blocked `target_unavailable` / `runtime_offline`, same ordering behind the leader invoke gate | `server/internal/handler/comment.go` (search `resolveMentionedAgentCommentTriggers`, the squad-branch `ArchivedAt` / `RuntimeID` checks) |
+| private agent the actor cannot INVOKE (`canInvokeAgent`, not `canAccessPrivateAgent` — MUL-3963 split see-vs-run) | blocked `invocation_not_allowed` | `server/internal/handler/comment.go` (search `resolveMentionedAgentCommentTriggers`, the agent-branch `canInvokeAgent` call) |
+| private squad leader the actor cannot INVOKE (`canInvokeAgent`) | blocked `invocation_not_allowed` | `server/internal/handler/comment.go` (search `resolveMentionedAgentCommentTriggers`, the squad-branch `canInvokeAgent` call) |
+| well-formed mention uuid that resolves to no agent in this workspace | blocked `invocation_not_allowed` — the SAME code as a private agent, so a blocked reason can never confirm existence | `server/internal/handler/comment.go` (search `Do not reveal whether the id exists`) |
+| mention id that is not a valid uuid at all (`mention://agent/-`) | blocked `target_unavailable` on BOTH the agent and squad branch: a non-uuid names no entity anywhere, so it hides nothing and must not be blamed on permission (MUL-5548) | `server/internal/handler/comment.go` (search `cannot name an entity in ANY workspace`) |
+| the mentioned agent already has a pending task on this issue | NOT a drop: the resolver flags `AlreadyPending` and enqueue folds the comment into that task — `coalesced` on a same-head merge, `deferred` on a different head, `blocked` if the merge fails closed | flag set in `server/internal/handler/comment.go` (search `AlreadyPending: hasPending`); resolved in `resolveCommentTriggerEnqueue` |
+| the mentioned squad's leader already has a pending task on this issue | same `AlreadyPending` fold as the agent row | `server/internal/handler/comment.go` (search `hasPendingTaskForIssueAndAgent` in the squad branch) |
+| `canAccessPrivateAgent` definition — the SEE gate, deliberately NOT used by the mention path | n/a (reference) | `server/internal/handler/agent_access.go` (search `func (h *Handler) canAccessPrivateAgent`) |
+| `canEnqueueSquadLeader` (loads leader, delegates to `canInvokeAgent`) — squad assignment/promote path, NOT the mention path | n/a (reference) | `server/internal/handler/agent_access.go` (search `func (h *Handler) canEnqueueSquadLeader`) |
+| autopilot-delegation invoke authority: an unattributed autopilot run delegating on the issue it created falls back to the autopilot creator as the effective invoking user for the gate, bound to verified speaking-task lineage (author == task agent, `task.issue_id` == this issue) so no cross-issue borrow (MUL-4857) | feeds the invoke gate | gate application via `opts.effectiveInvoker()` in `server/internal/handler/comment.go` (search `func (o commentTriggerComputeOptions) effectiveInvoker`); lineage-verifying helper in `server/internal/handler/agent_access.go` (search `func (h *Handler) autopilotDelegationAuthority`); resolved from the trusted X-Task-ID / `comment.source_task_id` via `autopilotDelegationAuthorityFromRequest` / `autopilotDelegationAuthorityFromComment` |
+| autopilot-delegation authority on the DEFERRED path: a delegation to a busy target replays at the target's completion reconcile, which restores the same authority from `comment.source_task_id` (MUL-4857) | feeds the invoke gate | `server/internal/handler/daemon.go` (search `reconcileCommentsOnCompletion`, the `autopilotDelegationAuthorityFromComment` call) |
+| authority lineage is persisted per-action: only an agent editing its OWN comment re-stamps `source_task_id` to the current editing task (issue-scoped, like create); any other editor — including a workspace owner/admin editing an agent's comment (manage rights, not invoke rights) — CLEARS it, so a cross-issue edit or an admin edit makes every authority/originator read fail closed, including the deferred completion-reconcile — preview, save, and reconcile agree (MUL-4857) | fails closed | `server/internal/handler/comment.go` (search `commentSourceTaskIDForIssue` and the `isAuthor` branch in `UpdateComment`) |
## @all broadcast and assignee-trigger suppression