You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Filed by the main-breakage chain (.github/workflows/main-broken.yml, #1782). Exactly one holder owns this breakage at a time; every transition is an agent-note:v1 comment on this issue.
Diagnose the failure, fix the root cause, and deliver the fix as a pull request whose description contains "Fixes #", using the number of the issue this dispatch created, so the issue closes when the fix lands.
agent-note:v1 — holder: chain (remediation budget exhausted) at 2026-11-12T11:09:22Z: 3 open main-broken issues already carry the dispatch/remediate label. This issue carries queue/queued, so the fleet monitor enqueues the priority packet from the issue.
Main is still red for this breakage: https://github.com/developing-today/code/actions/runs/43237094909 (workflow mcpx conformance, head 5160cec). Breakage-ID: e63a89534fc4 — appending per the chain dedup rule; no duplicate issue. A fresh fix task has been queued on this issue via pm-dispatch.
agent-note:v1
Agent: Muse lane any-a (repo-queue-worker)
state: picked up — resuming the tasks-family fix
issue: #8922
task: 20361
Resuming task 20361 direct. The bound opencode session ses_e5e17af8e50ffeLyrRYjdAdTz9 was verified terminal by lane any-g (idle since 2026-11-17T07:04Z); the broker re-served the task to this lane, and the lane-assignment row does not flip for a bound session, so — as lane any-g did — this lane works it direct under the verified-stale-binding rule and records that here.
State found: Family 1 is landed (PR #11188). Family 2 (SEP-2322) no longer appears in server-all per lane any-g's post-merge run (255 passed / 16 failed, all tasks family). In worktree ~/git/fleet/20361 there is an UNCOMMITTED, coherent fix for the tasks-family WriteLedger cascade any-g diagnosed: a task's inner call whose context is cancelled (tasks/cancel) no longer records an unknown write outcome (mark propagated via mcpclient.WithTaskExecution + X-Mcpx-Task-Execution header + mcpserver.WithinTask), an in-line CallToolResult answer to a task-augmented call is accepted in mcpclient/tasks.go, and a regression test exists in write_policy_test.go. One leftover: a LEDGERDBG debug println in daemon/registry.go, which this pass removes.
Plan: remove the debug print, run the mcpx unit suites for the touched packages, post the root-cause note, commit on a fresh branch, open the PR (Refs #8922 — NOT a closing keyword; this issue already suffered one premature auto-close), then re-run the affected conformance legs.
agent-note:v1
Agent: Muse lane any-a (repo-queue-worker)
state: root cause recorded (tasks family) — PR to follow
issue: #8922
task: 20361
Root cause of the remaining tasks-family failures (server-all 255/16 after PR #11188), completing the WriteLedger diagnosis lane any-g started:
Task-cancelled inner calls poisoned the daemon write ledger. The conformance suite cancels the task it just created as cleanup; the task's in-flight upstream call aborts with that cancellation. Registry.callWithLedger (internal/daemon/registry.go) treated that abort as an unknown write outcome and recorded it, after which every later non-read-only call to that server was refused ("outcome is unknown; further non-read-only calls to that server are blocked until cleared") — one cleanup cancel cascaded into the rest of the tasks scenarios. A tasks/cancel is a protocol-level disposition owned by the task store (the task's status becomes cancelled, visible to the cancelling client), so the outcome is accounted for, not unknown. Fix: taskCancelled(ctx) exempts exactly that case — a task's inner call (mcpserver.WithinTask, or the mark restored from the X-Mcpx-Task-Execution header via mcpclient.TaskExecutionFrom for calls that crossed the daemon API on /v1/call and /v1/ask) whose context is actually cancelled. A task call that fails with its context still live still records, unchanged. Regression test: TestCallWithLedgerTaskCancellationDoesNotRecordUnknownOutcome (internal/daemon/write_policy_test.go) — with the mark, a mid-call cancellation returns the raw error and leaves the ledger empty; without the mark, the same cancellation still records ErrUnknownOutcome (oracle: the exemption stays scoped to task execution).
An in-line result to a task-augmented call was treated as malformed. A server may answer a task-augmented tools/call in line when the tool finishes at once (the fixture's failing_job does exactly that); callToolAsLegacyTask (internal/mcpclient/tasks.go) rejected any response without a {task} handle as malformed. Fix: a payload shaped like a CallToolResult (content / isError / structuredContent) is returned as the call's definitive result; anything else keeps the malformed-response error.
The mark plumbing: mcpclient.WithTaskExecution/TaskExecutionFrom (new), set from mcpserver.WithinTask in mcpBackend.Call and daemonAsker.Begin, carried over the daemon API as the X-Mcpx-Task-Execution header (daemon.TaskExecutionHeader) and restored in withClientCaps and handleAskBegin; mcpserver.WithinTask/MarkWithinTask are the exported forms of the existing withinTask helpers.
This work was found uncommitted in worktree ~/git/fleet/20361 (authored by the earlier session/lane on this task, with a LEDGERDBG debug print still in registry.go — removed this pass). No conformance coverage is weakened by this change: no scenario skipped, no EXPECT loosened, no check deleted.
Post-#11188 conformance (run 44070866395): all client legs and the 2025-03-26 / 2025-06-18 / 2025-11-25 server legs pass; server-all and server-2026-07-28 fail 17 checks each, every failure in tasks-* scenarios. Reproduced locally end-to-end (pinned suite 7169291e, taskmcp fixture, daemon state preserved). Three distinct defects, one cascade:
1. A cancelled task's inner call was recorded as an unknown write outcome (the cascade).
The capability scenario creates a task via slow_compute {seconds: 1, label: "capability-meta-opt"} (passes), then the suite sends tasks/cancel as best-effort cleanup. The task's context is cancelled; the in-flight upstream call aborts (~287 ms) with a plain cancellation error. callWithLedger (pkgs/mcpx/internal/daemon/registry.go) recorded an unknown write outcome — ledger evidence from the preserved daemon state: {server: "tasks", tool: "slow_compute", surface: "call", argsSha256: 01be34d6…} — because IsConclusiveUpstreamError (internal/mcpclient/dispatch.go) only treats *rpcError as conclusive. The record then refused every later non-read-only call to server tasks, cascading through lifecycle, wire-fields, request-state-removal, mrtr-input, request-headers, dispatch-and-envelope and mrtr-composition.
A tasks/cancel is a protocol-level disposition owned by the task store: the task's status becomes cancelled, visible to the client that cancelled it — the outcome is accounted for, not unknown.
2. The same recording on the interruptible (ask) surface.
Lifecycle/dispatch cancel checks record again with surface: "ask". An asked call starts before its task exists (beginAsk → daemon /v1/ask), so no context mark can ride with it; when tasks/cancel lands, driveAsked abandons the ask and the daemon-side call unwinds with context canceled, unmarked. The fix flags this retroactively: the abandon request carries taskCancelled, the daemon marks the ask id in its ask table before cancelling the ask, and the ledger consults that flag.
3. Legacy task-augmented calls rejected definitive in-line answers. failing_job (taskSupport required, legacy era) is answered by the fixture in line after ~1 s with a plain CallToolResult (isError: true) — the extension permits an in-line answer, as the fixture's own comment notes for protocol_error_job. callToolAsLegacyTask (internal/mcpclient/tasks.go) rejected it as a "malformed task-augmented response", and that synthetic error was likewise recorded as an unknown write outcome (surface: "ask", tool failing_job). The client now accepts a substantive in-line CallToolResult (content / isError / structuredContent) as the call's definitive answer; genuinely shapeless answers keep the malformed error (existing TestLegacyTaskFaultAndMalformed contract preserved).
Fix (branch queue/20361-mcpx-conformance, PR to follow):
mcpserver: export the within-task context mark (MarkWithinTask/WithinTask); driveAsked abandons via a task-aware AbandonTask when the driver offers it.
cli: both call paths (direct mcpBackend.Call, interruptible ask driver) translate the within-task mark into the marker; the daemon API client serializes it as X-Mcpx-Task-Execution (mirroring X-Mcpx-Caller-Protocol).
daemon: header restored in withClientCaps and carried by value into ask-task contexts (alongside caps/caller-version); /v1/ask/{id}/abandon accepts {"taskCancelled": true} and flags the ask table before cancelling; callWithLedger skips recording when the call is a task inner call whose context was cancelled, on any of the three paths. Unmarked cancelled calls still record, exactly as before.
Tests: TestCallWithLedgerTaskCancellationDoesNotRecordUnknownOutcome (in-process + header-restored marks, unmarked control) and TestCallWithLedgerAskTaskCancellationDoesNotRecordUnknownOutcome (flagged vs unflagged ask).
Local verification: all 8 tasks scenarios pass against the fixed build (capability 5/5, dispatch 9/9, lifecycle 9/9, wire-fields 4/4, request-state-removal 3/3, mrtr-input 4/4, request-headers 5/5, mrtr-composition 2/2) with no unknown-writes ledger file created; go test green for internal/daemon, internal/mcpclient, internal/mcpserver. Full nine-leg CI verification still required post-merge before this issue closes (hence Refs, not Fixes, on the PR).
Fixed by PR #11279 (merged 2026-11-17T12:28:41Z, merge commit 4b9cd2b), on top of #11188 (elicitation relay) and #10985 (writePolicy harness). Root causes and fix shape are in the pre-PR note: #8922 (comment)
server-2025-03-26 ✓ · server-2025-06-18 ✓ · server-2025-11-25 ✓ · server-2026-07-28 ✓ · server-all ✓ (the two legs failing 17 tasks-* checks each in run 44070866395)
compare with the records ✓
Local pre-merge verification matched: all 8 tasks scenarios pass against the fixed build with no unknown-writes ledger file created, and the daemon/mcpclient/mcpserver/cli suites are green. Closing.
agent-note:v1
Agent: Muse lane any-a (repo-queue-worker)
state: loop closed — task 20361 completed by the parallel authoring lane
issue: #8922
task: 20361
Closing the loop on my pickup note (6947542735): while this lane held a claim on task 20361 and was queued for build-lock test slots, the lane that authored the tasks-family fix completed it — PR #11279 merged 2026-11-17T12:28:41Z, the post-merge conformance run on main (44083553955) is green on all nine legs, this issue closed 12:32:03Z, and task 20361 was completed at 12:32:57Z. My heartbeat at ~13:0xZ correctly returned "not claimed by repo-worker-code" and this lane stopped work on the task at that verdict. My root-cause note (6947593374) corroborates the author's own pre-PR note (6947835488); the committed fix (acf422c) is a superset of the uncommitted diff I found and contains no debug print. This lane's still-queued duplicate test job was killed to free its build-lock slot. No further action from lane any-a on #8922.
Activity
developing-today commentedon Nov 12, 2026
Filed by pm-dispatch (GitHub Actions OIDC (repo developing-today/code, actor dezren39, workflow developing-today/code/.github/workflows/main-broken.yml@refs/heads/main)).
github-actions commentedon Nov 12, 2026
agent-note:v1 — holder: chain (filing), at 2026-11-12T11:09:01Z. Breakage-ID: e63a89534fc4
github-actions commentedon Nov 12, 2026
agent-note:v1 - scout: classification unknown, at 2026-11-12T11:09:21Z. Breakage-ID: e63a89534fc4. Run: https://github.com/developing-today/code/actions/runs/43203385059
Evidence (failing job log tails):
full (main tier): server-all: log download failed for job 131132289833 (full (main tier): server-all)
full (main tier): server-2026-07-28: log download failed for job 131132289851 (full (main tier): server-2026-07-28)
full (main tier): server-2025-11-25: log download failed for job 131132289865 (full (main tier): server-2025-11-25)
full (main tier): server-2025-06-18: log download failed for job 131132289956 (full (main tier): server-2025-06-18)
full (main tier): client-2025-06-18: log download failed for job 131132290040 (full (main tier): client-2025-06-18)
route: existing dispatch/queue fix routing, diagnosis attached.
github-actions commentedon Nov 12, 2026
agent-note:v1 — holder: chain (remediation budget exhausted) at 2026-11-12T11:09:22Z: 3 open main-broken issues already carry the dispatch/remediate label. This issue carries queue/queued, so the fleet monitor enqueues the priority packet from the issue.
github-actions commentedon Nov 12, 2026
agent-note:v1 - scout: classification unknown, at 2026-11-12T14:40:16Z. Breakage-ID: e63a89534fc4. Run: https://github.com/developing-today/code/actions/runs/43237094909
Evidence (failing job log tails):
full (main tier): server-all: log download failed for job 131247234256 (full (main tier): server-all)
full (main tier): client-2025-11-25: log download failed for job 131247234270 (full (main tier): client-2025-11-25)
full (main tier): server-2026-07-28: log download failed for job 131247234276 (full (main tier): server-2026-07-28)
full (main tier): server-2025-11-25: log download failed for job 131247234365 (full (main tier): server-2025-11-25)
full (main tier): client-2025-06-18: log download failed for job 131247234522 (full (main tier): client-2025-06-18)
route: existing dispatch/queue fix routing, diagnosis attached.
developing-today commentedon Nov 12, 2026
Filed by pm-dispatch (GitHub Actions OIDC (repo developing-today/code, actor dezren39, workflow developing-today/code/.github/workflows/main-broken.yml@refs/heads/main)).
github-actions commentedon Nov 12, 2026
Main is still red for this breakage: https://github.com/developing-today/code/actions/runs/43237094909 (workflow
mcpx conformance, head5160cec). Breakage-ID: e63a89534fc4 — appending per the chain dedup rule; no duplicate issue. A fresh fix task has been queued on this issue via pm-dispatch.78 remaining items
dezren39 commentedon Nov 17, 2026
Main-ci watch recurrence (2026-11-17T11:10Z): `mcpx conformance` failed again on main at head `c88b6e69e695f617695bbe16d5ff4b5489849060`.
dezren39 commentedon Nov 17, 2026
agent-note:v1
Agent: Muse lane any-a (repo-queue-worker)
state: picked up — resuming the tasks-family fix
issue: #8922
task: 20361
Resuming task 20361 direct. The bound opencode session ses_e5e17af8e50ffeLyrRYjdAdTz9 was verified terminal by lane any-g (idle since 2026-11-17T07:04Z); the broker re-served the task to this lane, and the lane-assignment row does not flip for a bound session, so — as lane any-g did — this lane works it direct under the verified-stale-binding rule and records that here.
State found: Family 1 is landed (PR #11188). Family 2 (SEP-2322) no longer appears in server-all per lane any-g's post-merge run (255 passed / 16 failed, all tasks family). In worktree ~/git/fleet/20361 there is an UNCOMMITTED, coherent fix for the tasks-family WriteLedger cascade any-g diagnosed: a task's inner call whose context is cancelled (tasks/cancel) no longer records an unknown write outcome (mark propagated via mcpclient.WithTaskExecution + X-Mcpx-Task-Execution header + mcpserver.WithinTask), an in-line CallToolResult answer to a task-augmented call is accepted in mcpclient/tasks.go, and a regression test exists in write_policy_test.go. One leftover: a LEDGERDBG debug println in daemon/registry.go, which this pass removes.
Plan: remove the debug print, run the mcpx unit suites for the touched packages, post the root-cause note, commit on a fresh branch, open the PR (Refs #8922 — NOT a closing keyword; this issue already suffered one premature auto-close), then re-run the affected conformance legs.
dezren39 commentedon Nov 17, 2026
agent-note:v1
Agent: Muse lane any-a (repo-queue-worker)
state: root cause recorded (tasks family) — PR to follow
issue: #8922
task: 20361
Root cause of the remaining tasks-family failures (server-all 255/16 after PR #11188), completing the WriteLedger diagnosis lane any-g started:
Task-cancelled inner calls poisoned the daemon write ledger. The conformance suite cancels the task it just created as cleanup; the task's in-flight upstream call aborts with that cancellation.
Registry.callWithLedger(internal/daemon/registry.go) treated that abort as an unknown write outcome and recorded it, after which every later non-read-only call to that server was refused ("outcome is unknown; further non-read-only calls to that server are blocked until cleared") — one cleanup cancel cascaded into the rest of the tasks scenarios. A tasks/cancel is a protocol-level disposition owned by the task store (the task's status becomes cancelled, visible to the cancelling client), so the outcome is accounted for, not unknown. Fix:taskCancelled(ctx)exempts exactly that case — a task's inner call (mcpserver.WithinTask, or the mark restored from the X-Mcpx-Task-Execution header via mcpclient.TaskExecutionFrom for calls that crossed the daemon API on /v1/call and /v1/ask) whose context is actually cancelled. A task call that fails with its context still live still records, unchanged. Regression test: TestCallWithLedgerTaskCancellationDoesNotRecordUnknownOutcome (internal/daemon/write_policy_test.go) — with the mark, a mid-call cancellation returns the raw error and leaves the ledger empty; without the mark, the same cancellation still records ErrUnknownOutcome (oracle: the exemption stays scoped to task execution).An in-line result to a task-augmented call was treated as malformed. A server may answer a task-augmented tools/call in line when the tool finishes at once (the fixture's failing_job does exactly that);
callToolAsLegacyTask(internal/mcpclient/tasks.go) rejected any response without a {task} handle as malformed. Fix: a payload shaped like a CallToolResult (content / isError / structuredContent) is returned as the call's definitive result; anything else keeps the malformed-response error.The mark plumbing: mcpclient.WithTaskExecution/TaskExecutionFrom (new), set from mcpserver.WithinTask in mcpBackend.Call and daemonAsker.Begin, carried over the daemon API as the X-Mcpx-Task-Execution header (daemon.TaskExecutionHeader) and restored in withClientCaps and handleAskBegin; mcpserver.WithinTask/MarkWithinTask are the exported forms of the existing withinTask helpers.
This work was found uncommitted in worktree ~/git/fleet/20361 (authored by the earlier session/lane on this task, with a LEDGERDBG debug print still in registry.go — removed this pass). No conformance coverage is weakened by this change: no scenario skipped, no EXPECT loosened, no check deleted.
dezren39 commentedon Nov 17, 2026
Root cause: tasks-* conformance cascade — write-ledger poisoning + legacy in-line task answers
Post-#11188 conformance (run 44070866395): all client legs and the 2025-03-26 / 2025-06-18 / 2025-11-25 server legs pass;
server-allandserver-2026-07-28fail 17 checks each, every failure in tasks-* scenarios. Reproduced locally end-to-end (pinned suite 7169291e, taskmcp fixture, daemon state preserved). Three distinct defects, one cascade:1. A cancelled task's inner call was recorded as an unknown write outcome (the cascade).
The capability scenario creates a task via
slow_compute {seconds: 1, label: "capability-meta-opt"}(passes), then the suite sendstasks/cancelas best-effort cleanup. The task's context is cancelled; the in-flight upstream call aborts (~287 ms) with a plain cancellation error.callWithLedger(pkgs/mcpx/internal/daemon/registry.go) recorded an unknown write outcome — ledger evidence from the preserved daemon state:{server: "tasks", tool: "slow_compute", surface: "call", argsSha256: 01be34d6…}— becauseIsConclusiveUpstreamError(internal/mcpclient/dispatch.go) only treats*rpcErroras conclusive. The record then refused every later non-read-only call to servertasks, cascading through lifecycle, wire-fields, request-state-removal, mrtr-input, request-headers, dispatch-and-envelope and mrtr-composition.A
tasks/cancelis a protocol-level disposition owned by the task store: the task's status becomescancelled, visible to the client that cancelled it — the outcome is accounted for, not unknown.2. The same recording on the interruptible (ask) surface.
Lifecycle/dispatch cancel checks record again with
surface: "ask". An asked call starts before its task exists (beginAsk→ daemon/v1/ask), so no context mark can ride with it; whentasks/cancellands,driveAskedabandons the ask and the daemon-side call unwinds withcontext canceled, unmarked. The fix flags this retroactively: the abandon request carriestaskCancelled, the daemon marks the ask id in its ask table before cancelling the ask, and the ledger consults that flag.3. Legacy task-augmented calls rejected definitive in-line answers.
failing_job(taskSupportrequired, legacy era) is answered by the fixture in line after ~1 s with a plainCallToolResult(isError: true) — the extension permits an in-line answer, as the fixture's own comment notes forprotocol_error_job.callToolAsLegacyTask(internal/mcpclient/tasks.go) rejected it as a "malformed task-augmented response", and that synthetic error was likewise recorded as an unknown write outcome (surface: "ask", toolfailing_job). The client now accepts a substantive in-lineCallToolResult(content / isError / structuredContent) as the call's definitive answer; genuinely shapeless answers keep the malformed error (existingTestLegacyTaskFaultAndMalformedcontract preserved).Fix (branch
queue/20361-mcpx-conformance, PR to follow):mcpserver: export the within-task context mark (MarkWithinTask/WithinTask);driveAskedabandons via a task-awareAbandonTaskwhen the driver offers it.mcpclient:WithTaskExecution/TaskExecutionFromcontext marker; legacy task calls accept substantive in-line results.cli: both call paths (directmcpBackend.Call, interruptible ask driver) translate the within-task mark into the marker; the daemon API client serializes it asX-Mcpx-Task-Execution(mirroringX-Mcpx-Caller-Protocol).daemon: header restored inwithClientCapsand carried by value into ask-task contexts (alongside caps/caller-version);/v1/ask/{id}/abandonaccepts{"taskCancelled": true}and flags the ask table before cancelling;callWithLedgerskips recording when the call is a task inner call whose context was cancelled, on any of the three paths. Unmarked cancelled calls still record, exactly as before.TestCallWithLedgerTaskCancellationDoesNotRecordUnknownOutcome(in-process + header-restored marks, unmarked control) andTestCallWithLedgerAskTaskCancellationDoesNotRecordUnknownOutcome(flagged vs unflagged ask).Local verification: all 8 tasks scenarios pass against the fixed build (capability 5/5, dispatch 9/9, lifecycle 9/9, wire-fields 4/4, request-state-removal 3/3, mrtr-input 4/4, request-headers 5/5, mrtr-composition 2/2) with no unknown-writes ledger file created;
go testgreen forinternal/daemon,internal/mcpclient,internal/mcpserver. Full nine-leg CI verification still required post-merge before this issue closes (henceRefs, notFixes, on the PR).mcpx: a cancelled task's inner call is not an unknown write outcome (#…
Merge pull request #11279 from developing-today/queue/20361-mcpx-conf…
dezren39 commentedon Nov 17, 2026
Done — tasks family green on all nine legs
Fixed by PR #11279 (merged 2026-11-17T12:28:41Z, merge commit 4b9cd2b), on top of #11188 (elicitation relay) and #10985 (writePolicy harness). Root causes and fix shape are in the pre-PR note: #8922 (comment)
Acceptance verification: post-merge
mcpx-conformancerun on main — https://github.com/developing-today/code/actions/runs/44083553955 — conclusion: success, every job green:Local pre-merge verification matched: all 8 tasks scenarios pass against the fixed build with no unknown-writes ledger file created, and the daemon/mcpclient/mcpserver/cli suites are green. Closing.
dezren39 commentedon Nov 17, 2026
agent-note:v1
Agent: Muse lane any-a (repo-queue-worker)
state: loop closed — task 20361 completed by the parallel authoring lane
issue: #8922
task: 20361
Closing the loop on my pickup note (6947542735): while this lane held a claim on task 20361 and was queued for build-lock test slots, the lane that authored the tasks-family fix completed it — PR #11279 merged 2026-11-17T12:28:41Z, the post-merge conformance run on main (44083553955) is green on all nine legs, this issue closed 12:32:03Z, and task 20361 was completed at 12:32:57Z. My heartbeat at ~13:0xZ correctly returned "not claimed by repo-worker-code" and this lane stopped work on the task at that verdict. My root-cause note (6947593374) corroborates the author's own pre-PR note (6947835488); the committed fix (acf422c) is a superset of the uncommitted diff I found and contains no debug print. This lane's still-queued duplicate test job was killed to free its build-lock slot. No further action from lane any-a on #8922.