Skip to content

fix(core): make the failed-spawn compensating-write gate commit-aware - #10522

Merged
wenshao merged 2 commits into
mainfrom
fix/10297-commit-aware-gate
Sep 1, 2026
Merged

fix(core): make the failed-spawn compensating-write gate commit-aware#10522
wenshao merged 2 commits into
mainfrom
fix/10297-commit-aware-gate

Conversation

@yiliang114

Copy link
Copy Markdown
Collaborator

What this PR does

Makes the failed-spawn compensating-write gate commit-aware instead of started-aware. teamFileWritesStarted becomes a monotonic per-write sequence number (still assigned synchronously at the snapshot point, never decremented), and a new teamFileWritesCommitted watermark records the sequence number of the most recently committed write (writeTeamFile resolved). The compensating write is queued with onlyIfCommittedAfter set to the watermark captured at member push; because the write queue is serial, the queued task runs after every earlier write — including any still in flight at gate time — has settled, and it writes only if a write above the push watermark actually committed. The compensating-write failure handling (debug warn + leader <team_error> notice) is unchanged.

Why it's needed

Follow-up to #10223 (split out from its review thread). The gate compares teamFileWritesStarted against the value captured at member push, but a write that rejected (atomic temp+rename persisted nothing) is still counted as "started". In the solo case the member's own write starts (counter 0→1) and throws ENOSPC, the catch rolls the member back, the gate reads 1 > 0, and a compensating write fires even though nothing was persisted. If the disk is still full that write fails too, emitting a <team_error> notice about a possible ghost member that cannot exist — on top of the spawn error that already carries the real cause. The naive fix (decrement on reject) is ruled out in the issue: the counter is a monotonic high-water mark, and a decrement lets a later write reuse a value and hide below an earlier member's push watermark, re-introducing the #10208 ghost (the issue's five-step A→B→C interleaving).

Reviewer Test Plan

How to verify

Run the ghost-member suite in packages/core: npx vitest run src/agents/team/TeamManager.ghost-member.test.ts. Two new tests land in a #10297 describe block: (1) the solo rejected-write repro — the member's own write rejects with ENOSPC and the compensating write would reject too; pre-fix this called writeTeamFile twice and delivered a <team_error> leader notice, post-fix it makes exactly one write attempt and emits no notice (red before the fix, green after); (2) the issue's five-step interleaving — alpha's write hangs then rejects, beta is pushed while it is in flight, gamma's write commits a snapshot that still contains beta, and beta's spawn fails; the compensating write must still fire and remove beta from disk (this test fails under a decrement-on-reject implementation). The seven existing #10208 interleaving tests pass unchanged — the gate still fires when a window write committed (including a write in flight at gate time) and still skips when no write landed at all. Also npx tsc --noEmit in packages/core and Prettier on the two changed files.

Evidence (Before & After)

N/A — internal correctness change with no user-visible UI; verified through the unit tests above. Before the fix the new solo test fails with expected "writeTeamFile" to be called 1 times, but got 2 times; after the fix the full suite is 9/9 green.

Tested on

OS Status
🍏 macOS ⚠️ not tested
🪟 Windows ⚠️ not tested
🐧 Linux ✅ tested

Environment (optional)

Unit tests only (vitest run), Node v24.19.0, Linux.

Risk & Scope

  • Main risk or tradeoff: the gate decision now runs inside the queued compensating task instead of synchronously in the catch path, so a failed spawn's rejection waits for in-flight roster writes to settle before the skip/write decision is final — this is the "await in-flight writes" option the team: make the failed-spawn compensating-write gate commit-aware (avoid redundant write when the only window write rejected) #10297 triage explicitly endorsed, and the queue is serial so the wait is bounded by writes already queued. A rejected window write no longer triggers a compensating attempt, which is the intended behavior.
  • Not validated / out of scope: no change to the success-path write semantics; no change to how a failed compensating write is surfaced (still best-effort + warn + leader notice).
  • Breaking changes / migration notes: none — gate semantics only, persisted-roster outcomes are unchanged for every interleaving covered by the suite.

Linked Issues

Fixes #10297

References #10223, #10208

中文说明

本 PR 做了什么

把失败 spawn 补偿写门控从"已启动感知"改为"已提交感知"。teamFileWritesStarted 变为单调的每写入序号(仍在快照点同步赋值、绝不递减),新增 teamFileWritesCommitted 水位记录最近一次真正提交成功(writeTeamFile resolve)的写入序号。补偿写入队时带上 onlyIfCommittedAfter(member push 时捕获的水位);由于写队列是串行的,该任务运行时所有更早的写入——包括门控评估时仍在途的写入——都已落定,只有当水位之上的写入确实提交过才会真正写入。补偿写失败的处理(debug warn + leader <team_error> 通知)保持不变。

为什么需要

这是 #10223 的后续项(从其 review 线程拆出)。原门控把 teamFileWritesStarted 与 member push 时捕获的值比较,但被拒绝的写入(原子 temp+rename 实际什么都没落盘)也被计入"已开始"。单独场景下:成员自己的写入启动(计数 0→1)后抛 ENOSPC,catch 回滚成员,门控读到 1 > 0,于是执行了一次其实没有任何东西可修复的补偿写;若磁盘仍满,这次写入也会失败,在已经携带真实原因的 spawn 错误之上,又向 leader 发出一条关于不可能存在的幽灵成员的 <team_error> 通知。issue 已排除朴素修法(拒绝时递减计数):该计数是单调高水位,递减会让后续写入复用计数值、藏到更早 member 的水位之下,重新引入 #10208 幽灵(issue 中的五步 A→B→C 交错)。

审阅者测试计划

如何验证

packages/core 运行幽灵成员测试套件:npx vitest run src/agents/team/TeamManager.ghost-member.test.ts。新增两个测试位于 #10297 describe 块:(1) 单独被拒写入复现——成员自己的写入以 ENOSPC 被拒、补偿写也会被拒;修复前 writeTeamFile 被调用两次且发出 <team_error> leader 通知,修复后恰好一次写入尝试且无通知(修复前红、修复后绿);(2) issue 的五步交错——alpha 的写入挂起后被拒、beta 在其在途时被 push、gamma 的写入提交了仍含 beta 的快照、beta 的 spawn 失败;补偿写必须仍然触发并把 beta 从磁盘移除(该测试在"拒绝时递减"的实现下会失败)。原有 7 个 #10208 交错测试全部不变通过——窗口内有写入提交时门控照发(包括门控评估时仍在途的写入),完全没有写入落盘时照旧跳过。另在 packages/core 运行 npx tsc --noEmit,并对两个改动文件跑 Prettier。

证据(修复前后)

N/A——内部正确性修改,无用户可见 UI;通过上述单元测试验证。修复前新增的单独用例以 expected "writeTeamFile" to be called 1 times, but got 2 times 失败;修复后整套 9/9 全绿。

测试环境

系统 状态
🍏 macOS ⚠️ 未测试
🪟 Windows ⚠️ 未测试
🐧 Linux ✅ 已测试

环境(可选)

仅单元测试(vitest run),Node v24.19.0,Linux。

风险与范围

  • 主要风险/权衡:门控判断从 catch 路径的同步判断改为在队列中的补偿任务内执行,因此失败 spawn 的 reject 会等待在途的 roster 写入落定后才做出跳过/写入决定——这是 team: make the failed-spawn compensating-write gate commit-aware (avoid redundant write when the only window write rejected) #10297 分诊明确认可的"等待在途写入"方案,且队列串行、等待上界就是已入队的写入。被拒绝的窗口写入不再触发补偿尝试,这正是预期行为。
  • 未验证/超出范围:成功路径写入语义不变;补偿写失败的上报方式不变(仍是尽力而为 + warn + leader 通知)。
  • 破坏性变更/迁移说明:无——仅门控语义变化,套件覆盖的所有交错下持久化结果不变。

关联 Issue

Fixes #10297

参考 #10223#10208

The failed-spawn compensating-write gate from #10223 compares
teamFileWritesStarted against the value captured at member push, but a
write that rejected (atomic temp+rename persisted nothing) still counts
as started. In the solo case the member's own write starts and throws
ENOSPC, the catch rolls the member back, and the gate reads 1 > 0 —
firing a compensating write that cannot repair anything. If the disk is
still full that write fails too, notifying the leader about a possible
ghost member that cannot exist on top of the spawn error that already
carries the real cause (#10297).

Decrementing the counter on rejection is unsafe: the counter is a
monotonic high-water mark, and a decrement lets a later write reuse the
value and hide below an earlier member's push watermark, re-introducing
the #10208 ghost.

Make the gate commit-aware instead:
- teamFileWritesStarted becomes the per-write sequence number, still
  assigned synchronously at the snapshot point and never decremented.
- A new teamFileWritesCommitted watermark records the sequence number
  of the most recently committed write; the queue is serial, so commits
  land in sequence order and the watermark stays monotonic.
- The compensating write is queued with onlyIfCommittedAfter set to the
  push-time watermark; the queued task runs after every earlier write
  (including any still in flight at gate time) has settled and writes
  only if a write above the watermark committed — a rejected window
  write persists nothing, so the redundant write is skipped.

Witness tests: the solo rejected-write case asserts exactly one write
attempt and no leader notice (red before the fix: the compensating
write fired), and the issue's five-step interleaving pins that a later
committed write still triggers the repair, guarding against a
decrement-on-reject regression.

Fixes #10297

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
@qwen-code-ci-bot

qwen-code-ci-bot commented Aug 29, 2026

Copy link
Copy Markdown
Collaborator

Qwen Triage finishedview run. See the stage comments in this thread for the result.

Qwen Triage 已完成 —— 查看运行。结果见本线程中的各阶段评论。

@qwen-code-ci-bot

qwen-code-ci-bot commented Aug 29, 2026

Copy link
Copy Markdown
Collaborator

Thanks for the PR!

Re-run on request. The head moved since the last pass (e11d980176ed09); verified via the compare API that this is a merge of main only — none of the 231 merged files touch the two files this PR changes, so the gate findings stand unchanged against the code reviewed.

Template looks good ✓

Problem: observed and documented, not theoretical. #10297 (filed by the same author, triaged as type/bug / priority/P3) walks through the exact interleaving: the member's own roster write starts (counter 0→1), rejects with ENOSPC persisting nothing, the gate reads 1 > 0 and fires a compensating write that also fails on the still-full disk — producing a <team_error> ghost-member notice about a member that cannot exist, on top of the spawn error that already carries the real cause. Low severity, but real.

Direction: aligned. This is the follow-up explicitly split out of the #10223 review thread so the minimal #10208 ghost fix stayed small, and #10297's "Scope for a safe fix" section prescribes exactly this: make the gate commit-aware while keeping the watermark monotonic, landed separately with its own interleaving tests.

Size: core path (packages/core/src/agents/team/) — 156 production lines (TeamManager.ts 95+/61−) + 137 test lines (TeamManager.ghost-member.test.ts). Well under every threshold; no maintainer-awareness flag needed (author is a maintainer regardless).

Approach: scope feels right. teamFileWritesStarted becomes a monotonic per-write sequence number, a new teamFileWritesCommitted watermark records the last write that actually resolved, and the gate decision moves from the synchronous catch check into the queued compensating task (onlyIfCommittedAfter) so in-flight writes settle before skip/write is decided. The rejected alternatives are documented in the issue: decrement-on-reject breaks monotonicity and re-introduces the #10208 ghost (the five-step counterexample), and the current fire-anyway behavior is conservative but noisy. One acknowledged tradeoff: a failed spawn now waits for queued roster writes to settle before its rejection propagates — that is the option #10297's triage endorsed, and the wait is bounded by writes already in the serial queue. No unrelated changes in the diff.

Risk: no elevated risk signals — no high-risk paths matched, and the TeamManager public surface is unchanged (private members only).

Moving on to code review. 🔍

中文说明

感谢贡献!

应请求 re-run。头部自上次审查后移动过(e11d980176ed09);已通过 compare API 核实仅为合并 main——合入的 231 个文件均未触及本 PR 改动的两个文件,门控结论对所审代码保持不变。

模板完整 ✓

问题:已观测、有记录,不是理论问题。#10297(同一作者提交,已标记 type/bug / priority/P3)完整推演了这个交错:成员自己的 roster 写入启动(计数 0→1)后因 ENOSPC 被拒绝、什么都没落盘,门控读到 1 > 0 便执行补偿写——磁盘仍满时这次写入同样失败,于是在已经携带真实原因的 spawn 错误之上,又多出一条关于不可能存在的幽灵成员的 <team_error> 通知。严重度低,但真实存在。

方向:对齐。这是从 #10223 review 线程中明确拆出的后续项(当时为了让 #10208 幽灵成员的最小修复保持精简),#10297 的"安全修复范围"一节给出的正是这个方案:让门控感知提交(commit-aware)、同时保持水位单调,并单独落地、配自己的交错测试。

规模:核心路径(packages/core/src/agents/team/)——156 行生产代码(TeamManager.ts 95+/61−)+ 137 行测试(TeamManager.ghost-member.test.ts)。远低于所有阈值,无需维护者关注标记(作者本身就是维护者)。

方案:范围合理。teamFileWritesStarted 变为单调的每写入序号,新增 teamFileWritesCommitted 水位记录最近一次真正 resolve 的写入,门控判断从 catch 中的同步检查移入排队任务(onlyIfCommittedAfter),让在途写入先落定再决定跳过/写入。issue 中已记录被否决的替代方案:拒绝时递减会破坏单调性、重新引入 #10208 幽灵(五步反例);现行的"无论如何都写"虽保守但会产生噪音。一个已确认的权衡:失败 spawn 的拒绝现在要等队列中的 roster 写入落定后才向外传播——这是 #10297 分诊明确认可的选项,且等待时间受串行队列中已排队写入的限制。diff 中没有无关改动。

风险:无升级风险信号——未命中任何高风险路径,TeamManager 公共接口不变(仅私有成员)。

进入代码审查 🔍

Qwen Code · qwen3.8-max

Reviewed at 176ed09b61b9631b0e83c38d8373deb024f3afe1 · re-run with @qwen-code /triage

@qwen-code-ci-bot

qwen-code-ci-bot commented Aug 29, 2026

Copy link
Copy Markdown
Collaborator

Code review

Independent proposal first, for the record: keep teamFileWritesStarted monotonic (never decrement), add a committed-write watermark that only advances when writeTeamFile resolves, and move the gate decision out of the synchronous catch into the queued compensating task — because a write in flight at catch time can still commit later, so only the moment the task runs (after every earlier write in the serial queue has settled) is a safe point to decide. That is exactly what this PR does; the issue already rules out the two alternatives (decrement-on-reject re-introduces the #10208 ghost via sequence reuse; per-write outcome tracking is more state for no benefit).

What I verified against the diff and the surrounding code (re-checked this run; the head is e11d980 + a merge of main that touches none of this PR's files):

  • The skip condition teamFileWritesCommitted <= onlyIfCommittedAfter, evaluated at task run time, is correct: the queue is serial, so all earlier writes have settled by then, and a member pushed at watermark N can only be persisted by a write with sequence > N that committed. Rejected writes keep their sequence number, so the watermark stays monotonic; the plain assignment (rather than a max) is safe because commits happen in sequence order. Any write queued after the compensating task runs after it, so it cannot move the watermark before the decision — the comparison is final at decision time.
  • The new gate's fire set is a strict subset of the old one: a committed window write also started in the window, so every case the new gate fires was also fired by the old started > atPush gate — the removed cases are exactly the rejected window writes that persisted nothing. The Agent Team: failed concurrent spawn can persist a ghost member #10208 protection is preserved, not weakened.
  • onlyIfCommittedAfter: 0 is handled with !== undefined, not truthiness — the "no write has landed at all" interleaving from Agent Team: failed concurrent spawn can persist a ghost member #10208 still skips correctly, and a skipped task consumes no sequence number.
  • The success-path write stays unconditional; the compensating write is the only gated caller of persistTeamFile, and there are no other readers of either counter. Rollback still precedes the compensating write, so a repair snapshots the post-rollback roster.
  • Failure surfacing is unchanged (debug warn + leader <team_error>), but now only fires when a compensating write that actually ran fails — the misleading notice in the rejected-write case is gone.
  • Tests pin both directions: the solo test asserts exactly one write attempt and no leader notice (pre-fix code makes a second attempt and fires the notice), and the five-step interleaving fails under any decrement-on-reject implementation while proving the gate still repairs a member persisted by a committed window write. The seven existing Agent Team: failed concurrent spawn can persist a ghost member #10208 tests are untouched. The new tests reuse the existing harness (gateSpawns, createDeferred, TeamCoordinationHarness) rather than adding parallel scaffolding, and add no new imports.

One non-blocking note: every failed spawn now waits for queued roster writes to settle before its rejection propagates, even when no window write existed at all (the old synchronous gate skipped instantly). The wait is bounded by writes already in the serial queue and is the option #10297's triage explicitly endorsed — just worth knowing it applies to the common no-window-write path too, not only the racy one.

Since the last pass, two independent reviews landed on this head and found the same: CanReader stress-tested the gate looking for a spurious-fire interleaving (a sibling's compensating write dragging the committed watermark above another member's push watermark) and concluded it cannot happen — a committed write above a member's watermark must have snapshotted after that member's push, so it genuinely needs the repair; and the E2E review found no Critical.

sequenceDiagram
    participant P1 as spawnTeammate
    participant P2 as write queue (serial)
    participant P3 as compensating task
    P1->>P1: push member, capture watermark N
    P1->>P2: window write seq N+1 starts
    Note over P2: resolves (commit) or rejects (nothing persisted)
    P1->>P1: spawn fails, member rolled back
    P1->>P2: queue compensating write (onlyIfCommittedAfter N)
    P2->>P3: runs after every earlier write settled
    alt committed watermark above N
        P3->>P3: write post-rollback roster
    else no window write committed
        P3->>P3: skip, no write, no notice
    end
Loading

Test evidence (PR's own CI, fetched via API — no PR code executed)

CI on the reviewed head 176ed09 is green: both pull_request workflow runs (Qwen Code CI, Security Checks) completed with success, 0 pending. Substantive checks: 16 success, 0 failure. Test (ubuntu-latest, Node 22.x) covers the unit suite including the new #10297 describe block (9/9 in the author's report, consistent with the green run). The macOS/Windows unit legs and the CLI integration leg show skipped — skipped by job condition within the otherwise-green run, same as on the previous head; naming it so the absence is not mistaken for an oversight. Bot orchestration checks omitted.

Check Conclusion
Test (ubuntu-latest, Node 22.x) ✅ success
Integration Tests (no-AK, No Sandbox) ✅ success
Desktop Shell (ubuntu-22.04) ✅ success
Desktop Shell (windows-2022) ✅ success
web-shell E2E Smoke (ubuntu-latest, Node 22.x) ✅ success
Post Coverage Comment (ubuntu-latest, 22.x) ✅ success
Dependency CVE audit ✅ success
Secret scan (TruffleHog) ✅ success
Classify PR ✅ success

One row per check name (latest run); skipped checks omitted; failures sort first. / 每个检查名一行(取最新一次运行),省略 skipped,失败项排在最前。

This change has no user-visible surface (internal gate in team-file persistence), so real-scenario TUI testing is N/A — the unit-level interleaving tests are the right oracle here.

Sandboxed verification is already in flight at the time of this re-run (a /verify state comment posted today at 01:28 UTC; its report will land in this thread separately): it settles the one claim static review and CI cannot — that the new solo test is load-bearing, i.e. fails on the base build (two writeTeamFile attempts + a leader notice) and passes only because of the gate change. By inspection that holds (pre-fix started(1) > atPush(0) fires the second attempt), but CI only ever runs the PR head, so the red-before-green remains the author's claim until the verify report lands. Not a precondition for the verdict here — the mechanism is independently re-derived above and the fire-set argument does not depend on it.

中文说明

代码审查:先给出独立方案作为基线——保持 teamFileWritesStarted 单调(绝不递减)、新增仅在 writeTeamFile resolve 后推进的提交水位、并把门控判断从同步 catch 移入排队的补偿任务(catch 时仍在途的写入稍后仍可能提交,只有任务真正运行时——串行队列中所有更早写入都已落定——才是安全的决策点)。这正是本 PR 的做法;issue 中已排除两个替代方案(拒绝时递减会因序号复用重新引入 #10208 幽灵;逐写入结果记录状态更多却无收益)。

本轮重新核对(头部为 e11d980 合并 main,合入文件均未触及本 PR 两个文件):跳过条件在任务运行时评估是正确的(串行队列保证更早写入已落定;水位 N 之后推送的成员只可能被序号大于 N 且已提交的写入持久化;补偿任务之后入队的写入排在它后面运行,决策时比较已定型)。新门控的触发集是旧门控的真子集:窗口内提交过的写入必然也在窗口内启动过,被去掉的恰好是被拒、什么都没落盘的写入——#10208 的保护被保留而非削弱。onlyIfCommittedAfter: 0!== undefined 判断,#10208 的"尚无任何写入落盘"交错仍正确跳过;被跳过的任务不消耗序号。成功路径写入保持无条件,补偿写是唯一受门控的调用方,两个计数器无其他读取者;回滚先于补偿写发生。失败上报逻辑不变,但只在真正执行过的补偿写失败时触发——被拒写入场景下的误导性通知消失。测试双向锁定:单独场景断言恰好一次写入尝试且无 leader 通知(修复前两者都会发生),五步交错在任何"拒绝时递减"实现下都会失败、同时证明窗口内有提交写入时门控仍会修复。新增测试复用现有 harness、未新增 import。

一个非阻塞提醒:现在所有失败 spawn 的拒绝都要等队列中的写入落定后才传播,即使窗口内根本没有写入。等待受串行队列限制、且是 #10297 分诊明确认可的方案。

上次审查之后又有两个独立评审落在同一头部并得出相同结论:CanReader 专门构造"兄弟成员的补偿写把提交水位拖过另一成员 push 水位"的误触发交错并确认不可能发生——水位之上的提交写入必然在该成员 push 之后才快照,因此确实需要修复;E2E 评审未发现 Critical。

测试证据:未执行任何 PR 代码,以上为通过 API 读取的 PR 自身 CI。审查头部 176ed09 的 CI 全绿:两个 pull_request 工作流(Qwen Code CISecurity Checks)均 success,0 个进行中;实质检查 16 项成功、0 失败。macOS/Windows 单元测试与 CLI 集成腿显示 skipped——是绿色运行内按任务条件跳过(与上一头部相同),在此说明以免误读为遗漏。本改动无用户可见界面,真实场景 TUI 测试不适用(N/A)。沙箱验证在本轮 re-run 时已在运行(今天 01:28 UTC 的 /verify 状态评论,报告将另行发布):它将补上静态审查与 CI 无法证明的一项——新增单独场景测试在基线构建上确实失败(两次写入尝试 + leader 通知)、仅因门控改动而变绿;代码检视已确认该结论成立,但在验证报告落地前这仍是作者的陈述,且不构成本轮裁定的前提。

Qwen Code · qwen3.8-max

Reviewed at 176ed09b61b9631b0e83c38d8373deb024f3afe1 · re-run with @qwen-code /triage

@qwen-code-ci-bot

qwen-code-ci-bot commented Aug 29, 2026

Copy link
Copy Markdown
Collaborator

Confidence: 5/5 — clean across every stage, CI green on the reviewed head; approving now.

Stepping back: this is exactly the shape of follow-up you want after a tricky concurrency fix. #10223 landed the minimal #10208 ghost fix; the known wart was split into its own issue (#10297) with the safe-fix scope written out, including why the obvious shortcut (decrement-on-reject) is a trap; and this PR implements precisely that scope — no more, no less. The mechanism is the right one: sequence numbers stay monotonic, a separate watermark tracks what actually committed, and the decision moves to the one point where it is safe — when the queued task runs and every earlier write has settled. And the new gate is strictly more conservative than the old one: it fires only when a window write actually committed, a subset of the old fire set, so the #10208 protection can only be preserved.

My independent proposal before reading the diff was the same construction, and I could not find a materially simpler one; the diff carries nothing unrelated, the public surface is untouched, and the comments document the invariants rather than the mechanics. The tests are the strongest part: one pins the fix (exactly one write attempt, no misleading notice — pre-fix code does both), and the five-step interleaving actively guards against the tempting wrong fix. Since the last pass, a human reviewer independently tried to break the watermark argument and could not, and the E2E review found no Critical. If I am maintaining this in six months, the watermark comments and those tests tell me everything.

What changed since the deferred approval on e11d980: the branch merged main (verified: no code changes to this PR's files), and CI on the new head 176ed09 landed fully green — including the Linux unit suite covering the new #10297 tests, which had been cancelled on the previous head. The one remaining loose end is the sandboxed /verify run in flight, which proves the new solo test fails on the base build; by inspection that already holds, so it is confirmatory, not a precondition. The one thing I would watch going forward is already noted in Stage 2: every failed spawn now drains to its compensating task before the rejection propagates, even on the common no-window-write path — bounded, and endorsed by the issue's triage. Fine to ship.

中文说明

总体评价:5/5——各阶段都干净,审查头部的 CI 全绿;现在批准。

退一步看:这正是复杂并发修复之后理想的后续形态。#10223 先落地了 #10208 幽灵成员的最小修复;已知瑕疵被拆成独立 issue(#10297),写明了安全修复范围、以及为什么"显而易见"的捷径(拒绝时递减计数)是陷阱;本 PR 精确实现该范围——不多不少。机制正确:序号保持单调,独立水位记录真正提交过的写入,决策移到唯一安全的时点——排队任务运行、所有更早写入落定之时。而且新门控比旧门控更保守:只在窗口内确有写入提交时触发,是旧触发集的子集,#10208 的保护只会被保留。

我在读 diff 之前的独立方案与此相同,也没有找到更简单的构造;diff 无无关改动,公共接口不变,注释记录的是不变量而非机械步骤。测试是最强的部分:一个锁定修复本身(恰好一次写入尝试、无误导性通知——修复前两者都会发生),五步交错测试主动防住那个诱人的错误修法。上次审查之后,人类评审独立尝试推翻水位论证未果,E2E 评审未发现 Critical。半年后维护这段代码时,水位注释和这些测试能说明一切。

e11d980 上推迟批准以来的变化:分支合并了 main(已核实:本 PR 两个文件无任何代码变化),新头部 176ed09 的 CI 全绿——包括覆盖新增 #10297 测试的 Linux 单元测试(上一头部该检查被取消)。唯一未落定的事项是正在运行的沙箱 /verify(证明新增单独场景测试在基线构建上失败);代码检视已确认该结论成立,故为确认性证据、不构成前提。持续关注项已在 Stage 2 指出:所有失败 spawn 都要等补偿任务落定后才传播拒绝(即使无窗口写入的常见路径)——等待有界、分诊已认可。可以合入。

Qwen Code · qwen3.8-max

Reviewed at 176ed09b61b9631b0e83c38d8373deb024f3afe1 · re-run with @qwen-code /triage

@qwen-code-ci-bot qwen-code-ci-bot left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Partially reviewed — gaps disclosed. Suggestions are inline.

Not explored to full depth (tool budget reached): "agent 6b": running TeamManager.ghost-member.test.ts — no node_modules in the review worktree; full npm ci + build not attempted within tool budget.

Not reviewed: reverse audit — stopped before round 4 by the review time budget.

Test Plan (not a blocker): src/agents/team/TeamManager.ghost-member.test.tsno such file or directory.

中文说明

仅完成部分审查,审查缺口已披露。 建议见行内评论。

未探索到全部深度(达到工具调用预算):"agent 6b"running TeamManager.ghost-member.test.ts — no node_modules in the review worktree; full npm ci + build not attempted within tool budget

未审查:反向审计——评审时间预算不足,未能开始第 4 轮。

Test Plan(非阻断):src/agents/team/TeamManager.ghost-member.test.tsno such file or directory

— qwen3.8-max via Qwen Code /review (v0.22.3)

Comment on lines +372 to +375
if (
options?.onlyIfCommittedAfter !== undefined &&
this.teamFileWritesCommitted <= options.onlyIfCommittedAfter
) {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Suggestion] The gate's skip branch is never tested with teamFileWritesCommitted strictly between 0 and the push watermark — a committed write below the watermark plus a rejected write that advanced teamFileWritesStarted past it. Alpha's write seq 1 commits (committed=1); beta's success write seq 2 rejects with ENOSPC and beta rolls back; gamma is pushed (watermark 2) and its spawn fails with no further writes. The correct behaviour is skip (1 ≤ 2), but the one-line mutation <==== passes all nine existing tests — the new tests pin (0,0)-skip and (2,1)-fire, the pre-existing tests pin (1,1)-skip, (0,0)-skip and (1,0)-fire, so nothing hits this strict-between region — yet the mutant fires the redundant compensating write in this interleaving, and with the disk still full that write rejects and emits the misleading <team_error> ghost-member leader notice, the exact symptom issue 10297 removes.

Witness:

Probe in an isolated scratch tree (strict-between scenario, committed=1, watermark=2):
intact code: writeTeamFile called exactly 2 times, no leader notice
mutant <= -> ===: all 9 existing tests still pass (9/9), but the probe flips:
  AssertionError: expected "writeTeamFile" to be called 2 times, but got 3 times
  leaderSpy: <team_error>Compensating team-file write after failed spawn of gamma@test-team failed: ENOSPC: no space left on device</team_error>

Suggested fix: add a test in the new describe block for issue 10297 — alpha's write commits normally; arm vi.spyOn(teamHelpers, 'writeTeamFile').mockRejectedValueOnce(new Error('ENOSPC: no space left on device')) so beta's success write rejects and beta's spawn rejects; push gamma and reject gamma's backend gate so gamma fails with no new write; assert the total writeTeamFile call count shows no compensating write ran, leaderSpy was not called, and disk/memory contain only alpha.

That new test doubles as the fix witness: under the <==== mutation the compensating write fires, so its write-count and leader-notice assertions go red; with the current code they pin the strict-between skip.

中文说明

门控的跳过分支从未测试过 teamFileWritesCommitted 严格介于 0 与 push 水位之间的场景——即水位之下有一笔已提交的写入,同时有一笔被拒的写入把 teamFileWritesStarted 推过了水位。设 alpha 的写入序号 1 提交(committed=1);beta 的成功写入序号 2 以 ENOSPC 被拒、beta 回滚;gamma 被 push(水位 2)且其 spawn 失败、没有新写入。正确行为是跳过(1 ≤ 2),但单行变异 <==== 能通过全部 9 个现有测试——新测试钉住 (0,0)-跳过 与 (2,1)-触发,既有测试钉住 (1,1)-跳过、(0,0)-跳过 与 (1,0)-触发,没有任何一组覆盖这个严格介于区间——而该变异体在此交错下会执行那次多余的补偿写,磁盘仍满时写入被拒并发出误导性的 <team_error> 幽灵成员 leader 通知,正是 issue 10297 要消除的症状。

建议修复:在 issue 10297 的新 describe 块中补一个测试——alpha 的写入正常提交;用 vi.spyOn(teamHelpers, 'writeTeamFile').mockRejectedValueOnce(new Error('ENOSPC: no space left on device')) 让 beta 的成功写入被拒、beta 的 spawn 失败;push gamma 并拒绝 gamma 的后端门控使其失败且无新写入;断言 writeTeamFile 总调用次数表明没有补偿写执行、leaderSpy 未被调用、磁盘与内存中只有 alpha。

该新测试同时充当修复见证:在 <==== 变异下补偿写会触发,其调用次数与通知断言变红;当前代码下它们钉住严格介于区间的跳过。

— qwen3.8-max via Qwen Code /review (v0.22.3)

Comment on lines +376 to +379
// No write that started inside the failed member's window
// committed, so nothing on disk can contain the rolled-back
// member — skip the compensating write.
return;

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Suggestion] The gate's skip path returns silently — no debug log, no trail — so a skipped compensating write is indistinguishable in logs from one that never ran. Any time the gate's premise is violated in production (the uid-mismatch in-place write fallback, an external editor, a future refactor that breaks the watermark invariant), a ghost member or corrupt roster resurfaces days later and oncall greps the debug log for the Compensating team-file write trail and finds nothing — "the gate evaluated and skipped" cannot be told apart from "the spawn-failure path never executed". The diff's own comment on the adjacent failure path states the requirement — "leave a trail so a resurfaced ghost member can be told apart from a compensating write that itself failed" — but the skip branch satisfies neither half of that distinction.

Witness:

Probe recording every debugLogger call through the real code:
skip arm:      ARM_A_SKIP team-related debug entries: []   leader notices: []
fire-fail arm: warn "Compensating team-file write after failed spawn of beta@test-team failed: ENOSPC: no space left on device"
               plus the <team_error> leader notice
Suggested change
// No write that started inside the failed member's window
// committed, so nothing on disk can contain the rolled-back
// member — skip the compensating write.
return;
// No write that started inside the failed member's window
// committed, so nothing on disk can contain the rolled-back
// member — skip the compensating write.
debug.warn(
`Skipping compensating roster write: no write committed ` +
`above watermark ${options.onlyIfCommittedAfter} ` +
`(committed=${this.teamFileWritesCommitted})`,
);
return;

The solo test ('skips the compensating write when the only write in the window rejected (solo)') doubles as the fix witness once it additionally asserts the skip trail is emitted — removing the log line reddens that assertion.

中文说明

门控的跳过路径静默返回——没有 debug 日志、没有任何痕迹——于是被跳过的补偿写在日志中与从未执行过的补偿写无法区分。只要门控前提在生产中被破坏(uid 不一致的原地写回退、外部编辑器、未来某次破坏水位不变量的重构),幽灵成员或损坏的 roster 会在数天后重新浮现,而值班同学 grep debug 日志找 Compensating team-file write 痕迹时什么都找不到——"门控评估过并跳过了"与"spawn 失败路径根本没执行"无法区分。diff 自己在相邻失败路径上的注释说明了这一要求——"留下痕迹,以便重新浮现的幽灵成员能与自身失败的补偿写相区分"——但跳过分支两半都不满足。

建议修复:在跳过分支发出一条 debug.warn,同时带上两个水位(见上方 suggestion 块)。

单独用例('skips the compensating write when the only write in the window rejected (solo)')可以在补充断言跳过痕迹被发出后充当修复见证——删掉这行日志会使该断言变红。

— qwen3.8-max via Qwen Code /review (v0.22.3)

Comment on lines +373 to +374
options?.onlyIfCommittedAfter !== undefined &&
this.teamFileWritesCommitted <= options.onlyIfCommittedAfter

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Suggestion] Because the gate reads teamFileWritesCommitted at queued-task run time, it also trips on writes that only started after the failed member's rollback and never snapshotted it — preserving, in one narrower interleaving the pre-PR synchronous check correctly skipped, the redundant compensating write (and its misleading leader notice on failure) this PR exists to remove. Z's final roster write W0 hangs in its fs await (seq 1 assigned); X is pushed (watermark 1), then Y (watermark 1); Y's spawn resolves and its final write T queues behind W0; X's spawn fails, rollback removes X and queues compensating task C behind T; W0 commits (committed=1); T then runs after X's rollback, takes seq 2, snapshots {Z, Y} without X, commits (committed=2). C sees committed 2 > watermark 1 and fires, rewriting state that is already on disk — and if that redundant write itself fails under the same ENOSPC onset issue 10297 targets, the leader receives a ghost-member <team_error> about X despite nothing on disk containing X. Pre-PR, the synchronous teamFileWritesStarted > writesStartedAtPush check ran at rollback, when T had not started, and correctly skipped. No ghost or data loss results — C's snapshot is the authoritative post-rollback state — so this is a residual of the exact symptom, not a correctness regression.

Witness:

Probe in an isolated scratch tree:
PR arm: writeLog: [call#1 members=[zeta], call#2 members=[zeta,beta], call#3 members=[zeta,beta]]
        (call#3 is the redundant post-rollback rewrite)
        leaderSpy: <team_error>Compensating team-file write after failed spawn of alpha@test-team failed: ENOSPC: no space left on device</team_error>
        persisted members: [zeta, beta]
Reverted to the pre-PR synchronous gate:
        writeLog: [call#1 members=[zeta], call#2 members=[zeta,beta]]   leaderSpy: []

Proportionate fix: extend the gate's doc comment above persistTeamFile to state that commits from writes started after the rollback also trip the gate — conservative over-fire, never a ghost. An exact gate would additionally require knowing which committed writes started at-or-before rollback, which is not derivable from a single high-water mark across rejected-sequence gaps, so the comment is the simpler correctness-preserving option.

Any added bookkeeping must preserve seq monotonicity and the serial-commit order the gate relies on — TeamManager.ts:231-233: "Deliberately monotonic — a rejected write keeps its number so a later write cannot reuse the value and hide at or below an earlier member's push watermark (#10297)".

中文说明

由于门控在队列任务运行时才读取 teamFileWritesCommitted,它也会被那些在失败成员回滚之后才启动、从未快照到该成员的写入触发——在本 PR 要消除的"多余补偿写(及其失败时的误导性通知)"上保留了一个更窄的交错场景,而 PR 前的同步检查在该场景下是正确跳过的。设 Z 的最后一笔 roster 写入 W0 挂在 fs await 中(已分配序号 1);X 被 push(水位 1),随后 Y(水位 1);Y 的 spawn 成功、其最终写入 T 排在 W0 之后;X 的 spawn 失败,回滚移除 X 并把补偿任务 C 排在 T 之后;W0 提交(committed=1);T 在 X 回滚之后运行,取序号 2,快照 {Z, Y}(不含 X)并提交(committed=2)。C 看到 committed 2 > 水位 1 便触发,重写一份已在磁盘上的状态——若这次多余写入在 issue 10297 针对的同一次 ENOSPC 下失败,leader 会收到一条关于 X 的幽灵成员 <team_error>,而磁盘上根本没有任何包含 X 的内容。PR 前同步的 teamFileWritesStarted > writesStartedAtPush 检查在回滚时执行,当时 T 尚未启动,因此正确跳过。不会产生幽灵或数据丢失——C 的快照即回滚后的权威状态——所以这是同一症状的残留,而非正确性回归。

建议修复(相称的修法):把 persistTeamFile 上方的门控文档注释扩展为"回滚之后才启动的写入若有提交同样会触发门控——保守的过度触发,绝不产生幽灵"。精确门控还需要知道哪些已提交的写入是在回滚时或之前启动的,这在单一高水位下无法跨越被拒序号的间隙推导出来,因此注释是更简单且不损害正确性的选项。

任何新增记账都必须保持序号单调与门控依赖的串行提交顺序——TeamManager.ts:231-233:"Deliberately monotonic — a rejected write keeps its number so a later write cannot reuse the value and hide at or below an earlier member's push watermark (#10297)"。

— qwen3.8-max via Qwen Code /review (v0.22.3)

Comment on lines +728 to +732
try {
await this.persistTeamFile({
onlyIfCommittedAfter: writesStartedAtPush,
});
} catch (writeErr) {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Suggestion] Moving the skip/fire decision into the serialized write queue makes a failed spawn's rejection block behind unrelated pre-push roster writes that never settle — where the pre-PR synchronous gate rejected immediately — so the spawn error can hang indefinitely behind a wedged write. A success-path write that started before the failed member's push hangs without settling (writeTeamFile is await fs.mkdir + atomic rename with no timeout anywhere on the write path; an unresponsive NFS/FUSE mount or wedged disk can hang it indefinitely). A teammate spawn then fails; the member is already rolled back and the gate's outcome is a foregone skip — nothing committed in the window — but the gate task chains behind the hung write, so spawnTeammate never reaches throw err and the leader's spawn tool call hangs indefinitely instead of surfacing the spawn error. Pre-PR the synchronous teamFileWritesStarted > writesStartedAtPush check was false in this exact interleaving (the only started write is pre-push, so started == writesStartedAtPush), nothing was queued, and the rejection was immediate. The PR's endorsed "await in-flight writes" tradeoff bounds the count of queued writes, not wall-clock, when one of them never settles. Two mitigating facts keep this at Suggestion: the hang class pre-existed in the sibling in-window interleaving pre-PR (the diff widens an existing failure class rather than adding a new one), and no wrong state results — the skip is the correct outcome once the write settles.

Witness:

Probe in an isolated scratch tree:
PR arm: spawnX outcome while W0 hung: STILL_PENDING_AFTER_1500MS
        writeCalls at race time: 1; after release+drain: 1 (the foregone skip materialized)
Reverted to the pre-PR synchronous gate:
        spawnX outcome while W0 hung: REJECTED: spawn failed

Suggested fix: don't let the decision wait block error propagation — race the await against a generous timeout and proceed to throw err on expiry, leaving the gate task queued (the serial queue still lands or skips the repair in order), and move the warn/leader-notice handling into the task's settlement path since catch (writeErr) no longer observes it:

await Promise.race([
  this.persistTeamFile({ onlyIfCommittedAfter: writesStartedAtPush }),
  new Promise((r) => setTimeout(r, COMPENSATING_WRITE_SETTLE_TIMEOUT_MS)),
]);

The fix must keep the compensating task queued — never dropped — so a late-landing repair still lands last, and the existing tests that read the disk immediately after spawnTeammate rejects pin that in the normal fast case the repair settles before the rejection (teamFileWriteQueue doc comment, TeamManager.ts:209-220). A new test can pin the fix: hold write 1 on a gate that is never released, push beta after it starts, reject beta's spawn, and assert spawnTeammate settles with the spawn error within a bounded time — removing the timeout race from the fix makes that test hang/red.

中文说明

把跳过/触发决定移入串行写队列后,失败 spawn 的 reject 会被阻塞在那些永不落定的 push 前 roster 写入之后——而 PR 前的同步门控在这种交错下会立即 reject——于是 spawn 错误可能被一次卡死的写入无限期挂起。设一笔在失败成员 push 之前启动的成功路径写入挂起不落定(writeTeamFileawait fs.mkdir + 原子 rename,整条写路径没有任何超时;无响应的 NFS/FUSE 挂载或卡死的磁盘可以无限期挂住它)。随后某个 teammate 的 spawn 失败;成员已经回滚、门控结果是注定的跳过——窗口内没有任何提交——但门控任务排在那笔挂起写入之后,spawnTeammate 永远到不了 throw err,leader 的 spawn 工具调用被无限期挂起,而不是得到 spawn 错误。PR 前同步的 teamFileWritesStarted > writesStartedAtPush 检查在这个交错下为假(唯一启动的写入在 push 之前,started == writesStartedAtPush),不入队任何东西,reject 立即发生。PR 所采纳的"等待在途写入"权衡约束的是已入队写入的数量,而非墙钟时间——当其中一笔永不落定时。两个减轻因素使其保持 Suggestion:该挂起类别在 PR 前已存在于同族的窗口内交错中(本 diff 扩大了一个既有失败类别而非新增),且不会产生错误状态——写入落定后跳过就是正确结果。

建议修复:不要让决定等待阻塞错误传播——将 await 与一个宽裕的超时竞速,超时后即继续 throw err,让门控任务继续留在队列中(串行队列仍会按序落定或跳过修复),并把 warn/leader 通知处理移入任务的落定路径,因为 catch (writeErr) 不再能观察到它(代码示意见上)。

修复必须让补偿任务保持在队列中——绝不丢弃——以保证迟到的修复仍然最后落盘;既有测试在 spawnTeammate reject 后立即读盘,钉住了正常情况下修复先于 reject 落定(teamFileWriteQueue 文档注释,TeamManager.ts:209-220)。可以用一个新测试钉住该修复:把写入 1 挂在一个永不释放的门控上,在其启动后 push beta,拒绝 beta 的 spawn,断言 spawnTeammate 在有限时间内带着 spawn 错误落定——把超时竞速从修复中移除会使该测试挂起/变红。

— qwen3.8-max via Qwen Code /review (v0.22.3)

@CanReader CanReader left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Spent most of the review on the gate itself, since a counter change in a serial write queue is easy to get subtly wrong. I could not break it.

The specific interleaving I tried to construct was: member Z's window legitimately has no committed write, but some other failed member's compensating write commits and drags teamFileWritesCommitted above Z's watermark, so Z's repair fires spuriously and serialises a live roster containing a sibling whose spawn is still pending — the exact harm the old comment says the gate exists to prevent. It cannot happen. For a committed write to carry a sequence number above Z's watermark it has to have taken its snapshot after Z's push, which means the snapshot contains Z, which means Z genuinely needs repairing. The watermark comparison is doing precisely the right thing, and the "monotonic, a rejected write keeps its number" note in the teamFileWritesStarted doc is what makes it hold.

Splitting started-vs-committed is also the right correction to the original gate. The old teamFileWritesStarted > writesStartedAtPush test could only ask whether a write ran, and a write that ran and rejected persisted nothing — so the solo disk-full case was doing a redundant second write and, when that failed too, reporting a ghost-member notice that told the operator the opposite of what happened. The first new test pins exactly that (one write attempt, no leader message), which is the behaviour change that matters.

One suggestion. The commit point does this.teamFileWritesCommitted = writeSeq, and the doc comment above the field asserts the watermark is monotonic — but that is an invariant of the queue being serial, not something the assignment enforces. Math.max(this.teamFileWritesCommitted, writeSeq) would make it structural, so a future change that lets two writes overlap (or an added retry that resolves out of order) degrades into a redundant compensating write rather than a silently skipped repair, which is the direction you want this to fail. Cheap insurance for a gate whose failure mode is a ghost member on disk.

Nit: the five-step test leans on two setTimeout(50) sleeps to sequence the interleaving. vi.waitFor is already used for the write-count checkpoint; using it for the push ordering too would make the test less dependent on timing under a loaded CI runner.

@github-actions

Copy link
Copy Markdown
Contributor

Code Coverage Summary

Package Lines Statements Functions Branches
CLI 85.81% 85.81% 91.18% 84.76%
Core 88.91% 88.91% 90.58% 87.33%
CLI Package - Full Text Report
-------------------|---------|----------|---------|---------|-------------------
File               | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s 
-------------------|---------|----------|---------|---------|-------------------
All files          |   85.81 |    84.76 |   91.18 |   85.81 |                   
 src               |   86.53 |    82.86 |   88.88 |   86.53 |                   
  cli.ts           |   95.92 |    88.23 |     100 |   95.92 | ...00-701,705-706 
  llm.tsx          |   73.22 |    77.73 |   80.76 |   73.22 | ...1345-1349,1476 
  ...ractiveCli.ts |   89.27 |    83.13 |   89.06 |   89.27 | ...3157,3163,3229 
  ...liCommands.ts |   89.71 |    84.17 |   81.81 |   89.71 | ...31-633,650,757 
  ...ActiveAuth.ts |     100 |     87.5 |     100 |     100 | 66-80             
 ...cp-integration |   75.07 |    77.54 |   93.73 |   75.07 |                   
  acpAgent.ts      |   74.22 |    77.45 |   93.04 |   74.22 | ...66,13344-13345 
  ...k-reporter.ts |     100 |       80 |     100 |     100 | 81,84,119,141     
  authMethods.ts   |      92 |       60 |     100 |      92 | 33-34             
  ...heap-probe.ts |   97.39 |    96.66 |     100 |   97.39 | 243,264-265       
  errorCodes.ts    |     100 |      100 |     100 |     100 |                   
  ...ion-skills.ts |     100 |     87.5 |     100 |     100 | 17,28             
  generation.ts    |    97.1 |    81.25 |     100 |    97.1 | 109,112           
  ...figuration.ts |     100 |    89.65 |     100 |     100 | 79,125,142        
  ...DirContext.ts |     100 |      100 |     100 |     100 |                   
  ...ersistence.ts |   94.95 |    92.24 |     100 |   94.95 | ...13-118,227-228 
  ...management.ts |   74.75 |     66.3 |     100 |   74.75 | ...92-496,505-509 
  ...e-download.ts |    64.7 |    62.24 |    87.5 |    64.7 | ...08-609,615-619 
 ...tegration/live |   97.53 |    88.23 |   92.85 |   97.53 |                   
  ...en-context.ts |   95.89 |    82.85 |     100 |   95.89 | ...,72-73,105-106 
  ...structions.ts |     100 |      100 |     100 |     100 |                   
  ...ak-to-user.ts |   96.66 |      100 |    87.5 |   96.66 | 37-38             
  ...task-tools.ts |   98.97 |      100 |   88.88 |   98.97 | 201-202           
 ...ration/service |    97.1 |    95.89 |   93.75 |    97.1 |                   
  filesystem.ts    |    97.1 |    95.89 |   93.75 |    97.1 | ...22-123,246-247 
 ...ration/session |   90.92 |    86.34 |   95.73 |   90.92 |                   
  Session.ts       |   90.29 |    85.08 |   95.13 |   90.29 | ...69,13496-13500 
  ...entTracker.ts |   96.88 |    89.36 |      90 |   96.88 | 139-145,224       
  ...projection.ts |   98.85 |    91.59 |     100 |   98.85 | 234,250,262       
  ...stop-guard.ts |     100 |    98.07 |     100 |     100 | 37,127            
  ...eplay-page.ts |   94.19 |    86.53 |     100 |   94.19 | ...53,357,437,441 
  ...y-replayer.ts |   83.41 |    93.33 |   94.11 |   83.41 | ...30-148,266-268 
  index.ts         |       0 |        0 |       0 |       0 | 1-40              
  ...ssionUtils.ts |   89.19 |     87.8 |     100 |   89.19 | ...85-304,363-365 
  ...oal-update.ts |   98.61 |    97.29 |     100 |   98.61 | 64                
  ...lure-guard.ts |   98.32 |    97.72 |     100 |   98.32 | 294-295,340-341   
  tasksSnapshot.ts |    94.3 |     87.5 |     100 |    94.3 | 65-71             
  ...on-tracker.ts |     100 |      100 |     100 |     100 |                   
  types.ts         |     100 |      100 |     100 |     100 |                   
 ...ssion/emitters |   95.65 |    92.34 |   97.14 |   95.65 |                   
  ...ageEmitter.ts |   95.36 |    92.42 |     100 |   95.36 | ...16,129-130,223 
  PlanEmitter.ts   |     100 |       90 |     100 |     100 | 66                
  base-emitter.ts  |   78.26 |    77.77 |     100 |   78.26 | 23-24,26-28       
  index.ts         |       0 |        0 |       0 |       0 | 1-10              
  ...ll-emitter.ts |   98.57 |    94.84 |     100 |   98.57 | 75-76,394-395     
 ...ession/rewrite |   96.03 |    89.79 |   94.44 |   96.03 |                   
  LlmRewriter.ts   |   94.01 |    88.23 |     100 |   94.01 | 101-102,179-183   
  ...Middleware.ts |   96.99 |    88.37 |     100 |   96.99 | 145,153-155       
  TurnBuffer.ts    |     100 |      100 |     100 |     100 |                   
  config.ts        |     100 |      100 |     100 |     100 |                   
  index.ts         |     100 |      100 |     100 |     100 |                   
  types.ts         |       0 |        0 |       0 |       0 | 1                 
 src/agent-view    |   86.65 |    80.86 |   94.01 |   86.65 |                   
  attach-lease.ts  |     100 |    97.05 |     100 |     100 | 173               
  ...t-cli-argv.ts |     100 |     92.3 |     100 |     100 | 15                
  ...ged-detach.ts |     100 |     90.9 |     100 |     100 | 40,64             
  presentation.ts  |   94.13 |    88.72 |   94.73 |   94.13 | ...57-358,382-384 
  protocol.ts      |     100 |      100 |     100 |     100 |                   
  pty-host-env.ts  |     100 |      100 |     100 |     100 |                   
  ...st-process.ts |   88.52 |    78.91 |   94.44 |   88.52 | ...1305,1395-1397 
  pty-host.ts      |   85.25 |    87.03 |   90.69 |   85.25 | ...22-524,539-540 
  ...sor-client.ts |   80.38 |    72.81 |   77.41 |   80.38 | ...22-626,652-656 
  ...r-dispatch.ts |      98 |    85.18 |     100 |      98 | 117,173,190       
  ...or-process.ts |    83.5 |    77.36 |   98.72 |    83.5 | ...4479-4482,4485 
  ...sor-runner.ts |   82.43 |    76.82 |   80.95 |   82.43 | ...69,493,496-506 
  ...sor-server.ts |   84.39 |    83.56 |    93.1 |   84.39 | ...67-568,571-588 
  ...isor-store.ts |   94.76 |    85.14 |     100 |   94.76 | ...,966,1008,1023 
  ...nal-bridge.ts |   93.98 |    91.54 |   83.33 |   93.98 | 228-238           
  ...r-sideband.ts |   94.91 |    89.36 |     100 |   94.91 | ...75-276,299-304 
 src/commands      |   90.73 |    78.53 |   65.62 |   90.73 |                   
  auth.ts          |     100 |    83.33 |     100 |     100 | 11,14             
  channel.ts       |   55.55 |      100 |       0 |   55.55 | 18-22,30-40       
  extensions.tsx   |   96.77 |      100 |      50 |   96.77 | 39                
  hooks.tsx        |   66.66 |      100 |       0 |   66.66 | 20-24             
  mcp.ts           |   95.45 |      100 |      50 |   95.45 | 31                
  review.ts        |   98.94 |      100 |      50 |   98.94 | 106               
  serve.ts         |   89.46 |    76.02 |     100 |   89.46 | ...12-915,927,938 
  sessions.ts      |     100 |      100 |      50 |     100 |                   
  update.ts        |   98.13 |    94.44 |   66.66 |   98.13 | 82-83             
 ...mmands/channel |   89.46 |    88.72 |   90.68 |   89.46 |                   
  channel-cwd.ts   |     100 |      100 |     100 |     100 |                   
  ...l-registry.ts |   94.78 |    94.59 |      90 |   94.78 | ...32-335,380-383 
  ...entry-path.ts |      75 |       50 |     100 |      75 | 8-9               
  config-utils.ts  |   96.84 |    96.22 |     100 |   96.84 | ...40-245,303-306 
  configure.ts     |    14.7 |      100 |       0 |    14.7 | 18-21,23-84       
  daemon-worker.ts |   93.72 |    85.81 |   94.33 |   93.72 | ...1305,1312-1313 
  loop-runtime.ts  |   91.66 |      100 |      50 |   91.66 | 15,22             
  ...classifier.ts |   98.53 |    96.66 |     100 |   98.53 | 115-116,161       
  ...tact-store.ts |   93.51 |    87.65 |     100 |   93.51 | ...71,288-289,337 
  pairing.ts       |      75 |      100 |      50 |      75 | 22-28,59-70       
  pidfile.ts       |   95.55 |       90 |     100 |   95.55 | ...50-251,315-316 
  proxy.ts         |     100 |      100 |     100 |     100 |                   
  reload.ts        |    77.5 |    86.95 |      75 |    77.5 | 72-84,93-97       
  runtime.ts       |   82.43 |    86.44 |     100 |   82.43 | ...87-191,251-253 
  set.ts           |   75.72 |    85.71 |      50 |   75.72 | 65-83,111-116     
  start.ts         |    87.7 |    83.63 |      88 |    87.7 | ...95,601-604,616 
  ...ure-format.ts |   93.65 |    82.45 |     100 |   93.65 | ...42,48-49,74-75 
  status.ts        |   78.57 |    59.25 |   66.66 |   78.57 | ...36-137,150-161 
  stop.ts          |   57.83 |    82.35 |      50 |   57.83 | ...3,74-76,85-111 
 ...nds/extensions |   88.85 |    87.91 |   87.09 |   88.85 |                   
  consent.ts       |   72.53 |    90.32 |   42.85 |   72.53 | ...86-142,157-163 
  disable.ts       |     100 |       90 |     100 |     100 | 30                
  enable.ts        |     100 |    91.66 |     100 |     100 | 38                
  install.ts       |   82.95 |    81.57 |      75 |   82.95 | ...96-199,202-211 
  link.ts          |     100 |      100 |     100 |     100 |                   
  list.ts          |     100 |     90.9 |     100 |     100 | 18                
  new.ts           |     100 |      100 |     100 |     100 |                   
  settings.ts      |   99.15 |      100 |   83.33 |   99.15 | 151               
  sources.ts       |   93.42 |    87.09 |   92.85 |   93.42 | ...4-66,96-98,167 
  uninstall.ts     |   74.57 |       40 |   66.66 |   74.57 | 45-47,60-67,70-73 
  update.ts        |   96.71 |    97.05 |     100 |   96.71 | 114-118           
  utils.ts         |   75.63 |    57.14 |     100 |   75.63 | ...30-134,136-140 
 ...les/mcp-server |       0 |        0 |       0 |       0 |                   
  example.ts       |       0 |        0 |       0 |       0 | 1-60              
 ...amples/starter |       0 |        0 |       0 |       0 |                   
  example.ts       |       0 |        0 |       0 |       0 | 1-64              
 src/commands/mcp  |   91.19 |    88.76 |   85.71 |   91.19 |                   
  add.ts           |    99.3 |    96.07 |     100 |    99.3 | 154-155           
  approve.ts       |   76.19 |     87.5 |   66.66 |   76.19 | ...,89-99,114-124 
  list.ts          |    92.9 |    84.84 |      80 |    92.9 | ...79-181,199-200 
  reconnect.ts     |   85.54 |    86.76 |    90.9 |   85.54 | 45-58,337-359     
  remove.ts        |     100 |       80 |     100 |     100 | 21-25             
 ...ommands/review |   91.96 |    90.53 |   93.54 |   91.96 |                   
  ab-drive.ts      |   85.22 |    90.47 |   94.11 |   85.22 | ...50-926,969-972 
  agent-prompt.ts  |   94.89 |    93.01 |   97.95 |   94.89 | ...3296,3631-3711 
  base-tree.ts     |   77.02 |    80.76 |   77.77 |   77.02 | ...63-384,386-399 
  capture-local.ts |   94.68 |     97.6 |   94.11 |   94.68 | 269,1334-1372     
  ...k-coverage.ts |   50.71 |       35 |   66.66 |   50.71 | ...40-245,279-289 
  cleanup.ts       |   92.34 |     89.5 |    90.9 |   92.34 | ...1107,1109-1110 
  comment-body.ts  |   67.85 |    87.09 |   66.66 |   67.85 | ...30,157,159-164 
  ...ent-status.ts |   94.22 |    87.32 |    90.9 |   94.22 | ...96,462,738-758 
  ...ose-review.ts |   97.41 |    93.97 |   98.73 |   97.41 | ...6570-6614,6874 
  cost-ledger.ts   |   94.58 |     94.4 |   81.25 |   94.58 | ...53-654,694-704 
  ...candidates.ts |   93.12 |    93.95 |   84.61 |   93.12 | ...49-660,662-674 
  drive.ts         |   97.12 |    89.85 |     100 |   97.12 | ...83-985,990-992 
  emit-workflow.ts |   90.57 |     93.1 |   83.33 |   90.57 | 154,176,285-295   
  extract-step.ts  |   91.36 |    90.62 |   88.88 |   91.36 | ...90-707,714-729 
  fetch-diff.ts    |   73.75 |      100 |   66.66 |   73.75 | 77-97             
  fetch-pr.ts      |   97.29 |    92.25 |     100 |   97.29 | ...1566,1724-1729 
  findings.ts      |    96.3 |    93.68 |     100 |    96.3 | ...1418,1427-1428 
  issue-context.ts |   88.15 |     93.1 |   85.71 |   88.15 | 249-276           
  load-rules.ts    |   26.41 |      100 |   16.66 |   26.41 | ...41-153,155-156 
  match-remote.ts  |   85.55 |     92.3 |   66.66 |   85.55 | 74-79,144-150     
  meta.ts          |   79.43 |    93.75 |   66.66 |   79.43 | 123-128,147-162   
  mock-provider.ts |   95.44 |    90.25 |   89.47 |   95.44 | 145,690-709       
  parse-args.ts    |   99.48 |    95.74 |     100 |   99.48 | 665,990,1046,1082 
  plan-diff.ts     |   71.42 |      100 |   66.66 |   71.42 | 162-197           
  pr-context.ts    |   96.22 |    88.86 |     100 |   96.22 | ...2580,2681-2697 
  presubmit.ts     |   94.32 |    90.83 |   94.11 |   94.32 | ...1219,1254-1285 
  ...ish-assets.ts |    81.3 |    82.22 |   85.71 |    81.3 | ...75-479,506-552 
  ...r-findings.ts |   90.74 |    83.75 |     100 |   90.74 | ...17-422,429-430 
  repo-context.ts  |   94.62 |    90.75 |     100 |   94.62 | ...66-467,482-487 
  ...ve-anchors.ts |   78.34 |    89.28 |      75 |   78.34 | ...83-188,200-217 
  revert-hunk.ts   |   91.48 |    87.94 |     100 |   91.48 | ...1189,1236-1239 
  run.ts           |   84.47 |    87.58 |   95.45 |   84.47 | ...00,816-870,884 
  save-artifact.ts |    94.2 |    92.46 |   94.11 |    94.2 | ...14-617,710-713 
  scratch-tree.ts  |   95.93 |       86 |     100 |   95.93 | ...91-392,461-464 
  script-lint.ts   |   81.27 |    80.45 |   88.88 |   81.27 | ...69-783,785-807 
  submit.ts        |   94.21 |       89 |   94.44 |   94.21 | ...1710,1738-1775 
  test-delta.ts    |   95.75 |     92.3 |      75 |   95.75 | 470-478           
  test-efficacy.ts |   84.03 |    80.48 |   96.07 |   84.03 | ...3249,3257-3277 
  test-plan.ts     |   94.61 |    91.79 |      95 |   94.61 | ...29-832,873-874 
  ...low-script.ts |     100 |      100 |     100 |     100 |                   
 ...w/__fixtures__ |     100 |      100 |     100 |     100 |                   
  ...r-default.mjs |     100 |      100 |     100 |     100 |                   
  ...der-empty.mjs |     100 |      100 |     100 |     100 |                   
  ...der-named.mjs |     100 |      100 |     100 |     100 |                   
 ...nds/review/lib |   97.34 |    94.74 |    98.7 |   97.34 |                   
  agent-briefs.ts  |   99.08 |      100 |      50 |   99.08 | 841-842           
  ...t-identity.ts |     100 |      100 |     100 |     100 |                   
  anchors.ts       |     100 |    97.04 |     100 |     100 | ...39,175,184,231 
  assets.ts        |     100 |      100 |     100 |     100 |                   
  audit-layers.ts  |   98.67 |    96.15 |     100 |   98.67 | 288-290           
  authorization.ts |    96.5 |    95.61 |     100 |    96.5 | ...54-255,629-630 
  budget.ts        |     100 |    97.95 |     100 |     100 | 887,940           
  build-budget.ts  |     100 |      100 |     100 |     100 |                   
  certification.ts |     100 |      100 |     100 |     100 |                   
  convergence.ts   |     100 |    97.94 |    92.3 |     100 | 52,515,620,716    
  coverage.ts      |   98.97 |    95.12 |     100 |   98.97 | ...1103,1648-1649 
  deadline.ts      |   98.03 |    91.66 |     100 |   98.03 | ...20,752,820,837 
  diff-flags.ts    |     100 |        0 |     100 |     100 | 75                
  diff-plan.ts     |   99.29 |    95.77 |     100 |   99.29 | 295-296,319       
  disk.ts          |     100 |      100 |     100 |     100 |                   
  effort.ts        |     100 |      100 |     100 |     100 |                   
  failing-files.ts |     100 |    93.33 |     100 |     100 | 41                
  gh.ts            |   89.53 |    95.52 |   78.94 |   89.53 | ...47,384-385,412 
  git.ts           |   96.92 |    94.11 |     100 |   96.92 | 264-265,302-303   
  heavy.ts         |     100 |      100 |     100 |     100 |                   
  import-graph.ts  |   96.68 |     95.6 |     100 |   96.68 | 180-182,211-212   
  ...ntal-scope.ts |     100 |      100 |     100 |     100 |                   
  inline-counts.ts |     100 |      100 |     100 |     100 |                   
  ...audit-gate.ts |     100 |     97.5 |     100 |     100 | 135               
  ledger.ts        |     100 |    99.47 |     100 |     100 | 884               
  local-anchor.ts  |   94.36 |    89.24 |     100 |   94.36 | ...36,669-670,818 
  local-diff.ts    |   86.77 |    94.28 |     100 |   86.77 | ...54-564,566-574 
  ...ry-context.ts |   96.61 |    95.48 |     100 |   96.61 | ...47-450,496-499 
  md-field.ts      |     100 |      100 |     100 |     100 |                   
  merge-base.ts    |     100 |      100 |     100 |     100 |                   
  narrow-diff.ts   |     100 |      100 |     100 |     100 |                   
  npm-toolchain.ts |   98.23 |    95.29 |     100 |   98.23 | ...,822,1203,1220 
  path-rules.ts    |     100 |      100 |     100 |     100 |                   
  paths.ts         |    95.6 |    88.67 |     100 |    95.6 | 40-41,168-173     
  prompt-record.ts |   98.03 |    94.23 |     100 |   98.03 | 293-294,300       
  receipt.ts       |     100 |      100 |     100 |     100 |                   
  remote-match.ts  |   98.03 |    94.73 |     100 |   98.03 | 109-110           
  report.ts        |   92.92 |    86.66 |     100 |   92.92 | 213-214,216-220   
  ...ry-context.ts |     100 |    98.66 |     100 |     100 | 187               
  resume.ts        |     100 |      100 |     100 |     100 |                   
  retirement.ts    |     100 |    94.36 |     100 |     100 | ...58-559,760,917 
  review-footer.ts |   99.55 |    98.09 |     100 |   99.55 | 548-549           
  ...w-settings.ts |     100 |    96.42 |     100 |     100 | 99                
  roster.ts        |     100 |    97.14 |     100 |     100 | 177,222           
  round-model.ts   |     100 |      100 |     100 |     100 |                   
  run-ledger.ts    |    98.2 |    93.87 |     100 |    98.2 | ...23,541,647,670 
  same-file.ts     |     100 |       95 |     100 |     100 | 46                
  ...boxed-exec.ts |   94.26 |    89.32 |   95.65 |   94.26 | ...49-550,728-729 
  shell-quote.ts   |     100 |      100 |     100 |     100 |                   
  stale-bundle.ts  |   98.18 |    94.38 |     100 |   98.18 | 431,472,512-513   
  test-utils.ts    |   99.04 |    91.66 |     100 |   99.04 | 75                
  toolchain.ts     |     100 |      100 |     100 |     100 |                   
  transcripts.ts   |   98.09 |    95.07 |     100 |   98.09 | ...92,438,707-708 
  ...pace-scope.ts |     100 |    96.96 |     100 |     100 | 186               
  workspaces.ts    |     100 |    96.85 |     100 |     100 | 222,452,499,512   
  ...ree-reader.ts |     100 |      100 |     100 |     100 |                   
  worktree.ts      |   89.39 |    81.78 |     100 |   89.39 | ...1813-1814,1827 
 ...w/lib/platform |   94.71 |    87.89 |   97.05 |   94.71 |                   
  aone-client.ts   |   94.94 |     87.3 |     100 |   94.94 | ...92-293,299-302 
  aone.ts          |   93.06 |    89.86 |   94.73 |   93.06 | ...34,598-603,655 
  github.ts        |   99.08 |     75.8 |     100 |   99.08 | 249-250           
  registry.ts      |     100 |      100 |     100 |     100 |                   
  types.ts         |     100 |      100 |     100 |     100 |                   
 ...mands/sessions |   94.11 |    89.06 |   89.47 |   94.11 |                   
  common.ts        |     100 |      100 |     100 |     100 |                   
  list.ts          |   90.96 |    86.66 |   81.81 |   90.96 | 208-219,221-222   
  ps.ts            |     100 |    94.44 |     100 |     100 | 58                
 src/config        |   94.37 |    90.46 |    95.3 |   94.37 |                   
  ...l-fallback.ts |     100 |      100 |     100 |     100 |                   
  auth.ts          |   93.36 |    88.37 |     100 |   93.36 | ...06-307,330-331 
  ...eMcpImport.ts |   87.91 |    81.52 |     100 |   87.91 | ...63-371,453-454 
  compile-cache.ts |     100 |      100 |     100 |     100 |                   
  config.ts        |    88.2 |    90.75 |   86.11 |    88.2 | ...2314,2316-2324 
  ...cy-monitor.ts |      90 |    77.27 |     100 |      90 | ...72-73,90-92,98 
  ...ust-policy.ts |   83.02 |    88.88 |     100 |   83.02 | ...02-209,232-240 
  ...heme-names.ts |     100 |      100 |     100 |     100 |                   
  ...ScopeUtils.ts |   97.56 |    88.88 |     100 |   97.56 | 67                
  environment.ts   |   94.63 |    92.38 |   95.23 |   94.63 | ...24-625,693-694 
  ...le-watcher.ts |   90.86 |    83.65 |   95.83 |   90.86 | ...23-325,370,418 
  ...resh-state.ts |   90.57 |    97.29 |   93.75 |   90.57 | 137-142,146-152   
  ...ime-reload.ts |     100 |    69.69 |     100 |     100 | ...12-113,122-123 
  hot-reload.ts    |     100 |    89.13 |     100 |     100 | 47,172-178,238    
  keyBindings.ts   |    97.4 |       50 |     100 |    97.4 | 240-243           
  ...ngsAdapter.ts |     100 |    94.11 |     100 |     100 | 64                
  ...ig-watcher.ts |   95.17 |    83.05 |     100 |   95.17 | ...78,200,292-293 
  ...er-secrets.ts |   98.97 |    96.87 |     100 |   98.97 | 85                
  mcpApprovals.ts  |   78.57 |       92 |   86.66 |   78.57 | ...18-319,324-326 
  mcpJson.ts       |     100 |      100 |     100 |     100 |                   
  mcpServers.ts    |   92.85 |     87.5 |     100 |   92.85 | 46-47             
  ...idersScope.ts |      95 |    94.73 |     100 |      95 | 11-12             
  ...abledTools.ts |     100 |      100 |     100 |     100 |                   
  ...comparison.ts |     100 |      100 |     100 |     100 |                   
  ...n-settings.ts |   99.15 |    93.93 |     100 |   99.15 | 63                
  sandboxConfig.ts |   93.33 |    93.33 |     100 |   93.33 | ...42-147,216-217 
  session-id.ts    |     100 |      100 |     100 |     100 |                   
  ...ings-cache.ts |   96.52 |    93.93 |     100 |   96.52 | 90-91,201-202     
  settings.ts      |   91.52 |    92.85 |   90.32 |   91.52 | ...1073,1075-1076 
  ...ingsSchema.ts |     100 |      100 |     100 |     100 |                   
  settingsUtils.ts |   80.92 |     89.2 |   85.18 |   80.92 | ...87-605,612-620 
  ...ngsWatcher.ts |   95.54 |    88.34 |     100 |   95.54 | ...28,277-278,293 
  ...d-env-keys.ts |     100 |      100 |     100 |     100 |                   
  ...l-settings.ts |     100 |      100 |     100 |     100 |                   
  ...paths-lite.ts |   89.47 |       88 |     100 |   89.47 | 43-44,53-54,56-57 
  ...el-options.ts |     100 |      100 |     100 |     100 |                   
  ...precedence.ts |   98.79 |     92.3 |     100 |   98.79 | 62                
  ...tedFolders.ts |   92.53 |    93.54 |     100 |   92.53 | ...36-337,373-384 
 ...nfig/migration |   95.23 |    78.94 |   85.71 |   95.23 |                   
  index.ts         |   95.65 |     87.5 |     100 |   95.65 | 117-118           
  scheduler.ts     |   96.55 |       80 |     100 |   96.55 | 19-20             
  types.ts         |       0 |        0 |       0 |       0 | 1                 
 ...ation/versions |   94.91 |      100 |     100 |   94.91 |                   
  ...-v2-shared.ts |     100 |      100 |     100 |     100 |                   
  v1-to-v2.ts      |   81.75 |      100 |     100 |   81.75 | ...28-229,231-247 
  v2-to-v3.ts      |     100 |      100 |     100 |     100 |                   
  v3-to-v4.ts      |     100 |      100 |     100 |     100 |                   
  v5-to-v4.ts      |      96 |      100 |     100 |      96 | 94-95,99          
 src/core          |     100 |      100 |     100 |     100 |                   
  auth.ts          |     100 |      100 |     100 |     100 |                   
  initializer.ts   |     100 |      100 |     100 |     100 |                   
  theme.ts         |     100 |      100 |     100 |     100 |                   
 src/dualOutput    |   75.08 |    67.64 |   71.42 |   75.08 |                   
  ...tputBridge.ts |   75.33 |    68.18 |   73.68 |   75.33 | ...09-410,418-421 
  ...utContext.tsx |     100 |      100 |     100 |     100 |                   
  index.ts         |       0 |        0 |       0 |       0 | 1-8               
 src/export        |       0 |        0 |       0 |       0 |                   
  index.ts         |       0 |        0 |       0 |       0 | 1-7               
 src/generated     |     100 |      100 |     100 |     100 |                   
  git-commit.ts    |     100 |      100 |     100 |     100 |                   
 src/hooks         |     100 |      100 |     100 |     100 |                   
  ...elete-hook.ts |     100 |      100 |     100 |     100 |                   
 src/i18n          |   89.68 |    88.66 |   93.02 |   89.68 |                   
  index.ts         |   73.45 |    77.77 |      90 |   73.45 | ...70-271,294-299 
  languageUtils.ts |   98.88 |    97.01 |     100 |   98.88 | 184-185           
  languages.ts     |   93.07 |     92.3 |   85.71 |   93.07 | ...35,164-169,184 
  ...nslateKeys.ts |     100 |      100 |     100 |     100 |                   
  ...lationDict.ts |   93.33 |    66.66 |     100 |   93.33 | 15                
 src/i18n/locales  |     100 |      100 |     100 |     100 |                   
  ca.js            |     100 |      100 |     100 |     100 |                   
  de.js            |     100 |      100 |     100 |     100 |                   
  en.js            |     100 |      100 |     100 |     100 |                   
  fr.js            |     100 |      100 |     100 |     100 |                   
  ja.js            |     100 |      100 |     100 |     100 |                   
  pt.js            |     100 |      100 |     100 |     100 |                   
  ru.js            |     100 |      100 |     100 |     100 |                   
  zh-TW.js         |     100 |      100 |     100 |     100 |                   
  zh.js            |     100 |      100 |     100 |     100 |                   
 ...nonInteractive |   87.37 |    83.73 |   89.32 |   87.37 |                   
  ...ng-failure.ts |     100 |      100 |     100 |     100 |                   
  ...iveHelpers.ts |   94.95 |    91.05 |     100 |   94.95 | ...30-431,529,542 
  ...uggestions.ts |   84.29 |    70.83 |     100 |   84.29 | 70-76,92-103      
  session.ts       |   84.97 |    76.31 |   96.07 |   84.97 | ...1048,1057-1067 
  ...iagnostics.ts |    95.8 |     87.5 |   93.75 |    95.8 | ...03,277-278,289 
  types.ts         |    42.5 |      100 |   33.33 |    42.5 | ...33-634,637-638 
 ...active/control |   75.54 |    89.83 |      80 |   75.54 |                   
  ...rolContext.ts |    6.06 |        0 |       0 |    6.06 | 57-99             
  ...Dispatcher.ts |   91.95 |    92.98 |   88.88 |   91.95 | ...54-372,392,395 
  ...rolService.ts |    6.89 |        0 |       0 |    6.89 | 46-188            
 ...ol/controllers |   57.57 |    66.48 |   73.68 |   57.57 |                   
  ...Controller.ts |    42.4 |      100 |   83.33 |    42.4 | 101-105,140-223   
  ...Controller.ts |       0 |        0 |       0 |       0 | 1-56              
  ...Controller.ts |   70.23 |    63.33 |   91.66 |   70.23 | ...19-628,643-648 
  ...Controller.ts |   49.23 |       60 |      50 |   49.23 | ...07-108,111-121 
  ...Controller.ts |   53.96 |    67.08 |   66.66 |   53.96 | ...78-690,699-728 
 .../control/types |       0 |        0 |       0 |       0 |                   
  serviceAPIs.ts   |       0 |        0 |       0 |       0 | 1                 
 ...Interactive/io |   98.18 |    94.11 |   95.34 |   98.18 |                   
  ...putAdapter.ts |   98.07 |    93.21 |   98.11 |   98.07 | ...1448,1464-1465 
  ...putAdapter.ts |   96.22 |    91.66 |   85.71 |   96.22 | 52-53             
  ...nputReader.ts |     100 |    94.73 |     100 |     100 | 67                
  ...putAdapter.ts |   98.51 |      100 |   90.47 |   98.51 | 90-91,131-132     
  ...projection.ts |     100 |      100 |     100 |     100 |                   
  index.ts         |     100 |      100 |     100 |     100 |                   
 src/patches       |       0 |        0 |       0 |       0 |                   
  is-in-ci.ts      |       0 |        0 |       0 |       0 | 1-17              
 src/peerMessaging |   91.89 |    88.29 |   96.42 |   91.89 |                   
  ...ngContext.tsx |     100 |      100 |     100 |     100 |                   
  ...-messaging.ts |   91.78 |    88.17 |   96.29 |   91.78 | ...31-436,507-512 
 src/remoteInput   |   87.31 |    75.32 |   88.23 |   87.31 |                   
  ...utContext.tsx |     100 |      100 |     100 |     100 |                   
  ...putWatcher.ts |   88.01 |       76 |   93.33 |   88.01 | ...49-350,361-364 
  index.ts         |       0 |        0 |       0 |       0 | 1-8               
 src/runtime       |   99.72 |    95.48 |     100 |   99.72 |                   
  ...livery-ipc.ts |     100 |    91.17 |     100 |     100 | 94,106,134        
  ...l-delivery.ts |     100 |      100 |     100 |     100 |                   
  cpu-percent.ts   |     100 |      100 |     100 |     100 |                   
  ...ion-source.ts |     100 |      100 |     100 |     100 |                   
  ...d-task-run.ts |     100 |       70 |     100 |     100 | 57,71             
  ...erver-name.ts |     100 |      100 |     100 |     100 |                   
  ...-constants.ts |     100 |      100 |     100 |     100 |                   
  ...-summaries.ts |   86.66 |       50 |     100 |   86.66 | 11,19             
  ...ber-errors.ts |     100 |    95.57 |     100 |     100 | 53,93-94,172,192  
  ...ls-mapping.ts |     100 |      100 |     100 |     100 |                   
 src/serve         |   87.37 |    85.29 |   90.79 |   87.37 |                   
  ...extra-args.ts |     100 |      100 |     100 |     100 |                   
  ...tp-enabled.ts |     100 |      100 |     100 |     100 |                   
  ...ion-bridge.ts |     100 |      100 |     100 |     100 |                   
  auth.ts          |   96.19 |    93.44 |     100 |   96.19 | ...47-448,451-453 
  ...em-adapter.ts |     100 |      100 |     100 |     100 |                   
  capabilities.ts  |     100 |    98.21 |     100 |     100 | 737               
  ...cp-command.ts |     100 |      100 |     100 |     100 |                   
  ...horization.ts |   92.79 |    93.54 |    87.5 |   92.79 | 75-80,135-136     
  ...op-mcp-ipc.ts |   81.06 |    73.68 |   94.11 |   81.06 | ...37-242,267,289 
  ...nt-service.ts |    94.1 |    86.98 |     100 |    94.1 | ...75-477,484,486 
  ...-selection.ts |     100 |      100 |     100 |     100 |                   
  ...ings-store.ts |   89.61 |    94.37 |   96.55 |   89.61 | ...64-276,528-531 
  ...ebhook-ipc.ts |    98.5 |     87.5 |     100 |    98.5 | 47                
  ...iagnostics.ts |     100 |      100 |     100 |     100 |                   
  ...worker-env.ts |     100 |      100 |     100 |     100 |                   
  ...rker-group.ts |   87.32 |    85.33 |     100 |   87.32 | ...14,820-824,842 
  ...er-manager.ts |   89.39 |    83.88 |   93.33 |   89.39 | ...98,711,722-724 
  ...horization.ts |     100 |      100 |     100 |     100 |                   
  ...tartup-ipc.ts |   97.72 |    96.66 |     100 |   97.72 | 88-89             
  ...supervisor.ts |   93.24 |    85.42 |    97.4 |   93.24 | ...1765,1819-1823 
  ...e-grouping.ts |     100 |    94.28 |     100 |     100 | 71,137            
  core-runtime.ts  |     100 |      100 |     100 |     100 |                   
  ...ub-session.ts |   91.01 |    81.25 |   94.73 |   91.01 | ...1120,1141-1146 
  ...tree-guard.ts |   93.87 |    89.81 |     100 |   93.87 | ...3227,3297-3301 
  daemon-logger.ts |   82.82 |    78.68 |   92.04 |   82.82 | ...1775,1802-1808 
  ...y-pressure.ts |     100 |    96.96 |     100 |     100 | 135               
  ...trics-ring.ts |     100 |      100 |     100 |     100 |                   
  ...s-provider.ts |   68.04 |    52.77 |     100 |   68.04 | ...44-249,282-290 
  daemon-status.ts |   98.69 |    91.96 |     100 |   98.69 | ...1590,1592-1593 
  debug-mode.ts    |     100 |      100 |     100 |     100 |                   
  env-snapshot.ts  |   93.37 |    85.18 |     100 |   93.37 | 114-117,195-202   
  ...-scheduler.ts |   87.34 |    83.87 |     100 |   87.34 | 33-36,48-50,79-81 
  ...d-provider.ts |   92.06 |    87.09 |     100 |   92.06 | ...72,287-293,316 
  ...h-settings.ts |   94.94 |    90.45 |     100 |   94.94 | ...30,708,724,734 
  fast-path.ts     |   91.38 |       82 |   95.45 |   91.38 | ...46-555,633-634 
  ...ration-sse.ts |   42.55 |    33.33 |     100 |   42.55 | 23-24,30,33-56    
  health-query.ts  |     100 |      100 |     100 |     100 |                   
  index.ts         |       0 |        0 |       0 |       0 | 1-149             
  ...e-observer.ts |   89.89 |    83.24 |      96 |   89.89 | ...11-512,541-543 
  ...-addresses.ts |     100 |     91.3 |     100 |     100 | 52,72             
  ...back-binds.ts |     100 |      100 |     100 |     100 |                   
  ...-workspace.ts |   91.58 |    86.48 |     100 |   91.58 | ...44-145,156-157 
  ...pp-sandbox.ts |   96.72 |    95.23 |     100 |   96.72 | 41-42             
  ...iders-edit.ts |     100 |    83.33 |     100 |     100 | 58-60,65,81       
  ...ory-picker.ts |    90.9 |    91.66 |      75 |    90.9 | 32,55-64          
  ...-with-auth.ts |     100 |      100 |     100 |     100 |                   
  ...ate-blocks.ts |   99.03 |    94.73 |     100 |   99.03 | 133               
  ...sion-audit.ts |     100 |      100 |   93.33 |     100 |                   
  ...nal-ledger.ts |    94.9 |     85.1 |     100 |    94.9 | ...81,302,361-362 
  rate-limit.ts    |   92.68 |    88.29 |     100 |   92.68 | ...89-291,303-305 
  ...qwen-serve.ts |   84.06 |    82.02 |   77.03 |   84.06 | ...9492,9510-9514 
  ...tup-errors.ts |     100 |      100 |     100 |     100 |                   
  sandbox.ts       |   46.92 |     62.5 |   76.92 |   46.92 | ...1058,1070-1093 
  ...-keepalive.ts |   94.31 |    89.28 |     100 |   94.31 | ...37,541-542,581 
  ...-lifecycle.ts |     100 |      100 |     100 |     100 |                   
  ...-lifecycle.ts |   89.16 |    90.29 |   86.95 |   89.16 | ...24-325,330-334 
  serve-token.ts   |     100 |      100 |     100 |     100 |                   
  server.ts        |   89.45 |    91.44 |   71.75 |   89.45 | ...3253,3284-3285 
  ...-admission.ts |   99.13 |    95.94 |     100 |   99.13 | 308-309           
  ...on-helpers.ts |     100 |      100 |     100 |     100 |                   
  ...-redaction.ts |     100 |      100 |     100 |     100 |                   
  ...t-event-id.ts |     100 |    95.23 |     100 |     100 | 12                
  ...-admission.ts |   98.71 |    89.65 |     100 |   98.71 | 68                
  types.ts         |     100 |      100 |     100 |     100 |                   
  ...ion-limits.ts |     100 |      100 |     100 |     100 |                   
  ...t-sessions.ts |   93.72 |    77.93 |     100 |   93.72 | ...51,854,867-869 
  ...l-resolver.ts |   90.32 |    66.66 |     100 |   90.32 | 16,45-46          
  ...ell-static.ts |   93.33 |    86.15 |     100 |   93.33 | ...90-293,336-339 
  ...ace-agents.ts |   66.13 |    70.57 |   92.68 |   66.13 | ...2246,2256-2266 
  ...generation.ts |    95.4 |    82.35 |   66.66 |    95.4 | 55-56,78,92       
  ...-git-state.ts |     100 |    91.93 |    90.9 |     100 | 161,172,202,265   
  ...ace-inputs.ts |     100 |      100 |     100 |     100 |                   
  ...ace-memory.ts |      83 |    74.54 |     100 |      83 | ...30-537,597-604 
  ...ers-status.ts |   98.63 |       80 |     100 |   98.63 | 108,136,186,189   
  ...tion-store.ts |   89.67 |    88.27 |   92.59 |   89.67 | ...91-400,411-414 
  ...e-registry.ts |   94.09 |    90.57 |     100 |   94.09 | ...90-591,598-599 
  ...e-remember.ts |   98.31 |    93.29 |     100 |   98.31 | ...47,351-356,397 
  ...te-runtime.ts |   89.85 |    90.76 |     100 |   89.85 | ...06-207,275-296 
  ...me-storage.ts |     100 |      100 |     100 |     100 |                   
  ...visibility.ts |     100 |      100 |     100 |     100 |                   
  ...management.ts |   72.63 |    72.83 |   96.15 |   72.63 | ...88-889,896-900 
  ...lls-status.ts |     100 |    95.45 |     100 |     100 | 152               
  ...reconciler.ts |   91.63 |    84.09 |     100 |   91.63 | ...71-273,306-307 
 ...serve/acp-http |   80.72 |     80.5 |   94.53 |   80.72 |                   
  ...r-registry.ts |   96.92 |    94.87 |     100 |   96.92 | 184-187           
  client-mcp-ws.ts |   54.85 |    58.62 |   72.72 |   54.85 | ...99-300,304-305 
  ...n-registry.ts |   93.03 |    84.13 |   98.52 |   93.03 | ...1624,1671-1682 
  dispatch.ts      |   75.99 |    77.48 |   93.44 |   75.99 | ...5708,5765-5771 
  index.ts         |   83.61 |    80.67 |   91.22 |   83.61 | ...2465,2551-2552 
  json-rpc.ts      |     100 |    96.96 |     100 |     100 | 92                
  ...ach-budget.ts |     100 |      100 |     100 |     100 |                   
  safe-ws-send.ts  |   52.94 |    71.42 |     100 |   52.94 | 33-42,47-55       
  sse-stream.ts    |   98.26 |    88.75 |     100 |   98.26 | 87-88,117         
  ...ort-stream.ts |       0 |        0 |       0 |       0 | 1                 
  ws-stream.ts     |   94.06 |    89.09 |     100 |   94.06 | 50,55,134,138-141 
 src/serve/auth    |   86.86 |     79.7 |   93.87 |   86.86 |                   
  device-flow.ts   |   96.35 |    80.57 |   97.61 |   96.35 | ...1358,1453,1519 
  ...w-provider.ts |   44.24 |    74.07 |   71.42 |   44.24 | ...23-284,297,301 
 ...rve/cdp-tunnel |   87.73 |    76.21 |    97.5 |   87.73 |                   
  ...r-emulator.ts |   93.27 |    77.77 |     100 |   93.27 | ...53-256,282-283 
  ...verse-link.ts |      88 |    76.19 |     100 |      88 | ...28-329,420-423 
  ...l-registry.ts |     100 |      100 |     100 |     100 |                   
  cdp-ws.ts        |   76.28 |    61.29 |    87.5 |   76.28 | ...13-217,223-228 
 ...nel/acceptance |    6.12 |    57.89 |   46.15 |    6.12 |                   
  ...helpers.d.mts |       0 |        0 |       0 |       0 | 1                 
  ...e-helpers.mjs |   97.64 |    70.96 |     100 |   97.64 | 22-23             
  ...mcp-smoke.mjs |       0 |        0 |       0 |       0 | 1-124             
  ...cceptance.mjs |       0 |        0 |       0 |       0 | 1-473             
  ...re-server.mjs |       0 |        0 |       0 |       0 | 1-59              
  ...ols-smoke.mjs |       0 |        0 |       0 |       0 | 1-268             
  real-tab.mjs     |       0 |        0 |       0 |       0 | 1-218             
  ...al-chrome.mjs |       0 |        0 |       0 |       0 | 1-223             
 .../conversations |   86.63 |    79.08 |   92.96 |   86.63 |                   
  ...e-activity.ts |     100 |      100 |     100 |     100 |                   
  ...ime-errors.ts |     100 |      100 |     100 |     100 |                   
  ...me-manager.ts |   97.88 |    94.91 |     100 |   97.88 | 64-65,92          
  ...-ownership.ts |   87.33 |    83.75 |   88.46 |   87.33 | ...57-558,601-602 
  ...-workspace.ts |   88.17 |    76.15 |     100 |   88.17 | ...52-554,568-572 
  ...on-journal.ts |   91.65 |    80.76 |     100 |   91.65 | ...44-745,751-753 
  ...on-service.ts |   84.02 |    75.91 |   88.54 |   84.02 | ...3082,3091-3093 
 src/serve/fs      |   87.77 |    82.35 |     100 |   87.77 |                   
  audit.ts         |     100 |    96.29 |     100 |     100 | 211               
  errors.ts        |     100 |      100 |     100 |     100 |                   
  index.ts         |     100 |      100 |     100 |     100 |                   
  ...x-registry.ts |     100 |      100 |     100 |     100 |                   
  paths.ts         |   77.64 |    74.01 |     100 |   77.64 | ...65,594-598,611 
  policy.ts        |   90.52 |    89.18 |     100 |   90.52 | 172-180           
  text-cursor.ts   |   88.23 |       90 |     100 |   88.23 | 74-77,92-95       
  ...ile-system.ts |   88.02 |    81.88 |     100 |   88.02 | ...3027,3037-3038 
 src/serve/live    |    76.6 |    70.54 |    90.2 |    76.6 |                   
  discovery.ts     |   85.89 |    82.14 |    91.3 |   85.89 | ...73-579,592-593 
  ...oordinator.ts |   82.67 |    76.63 |   97.01 |   82.67 | ...1319,1351-1353 
  ...-installer.ts |    64.3 |    82.35 |   80.76 |    64.3 | ...45-446,460-472 
  ...oordinator.ts |    76.7 |    67.47 |   85.71 |    76.7 | ...1885,1976-1977 
  ...controller.ts |   67.82 |    79.66 |      75 |   67.82 | ...66-278,287-295 
  ...sk-service.ts |   82.71 |    66.15 |   93.61 |   82.71 | ...1270,1283,1290 
  ...redentials.ts |   96.26 |    93.47 |     100 |   96.26 | 91-94             
  ...me-session.ts |   65.63 |    57.24 |   88.88 |   65.63 | ...2270,2275-2282 
  ...up-context.ts |   94.85 |    77.39 |     100 |   94.85 | ...18,327-330,350 
  types.ts         |     100 |      100 |     100 |     100 |                   
 .../local-control |   82.89 |    90.09 |      90 |   82.89 |                   
  credentials.ts   |   96.42 |    95.45 |     100 |   96.42 | 109-110           
  index.ts         |     100 |      100 |     100 |     100 |                   
  ...interfaces.ts |   43.58 |    82.75 |   42.85 |   43.58 | ...09-117,130-142 
  ...r-identity.ts |     100 |      100 |     100 |     100 |                   
  service.ts       |    93.4 |       90 |     100 |    93.4 | ...20-222,313-315 
 src/serve/routes  |   86.38 |    81.73 |   95.79 |   86.38 |                   
  a2ui-action.ts   |   96.84 |     88.5 |    87.5 |   96.84 | ...70-272,309-311 
  capabilities.ts  |   98.73 |    96.15 |     100 |   98.73 | 82                
  ...nel-notify.ts |   79.16 |    85.18 |     100 |   79.16 | ...03-104,120-126 
  ...l-webhooks.ts |   93.56 |    84.09 |     100 |   93.56 | ...42,292,332,334 
  daemon-status.ts |   85.71 |    83.33 |     100 |   85.71 | 101-108           
  goals.ts         |   98.94 |    91.17 |     100 |   98.94 | 143               
  health.ts        |   99.09 |    91.42 |     100 |   99.09 | 147               
  live-setup.ts    |   33.33 |     37.5 |      50 |   33.33 | ...18-123,130-135 
  live.ts          |   84.61 |    76.47 |     100 |   84.61 | ...04,106-111,131 
  permission.ts    |   96.03 |    87.87 |     100 |   96.03 | 81-84             
  ...uled-tasks.ts |   87.52 |    83.61 |   95.12 |   87.52 | ...2016,2061-2062 
  ...r-backfill.ts |    98.5 |    93.65 |     100 |    98.5 | ...98,600,824-825 
  ...on-runtime.ts |   91.42 |       90 |     100 |   91.42 | 56-64             
  session.ts       |   86.73 |    83.11 |   94.35 |   86.73 | ...7167,7169-7170 
  sse-events.ts    |   87.01 |    84.95 |   94.44 |   87.01 | ...40-951,954,961 
  ...e-sessions.ts |    86.9 |    80.57 |     100 |    86.9 | ...81-483,486-491 
  terminal.ts      |   92.81 |    90.35 |     100 |   92.81 | ...10-313,332-335 
  usage-stats.ts   |     100 |    95.45 |     100 |     100 | 118               
  ...space-auth.ts |   84.74 |    75.29 |     100 |   84.74 | ...35,349,357-361 
  ...el-control.ts |   86.26 |    78.94 |     100 |   86.26 | ...17-318,339-347 
  ...management.ts |   90.35 |    78.94 |     100 |   90.35 | ...52-553,576-577 
  ...d-contacts.ts |   83.62 |    94.59 |     100 |   83.62 | 123,125-142       
  ...controller.ts |   83.31 |    80.47 |      90 |   83.31 | ...1055,1060,1067 
  ...extensions.ts |   89.91 |    79.51 |   93.93 |   89.91 | ...2340,2385-2386 
  ...-file-read.ts |      91 |    80.91 |     100 |      91 | ...20-621,624-625 
  ...file-write.ts |   89.72 |    79.35 |     100 |   89.72 | ...05,719-726,807 
  ...t-branches.ts |   75.04 |     66.4 |     100 |   75.04 | ...99-604,613-620 
  ...e-git-diff.ts |   97.19 |    89.58 |     100 |   97.19 | 157-158,185-187   
  ...ce-git-log.ts |     100 |       95 |     100 |     100 | 48,73             
  workspace-git.ts |   74.71 |     87.5 |     100 |   74.71 | 83-104            
  ...github-prs.ts |   88.26 |    63.46 |     100 |   88.26 | ...38-239,264-265 
  ...-lifecycle.ts |   95.23 |    75.75 |     100 |   95.23 | ...50-151,186-187 
  ...al-control.ts |   73.61 |       70 |     100 |   73.61 | ...28,230-236,241 
  ...management.ts |   87.14 |    84.21 |     100 |   87.14 | ...1802,1812-1817 
  ...cp-control.ts |    73.2 |    67.54 |   85.71 |    73.2 | ...27-633,644-645 
  ...ace-models.ts |   89.84 |    87.35 |     100 |   89.84 | ...27-332,336-338 
  ...ermissions.ts |    77.9 |    72.41 |     100 |    77.9 | ...69-277,298-316 
  ...e-settings.ts |   75.67 |       75 |     100 |   75.67 | ...15-726,732-733 
  ...tup-github.ts |   77.97 |    70.58 |   84.21 |   77.97 | ...46-352,397-398 
  ...ace-skills.ts |   76.41 |    86.11 |     100 |   76.41 | ...29-354,360-394 
  ...ace-status.ts |   82.57 |    74.48 |     100 |   82.57 | ...71-473,477-478 
  ...pace-tools.ts |   75.94 |    69.69 |   66.66 |   75.94 | ...59-164,193-194 
  ...pace-trust.ts |   76.92 |     67.1 |      80 |   76.92 | ...38-343,351-352 
  ...pace-voice.ts |   91.33 |    81.02 |     100 |   91.33 | ...70-673,676-678 
 src/serve/server  |   93.52 |    91.71 |   96.15 |   93.52 |                   
  access-log.ts    |   98.73 |    97.26 |     100 |   98.73 | 119,196           
  ...-timestamp.ts |     100 |      100 |     100 |     100 |                   
  aone-mrs.ts      |   91.48 |    91.35 |   81.25 |   91.48 | ...53,299-300,466 
  ...er-helpers.ts |   63.82 |    78.15 |   81.81 |   63.82 | ...16,330,332-347 
  ...w-registry.ts |    98.8 |    81.81 |     100 |    98.8 | 107               
  ...r-handlers.ts |   97.87 |       80 |     100 |   97.87 | 27                
  ...r-response.ts |   88.93 |    84.37 |     100 |   88.93 | ...74,891,954-963 
  fs-factory.ts    |     100 |    95.52 |     100 |     100 | 77,144,200        
  ...branch-ops.ts |     100 |      100 |     100 |     100 |                   
  ...list-cache.ts |   99.01 |    95.52 |     100 |   99.01 | 184-185           
  ...t-deadline.ts |     100 |      100 |     100 |     100 |                   
  ...iter-setup.ts |      65 |       80 |   33.33 |      65 | 30-35,38-43,47-48 
  ...st-helpers.ts |   95.13 |    95.09 |     100 |   95.13 | ...66-168,423-428 
  self-origin.ts   |     100 |      100 |     100 |     100 |                   
  ...e-features.ts |    95.2 |     87.5 |     100 |    95.2 | 191-197           
  ...on-archive.ts |   92.43 |     90.3 |   97.61 |   92.43 | ...1140,1181-1182 
  ...ion-export.ts |   98.57 |    90.47 |     100 |   98.57 | 85                
  session-list.ts  |   97.27 |    93.88 |     100 |   97.27 | ...1183,1392-1396 
  ...pr-refresh.ts |     100 |    97.05 |     100 |     100 | 199,252,427       
  ...ry-context.ts |    87.5 |       50 |     100 |    87.5 | 49-50             
  telemetry.ts     |   99.06 |    97.27 |     100 |   99.06 | ...04,873,952-954 
 src/serve/voice   |    92.7 |    91.53 |   97.72 |    92.7 |                   
  ...ice-config.ts |   84.81 |       30 |     100 |   84.81 | 91-100,104-105    
  voice-ws.ts      |   91.58 |    93.44 |      96 |   91.58 | ...68,483,521-523 
  ...oordinator.ts |     100 |    98.24 |     100 |     100 | 176               
 ...kspace-service |   89.96 |    87.66 |   91.48 |   89.96 |                   
  index.ts         |   89.62 |    87.32 |   90.24 |   89.62 | ...1411,1424,1438 
  types.ts         |     100 |      100 |     100 |     100 |                   
 src/services      |    92.7 |    89.68 |   98.13 |    92.7 |                   
  ...mandLoader.ts |     100 |       95 |     100 |     100 | 107               
  ...killLoader.ts |   97.19 |    85.71 |     100 |   97.19 | 142,153-154       
  ...andService.ts |   98.73 |      100 |     100 |   98.73 | 107               
  ...mandLoader.ts |   87.09 |    83.07 |     100 |   87.09 | ...35-340,345-350 
  ...omptLoader.ts |   79.55 |    88.42 |   85.71 |   79.55 | ...48,178,245-246 
  ...mandLoader.ts |   97.77 |    92.45 |     100 |   97.77 | 176,183-184       
  ...nd-factory.ts |   91.42 |    91.66 |     100 |   91.42 | 128,137-144       
  ...ation-tool.ts |     100 |    95.45 |     100 |     100 | 125               
  ...ndMetadata.ts |   98.23 |    96.72 |     100 |   98.23 | 83,87             
  commandUtils.ts  |      96 |     90.9 |     100 |      96 | 48                
  ...and-parser.ts |   90.69 |    85.71 |     100 |   90.69 | 63-66             
  ...ionService.ts |     100 |      100 |     100 |     100 |                   
  prompt-stash.ts  |   96.66 |    92.85 |     100 |   96.66 | 34-35             
  ...tree-lease.ts |   92.14 |    92.42 |     100 |   92.14 | ...91-296,329-330 
  ...low-loader.ts |     100 |    96.29 |     100 |     100 | 88                
  setup-github.ts  |    90.8 |    80.95 |     100 |    90.8 | ...49-450,457-458 
  ...-args-file.ts |   93.93 |    91.66 |    87.5 |   93.93 | 208-210,224-230   
  types.ts         |     100 |      100 |     100 |     100 |                   
  ...e-keyterms.ts |   98.64 |    95.77 |     100 |   98.64 | 116,142-143       
  voice-model.ts   |     100 |      100 |     100 |     100 |                   
  voice-service.ts |    90.4 |    87.87 |     100 |    90.4 | ...81,288,353-358 
  ...e-settings.ts |     100 |    95.23 |     100 |     100 | 19                
  ...ranscriber.ts |   91.77 |    87.11 |   97.22 |   91.77 | ...96-898,901-903 
 ...s/housekeeping |   93.06 |    88.57 |      95 |   93.06 |                   
  scheduler.ts     |   93.06 |    88.57 |      95 |   93.06 | ...62-364,416-420 
 ...rvices/insight |     100 |      100 |     100 |     100 |                   
  dates.ts         |     100 |      100 |     100 |     100 |                   
 ...ght/generators |   88.94 |    86.86 |   96.29 |   88.94 |                   
  DataProcessor.ts |   88.31 |    86.84 |      95 |   88.31 | ...1368,1372-1379 
  ...tGenerator.ts |   98.24 |    85.71 |     100 |   98.24 | 47                
  ...teRenderer.ts |     100 |      100 |     100 |     100 |                   
 .../insight/types |       0 |       50 |      50 |       0 |                   
  ...sightTypes.ts |       0 |        0 |       0 |       0 |                   
  ...sightTypes.ts |       0 |        0 |       0 |       0 | 1                 
 ...mpt-processors |   97.27 |    94.25 |     100 |   97.27 |                   
  ...tProcessor.ts |     100 |      100 |     100 |     100 |                   
  ...eProcessor.ts |   94.52 |       85 |     100 |   94.52 | 46-47,93-94       
  ...tionParser.ts |     100 |      100 |     100 |     100 |                   
  ...lProcessor.ts |   97.41 |    95.83 |     100 |   97.41 | 96-99             
  types.ts         |     100 |      100 |     100 |     100 |                   
 src/services/tips |   97.27 |    84.61 |     100 |   97.27 |                   
  index.ts         |     100 |      100 |     100 |     100 |                   
  tipHistory.ts    |   92.59 |       70 |     100 |   92.59 | ...24,146,153,162 
  tipRegistry.ts   |     100 |      100 |     100 |     100 |                   
  tipScheduler.ts  |     100 |    91.66 |     100 |     100 | 55                
 src/startup       |   88.99 |    83.47 |    90.9 |   88.99 |                   
  ...p-prefetch.ts |   98.09 |    94.23 |    87.5 |   98.09 | 50,209,225-226    
  ...reeStartup.ts |   80.53 |     74.6 |     100 |   80.53 | ...94,403,409-412 
 src/test-utils    |    94.6 |    76.66 |      80 |    94.6 |                   
  ci-env.ts        |      88 |     62.5 |     100 |      88 | 22-23,28          
  ...omMatchers.ts |   69.69 |       50 |      50 |   69.69 | 32-35,37-39,45-47 
  ...mised-lock.ts |     100 |      100 |   66.66 |     100 |                   
  ...lot-client.ts |     100 |    66.66 |     100 |     100 | 31,39             
  ...andContext.ts |     100 |      100 |     100 |     100 |                   
  render.tsx       |     100 |      100 |     100 |     100 |                   
 src/ui            |   71.65 |    78.58 |   72.18 |   71.65 |                   
  App.tsx          |   33.33 |       75 |   33.33 |   33.33 | 32-86             
  AppContainer.tsx |    77.5 |    74.24 |   76.31 |    77.5 | ...4520,4636-4642 
  ...tionNudge.tsx |    9.58 |      100 |       0 |    9.58 | 24-94             
  ...ackDialog.tsx |    30.3 |      100 |       0 |    30.3 | 26-76             
  ...tionNudge.tsx |    7.69 |      100 |       0 |    7.69 | 25-103            
  colors.ts        |   63.63 |      100 |   41.17 |   63.63 | ...52,54-55,60-61 
  constants.ts     |     100 |      100 |     100 |     100 |                   
  ...AutoUpdate.ts |   93.54 |    94.64 |      90 |   93.54 | 126,131,202-213   
  keyMatchers.ts   |   95.91 |    97.14 |     100 |   95.91 | 25-26             
  ...tic-colors.ts |     100 |      100 |     100 |     100 |                   
  ...one-update.ts |   39.81 |    77.44 |   62.16 |   39.81 | ...1193,1196-1215 
  ...ractiveUI.tsx |   68.53 |    78.26 |      50 |   68.53 | ...65-467,497-502 
  ...inePresets.ts |   96.27 |    83.87 |     100 |   96.27 | ...97,402,410-412 
  systemInfo.ts    |   95.09 |    90.27 |     100 |   95.09 | ...54-255,260-264 
  ...InfoFields.ts |    87.5 |    65.85 |     100 |    87.5 | ...24-125,146-147 
  textConstants.ts |     100 |      100 |     100 |     100 |                   
  types.ts         |     100 |      100 |     100 |     100 |                   
  ...e-relaunch.ts |   89.61 |    86.66 |      50 |   89.61 | 56-61,83-84       
 src/ui/auth       |   69.23 |    72.03 |   61.22 |   69.23 |                   
  AuthDialog.tsx   |   59.01 |     42.1 |   16.66 |   59.01 | ...25,332-354,358 
  ...nProgress.tsx |       0 |        0 |       0 |       0 | 1-64              
  ...etupSteps.tsx |   74.93 |    78.62 |   71.42 |   74.93 | ...92-902,918,921 
  useAuth.ts       |   94.83 |       75 |     100 |   94.83 | ...33-234,253-259 
  ...rSetupFlow.ts |   59.79 |    58.33 |     100 |   59.79 | ...82-403,420-463 
 src/ui/commands   |    84.7 |    84.48 |   91.66 |    84.7 |                   
  aboutCommand.ts  |     100 |      100 |     100 |     100 |                   
  ...or-command.ts |     100 |    95.65 |     100 |     100 | 104,182           
  agentsCommand.ts |   83.78 |      100 |      60 |   83.78 | 30-32,42-44       
  ...odeCommand.ts |    93.1 |    95.23 |     100 |    93.1 | 77-82             
  arenaCommand.ts  |   63.89 |    65.71 |   65.21 |   63.89 | ...01-606,691-699 
  authCommand.ts   |     100 |      100 |     100 |     100 |                   
  branchCommand.ts |     100 |      100 |     100 |     100 |                   
  btwCommand.ts    |   94.32 |    77.41 |     100 |   94.32 | 35-36,114-119     
  bugCommand.ts    |     100 |    77.77 |     100 |     100 | 28,62             
  cdCommand.ts     |    92.3 |    82.75 |     100 |    92.3 | ...,94-99,178,187 
  clearCommand.ts  |    80.9 |    70.83 |     100 |    80.9 | ...28-129,137-146 
  commands.ts      |   97.45 |    96.66 |     100 |   97.45 | 153-155           
  ...essCommand.ts |   86.91 |    66.66 |     100 |   86.91 | ...22-223,237-240 
  ...astCommand.ts |   84.75 |    76.47 |     100 |   84.75 | ...96-102,130-135 
  ...ig-command.ts |   93.12 |    88.42 |     100 |   93.12 | ...07-315,321-323 
  ...extCommand.ts |   73.75 |    74.02 |   83.33 |   73.75 | ...72-605,616-617 
  copyCommand.ts   |    98.7 |    96.29 |     100 |    98.7 | 66-67,172,272,323 
  ...or-command.ts |   85.95 |    80.55 |   88.88 |   85.95 | ...68-274,298-309 
  deleteCommand.ts |     100 |      100 |     100 |     100 |                   
  diffCommand.ts   |     100 |    87.87 |     100 |     100 | ...63,231-232,245 
  ...ryCommand.tsx |   90.56 |    87.83 |    90.9 |   90.56 | ...75-280,327-334 
  docsCommand.ts   |     100 |     90.9 |     100 |     100 | 26                
  doctorChecks.ts  |   70.31 |    74.57 |     100 |   70.31 | ...95-301,325-341 
  doctorCommand.ts |   70.16 |    84.61 |      95 |   70.16 | ...29-679,682-816 
  dreamCommand.ts  |   85.45 |    88.88 |     100 |   85.45 | 58-65             
  editorCommand.ts |     100 |      100 |     100 |     100 |                   
  ...rt-command.ts |   80.95 |       80 |     100 |   80.95 | 49-54,69-72,93-98 
  effort-utils.ts  |     100 |      100 |     100 |     100 |                   
  exportCommand.ts |   98.25 |    91.02 |     100 |   98.25 | ...81,198-199,364 
  ...onsCommand.ts |   52.31 |    56.25 |   69.23 |   52.31 | ...09,277-329,390 
  forgetCommand.ts |     100 |       90 |     100 |     100 | 59                
  forkCommand.ts   |     100 |    94.11 |     100 |     100 | 95,146            
  goalCommand.ts   |     100 |    96.49 |     100 |     100 | 139,192           
  helpCommand.ts   |     100 |      100 |     100 |     100 |                   
  ...oryCommand.ts |     100 |      100 |     100 |     100 |                   
  hooksCommand.ts  |   81.25 |    65.71 |   85.71 |   81.25 | ...,86-93,131-132 
  ideCommand.ts    |   60.75 |    64.28 |   41.17 |   60.75 | ...05-306,310-324 
  ...figCommand.ts |    58.5 |    74.07 |      80 |    58.5 | ...21-331,334-343 
  initCommand.ts   |   91.86 |       80 |     100 |   91.86 | 48,83-88          
  ...ghtCommand.ts |   77.87 |    71.42 |     100 |   77.87 | ...44-245,250-272 
  ...ageCommand.ts |   94.63 |    90.66 |     100 |   94.63 | ...25-226,253-263 
  learn-command.ts |     100 |      100 |     100 |     100 |                   
  lspCommand.ts    |     100 |    86.95 |     100 |     100 | 31,102-103        
  mcpCommand.ts    |     100 |      100 |     100 |     100 |                   
  memoryCommand.ts |     100 |      100 |     100 |     100 |                   
  modelCommand.ts  |   86.28 |    86.29 |     100 |   86.28 | ...1112,1146-1151 
  peers-command.ts |     100 |    94.36 |     100 |     100 | 59,70,223,228     
  ...onsCommand.ts |     100 |      100 |     100 |     100 |                   
  planCommand.ts   |   78.82 |    76.92 |     100 |   78.82 | 30-35,51-56,68-73 
  quitCommand.ts   |     100 |      100 |     100 |     100 |                   
  recapCommand.ts  |   21.81 |      100 |      50 |   21.81 | 24-73             
  ...ns-command.ts |   98.83 |    81.81 |     100 |   98.83 | 100               
  ...berCommand.ts |     100 |     87.5 |     100 |     100 | 46                
  renameCommand.ts |    89.6 |       90 |     100 |    89.6 | ...72-176,212-219 
  ...oreCommand.ts |   90.96 |    86.04 |     100 |   90.96 | ...41-146,177-178 
  resumeCommand.ts |     100 |      100 |     100 |     100 |                   
  rewindCommand.ts |   81.25 |      100 |      50 |   81.25 | 20-22             
  ...ngsCommand.ts |     100 |      100 |     100 |     100 |                   
  ...hubCommand.ts |   89.47 |       75 |      80 |   89.47 | 54-59             
  skillsCommand.ts |   78.82 |    81.81 |     100 |   78.82 | 37-52,78,97       
  statsCommand.ts  |   90.65 |    76.73 |     100 |   90.65 | ...30-733,825-832 
  ...ineCommand.ts |     100 |      100 |     100 |     100 |                   
  ...aryCommand.ts |   73.04 |     82.3 |      90 |   73.04 | ...20-547,561-565 
  tasksCommand.ts  |   77.33 |    72.13 |     100 |   77.33 | ...46-150,173-178 
  ...tupCommand.ts |     100 |      100 |     100 |     100 |                   
  themeCommand.ts  |     100 |      100 |     100 |     100 |                   
  toolsCommand.ts  |     100 |      100 |     100 |     100 |                   
  trustCommand.ts  |     100 |      100 |     100 |     100 |                   
  types.ts         |     100 |      100 |     100 |     100 |                   
  ...te-command.ts |     100 |    94.11 |     100 |     100 | 74,148            
  vimCommand.ts    |     100 |      100 |     100 |     100 |                   
  voice-command.ts |   93.63 |       88 |     100 |   93.63 | 36,98-103         
  ...owsCommand.ts |   94.38 |    85.29 |     100 |   94.38 | ...78-183,282-287 
 src/ui/components |   74.07 |    80.32 |   78.81 |   74.07 |                   
  AboutBox.tsx     |     100 |      100 |     100 |     100 |                   
  AnsiOutput.tsx   |   65.57 |      100 |      50 |   65.57 | 69-90             
  ApiKeyInput.tsx  |       0 |        0 |       0 |       0 | 1-97              
  AppHeader.tsx    |    88.7 |       75 |     100 |    88.7 | 36,38-43,45       
  ...odeDialog.tsx |   87.24 |    72.22 |   33.33 |   87.24 | ...85,233-238,245 
  AsciiArt.ts      |     100 |      100 |     100 |     100 |                   
  ...Indicator.tsx |   95.65 |    66.66 |     100 |   95.65 | 27,52             
  ...TextInput.tsx |   89.06 |    90.78 |     100 |   89.06 | ...87-289,303-305 
  ...ontroller.tsx |     100 |      100 |     100 |     100 |                   
  Composer.tsx     |   94.54 |    66.66 |     100 |   94.54 | ...-76,88,143,158 
  ...entPrompt.tsx |     100 |      100 |     100 |     100 |                   
  ...ryDisplay.tsx |   75.89 |    62.06 |     100 |   75.89 | ...,88,93-108,113 
  ...geDisplay.tsx |   68.42 |    57.14 |     100 |   68.42 | 16-17,31-32,42-50 
  CronPill.tsx     |     100 |    93.75 |     100 |     100 | 19                
  ...ification.tsx |      84 |       60 |     100 |      84 | 23-24,40-42       
  ...gProfiler.tsx |       0 |        0 |       0 |       0 | 1-36              
  ...ogManager.tsx |   11.28 |      100 |       0 |   11.28 | 71-598            
  DiffDialog.tsx   |    53.5 |     37.5 |   69.23 |    53.5 | ...32-737,747-760 
  ...ngsDialog.tsx |    8.44 |      100 |       0 |    8.44 | 37-195            
  EffortDialog.tsx |   97.36 |      100 |     100 |   97.36 | 55-56             
  ExitWarning.tsx  |     100 |      100 |     100 |     100 |                   
  ...hProgress.tsx |    87.8 |    33.33 |     100 |    87.8 | 28-31,56          
  ...gsDisplay.tsx |     100 |    96.87 |   83.33 |     100 | 69                
  ...ustDialog.tsx |     100 |      100 |     100 |     100 |                   
  Footer.tsx       |   81.27 |    69.23 |      50 |   81.27 | ...06,245,267-272 
  GoalPill.tsx     |   93.51 |    81.81 |     100 |   93.51 | 37-38,106-109,123 
  Header.tsx       |   98.65 |    94.73 |     100 |   98.65 | 173,175           
  Help.tsx         |   98.33 |       90 |     100 |   98.33 | ...25,382,448-449 
  ...emDisplay.tsx |   79.69 |    67.61 |     100 |   79.69 | ...17,520,523-529 
  ...ngeDialog.tsx |     100 |      100 |     100 |     100 |                   
  InputPrompt.tsx  |   86.36 |    83.41 |      80 |   86.36 | ...2242,2263,2366 
  ...Shortcuts.tsx |     100 |       88 |     100 |     100 | 98,119            
  ...Indicator.tsx |   98.18 |    97.82 |     100 |   98.18 | 161-162           
  ...firmation.tsx |   91.42 |      100 |      50 |   91.42 | 26-31             
  MainContent.tsx  |   95.88 |    96.03 |   46.15 |   95.88 | ...20,523-527,530 
  MemoryDialog.tsx |   86.59 |    80.15 |     100 |   86.59 | ...34-435,485,553 
  ModelDialog.tsx  |   85.22 |    74.17 |     100 |   85.22 | ...1042,1098,1100 
  ...tsDisplay.tsx |     100 |    97.22 |     100 |     100 | 270               
  ...fications.tsx |   16.66 |      100 |       0 |   16.66 | 14-56             
  ...onsDialog.tsx |    2.13 |      100 |       0 |    2.13 | 62-133,148-1004   
  ...ryDisplay.tsx |     100 |      100 |     100 |     100 |                   
  ...icePrompt.tsx |   92.64 |    85.71 |     100 |   92.64 | 102-106,134-139   
  PrepareLabel.tsx |   91.66 |    77.27 |     100 |   91.66 | 73-75,77-79,110   
  ...atePrompt.tsx |   91.34 |       70 |     100 |   91.34 | 48-51,63-66,78    
  ...geDisplay.tsx |     100 |      100 |     100 |     100 |                   
  ...ngDisplay.tsx |   21.42 |      100 |       0 |   21.42 | 13-39             
  ...hProgress.tsx |   85.25 |    88.46 |     100 |   85.25 | 121-147           
  ...ngSpinner.tsx |   67.85 |    85.71 |      50 |   67.85 | 33-50,71,78-79    
  ...dSelector.tsx |   92.79 |    82.65 |     100 |   92.79 | ...19-323,354-370 
  ...ionPicker.tsx |   83.66 |    72.13 |     100 |   83.66 | ...96,402,444-466 
  ...onPreview.tsx |   93.58 |    83.78 |     100 |   93.58 | ...,70-71,195-197 
  ...ryDisplay.tsx |     100 |      100 |     100 |     100 |                   
  ...putPrompt.tsx |   92.06 |    86.36 |   83.33 |   92.06 | ...,70-72,120-123 
  ...tedDialog.tsx |     100 |      100 |     100 |     100 |                   
  ...ngsDialog.tsx |   71.55 |    73.89 |   69.23 |   71.55 | ...1252,1258-1259 
  ...ionDialog.tsx |    92.3 |    96.15 |   33.33 |    92.3 | 60-63,68-75,164   
  ...putPrompt.tsx |    15.9 |      100 |       0 |    15.9 | 20-63             
  ...Indicator.tsx |   57.14 |      100 |       0 |   57.14 | 12-15             
  ...MoreLines.tsx |      28 |      100 |       0 |      28 | 18-40             
  ...iewDialog.tsx |   97.77 |    87.67 |     100 |   97.77 | ...97,305-307,324 
  ...tsDisplay.tsx |   95.86 |       75 |     100 |   95.86 | 67-71             
  ...ionPicker.tsx |       0 |        0 |       0 |       0 | 1-171             
  ...tivityTab.tsx |    3.94 |      100 |       0 |    3.94 | 27-275            
  StatsDialog.tsx  |    8.64 |      100 |       0 |    8.64 | ...76-111,130-322 
  StatsDisplay.tsx |     100 |      100 |     100 |     100 |                   
  ...ciencyTab.tsx |    78.9 |    56.52 |     100 |    78.9 | ...26,213,262-288 
  ...atmapView.tsx |    8.98 |      100 |       0 |    8.98 | 20-107            
  ...essionTab.tsx |      80 |    66.66 |     100 |      80 | ...70-277,283-300 
  ...ineDialog.tsx |    93.9 |    86.88 |     100 |    93.9 | ...20,282,302-304 
  ...yTodoList.tsx |   96.36 |    88.23 |     100 |   96.36 | 138-141           
  ...nsDisplay.tsx |   96.01 |    88.05 |     100 |   96.01 | ...29-130,295-297 
  ...inalImage.tsx |     100 |    93.93 |     100 |     100 | 75,129            
  ThemeDialog.tsx  |   89.95 |    46.15 |      75 |   89.95 | ...71-173,243-245 
  Tips.tsx         |   93.54 |       75 |     100 |   93.54 | 39-40             
  TodoDisplay.tsx  |     100 |      100 |     100 |     100 |                   
  ...tsDisplay.tsx |     100 |     87.5 |     100 |     100 | 31-32             
  TrustDialog.tsx  |     100 |    83.33 |     100 |     100 | 72-87             
  ...ification.tsx |   36.36 |      100 |       0 |   36.36 | 15-22             
  ...Indicator.tsx |    92.5 |     87.5 |     100 |    92.5 | 50-53             
  ...ackDialog.tsx |    7.84 |      100 |       0 |    7.84 | 24-134            
  ...xitDialog.tsx |   80.36 |    43.47 |      60 |   80.36 | ...24-238,248-251 
  ...odeVisuals.ts |   97.22 |    85.71 |     100 |   97.22 | 25                
  ...s-helpers.tsx |   66.25 |    81.25 |      50 |   66.25 | 25-32,46-53,62-72 
 ...nts/agent-view |    61.5 |    75.57 |    62.5 |    61.5 |                   
  ...atContent.tsx |    9.09 |      100 |       0 |    9.09 | 54-275,281-283    
  ...tChatView.tsx |     100 |    81.81 |     100 |     100 | 82                
  ...tComposer.tsx |   78.35 |     64.7 |   66.66 |   78.35 | ...64,277,303-305 
  AgentFooter.tsx  |   15.38 |      100 |       0 |   15.38 | 28-65             
  AgentHeader.tsx  |   15.38 |      100 |       0 |   15.38 | 27-64             
  AgentTabBar.tsx  |    87.9 |    63.88 |     100 |    87.9 | ...88,110-118,136 
  ...oryAdapter.ts |     100 |    91.83 |     100 |     100 | 103,109-110,138   
  index.ts         |       0 |        0 |       0 |       0 | 1-12              
 ...mponents/arena |   45.51 |    70.53 |   60.86 |   45.51 |                   
  ArenaCards.tsx   |   73.06 |    71.79 |   85.71 |   73.06 | ...83-185,321-326 
  ...ectDialog.tsx |   83.48 |    69.86 |   88.88 |   83.48 | ...88-392,409-410 
  ...artDialog.tsx |    9.77 |      100 |       0 |    9.77 | 27-166            
  ...tusDialog.tsx |    5.63 |      100 |       0 |    5.63 | 33-75,80-288      
  ...topDialog.tsx |    6.17 |      100 |       0 |    6.17 | 33-213            
 ...ackground-view |   85.86 |     85.1 |   92.98 |   85.86 |                   
  ...sksDialog.tsx |   82.66 |    83.09 |   85.71 |   82.66 | ...1854,1977-1983 
  ...TasksPill.tsx |   78.84 |    94.28 |     100 |   78.84 | 64,109-129        
  ...gentPanel.tsx |   97.08 |    86.31 |     100 |   97.08 | 132,442-446,520   
  agent-forest.ts  |    99.2 |    93.93 |     100 |    99.2 | 258               
  ...Visibility.ts |     100 |      100 |     100 |     100 |                   
  ...e-overlay.tsx |    88.2 |    76.47 |     100 |    88.2 | ...36-138,140-142 
 ...nts/extensions |   84.32 |    76.78 |   83.33 |   84.32 |                   
  ...gerDialog.tsx |   82.15 |    76.08 |     100 |   82.15 | ...91-198,258,260 
  TabBar.tsx       |   97.29 |    88.88 |     100 |   97.29 | 33                
  index.ts         |       0 |        0 |       0 |       0 | 1-12              
  types.ts         |     100 |      100 |     100 |     100 |                   
 ...tensions/steps |   46.26 |       85 |   58.82 |   46.26 |                   
  ...ctionStep.tsx |   95.12 |    92.85 |   85.71 |   95.12 | 84-86,89          
  ...etailStep.tsx |       0 |        0 |       0 |       0 | 1-145             
  ...nListStep.tsx |   75.26 |    88.37 |   66.66 |   75.26 | ...53,174,203-209 
  ...electStep.tsx |       0 |        0 |       0 |       0 | 1-83              
  ...nfirmStep.tsx |   16.32 |      100 |       0 |   16.32 | 28-74             
  index.ts         |       0 |        0 |       0 |       0 | 1-11              
 ...xtensions/tabs |   71.92 |    68.21 |   70.83 |   71.92 |                   
  DiscoverTab.tsx  |   68.22 |    67.66 |   55.55 |   68.22 | ...93,656-660,664 
  InstalledTab.tsx |   75.49 |    67.44 |   83.33 |   75.49 | ...77,782-783,820 
  SourcesTab.tsx   |   71.67 |    70.47 |   77.77 |   71.67 | ...28,547,621-633 
 ...tensions/views |    50.7 |    52.38 |   20.83 |    50.7 |                   
  ...tionsView.tsx |   73.75 |    56.36 |   66.66 |   73.75 | ...30,353,369-374 
  ...tionsView.tsx |   43.45 |    44.82 |    6.66 |   43.45 | ...98-405,408-420 
  ...etailView.tsx |    9.24 |      100 |       0 |    9.24 | 40-67,70-163      
 ...mponents/hooks |   87.11 |    81.37 |   91.89 |   87.11 |                   
  ...rListBody.tsx |   95.29 |    85.18 |     100 |   95.29 | 95-98             
  ...etailStep.tsx |   75.32 |    71.42 |      60 |   75.32 | ...56-169,173-186 
  ...etailStep.tsx |     100 |      100 |     100 |     100 |                   
  ...rListStep.tsx |     100 |      100 |     100 |     100 |                   
  ...entHeader.tsx |     100 |    85.71 |     100 |     100 | 47                
  ...rListStep.tsx |     100 |      100 |     100 |     100 |                   
  ...etailStep.tsx |     100 |      100 |     100 |     100 |                   
  ...abledStep.tsx |     100 |      100 |     100 |     100 |                   
  ...sListStep.tsx |     100 |      100 |     100 |     100 |                   
  ...entDialog.tsx |   72.29 |    70.49 |     100 |   72.29 | ...51,563-568,572 
  constants.ts     |     100 |      100 |     100 |     100 |                   
  index.ts         |       0 |        0 |       0 |       0 | 1-13              
  ...erGrouping.ts |     100 |      100 |     100 |     100 |                   
  sourceLabels.ts  |     100 |      100 |     100 |     100 |                   
  types.ts         |     100 |      100 |     100 |     100 |                   
 ...components/mcp |   40.91 |    63.44 |   70.58 |   40.91 |                   
  ...ealthPill.tsx |     100 |      100 |     100 |     100 |                   
  ...entDialog.tsx |   32.09 |    26.19 |      40 |   32.09 | ...12,914,927-933 
  ...valDialog.tsx |   15.06 |      100 |       0 |   15.06 | 40-109            
  constants.ts     |     100 |      100 |     100 |     100 |                   
  index.ts         |       0 |        0 |       0 |       0 | 1-35              
  types.ts         |     100 |      100 |     100 |     100 |                   
  utils.ts         |      97 |       95 |     100 |      97 | 24,113-114        
 ...ents/mcp/steps |   53.94 |    73.51 |   57.14 |   53.94 |                   
  ...icateStep.tsx |    5.65 |      100 |       0 |    5.65 | 40-66,69-308      
  ...electStep.tsx |   10.95 |      100 |       0 |   10.95 | 16-88             
  ...etailStep.tsx |     100 |      100 |     100 |     100 |                   
  ...eListStep.tsx |   99.09 |    97.36 |     100 |   99.09 | 71                
  ...etailStep.tsx |   62.83 |       60 |   33.33 |   62.83 | ...87-296,307-332 
  ...rListStep.tsx |   88.53 |    81.25 |     100 |   88.53 | ...64,170,175-180 
  ...etailStep.tsx |    10.3 |      100 |       0 |    10.3 | ...1,67-79,82-140 
  ToolListStep.tsx |   69.29 |       50 |     100 |   69.29 | ...23,126,135-144 
 ...nents/messages |   90.71 |    87.78 |   86.53 |   90.71 |                   
  ...orMessage.tsx |     100 |      100 |     100 |     100 |                   
  ...ionDialog.tsx |   89.23 |     84.9 |   81.81 |   89.23 | ...75,593,611-613 
  BtwMessage.tsx   |     100 |      100 |     100 |     100 |                   
  ...upDisplay.tsx |     100 |    94.73 |     100 |     100 | ...43,289,402,432 
  ...onMessage.tsx |     100 |      100 |     100 |     100 |                   
  ...nMessages.tsx |   92.35 |    96.07 |   76.92 |   92.35 | ...59-361,364-367 
  DiffRenderer.tsx |   93.17 |    86.02 |     100 |   93.17 | ...07,235-236,302 
  ...tsDisplay.tsx |   97.08 |    77.77 |     100 |   97.08 | 95,97,106         
  ...usMessage.tsx |   81.73 |     65.9 |      75 |   81.73 | ...10-214,222,245 
  ...tsDisplay.tsx |   95.52 |    88.31 |     100 |   95.52 | ...40,142,175-180 
  ...ssMessage.tsx |    12.5 |      100 |       0 |    12.5 | 18-59             
  ...edMessage.tsx |   21.05 |      100 |       0 |   21.05 | 23-39             
  ...sMessages.tsx |   59.04 |       50 |    37.5 |   59.04 | ...21-126,147-159 
  ...ryMessage.tsx |   13.63 |      100 |       0 |   13.63 | 23-64             
  ...onMessage.tsx |   91.87 |    82.51 |     100 |   91.87 | ...49-651,658-660 
  ...upMessage.tsx |   98.38 |    95.38 |     100 |   98.38 | 188-191,422       
  ToolMessage.tsx  |   95.04 |    89.55 |     100 |   95.04 | ...1075,1120-1122 
 ...ponents/shared |   86.34 |    82.18 |    86.6 |   86.34 |                   
  ...ctionList.tsx |     100 |      100 |      75 |     100 |                   
  ...tonSelect.tsx |     100 |      100 |     100 |     100 |                   
  ...rBoundary.tsx |     100 |      100 |     100 |     100 |                   
  MaxSizedBox.tsx  |   84.71 |    86.95 |      90 |   84.71 | ...67-568,685-686 
  MultiSelect.tsx  |   93.58 |       75 |     100 |   93.58 | ...43,199-201,211 
  ...tonSelect.tsx |     100 |      100 |     100 |     100 |                   
  ...ontroller.tsx |     100 |      100 |     100 |     100 |                   
  ...eSelector.tsx |     100 |       60 |     100 |     100 | 40-45             
  ...lableList.tsx |   90.37 |    82.85 |   18.18 |   90.37 | ...60-63,65,73-76 
  StaticRender.tsx |     100 |      100 |     100 |     100 |                   
  TextInput.tsx    |    80.8 |    67.79 |      80 |    80.8 | ...36-240,252-258 
  ...ontroller.tsx |     100 |    81.81 |     100 |     100 | 59-62             
  ...apsedTime.tsx |     100 |      100 |     100 |     100 |                   
  ...Indicator.tsx |     100 |      100 |     100 |     100 |                   
  ...lizedList.tsx |   91.49 |    86.66 |   83.33 |   91.49 | ...18-846,859,959 
  text-buffer.ts   |   85.98 |    81.78 |   97.91 |   85.98 | ...2664,2762-2763 
  ...er-actions.ts |   73.93 |    67.22 |     100 |   73.93 | ...32-733,934-936 
 ...ponents/skills |    3.99 |      100 |       0 |    3.99 |                   
  ...gerDialog.tsx |    3.99 |      100 |       0 |    3.99 | 79-137,140-678    
 ...ents/subagents |   30.87 |        0 |       0 |   30.87 |                   
  constants.ts     |     100 |      100 |     100 |     100 |                   
  index.ts         |       0 |        0 |       0 |       0 | 1-11              
  reducers.tsx     |    12.1 |      100 |       0 |    12.1 | 33-190            
  types.ts         |     100 |      100 |     100 |     100 |                   
  utils.ts         |   10.95 |      100 |       0 |   10.95 | ...1,56-57,60-102 
 ...bagents/create |    9.13 |      100 |       0 |    9.13 |                   
  ...ionWizard.tsx |    7.28 |      100 |       0 |    7.28 | 34-299            
  ...rSelector.tsx |   14.75 |      100 |       0 |   14.75 | 26-85             
  ...onSummary.tsx |    4.26 |      100 |       0 |    4.26 | 27-331            
  ...tionInput.tsx |    8.63 |      100 |       0 |    8.63 | 23-177            
  ...dSelector.tsx |   33.33 |      100 |       0 |   33.33 | 20-21,26-27,36-63 
  ...nSelector.tsx |    37.5 |      100 |       0 |    37.5 | 20-21,26-27,36-58 
  ...EntryStep.tsx |   12.76 |      100 |       0 |   12.76 | 34-78             
  ToolSelector.tsx |    4.16 |      100 |       0 |    4.16 | 31-253            
 ...bagents/manage |    21.6 |    59.52 |   27.27 |    21.6 |                   
  ...ctionStep.tsx |   10.25 |      100 |       0 |   10.25 | 21-103            
  ...eleteStep.tsx |   20.93 |      100 |       0 |   20.93 | 23-62             
  ...tEditStep.tsx |   25.53 |      100 |       0 |   25.53 | ...2,37-38,51-124 
  ...ctionStep.tsx |   35.61 |    59.52 |     100 |   35.61 | ...21-433,438-440 
  ...iewerStep.tsx |   13.72 |      100 |       0 |   13.72 | 18-73             
  ...gerDialog.tsx |    6.74 |      100 |       0 |    6.74 | 35-341            
 ...mponents/views |   69.22 |    71.81 |   61.11 |   69.22 |                   
  ContextUsage.tsx |   71.49 |    64.86 |      80 |   71.49 | ...30-436,473-567 
  DoctorReport.tsx |     9.8 |      100 |       0 |     9.8 | 25-54,57-131      
  ...sionsList.tsx |   88.05 |       75 |     100 |   88.05 | 70-77             
  McpStatus.tsx    |   92.01 |     73.8 |     100 |   92.01 | ...36,175-177,262 
  SkillsList.tsx   |   20.51 |      100 |       0 |   20.51 | 17-20,27-57       
  ToolsList.tsx    |      75 |    81.81 |     100 |      75 | 39-42,59-67       
 src/ui/contexts   |   86.47 |    82.34 |   86.48 |   86.47 |                   
  ...ewContext.tsx |   91.66 |       90 |      75 |   91.66 | ...89-193,279-289 
  AppContext.tsx   |      80 |       50 |     100 |      80 | 19-20             
  ...ewContext.tsx |   93.83 |    68.51 |   42.85 |   93.83 | ...44,281-285,317 
  ...igContext.tsx |   81.81 |       50 |     100 |   81.81 | 15-16             
  ...ssContext.tsx |   85.65 |    84.85 |     100 |   85.65 | ...1612-1614,1620 
  ...owContext.tsx |   91.07 |    81.81 |     100 |   91.07 | 47-48,60-62       
  ...deContext.tsx |     100 |      100 |      50 |     100 |                   
  ...onContext.tsx |   80.77 |       80 |    92.3 |   80.77 | ...31-434,443-446 
  ...gsContext.tsx |     100 |      100 |     100 |     100 |                   
  ...usContext.tsx |     100 |      100 |     100 |     100 |                   
  ...ngContext.tsx |   71.42 |       50 |     100 |   71.42 | 17-20             
  ...utContext.tsx |   85.71 |      100 |   66.66 |   85.71 | 13-14             
  ...edContext.tsx |     100 |      100 |      50 |     100 |                   
  ...nsContext.tsx |   88.88 |       50 |     100 |   88.88 | 156-157           
  ...teContext.tsx |   86.66 |       50 |     100 |   86.66 | 237-238           
  ...deContext.tsx |      80 |     87.5 |      75 |      80 | ...11-112,118-120 
  ...rtContext.tsx |     100 |      100 |     100 |     100 |                   
 src/ui/daemon     |   89.51 |    76.92 |   95.65 |   89.51 |                   
  ...ui-adapter.ts |   89.51 |    76.92 |   95.65 |   89.51 | ...59,877-878,964 
 src/ui/editors    |   93.33 |    85.71 |   66.66 |   93.33 |                   
  ...ngsManager.ts |   93.33 |    85.71 |   66.66 |   93.33 | 49,63-64          
 src/ui/hooks      |   86.49 |    84.45 |   88.88 |   86.49 |                   
  ...dProcessor.ts |   85.53 |    85.13 |     100 |   85.53 | ...-970,1017-1018 
  ...ention-ref.ts |   97.72 |       84 |     100 |   97.72 | 65                
  keyToAnsi.ts     |    3.92 |      100 |       0 |    3.92 | 19-77             
  ...esourceRef.ts |     100 |      100 |     100 |     100 |                   
  ...completion.ts |     100 |    95.45 |     100 |     100 | 95                
  ...ention-ref.ts |     100 |      100 |     100 |     100 |                   
  ...dProcessor.ts |   94.51 |    73.58 |     100 |   94.51 | ...97-298,303-304 
  ...dProcessor.ts |   86.83 |    71.86 |   83.33 |   86.83 | ...1536,1565-1569 
  ...rt-command.ts |     100 |      100 |     100 |     100 |                   
  ...sced-flush.ts |     100 |      100 |     100 |     100 |                   
  ...llm-stream.ts |   88.85 |    85.07 |   85.18 |   88.85 | ...6260,6262,6367 
  ...ng-enabled.ts |     100 |      100 |     100 |     100 |                   
  ...oice-input.ts |   92.41 |    82.08 |   66.66 |   92.41 | ...12,514-515,670 
  ...ke-repaint.ts |     100 |      100 |     100 |     100 |                   
  ...amingState.ts |   12.22 |      100 |       0 |   12.22 | 54-157            
  ...agerDialog.ts |   88.23 |      100 |     100 |   88.23 | 20,24             
  ...dScrollbar.ts |     100 |      100 |     100 |     100 |                   
  ...ationFrame.ts |      42 |       75 |     100 |      42 | 42-44,53-59,62-87 
  ...odeCommand.ts |   58.82 |      100 |     100 |   58.82 | 28,33-48          
  ...enaCommand.ts |      85 |      100 |     100 |      85 | 23-24,29          
  ...aInProcess.ts |   27.92 |       80 |      25 |   27.92 | ...69-170,173-175 
  ...Completion.ts |   86.44 |    88.48 |     100 |   86.44 | ...14-515,525-541 
  ...ifications.ts |   87.82 |    96.77 |     100 |   87.82 | 138-152           
  ...tIndicator.ts |   88.28 |    81.57 |     100 |   88.28 | ...66,175,179-187 
  ...waySummary.ts |   96.26 |       75 |     100 |   96.26 | 126-128,170       
  ...ndTaskView.ts |   94.89 |    77.55 |     100 |   94.89 | 164-168,257,263   
  ...chedScroll.ts |     100 |      100 |     100 |     100 |                   
  ...ketedPaste.ts |    23.8 |      100 |       0 |    23.8 | 19-37             
  ...nchCommand.ts |   96.03 |    88.75 |     100 |   96.03 | ...04-205,362-365 
  ...ompletion.tsx |    97.1 |    87.23 |     100 |    97.1 | ...26-327,337-338 
  ...dMigration.ts |    92.1 |    88.88 |     100 |    92.1 | 42-44             
  useCompletion.ts |   96.64 |    91.37 |     100 |   96.64 | ...37-238,242-243 
  ...nitMessage.ts |     100 |      100 |     100 |     100 |                   
  ...extualTips.ts |   78.26 |       50 |     100 |   78.26 | ...2,75-79,96-104 
  ...eteCommand.ts |   89.52 |    90.69 |     100 |   89.52 | ...98-106,114-115 
  ...ialogClose.ts |   36.11 |       10 |     100 |   36.11 | ...89-195,202-207 
  useDiffData.ts   |   11.62 |      100 |       0 |   11.62 | 44-87             
  ...oublePress.ts |   53.12 |       75 |     100 |   53.12 | 33-35,41-54       
  ...orSettings.ts |     100 |      100 |     100 |     100 |                   
  ...Completion.ts |   99.12 |    97.64 |     100 |   99.12 | 182-183           
  ...ionUpdates.ts |   93.72 |    92.98 |     100 |   93.72 | ...87-291,314-320 
  ...agerDialog.ts |   88.88 |      100 |     100 |   88.88 | 21,25             
  ...backDialog.ts |    63.9 |    76.47 |   66.66 |    63.9 | ...66-168,190-191 
  useFocus.ts      |     100 |      100 |     100 |     100 |                   
  ...olderTrust.ts |     100 |    93.33 |     100 |     100 | 62                
  ...ggestions.tsx |   96.47 |    78.94 |     100 |   96.47 | 121,155-156       
  ...BranchName.ts |     100 |    94.44 |     100 |     100 | 54                
  ...oryManager.ts |   98.44 |     98.9 |     100 |   98.44 | 157-160           
  ...ooksDialog.ts |    87.5 |      100 |     100 |    87.5 | 19,23             
  ...stListener.ts |     100 |      100 |     100 |     100 |                   
  ...nAuthError.ts |   76.19 |       50 |     100 |   76.19 | 39-40,43-45       
  ...putHistory.ts |   92.59 |    85.71 |     100 |   92.59 | 63-64,72,94-96    
  useKeypress.ts   |     100 |      100 |     100 |     100 |                   
  ...rdProtocol.ts |   36.36 |      100 |       0 |   36.36 | 24-31             
  ...unchEditor.ts |   22.58 |      100 |      50 |   22.58 | 11-32,44-85       
  ...gIndicator.ts |     100 |    96.66 |     100 |     100 | 109               
  useLogger.ts     |      16 |      100 |       0 |      16 | 15-45             
  useMCPHealth.ts  |   10.52 |      100 |       0 |   10.52 | 36-75             
  ...cpApproval.ts |   93.12 |    86.11 |     100 |   93.12 | ...24-127,139-140 
  useMcpDialog.ts  |    87.5 |      100 |     100 |    87.5 | 19,23             
  ...moryDialog.ts |    87.5 |      100 |     100 |    87.5 | 19,23             
  ...oryMonitor.ts |   83.14 |    78.57 |     100 |   83.14 | 54-63,74-79       
  ...ssageQueue.ts |     100 |    95.19 |     100 |     100 | ...53,289,360,375 
  ...delCommand.ts |     100 |       96 |     100 |     100 | 61                
  ...ouseEvents.ts |   94.89 |       95 |   83.33 |   94.89 | 78-82             
  ...raseCycler.ts |   84.74 |    76.47 |     100 |   84.74 | ...49,52-53,69-71 
  ...rredEditor.ts |   58.33 |    22.22 |     100 |   58.33 | 23-27,29-33       
  ...derUpdates.ts |   89.16 |     82.6 |     100 |   89.16 | ...77,329-339,419 
  useQwenAuth.ts   |     100 |      100 |     100 |     100 |                   
  ...lScheduler.ts |   89.13 |     86.9 |     100 |   89.13 | ...61-463,496-506 
  ...oryCommand.ts |       0 |        0 |       0 |       0 | 1-7               
  ...umeCommand.ts |   96.51 |    90.19 |     100 |   96.51 | 279,306-311       
  ...ompletion.tsx |   90.67 |    83.33 |     100 |   90.67 | ...02,105,138-141 
  ...ectionList.ts |   97.12 |    96.22 |     100 |   97.12 | ...92-193,247-250 
  ...sionPicker.ts |   92.87 |    90.35 |     100 |   92.87 | ...99-501,503-505 
  ...earchInput.ts |     100 |    97.29 |     100 |     100 | 82                
  ...ngsCommand.ts |   18.75 |      100 |       0 |   18.75 | 10-25             
  ...ellHistory.ts |   93.28 |    80.95 |     100 |   93.28 | ...96,153-154,164 
  ...oryCommand.ts |   85.48 |    58.33 |     100 |   85.48 | 22-28,40,71       
  ...agerDialog.ts |   88.23 |      100 |     100 |   88.23 | 20,24             
  ...Completion.ts |   82.79 |    85.33 |   94.73 |   82.79 | ...86-688,696-732 
  ...tateAndRef.ts |     100 |      100 |     100 |     100 |                   
  ...tatsDialog.ts |     100 |      100 |     100 |     100 |                   
  useStatusLine.ts |   97.32 |    93.93 |     100 |   97.32 | ...18-422,518-525 
  ...eateDialog.ts |   88.23 |      100 |     100 |   88.23 | 14,18             
  ...mInProcess.ts |   27.35 |       80 |      25 |   27.35 | ...82-183,186-188 
  ...tification.ts |     100 |     87.5 |     100 |     100 | 50                
  ...alProgress.ts |   67.34 |    58.82 |   66.66 |   67.34 | 52-53,61-68,79-85 
  ...rminalSize.ts |     100 |      100 |     100 |     100 |                   
  ...emeCommand.ts |    79.2 |    35.29 |     100 |    79.2 | ...15-116,120-121 
  useTimer.ts      |   97.59 |    94.73 |     100 |   97.59 | 17-18             
  ...lMigration.ts |       0 |        0 |       0 |       0 |                   
  ...rustModify.ts |     100 |    90.47 |     100 |     100 | 112,134           
  useTurnDiffs.ts  |   95.12 |    78.57 |     100 |   95.12 | 133-134,156-157   
  ...elcomeBack.ts |   87.36 |     90.9 |     100 |   87.36 | ...,94-96,114-115 
  ...reeSession.ts |   93.75 |       70 |     100 |   93.75 | 47-48,72          
  vim.ts           |      74 |    67.56 |   69.23 |      74 | ...1854-1861,1869 
 src/ui/layouts    |   91.25 |    89.47 |     100 |   91.25 |                   
  ...AppLayout.tsx |   90.99 |     87.5 |     100 |   90.99 | 61-63,111-116,152 
  ...AppLayout.tsx |   91.66 |    92.85 |     100 |   91.66 | 75-80             
 src/ui/model      |   97.91 |    98.36 |     100 |   97.91 |                   
  ...ggregation.ts |     100 |      100 |     100 |     100 |                   
  ...ming-model.ts |   97.43 |    97.72 |     100 |   97.43 | 261-265           
 src/ui/models     |   80.72 |       80 |   71.42 |   80.72 |                   
  ...ableModels.ts |   80.72 |       80 |   71.42 |   80.72 | ...,61-71,125-127 
 ...noninteractive |     100 |      100 |    6.66 |     100 |                   
  ...eractiveUi.ts |     100 |      100 |    6.66 |     100 |                   
 src/ui/selection  |   93.56 |    86.19 |     100 |   93.56 |                   
  screen-buffer.ts |   94.73 |    66.66 |     100 |   94.73 | 51-52             
  ...ion-coords.ts |     100 |      100 |     100 |     100 |                   
  ...ction-span.ts |   93.81 |     92.1 |     100 |   93.81 | ...1,45-46,99-100 
  ...tion-state.ts |     100 |      100 |     100 |     100 |                   
  ...ction-text.ts |   93.85 |    93.44 |     100 |   93.85 | 30-34,130-131     
  ...selection.tsx |   91.88 |    78.57 |     100 |   91.88 | ...16-417,446-447 
 src/ui/state      |      95 |    81.81 |     100 |      95 |                   
  extensions.ts    |      95 |    81.81 |     100 |      95 | 69-70,89          
 src/ui/themes     |    98.5 |    73.06 |     100 |    98.5 |                   
  ansi-light.ts    |     100 |      100 |     100 |     100 |                   
  ansi.ts          |     100 |      100 |     100 |     100 |                   
  atom-one-dark.ts |     100 |      100 |     100 |     100 |                   
  ayu-light.ts     |     100 |      100 |     100 |     100 |                   
  ayu.ts           |     100 |      100 |     100 |     100 |                   
  color-utils.ts   |   99.23 |    97.05 |     100 |   99.23 | 277-278           
  default-light.ts |     100 |      100 |     100 |     100 |                   
  default.ts       |     100 |      100 |     100 |     100 |                   
  ...inal-theme.ts |   88.59 |    85.96 |     100 |   88.59 | ...57-261,266-270 
  dracula.ts       |     100 |      100 |     100 |     100 |                   
  github-dark.ts   |     100 |      100 |     100 |     100 |                   
  github-light.ts  |     100 |      100 |     100 |     100 |                   
  googlecode.ts    |     100 |      100 |     100 |     100 |                   
  no-color.ts      |     100 |      100 |     100 |     100 |                   
  qwen-dark.ts     |     100 |      100 |     100 |     100 |                   
  qwen-light.ts    |     100 |      100 |     100 |     100 |                   
  ...tic-tokens.ts |     100 |      100 |     100 |     100 |                   
  ...-of-purple.ts |     100 |      100 |     100 |     100 |                   
  theme-manager.ts |   88.68 |    84.33 |     100 |   88.68 | ...83-392,397-398 
  theme.ts         |     100 |    38.02 |     100 |     100 | ...34-449,457-461 
  xcode.ts         |     100 |      100 |     100 |     100 |                   
 src/ui/utils      |   88.05 |    86.01 |   96.15 |   88.05 |                   
  ...Colorizer.tsx |   80.31 |    85.41 |     100 |   80.31 | ...00-201,313-339 
  ...nRenderer.tsx |   80.07 |     75.6 |     100 |   80.07 | ...70,274,332-333 
  ...wnDisplay.tsx |   92.87 |     93.5 |     100 |   92.87 | ...,955,1002-1020 
  ...idDiagram.tsx |   87.79 |    95.34 |     100 |   87.79 | 156-179           
  ...eRenderer.tsx |   93.63 |    81.77 |   95.23 |   93.63 | ...47-750,803-808 
  ...odeDisplay.ts |   94.28 |    85.71 |     100 |   94.28 | 23,40             
  asciiCharts.ts   |    96.7 |     87.5 |     100 |    96.7 | 170-177,278       
  ...dWorkUtils.ts |     100 |      100 |     100 |     100 |                   
  ...boardUtils.ts |    52.9 |    74.15 |    92.3 |    52.9 | ...29,632-641,644 
  commandUtils.ts  |   98.61 |    93.27 |     100 |   98.61 | 189,217-218,424   
  ...ssion-text.ts |   90.54 |    71.42 |     100 |   90.54 | 66-68,80,82,90-91 
  computeStats.ts  |     100 |      100 |     100 |     100 |                   
  customBanner.ts  |   90.68 |    91.22 |     100 |   90.68 | ...13,324-327,334 
  displayUtils.ts  |   73.84 |    73.91 |     100 |   73.84 | ...34,36-40,42-46 
  ...coalescing.ts |     100 |      100 |     100 |     100 |                   
  formatters.ts    |   94.87 |    98.21 |     100 |   94.87 | 116-119           
  goal-runtime.ts  |   94.44 |    96.29 |     100 |   94.44 | 32-34             
  gradientUtils.ts |     100 |      100 |     100 |     100 |                   
  highlight.ts     |     100 |      100 |     100 |     100 |                   
  ...gap-notice.ts |     100 |      100 |     100 |     100 |                   
  ...oryMapping.ts |     100 |    95.65 |     100 |     100 | 45,151            
  historyUtils.ts  |   96.07 |     97.1 |     100 |   96.07 | 104-107           
  ...mage-parts.ts |   97.75 |       95 |     100 |   97.75 | 82-83             
  inline-math.ts   |   98.48 |    95.23 |     100 |   98.48 | 129-130           
  input-mouse.ts   |     100 |    85.71 |     100 |     100 | 48,93             
  isNarrowWidth.ts |     100 |      100 |     100 |     100 |                   
  ...olDetector.ts |   68.81 |       75 |   66.66 |   68.81 | ...27-132,160-161 
  latexRenderer.ts |   94.95 |     73.8 |     100 |   94.95 | ...76-178,184-187 
  layoutUtils.ts   |     100 |      100 |     100 |     100 |                   
  list-mouse.ts    |     100 |      100 |     100 |     100 |                   
  ...ightLoader.ts |     100 |       95 |     100 |     100 | 81                
  ...nUtilities.ts |   98.72 |    94.36 |     100 |   98.72 | 145-146           
  ...t-position.ts |     100 |     87.5 |     100 |     100 | 85                
  ...geRenderer.ts |   86.51 |    70.16 |   95.12 |   86.51 | ...1286,1326-1332 
  ...alRenderer.ts |   86.69 |     71.9 |     100 |   86.69 | ...1476,1513-1519 
  ...lsBySource.ts |     100 |    95.23 |     100 |     100 | 84                
  mouse-hit.ts     |     100 |     90.9 |     100 |     100 | 62-64             
  mouse.ts         |   92.85 |    74.19 |     100 |   92.85 | ...38,145,149-152 
  osc8.ts          |   91.33 |    79.03 |     100 |   91.33 | ...73,273,277-278 
  ...red-height.ts |   98.38 |    97.14 |     100 |   98.38 | 195-197           
  ...mConstants.ts |     100 |      100 |     100 |     100 |                   
  restoreGoal.ts   |     100 |      100 |     100 |     100 |                   
  ...storyUtils.ts |   84.37 |    81.09 |     100 |   84.37 | ...03-625,759-760 
  ...ickerUtils.ts |     100 |      100 |     100 |     100 |                   
  ...evel-label.ts |   77.77 |    66.66 |     100 |   77.77 | 18,22-24          
  ...are-cursor.ts |      90 |     87.5 |     100 |      90 | 39-44             
  ...ataService.ts |   93.17 |     79.1 |     100 |   93.17 | ...14,227,254-256 
  suggestions.ts   |     100 |      100 |     100 |     100 |                   
  ...izedOutput.ts |   95.19 |      100 |   88.88 |   95.19 | 121-126           
  ...nal-buffer.ts |     100 |      100 |     100 |     100 |                   
  ...e-renderer.ts |   90.24 |    82.66 |     100 |   90.24 | ...04,506-508,631 
  ...ize-reflow.ts |     100 |     92.3 |     100 |     100 | 57,62,209,217,347 
  ...wOptimizer.ts |     100 |    94.73 |     100 |     100 | 35,78             
  terminalSetup.ts |    4.37 |      100 |       0 |    4.37 | 44-393            
  textUtils.ts     |   98.75 |    95.93 |     100 |   98.75 | 292-293,488-489   
  ...background.ts |     100 |      100 |     100 |     100 |                   
  todoSnapshot.ts  |   95.81 |     92.3 |     100 |   95.81 | ...09-210,243-244 
  ...isplay-map.ts |     100 |      100 |     100 |     100 |                   
  updateCheck.ts   |     100 |    92.75 |     100 |     100 | 227-239,331       
  windowTitle.ts   |   96.55 |    94.73 |     100 |   96.55 | 56-57             
  ...ow-keyword.ts |     100 |      100 |     100 |     100 |                   
 ...i/utils/export |   75.03 |     60.1 |   94.59 |   75.03 |                   
  collect.ts       |   71.27 |    65.81 |      96 |   71.27 | ...90-633,655-656 
  index.ts         |     100 |      100 |     100 |     100 |                   
  normalize.ts     |   80.42 |    51.35 |     100 |   80.42 | ...59-364,376-378 
  types.ts         |       0 |        0 |       0 |       0 | 1                 
  utils.ts         |     100 |      100 |     100 |     100 |                   
 ...ort/formatters |   52.92 |    47.22 |   71.42 |   52.92 |                   
  html.ts          |   84.61 |       50 |     100 |   84.61 | ...53,57-58,62-63 
  json.ts          |     100 |      100 |     100 |     100 |                   
  jsonl.ts         |   82.45 |     37.5 |     100 |   82.45 | ...48,50-51,65-66 
  markdown.ts      |   36.32 |    47.05 |      50 |   36.32 | ...16-219,233-295 
 src/ui/voice      |   81.24 |    79.78 |   81.69 |   81.24 |                   
  ...d-recorder.ts |     6.2 |      100 |       0 |     6.2 | ...33-159,162-163 
  ...o-recorder.ts |   84.61 |    93.33 |   57.14 |   84.61 | ...16-117,131-136 
  ...me-session.ts |   91.09 |     92.1 |     100 |   91.09 | ...99,305,316-319 
  sox-recorder.ts  |    92.7 |    71.87 |     100 |    92.7 | ...34-135,153-154 
  ...ailability.ts |     100 |      100 |     100 |     100 |                   
  ...e-keyterms.ts |     100 |      100 |     100 |     100 |                   
  voice-model.ts   |     100 |      100 |     100 |     100 |                   
  ...e-recorder.ts |   88.29 |    67.74 |   81.81 |   88.29 | ...,98-99,112,115 
  voice-refine.ts  |     100 |    93.33 |     100 |     100 | 92                
  ...ream-retry.ts |   86.79 |       70 |     100 |   86.79 | 16-18,48-49,59-60 
  ...am-session.ts |   88.02 |    66.66 |   84.61 |   88.02 | ...26,343-345,363 
  ...ranscriber.ts |     100 |      100 |     100 |     100 |                   
 src/utils         |   92.24 |    89.84 |   96.14 |   92.24 |                   
  ...p-profiler.ts |   98.39 |    92.59 |     100 |   98.39 | 141,185,235       
  acpModelUtils.ts |   97.36 |    95.09 |     100 |   97.36 | ...09-210,214-215 
  apiPreconnect.ts |   96.74 |    94.59 |     100 |   96.74 | 167-170           
  ...ol-call-id.ts |   84.61 |       60 |     100 |   84.61 | 26-27,37-38       
  checks.ts        |   33.33 |      100 |       0 |   33.33 | 23-28             
  ...-api-error.ts |     100 |    96.42 |     100 |     100 | 14                
  cleanup.ts       |   84.05 |    94.11 |      80 |   84.05 | 80,111-121        
  ...y-identity.ts |   89.38 |    85.32 |     100 |   89.38 | ...48-449,456-457 
  ...Calculator.ts |     100 |      100 |     100 |     100 |                   
  cpuProfiler.ts   |   70.73 |    73.23 |   88.88 |   70.73 | ...27,430-431,438 
  deepMerge.ts     |     100 |       90 |     100 |     100 | 50-52,58          
  ...re-runtime.ts |     100 |      100 |     100 |     100 |                   
  ...putCapture.ts |   90.65 |    86.31 |     100 |   90.65 | ...73,371,373-374 
  ...arResolver.ts |   97.14 |    96.55 |     100 |   97.14 | 125-126           
  errors.ts        |   97.56 |    94.64 |     100 |   97.56 | 69-70,304-305     
  events.ts        |     100 |      100 |     100 |     100 |                   
  ...on-mention.ts |   88.48 |     82.6 |     100 |   88.48 | ...56-160,164-168 
  gitUtils.ts      |   92.85 |    86.66 |     100 |   92.85 | ...13-116,164-167 
  ...tyWarnings.ts |     100 |      100 |     100 |     100 |                   
  ...lationInfo.ts |   97.81 |    94.69 |     100 |   97.81 | ...03,420-421,466 
  ...projection.ts |   95.27 |    95.58 |     100 |   95.27 | 140-145           
  jsonc-editor.ts  |   93.18 |    92.66 |     100 |   93.18 | ...80-381,384-385 
  load-undici.ts   |     100 |      100 |     100 |     100 |                   
  ...npm-update.ts |   86.64 |    77.02 |     100 |   86.64 | ...03-304,335-345 
  math.ts          |       0 |        0 |       0 |       0 | 1-15              
  ...er-mention.ts |     100 |    66.66 |     100 |     100 | 14,30,44-46       
  ...iagnostics.ts |   94.57 |    83.01 |   88.88 |   94.57 | ...05,311,315-317 
  ...serMessage.ts |     100 |      100 |     100 |     100 |                   
  ...onfigUtils.ts |   94.31 |    91.36 |     100 |   94.31 | ...34,440,443-447 
  ...-part-list.ts |     100 |      100 |     100 |     100 |                   
  osc.ts           |   97.18 |      100 |    87.5 |   97.18 | 182-183           
  package.ts       |   88.88 |    85.71 |     100 |   88.88 | 31-32             
  paths.ts         |     100 |      100 |     100 |     100 |                   
  processUtils.ts  |    92.3 |       80 |     100 |    92.3 | 45-46             
  readStdin.ts     |   93.67 |    94.11 |   85.71 |   93.67 | 79-83             
  relaunch.ts      |   95.87 |    89.28 |     100 |   95.87 | 103-105,131       
  resolvePath.ts   |     100 |      100 |     100 |     100 |                   
  runBudget.ts     |   99.35 |    96.77 |     100 |   99.35 | 119               
  sandbox-path.ts  |     100 |      100 |     100 |     100 |                   
  ...xImageName.ts |     100 |    77.77 |     100 |     100 | 10,18             
  sandboxMounts.ts |     100 |      100 |     100 |     100 |                   
  ...-path-argv.ts |     100 |      100 |     100 |     100 |                   
  sessionPaths.ts  |   90.84 |    90.56 |     100 |   90.84 | ...81-182,185-186 
  shell-args.ts    |     100 |      100 |     100 |     100 |                   
  spawnWrapper.ts  |     100 |      100 |     100 |     100 |                   
  ...ate-verify.ts |     100 |      100 |     100 |     100 |                   
  ...upProfiler.ts |   98.47 |    94.66 |     100 |   98.47 | 132-133,308       
  ...upWarnings.ts |     100 |      100 |     100 |     100 |                   
  stdioHelpers.ts  |   76.66 |       90 |   83.33 |   76.66 | 93-99             
  ...alSequence.ts |     100 |    97.61 |     100 |     100 | 60                
  ...iffPreview.ts |   76.47 |       25 |     100 |   76.47 | 13,17,23-24       
  ...on-handler.ts |    73.8 |       75 |     100 |    73.8 | 17-18,25-26,67-73 
  ...entEmitter.ts |     100 |      100 |     100 |     100 |                   
  ...ansionHook.ts |     100 |      100 |     100 |     100 |                   
  ...upWarnings.ts |   87.75 |       75 |     100 |   87.75 | 47-48,53-54,57-58 
  version.ts       |     100 |    66.66 |     100 |     100 | 11                
  ...ingHandler.ts |     100 |      100 |     100 |     100 |                   
  ...WithBackup.ts |   65.04 |    77.77 |     100 |   65.04 | 97,112,133-172    
 ...s/housekeeping |   94.35 |    94.11 |     100 |   94.35 |                   
  cleanup.ts       |   92.59 |    93.75 |     100 |   92.59 | ...02-205,209-211 
  ...eractionAt.ts |     100 |      100 |     100 |     100 |                   
  throttledOnce.ts |   95.95 |    93.93 |     100 |   95.95 | 77-78,153-154     
-------------------|---------|----------|---------|---------|-------------------
Core Package - Full Text Report
-------------------|---------|----------|---------|---------|-------------------
File               | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s 
-------------------|---------|----------|---------|---------|-------------------
All files          |   88.91 |    87.33 |   90.58 |   88.91 |                   
 src               |     100 |      100 |     100 |     100 |                   
  index.ts         |     100 |      100 |     100 |     100 |                   
 src/__mocks__/fs  |       0 |        0 |       0 |       0 |                   
  promises.ts      |       0 |        0 |       0 |       0 | 1-48              
 src/agents        |   90.53 |    84.82 |   94.55 |   90.53 |                   
  ...transcript.ts |   88.49 |    84.09 |     100 |   88.49 | ...32,640,646-650 
  ...ent-resume.ts |   85.74 |       78 |    85.1 |   85.74 | ...1803-1807,1810 
  ...ound-tasks.ts |   95.19 |    90.75 |   96.42 |   95.19 | ...1889,1897-1898 
  forkedAgent.ts   |   95.91 |    87.12 |   94.44 |   95.91 | ...76-478,601,728 
  index.ts         |     100 |      100 |     100 |     100 |                   
  ...ent-result.ts |    96.8 |    92.68 |     100 |    96.8 | 106,129-131       
  ...n-registry.ts |   95.27 |    88.23 |   98.33 |   95.27 | ...1478,1492-1494 
  ...w-snapshot.ts |   75.73 |    72.22 |    87.5 |   75.73 | ...21,445,452-454 
  worktree-pin.ts  |     100 |    88.23 |     100 |     100 | 78,99             
 src/agents/arena  |   76.87 |    68.43 |   78.94 |   76.87 |                   
  ...gentClient.ts |   79.47 |    88.88 |   81.81 |   79.47 | ...68-183,189-204 
  ArenaManager.ts  |    75.8 |    65.46 |   78.57 |    75.8 | ...1879,1885-1886 
  arena-events.ts  |   64.44 |      100 |      50 |   64.44 | ...71-175,178-183 
  diff-summary.ts  |    87.5 |    72.34 |     100 |    87.5 | ...32-133,137-138 
  index.ts         |     100 |      100 |     100 |     100 |                   
  types.ts         |     100 |      100 |     100 |     100 |                   
 ...gents/backends |   77.77 |    86.68 |   75.86 |   77.77 |                   
  ITermBackend.ts  |   97.97 |    93.93 |     100 |   97.97 | ...78-180,255,307 
  ...essBackend.ts |   92.12 |    90.74 |   97.05 |   92.12 | ...37-538,666-672 
  TmuxBackend.ts   |    90.7 |    76.55 |   97.36 |    90.7 | ...87,697,743-747 
  detect.ts        |   31.25 |      100 |       0 |   31.25 | 34-88             
  index.ts         |     100 |      100 |     100 |     100 |                   
  iterm-it2.ts     |     100 |     92.1 |     100 |     100 | 37-38,106         
  tmux-commands.ts |    6.64 |      100 |    3.03 |    6.64 | ...93-363,386-503 
  types.ts         |     100 |      100 |     100 |     100 |                   
 ...agents/runtime |   93.39 |    87.49 |   91.59 |   93.39 |                   
  agent-context.ts |     100 |      100 |     100 |     100 |                   
  ...-test-mock.ts |   98.82 |    66.66 |   58.33 |   98.82 | 85                
  agent-core.ts    |   90.38 |    80.91 |   81.25 |   90.38 | ...2550,2596-2598 
  agent-events.ts  |     100 |      100 |     100 |     100 |                   
  ...t-headless.ts |   93.57 |    89.41 |   83.33 |   93.57 | ...04-505,508-509 
  ...nteractive.ts |   81.64 |     82.6 |      80 |   81.64 | ...33,535-538,541 
  ...statistics.ts |   98.29 |    82.55 |     100 |   98.29 | 141,165,206,239   
  agent-types.ts   |     100 |      100 |     100 |     100 |                   
  index.ts         |     100 |      100 |     100 |     100 |                   
  ...ool-policy.ts |   98.38 |      100 |    92.3 |   98.38 | 85-86             
  ...low-budget.ts |     100 |      100 |     100 |     100 |                   
  ...-scheduler.ts |   97.43 |    96.36 |     100 |   97.43 | 128-130           
  ...ow-journal.ts |   92.78 |    78.12 |     100 |   92.78 | ...49-150,192-194 
  ...ta-literal.ts |   95.96 |    92.68 |     100 |   95.96 | ...78-379,395-396 
  ...chestrator.ts |   93.86 |    90.47 |     100 |   93.86 | ...2213,2306-2309 
  ...ow-prompts.ts |     100 |      100 |     100 |     100 |                   
  ...low-runner.ts |   93.17 |     83.6 |      95 |   93.17 | ...14,372,392-395 
  ...ow-sandbox.ts |    97.4 |    89.37 |     100 |    97.4 | ...1846,1852-1853 
  ...flow-saved.ts |    96.7 |     93.9 |     100 |    96.7 | 153-154,261-264   
  ...flow-stall.ts |    97.9 |    83.33 |     100 |    97.9 | 170-171,270       
 src/agents/tasks  |     100 |      100 |     100 |     100 |                   
  types.ts         |     100 |      100 |     100 |     100 |                   
 src/agents/team   |   85.95 |    86.47 |   91.15 |   85.95 |                   
  TeamManager.ts   |   80.54 |    85.36 |   84.37 |   80.54 | ...2123,2146-2147 
  identity.ts      |     100 |      100 |     100 |     100 |                   
  index.ts         |     100 |      100 |     100 |     100 |                   
  ...sionBridge.ts |     100 |      100 |     100 |     100 |                   
  mailbox.ts       |   96.02 |     87.5 |     100 |   96.02 | 352-358           
  ...ptAddendum.ts |     100 |      100 |     100 |     100 |                   
  tasks.ts         |   89.29 |       83 |     100 |   89.29 | ...1000,1044-1045 
  team-events.ts   |   73.68 |      100 |   66.66 |   73.68 | 140-144,151-155   
  teamHelpers.ts   |   92.99 |    94.52 |      95 |   92.99 | ...29-330,415-425 
  types.ts         |     100 |      100 |     100 |     100 |                   
 ...eam/test-utils |   95.28 |    95.34 |   98.24 |   95.28 |                   
  ...on-harness.ts |   96.49 |    85.71 |     100 |   96.49 | 128-129,141-142   
  fake-agent.ts    |     100 |    96.96 |     100 |     100 | 189,198           
  fake-backend.ts  |   86.46 |    97.61 |   95.83 |   86.46 | 124-146           
 src/config        |    86.3 |    88.53 |   78.38 |    86.3 |                   
  approval-mode.ts |     100 |      100 |     100 |     100 |                   
  ...xtDefaults.ts |     100 |      100 |     100 |     100 |                   
  config.ts        |   84.86 |    87.79 |   76.28 |   84.86 | ...9561,9565-9567 
  ...ionManager.ts |     100 |     90.9 |     100 |     100 | 27                
  ...ver-config.ts |   97.29 |      100 |   83.33 |   97.29 | 48-49             
  models.ts        |     100 |      100 |     100 |     100 |                   
  ...sDiscovery.ts |   97.46 |    93.05 |     100 |   97.46 | ...04,182-183,202 
  storage.ts       |   96.05 |    93.43 |   89.47 |   96.05 | ...34-735,738-739 
 ...nfirmation-bus |   98.27 |    97.22 |     100 |   98.27 |                   
  message-bus.ts   |   98.14 |    97.14 |     100 |   98.14 | 42-43             
  types.ts         |     100 |      100 |     100 |     100 |                   
 src/core          |   92.84 |    88.69 |   93.96 |   92.84 |                   
  ...on-restore.ts |   88.23 |    85.41 |     100 |   88.23 | ...60,63-64,67-68 
  baseLlmClient.ts |    88.4 |    83.68 |   81.81 |    88.4 | ...59,672,678-680 
  client.ts        |   92.48 |    88.27 |   91.91 |   92.48 | ...4688,4786-4787 
  ...tGenerator.ts |   87.45 |    88.09 |   88.88 |   87.45 | ...09-510,555-561 
  ...lScheduler.ts |   90.22 |    84.96 |   94.73 |   90.22 | ...6488,6516-6532 
  ...entContext.ts |   96.63 |    90.13 |   96.66 |   96.63 | ...42,444-445,512 
  geminiChat.ts    |     100 |      100 |     100 |     100 |                   
  geminiRequest.ts |     100 |      100 |     100 |     100 |                   
  genai-compat.ts  |     100 |      100 |     100 |     100 |                   
  ...MediaLimit.ts |     100 |       96 |     100 |     100 | 96                
  ...htProtocol.ts |    9.09 |      100 |       0 |    9.09 | ...9,62-66,69-110 
  ...ream-error.ts |     100 |      100 |     100 |     100 |                   
  llm-chat.ts      |   95.21 |     90.8 |   96.66 |   95.21 | ...5769,5814-5815 
  llm-request.ts   |     100 |      100 |     100 |     100 |                   
  logger.ts        |   87.41 |    87.02 |     100 |   87.41 | ...64-568,614-628 
  ...lay-buffer.ts |     100 |      100 |     100 |     100 |                   
  ...dispatcher.ts |     100 |      100 |     100 |     100 |                   
  ...tyDefaults.ts |     100 |      100 |     100 |     100 |                   
  ...olExecutor.ts |   93.54 |    83.33 |      50 |   93.54 | 46-47             
  output-styles.ts |     100 |      100 |     100 |     100 |                   
  ...on-helpers.ts |   95.38 |    84.31 |     100 |   95.38 | ...87,215,217-218 
  ...issionFlow.ts |   98.98 |    96.96 |     100 |   98.98 | 109               
  ...try-policy.ts |     100 |      100 |     100 |     100 |                   
  ...ell-policy.ts |   94.89 |    88.54 |     100 |   94.89 | ...51-252,297-298 
  prompts.ts       |   93.89 |     91.2 |      85 |   93.89 | ...1272,1475-1476 
  ...ing-effort.ts |     100 |      100 |     100 |     100 |                   
  ...n-recovery.ts |   95.13 |       80 |     100 |   95.13 | ...06-107,142-144 
  ...t-profiler.ts |    97.9 |    81.15 |   88.23 |    97.9 | 117,124-125,130   
  stream-guards.ts |   91.16 |    93.18 |     100 |   91.16 | ...89,218-229,294 
  ...port-retry.ts |     100 |      100 |     100 |     100 |                   
  tokenLimits.ts   |     100 |    91.89 |     100 |     100 | 87,122-139        
  ...-arguments.ts |     100 |      100 |     100 |     100 |                   
  ...reparation.ts |     100 |      100 |     100 |     100 |                   
  ...tion-guard.ts |   90.38 |    94.73 |     100 |   90.38 | 83-87             
  ...allIdUtils.ts |   98.81 |    91.22 |     100 |   98.81 | 43,52             
  ...okTriggers.ts |   99.45 |     92.5 |     100 |   99.45 | 182,193           
  ...terruption.ts |     100 |     92.3 |     100 |     100 | 86,104            
  turn.ts          |   99.21 |    94.69 |     100 |   99.21 | 784-785,854       
  ...l-fallback.ts |     100 |      100 |     100 |     100 |                   
 ...ntentGenerator |   96.62 |    89.21 |   97.43 |   96.62 |                   
  ...tGenerator.ts |   97.71 |    89.13 |   97.43 |   97.71 | ...1539,1568,1579 
  converter.ts     |   96.19 |    89.25 |     100 |   96.19 | ...1334,1555-1557 
  index.ts         |       0 |        0 |       0 |       0 | 1-21              
  usage.ts         |     100 |      100 |     100 |     100 |                   
 ...ntentGenerator |     100 |      100 |     100 |     100 |                   
  ...tGenerator.ts |     100 |      100 |     100 |     100 |                   
  index.ts         |     100 |      100 |     100 |     100 |                   
 ...tent-generator |   89.24 |    72.72 |   94.11 |   89.24 |                   
  index.ts         |     100 |    85.71 |     100 |     100 | 51                
  ...-generator.ts |   87.54 |    71.42 |   93.75 |   87.54 | ...93-294,356-362 
 ...ntentGenerator |   95.78 |    90.51 |   96.22 |   95.78 |                   
  ...e-snapshot.ts |   97.39 |    89.65 |     100 |   97.39 | ...,49-50,151-152 
  index.ts         |     100 |      100 |     100 |     100 |                   
  ...tGenerator.ts |   95.38 |    90.14 |   95.12 |   95.38 | ...1345-1346,1374 
  ...tDetection.ts |     100 |      100 |     100 |     100 |                   
 ...ntentGenerator |   92.41 |    90.86 |   96.33 |   92.41 |                   
  constants.ts     |     100 |      100 |     100 |     100 |                   
  converter.ts     |   91.25 |    89.66 |   96.87 |   91.25 | ...1946,2115-2130 
  errorHandler.ts  |     100 |      100 |     100 |     100 |                   
  index.ts         |   76.19 |    88.88 |      50 |   76.19 | 44-53,90-94       
  ...tGenerator.ts |      70 |    73.33 |     100 |      70 | ...07-112,121-127 
  pipeline.ts      |    96.3 |    91.36 |     100 |    96.3 | ...1204-1205,1312 
  ...ix-caching.ts |   95.23 |    92.85 |     100 |   95.23 | 45-46,69-70       
  ...ureContext.ts |     100 |      100 |     100 |     100 |                   
  ...ingOptions.ts |       0 |        0 |       0 |       0 | 1                 
  ...CallParser.ts |   92.11 |    92.25 |     100 |   92.11 | ...21-522,542-545 
  ...kingParser.ts |     100 |    96.87 |     100 |     100 | 42                
  types.ts         |       0 |        0 |       0 |       0 | 1                 
 ...rator/provider |   97.24 |       92 |   98.64 |   97.24 |                   
  dashscope.ts     |   98.42 |    95.27 |   96.55 |   98.42 | ...51-752,894-895 
  deepseek.ts      |   95.27 |    90.56 |     100 |   95.27 | ...52-153,166-167 
  default.ts       |   98.87 |       96 |     100 |   98.87 | 178,304           
  index.ts         |     100 |      100 |     100 |     100 |                   
  mimo.ts          |   94.11 |    66.66 |     100 |   94.11 | 29,52-53          
  minimax.ts       |     100 |      100 |     100 |     100 |                   
  mistral.ts       |   96.07 |    73.33 |     100 |   96.07 | 32-33             
  modelscope.ts    |     100 |      100 |     100 |     100 |                   
  openrouter.ts    |     100 |      100 |     100 |     100 |                   
  types.ts         |       0 |        0 |       0 |       0 |                   
  utils.ts         |     100 |      100 |     100 |     100 |                   
  zai.ts           |      90 |    76.31 |     100 |      90 | ...,72-73,173-175 
 src/extension     |   89.16 |    86.49 |   93.61 |   89.16 |                   
  ...ive-safety.ts |    97.9 |     92.8 |     100 |    97.9 | 235-236,313-316   
  ...-converter.ts |   80.55 |    73.66 |     100 |   80.55 | ...1133,1179-1180 
  corruptFile.ts   |     100 |       50 |     100 |     100 | 40-45             
  ...-converter.ts |     100 |      100 |     100 |     100 |                   
  ...git-client.ts |     100 |      100 |     100 |     100 |                   
  ...redentials.ts |   95.33 |    89.47 |     100 |   95.33 | ...21-122,173-175 
  ...me-refresh.ts |     100 |      100 |     100 |     100 |                   
  ...sion-store.ts |   92.82 |     89.1 |    98.3 |   92.82 | ...1641-1647,1691 
  ...ionManager.ts |   84.96 |    84.05 |      83 |   84.96 | ...3159,3197-3198 
  ...references.ts |     100 |     90.9 |     100 |     100 | ...05,129,197,200 
  ...onSettings.ts |    92.3 |     94.4 |     100 |    92.3 | ...98-501,570-571 
  ...-converter.ts |   78.91 |    86.04 |   85.71 |   78.91 | ...95,202,214-248 
  github.ts        |   92.61 |    87.44 |     100 |   92.61 | ...1310-1311,1321 
  http-client.ts   |   84.61 |       80 |     100 |   84.61 | 20-21             
  i18n.ts          |   78.26 |       96 |      50 |   78.26 | 104-110,116-123   
  index.ts         |     100 |      100 |     100 |     100 |                   
  marketplace.ts   |   88.39 |    83.11 |     100 |   88.39 | ...08,494,507-508 
  ...ork-policy.ts |   89.72 |    90.16 |     100 |   89.72 | ...36,148-154,156 
  npm.ts           |   89.02 |    81.81 |     100 |   89.02 | ...86-688,695-700 
  override.ts      |   94.11 |    93.54 |     100 |   94.11 | 63-64,81-82       
  ...-converter.ts |   94.89 |    90.41 |     100 |   94.89 | ...50-151,222-224 
  redaction.ts     |     100 |      100 |     100 |     100 |                   
  settings.ts      |   66.26 |      100 |      50 |   66.26 | 81-107,141-146    
  ...ceRegistry.ts |   94.01 |    83.33 |     100 |   94.01 | ...38-344,365-366 
  storage.ts       |     100 |      100 |     100 |     100 |                   
  ...ableSchema.ts |     100 |      100 |     100 |     100 |                   
  variables.ts     |   88.95 |    84.21 |     100 |   88.95 | ...32-235,238-241 
  ...extraction.ts |   85.77 |       81 |   89.47 |   85.77 | ...02-205,260-261 
 ...ent-plugins-v1 |   84.94 |    79.51 |     100 |   84.94 |                   
  index.ts         |     100 |      100 |     100 |     100 |                   
  manifest.ts      |   81.87 |    84.48 |     100 |   81.87 | ...55-156,161-174 
  mcp.ts           |   84.98 |    79.56 |     100 |   84.98 | ...88-389,419-420 
  paths.ts         |     100 |    94.44 |     100 |     100 | 59                
  skills.ts        |   82.31 |    63.88 |     100 |   82.31 | ...38-141,150-151 
 src/followup      |   84.78 |    82.27 |   86.84 |   84.78 |                   
  followupState.ts |   98.44 |    95.74 |     100 |   98.44 | 236-237           
  index.ts         |     100 |      100 |     100 |     100 |                   
  overlayFs.ts     |   96.29 |    88.88 |     100 |   96.29 | 78,108,122        
  speculation.ts   |   76.53 |    71.96 |   58.33 |   76.53 | ...48-749,756-757 
  ...onToolGate.ts |   97.97 |     87.5 |     100 |   97.97 | 105,110           
  ...nGenerator.ts |   86.11 |    87.17 |     100 |   86.11 | ...39-244,356-358 
 src/generated     |       0 |        0 |       0 |       0 |                   
  git-commit.ts    |       0 |        0 |       0 |       0 | 1-10              
 src/goals         |   93.59 |    90.38 |      95 |   93.59 |                   
  ...eGoalStore.ts |   87.61 |    88.88 |   86.66 |   87.61 | ...85-188,196-204 
  ...t-verifier.ts |   99.45 |    97.05 |     100 |   99.45 | 155               
  ...checkpoint.ts |   86.08 |    85.18 |     100 |   86.08 | ...29-132,142-145 
  ...ion-prompt.ts |     100 |      100 |     100 |     100 |                   
  goal-evidence.ts |    88.7 |     88.2 |   97.67 |    88.7 | ...1219,1242-1245 
  ...projection.ts |   66.66 |    72.97 |   33.33 |   66.66 | ...87,190,194-196 
  ...ersistence.ts |   87.36 |    85.96 |    87.5 |   87.36 | ...53-154,185-190 
  goal-protocol.ts |   97.56 |    96.42 |     100 |   97.56 | 322-323           
  goal-reducer.ts  |   95.75 |    93.82 |   97.36 |   95.75 | ...76,666,684-685 
  goal-runtime.ts  |   96.51 |    90.64 |   96.49 |   96.51 | ...1645-1646,1777 
  ...provenance.ts |     100 |      100 |     100 |     100 |                   
  goal-tools.ts    |   98.58 |     95.2 |   96.15 |   98.58 | ...41-242,350-351 
  ...rn-context.ts |     100 |      100 |     100 |     100 |                   
  goal-verifier.ts |   92.46 |    93.02 |     100 |   92.46 | ...69-172,185-187 
  goal-wire.ts     |       0 |        0 |       0 |       0 | 1-28              
  goalHook.ts      |   96.91 |    92.53 |     100 |   96.91 | 115-120,221-222   
  goalJudge.ts     |   95.84 |    87.09 |     100 |   95.84 | ...55-356,448-449 
  index.ts         |     100 |      100 |     100 |     100 |                   
 src/hooks         |   90.59 |    86.89 |   90.32 |   90.59 |                   
  ...okRegistry.ts |   86.48 |    77.08 |     100 |   86.48 | ...41-344,362-369 
  ...bortSignal.ts |     100 |      100 |     100 |     100 |                   
  context-usage.ts |     100 |      100 |     100 |     100 |                   
  ...terpolator.ts |   96.66 |    93.33 |     100 |   96.66 | 66-67             
  ...HookRunner.ts |   96.68 |    87.23 |     100 |   96.68 | 110-112,231-233   
  ...Aggregator.ts |   96.57 |    91.48 |     100 |   96.57 | ...20-321,402,404 
  ...entHandler.ts |   95.57 |    84.76 |   94.73 |   95.57 | ...1040-1041,1051 
  hookPlanner.ts   |   87.55 |    85.54 |   86.66 |   87.55 | ...22-226,233-244 
  hookRegistry.ts  |   92.53 |    85.43 |     100 |   92.53 | ...39,458,462,466 
  hookRunner.ts    |   85.68 |    82.96 |    92.3 |   85.68 | ...1289,1299-1302 
  hookSystem.ts    |   87.64 |     98.5 |   70.83 |   87.64 | ...58-759,765-766 
  ...HookRunner.ts |   79.06 |    66.66 |      80 |   79.06 | ...33-434,452-456 
  index.ts         |     100 |      100 |     100 |     100 |                   
  ...edCallback.ts |     100 |      100 |     100 |     100 |                   
  ...HookRunner.ts |   94.19 |    84.37 |   81.81 |   94.19 | ...76-384,458-459 
  ...SkillHooks.ts |   82.47 |    84.21 |      75 |   82.47 | 63-67,169-184     
  ...oksManager.ts |   94.87 |    90.12 |     100 |   94.87 | ...84,325,327-329 
  ssrfGuard.ts     |   86.45 |    89.13 |     100 |   86.45 | ...85,289-295,301 
  stopHookCap.ts   |     100 |      100 |     100 |     100 |                   
  trustedHooks.ts  |      90 |    52.63 |     100 |      90 | ...53,66-67,97-98 
  types.ts         |   94.25 |    96.09 |   88.88 |   94.25 | ...46-547,632-636 
  urlValidator.ts  |     100 |      100 |     100 |     100 |                   
  ...it-context.ts |     100 |      100 |     100 |     100 |                   
 src/ide           |   76.98 |    85.03 |   79.03 |   76.98 |                   
  constants.ts     |     100 |      100 |     100 |     100 |                   
  detect-ide.ts    |     100 |      100 |     100 |     100 |                   
  ide-client.ts    |   69.16 |    84.65 |   68.29 |   69.16 | ...1068,1097-1105 
  ide-installer.ts |   89.06 |    79.31 |     100 |   89.06 | ...36,143-147,160 
  ideContext.ts    |     100 |      100 |     100 |     100 |                   
  process-utils.ts |   84.84 |    71.79 |     100 |   84.84 | ...37,151,193-194 
  types.ts         |     100 |      100 |     100 |     100 |                   
 src/ipc           |   94.64 |    94.01 |   96.72 |   94.64 |                   
  inbound-gate.ts  |   98.99 |    89.71 |     100 |   98.99 | 557-559           
  ...-directory.ts |     100 |      100 |     100 |     100 |                   
  peer-envelope.ts |     100 |      100 |     100 |     100 |                   
  peer-frames.ts   |   97.61 |    97.22 |     100 |   97.61 | 262-264           
  peer-routing.ts  |     100 |      100 |     100 |     100 |                   
  peer-send.ts     |   97.17 |     98.3 |   88.88 |   97.17 | 183-187           
  socket-path.ts   |   85.71 |    93.33 |     100 |   85.71 | 83-88             
  uds-client.ts    |   88.52 |    92.59 |   85.71 |   88.52 | 172-185           
  uds-inbox.ts     |   82.42 |    84.09 |     100 |   82.42 | ...33,240-250,282 
 src/lsp           |   58.96 |    70.67 |   66.49 |   58.96 |                   
  ...nfigLoader.ts |   80.55 |    72.22 |   95.65 |   80.55 | ...02-504,508-514 
  ...ionFactory.ts |   42.81 |    73.07 |      50 |   42.81 | ...76-427,433-450 
  ...Normalizer.ts |   23.09 |    13.72 |   30.43 |   23.09 | ...04-905,909-924 
  ...verManager.ts |   75.73 |     80.1 |   79.66 |   75.73 | ...1346,1352-1382 
  ...eLspClient.ts |   32.78 |    81.81 |   21.05 |   32.78 | ...89-293,299-300 
  ...LspService.ts |      60 |    73.36 |   78.26 |      60 | ...1575,1635-1645 
  configHash.ts    |     100 |      100 |     100 |     100 |                   
  constants.ts     |     100 |      100 |     100 |     100 |                   
  types.ts         |     100 |      100 |     100 |     100 |                   
 src/mcp           |    82.3 |    77.81 |   78.33 |    82.3 |                   
  configHash.ts    |     100 |      100 |     100 |     100 |                   
  constants.ts     |     100 |      100 |     100 |     100 |                   
  ...h-provider.ts |   86.95 |      100 |   33.33 |   86.95 | ...,93,97,101-102 
  ...h-provider.ts |   79.31 |    58.06 |     100 |   79.31 | ...26-933,940-942 
  ...en-storage.ts |   98.78 |    97.95 |     100 |   98.78 | 106-107           
  oauth-utils.ts   |   73.61 |    85.48 |    92.3 |   73.61 | ...46-366,392-421 
  ...n-provider.ts |   89.83 |       96 |   45.45 |   89.83 | ...43,147,151-152 
 .../token-storage |   82.12 |    88.48 |   89.28 |   82.12 |                   
  ...en-storage.ts |     100 |      100 |     100 |     100 |                   
  ...en-storage.ts |   87.08 |    87.71 |   95.23 |   87.08 | ...00-201,214-215 
  ...en-storage.ts |     100 |      100 |     100 |     100 |                   
  index.ts         |     100 |      100 |     100 |     100 |                   
  ...en-storage.ts |   68.14 |    82.35 |   64.28 |   68.14 | ...81-295,298-314 
  types.ts         |     100 |      100 |     100 |     100 |                   
 src/memory        |   89.47 |    85.72 |    92.1 |   89.47 |                   
  ...y-document.ts |   89.52 |    84.61 |     100 |   89.52 | ...24-325,329-330 
  ...nel-memory.ts |   97.36 |    96.63 |   96.42 |   97.36 | ...91-293,367-368 
  dream.ts         |    64.6 |    72.22 |      50 |    64.6 | ...04-109,124-165 
  ...entPlanner.ts |     100 |    83.33 |     100 |     100 | 135,145           
  entries.ts       |   75.59 |    84.84 |   83.33 |   75.59 | ...56-157,172-180 
  extract.ts       |   93.82 |    84.09 |     100 |   93.82 | 78-83,122,154-157 
  ...entPlanner.ts |   91.55 |    76.74 |     100 |   91.55 | ...05,118-121,296 
  ...ionPlanner.ts |       0 |        0 |       0 |       0 | 1                 
  forget.ts        |   90.71 |    81.14 |   94.44 |   90.71 | ...17,640,657-663 
  indexer.ts       |   94.14 |       84 |     100 |   94.14 | ...32-233,334,337 
  ...kill-agent.ts |   97.94 |    89.36 |     100 |   97.94 | 82-83,179-180     
  manager.ts       |   78.43 |    83.16 |   77.77 |   78.43 | ...1493,1506-1508 
  ...ent-config.ts |   92.22 |    84.78 |      92 |   92.22 | ...64,473-474,478 
  memoryAge.ts     |   90.47 |    83.33 |     100 |   90.47 | 50-51             
  ...yDiscovery.ts |   93.48 |    90.09 |     100 |   93.48 | ...42,401,629-632 
  paths.ts         |     100 |      100 |     100 |     100 |                   
  ...ing-skills.ts |     100 |       72 |     100 |     100 | 31-35,73-78,97    
  prompt.ts        |   97.26 |    86.79 |     100 |   97.26 | ...10-218,222,225 
  recall.ts        |   86.86 |    86.23 |   92.85 |   86.86 | ...33-538,571-582 
  refresh.ts       |   93.58 |    89.58 |     100 |   93.58 | ...75-176,183-184 
  ...ceSelector.ts |    93.2 |    85.71 |     100 |    93.2 | ...45-146,148-149 
  remember.ts      |   97.21 |    95.29 |     100 |   97.21 | ...29,341,345-347 
  scan.ts          |   93.75 |       80 |     100 |   93.75 | ...08-109,154,157 
  scopes.ts        |     100 |      100 |     100 |     100 |                   
  ...et-scanner.ts |     100 |      100 |     100 |     100 |                   
  ...entPlanner.ts |   79.76 |    76.84 |      80 |   79.76 | ...69-473,476,482 
  status.ts        |   10.52 |      100 |       0 |   10.52 | 41-98             
  store.ts         |   92.92 |    81.81 |     100 |   92.92 | ...16-117,147-148 
  ...git-status.ts |     100 |    85.71 |     100 |     100 | 27                
  ...cret-guard.ts |     100 |      100 |     100 |     100 |                   
  ...emory-sync.ts |   94.24 |    82.85 |     100 |   94.24 | ...34-236,246-247 
  types.ts         |     100 |      100 |     100 |     100 |                   
  ...ontextFile.ts |   81.21 |     79.1 |   81.81 |   81.21 | ...66-280,294-299 
 src/mocks         |       0 |        0 |       0 |       0 |                   
  msw.ts           |       0 |        0 |       0 |       0 | 1-9               
 src/models        |   92.81 |    89.34 |   91.35 |   92.81 |                   
  constants.ts     |     100 |      100 |     100 |     100 |                   
  ...tor-config.ts |   97.77 |    91.83 |     100 |   97.77 | 155,161,171       
  ...capability.ts |     100 |      100 |     100 |     100 |                   
  index.ts         |     100 |      100 |     100 |     100 |                   
  ...nfigErrors.ts |   79.43 |    64.51 |   85.71 |   79.43 | ...,89-96,131-142 
  ...igResolver.ts |   98.71 |    93.33 |     100 |   98.71 | 166,328,334       
  modelRegistry.ts |     100 |    98.07 |     100 |     100 | 177,262           
  modelsConfig.ts  |   89.36 |    86.93 |   88.09 |   89.36 | ...1407,1436-1437 
  types.ts         |     100 |      100 |     100 |     100 |                   
 src/output        |     100 |      100 |     100 |     100 |                   
  ...-formatter.ts |     100 |      100 |     100 |     100 |                   
  types.ts         |     100 |      100 |     100 |     100 |                   
 src/permissions   |   84.44 |    91.62 |   71.77 |   84.44 |                   
  autoMode.ts      |   97.66 |    93.13 |     100 |   97.66 | ...82-589,635,712 
  ...transcript.ts |   98.51 |    86.48 |     100 |   98.51 | 264-265           
  classifier.ts    |      94 |    94.54 |     100 |      94 | 158-165,389-393   
  ...erousRules.ts |     100 |    90.19 |     100 |     100 | 110,133,147,175   
  ...alTracking.ts |     100 |      100 |     100 |     100 |                   
  ...e-commands.ts |   86.77 |     73.8 |     100 |   86.77 | 131-141,210-214   
  index.ts         |     100 |      100 |     100 |     100 |                   
  ...on-manager.ts |   88.26 |     91.9 |   82.35 |   88.26 | ...1374,1480-1484 
  rule-parser.ts   |    94.9 |    92.81 |     100 |    94.9 | ...1552,1586-1588 
  ...-semantics.ts |   70.44 |    91.09 |   46.66 |   70.44 | ...2237,2311-2314 
  types.ts         |     100 |      100 |     100 |     100 |                   
 ...sifier-prompts |   99.06 |    95.23 |     100 |   99.06 |                   
  system-prompt.ts |   99.06 |    95.23 |     100 |   99.06 | 235               
 src/prompts       |   83.63 |      100 |    87.5 |   83.63 |                   
  mcp-prompts.ts   |   18.18 |      100 |       0 |   18.18 | 11-19             
  ...t-registry.ts |     100 |      100 |     100 |     100 |                   
 src/providers     |   85.14 |    80.63 |   82.85 |   85.14 |                   
  all-providers.ts |     100 |      100 |     100 |     100 |                   
  index.ts         |     100 |      100 |     100 |     100 |                   
  install.ts       |   93.11 |     84.5 |     100 |   93.11 | ...56-257,330-331 
  ...-discovery.ts |    95.4 |    94.44 |     100 |    95.4 | 31-32,42-43       
  ...der-config.ts |   75.91 |    73.48 |   78.26 |   75.91 | ...74-475,503-504 
  types.ts         |       0 |        0 |       0 |       0 | 1                 
 ...viders/presets |   98.04 |    91.66 |   63.63 |   98.04 |                   
  ...oding-plan.ts |    87.5 |      100 |       0 |    87.5 | 82-84,87-89,91-94 
  ...a-standard.ts |     100 |      100 |     100 |     100 |                   
  ...token-plan.ts |     100 |      100 |     100 |     100 |                   
  ...m-provider.ts |   97.05 |    81.25 |      75 |   97.05 | 118-119           
  deepseek.ts      |     100 |      100 |     100 |     100 |                   
  grok.ts          |     100 |      100 |     100 |     100 |                   
  idealab.ts       |     100 |      100 |     100 |     100 |                   
  minimax.ts       |     100 |      100 |     100 |     100 |                   
  modelscope.ts    |     100 |      100 |     100 |     100 |                   
  moonshot.ts      |     100 |      100 |     100 |     100 |                   
  openrouter.ts    |     100 |      100 |     100 |     100 |                   
  requesty.ts      |     100 |      100 |     100 |     100 |                   
  zai.ts           |     100 |      100 |     100 |     100 |                   
 src/qwen          |   85.36 |    78.59 |   95.94 |   85.36 |                   
  ...tGenerator.ts |    98.6 |    98.14 |     100 |    98.6 | 103-104           
  qwenOAuth2.ts    |   82.79 |    73.45 |    90.9 |   82.79 | ...1205-1221,1251 
  ...kenManager.ts |   85.36 |     76.8 |     100 |   85.36 | ...52-757,778-783 
 src/resources     |     100 |      100 |     100 |     100 |                   
  ...e-registry.ts |     100 |      100 |     100 |     100 |                   
 src/services      |   90.67 |    86.35 |   96.59 |   90.67 |                   
  ...ionTrailer.ts |     100 |      100 |     100 |     100 |                   
  ...llRegistry.ts |   98.48 |    87.28 |     100 |   98.48 | 81-82,105,474-475 
  branch-points.ts |     100 |    95.23 |     100 |     100 | ...20,211,224,327 
  ...ionService.ts |   97.77 |    96.56 |     100 |   97.77 | ...1098,1241-1249 
  ...ingService.ts |   92.25 |    87.59 |   94.79 |   92.25 | ...2924,2939-2940 
  ...ttribution.ts |   91.73 |    87.71 |      90 |   91.73 | ...80-685,826-827 
  ...utSlimming.ts |    97.2 |    94.23 |     100 |    97.2 | ...39-340,378-381 
  cronScheduler.ts |   94.11 |    89.74 |   98.03 |   94.11 | ...1366,1775-1776 
  cronTasksFile.ts |   95.88 |       92 |     100 |   95.88 | ...72,381-382,520 
  cronTasksLock.ts |   94.44 |    89.47 |     100 |   94.44 | ...02-103,132-133 
  ...eryService.ts |   96.22 |    93.54 |      90 |   96.22 | 121,155-156,161   
  ...oryService.ts |   88.17 |    79.02 |    92.3 |   88.17 | ...1303,1344-1347 
  fileReadCache.ts |    97.5 |    96.07 |     100 |    97.5 | 349-350,363-364   
  ...temService.ts |    92.8 |    84.68 |   94.11 |    92.8 | ...53,479-486,531 
  ...ratedFiles.ts |      96 |    88.23 |     100 |      96 | 119-120,146-147   
  gitInit.ts       |     100 |      100 |     100 |     100 |                   
  ...reeService.ts |   74.75 |    70.76 |   96.07 |   74.75 | ...2296,2325-2326 
  ...on-service.ts |   86.58 |    74.39 |     100 |   86.58 | ...56-460,498-499 
  ...references.ts |   98.57 |    91.42 |     100 |   98.57 | 156-157,217-218   
  ...ionService.ts |   98.26 |    97.23 |     100 |   98.26 | ...65-866,889-890 
  ...ticsDumper.ts |   98.37 |    95.23 |     100 |   98.37 | 185-186           
  ...ureMonitor.ts |   95.82 |    90.52 |   97.05 |   95.82 | ...60,861,875-877 
  ...orRegistry.ts |   97.22 |    90.99 |     100 |   97.22 | ...55-456,609-610 
  ...ttachments.ts |   97.74 |     90.9 |     100 |   97.74 | 298-308,646       
  ...pi-history.ts |   98.94 |    89.13 |     100 |   98.94 | 43                
  ...ersistence.ts |   91.88 |    81.19 |     100 |   91.88 | ...1073-1074,1119 
  ...tory-state.ts |     100 |    95.23 |     100 |     100 | 31                
  ...on-service.ts |   94.61 |    92.44 |   97.22 |   94.61 | ...11-613,669-677 
  ...pr-service.ts |   96.04 |    89.74 |     100 |   96.04 | 72,98-101,190-191 
  ...ce-service.ts |    98.5 |    94.11 |    90.9 |    98.5 | 64-65             
  ...n-registry.ts |    98.8 |    96.73 |     100 |    98.8 | 630,684-685,743   
  ...ken-counts.ts |     100 |       96 |     100 |     100 | 58                
  ...ipt-reader.ts |    93.7 |    91.09 |    97.8 |    93.7 | ...2791-2792,2869 
  ...turn-state.ts |   94.11 |     90.9 |   91.66 |   94.11 | 108-112,129-130   
  ...est-helper.ts |       0 |        0 |       0 |       0 | 1-65              
  ...iter-lease.ts |   84.56 |       75 |    97.8 |   84.56 | ...2666,2688,2702 
  sessionRecap.ts  |   67.56 |    43.47 |     100 |   67.56 | ...60,178,180-183 
  ...ionService.ts |   89.33 |    87.47 |   91.72 |   89.33 | ...4207-4208,4249 
  sessionTitle.ts  |   96.35 |    79.71 |     100 |   96.35 | ...08-311,342-343 
  ...ContextEnv.ts |     100 |    94.73 |     100 |     100 | 76,111            
  ...ionService.ts |   84.43 |    78.45 |   97.18 |   84.43 | ...2496,2502-2507 
  ...pInhibitor.ts |   97.42 |    92.77 |     100 |   97.42 | ...30,169,369-370 
  ...e-encoding.ts |   85.96 |    76.47 |     100 |   85.96 | 58-61,64-65,78-79 
  ...Estimation.ts |     100 |    95.83 |     100 |     100 | 139               
  ...ageService.ts |   97.76 |    91.59 |   93.75 |   97.76 | ...61-262,366,567 
  ...ite-origin.ts |     100 |    93.33 |     100 |     100 | 32                
  ...UseSummary.ts |   94.63 |    88.46 |     100 |   94.63 | ...62-164,214-215 
  ...rd-service.ts |     100 |    88.37 |     100 |     100 | ...29,145-146,241 
  ...oryService.ts |   90.77 |    84.92 |     100 |   90.77 | ...43-546,598-599 
  ...l-registry.ts |   92.99 |    83.19 |     100 |   92.99 | ...66-367,377-378 
  ...reeCleanup.ts |   14.42 |      100 |   33.33 |   14.42 | 58-186            
  ...ionService.ts |   88.36 |     87.8 |     100 |   88.36 | ...48-449,465-466 
 ...icrocompaction |   98.91 |    95.06 |     100 |   98.91 |                   
  microcompact.ts  |   98.91 |    95.06 |     100 |   98.91 | ...60,769,778-779 
 ...s/visionBridge |    98.8 |    92.12 |     100 |    98.8 |                   
  ...capability.ts |     100 |      100 |     100 |     100 |                   
  ...part-utils.ts |     100 |      100 |     100 |     100 |                   
  ...ion-bridge.ts |   98.72 |    82.35 |     100 |   98.72 | 65,71             
  ...ge-service.ts |   98.61 |     94.7 |     100 |   98.61 | ...06,666,679-680 
 src/skills        |   89.78 |    86.08 |   94.73 |   89.78 |                   
  index.ts         |     100 |      100 |     100 |     100 |                   
  ...activation.ts |     100 |    93.33 |     100 |     100 | 93,112            
  skill-curator.ts |   89.71 |    81.54 |     100 |   89.71 | ...01-902,904-907 
  skill-load.ts    |   94.84 |    87.69 |     100 |   94.84 | ...03,223,235-237 
  skill-manager.ts |   86.11 |    85.71 |   86.11 |   86.11 | ...1244,1251-1255 
  skill-paths.ts   |   90.42 |     87.5 |     100 |   90.42 | ...19-120,125-126 
  symlinkScope.ts  |     100 |      100 |     100 |     100 |                   
  types.ts         |   97.91 |    98.07 |     100 |   97.91 | 289-290           
 ...ataviz/scripts |   80.06 |    95.23 |   88.23 |   80.06 |                   
  ...te_palette.js |   80.06 |    95.23 |   88.23 |   80.06 | 261-296,306-328   
 ...s/bundled/loop |   97.48 |    95.77 |     100 |   97.48 |                   
  ...omous-loop.ts |     100 |      100 |     100 |     100 |                   
  ...-task-file.ts |   94.85 |     92.4 |     100 |   94.85 | ...56,367,375-376 
  ...k-resolver.ts |     100 |      100 |     100 |     100 |                   
 src/subagents     |   88.93 |    89.34 |   98.36 |   88.93 |                   
  ...ter-schema.ts |     100 |    98.18 |     100 |     100 | 99                
  ...tin-agents.ts |     100 |      100 |     100 |     100 |                   
  index.ts         |     100 |      100 |     100 |     100 |                   
  ...nt-manager.ts |   85.75 |    86.38 |   97.56 |   85.75 | ...1653,1730-1731 
  types.ts         |     100 |      100 |     100 |     100 |                   
  validation.ts    |   94.14 |    95.23 |     100 |   94.14 | 47-52,65-66,71-76 
 src/telemetry     |   83.23 |    84.98 |   86.51 |   83.23 |                   
  ...ty-tracker.ts |     100 |      100 |     100 |     100 |                   
  config.ts        |     100 |      100 |     100 |     100 |                   
  constants.ts     |     100 |      100 |     100 |     100 |                   
  context-usage.ts |   96.85 |    91.07 |     100 |   96.85 | ...26-127,199-200 
  ...on-metrics.ts |   99.08 |    80.95 |     100 |   99.08 | 185,199           
  ...on-tracing.ts |   80.71 |    81.91 |   79.16 |   80.71 | ...92,499-501,517 
  ...attributes.ts |   96.98 |    91.37 |     100 |   96.98 | ...47-348,366-367 
  ...ag-metrics.ts |     100 |    77.77 |     100 |     100 | 21,40             
  ...t-loop-lag.ts |   96.85 |    85.71 |     100 |   96.85 | 170-173           
  ...-exporters.ts |   65.38 |    83.33 |      50 |   65.38 | ...08-109,112-113 
  ...ai-content.ts |    74.5 |    66.41 |   91.66 |    74.5 | ...1480,1493-1502 
  ...i-provider.ts |     100 |    99.02 |     100 |     100 | 106               
  ...ai-request.ts |   87.88 |    92.79 |   83.78 |   87.88 | ...55-561,564-568 
  gen-ai-usage.ts  |     100 |      100 |     100 |     100 |                   
  index.ts         |     100 |      100 |     100 |     100 |                   
  ...t.circular.ts |       0 |        0 |       0 |       0 | 1-111             
  ...-processor.ts |   99.12 |    96.03 |      95 |   99.12 | 150,379-380       
  ...t.circular.ts |       0 |        0 |       0 |       0 | 1-128             
  loggers.ts       |   60.83 |    77.77 |   66.66 |   60.83 | ...1523,1540-1560 
  metrics.ts       |   80.37 |    82.35 |   80.95 |   80.37 | ...1150,1153-1164 
  otlp-urls.ts     |     100 |      100 |     100 |     100 |                   
  ...attributes.ts |     100 |      100 |     100 |     100 |                   
  ...ime-config.ts |       0 |        0 |       0 |       0 | 1                 
  sanitize.ts      |      80 |    83.33 |     100 |      80 | 35-36,41-42       
  ...rters-grpc.ts |     100 |      100 |     100 |     100 |                   
  ...rters-http.ts |     100 |      100 |     100 |     100 |                   
  sdk-impl.ts      |   94.13 |    86.66 |      75 |   94.13 | ...45,496-497,513 
  sdk.ts           |    82.7 |     90.9 |   66.66 |    82.7 | ...00-204,242-264 
  ...on-context.ts |     100 |      100 |     100 |     100 |                   
  ...ion-events.ts |     100 |      100 |     100 |     100 |                   
  ...on-tracing.ts |   91.29 |    88.88 |    97.5 |   91.29 | ...1946,1975-1978 
  ...etry-utils.ts |     100 |      100 |     100 |     100 |                   
  ...l-decision.ts |     100 |      100 |     100 |     100 |                   
  trace-context.ts |     100 |      100 |     100 |     100 |                   
  ...e-id-utils.ts |     100 |      100 |     100 |     100 |                   
  tracer.ts        |   98.56 |    88.63 |     100 |   98.56 | 52,101            
  types.ts         |   83.26 |    88.81 |   86.36 |   83.26 | ...1467,1471-1478 
  uiTelemetry.ts   |   98.87 |     95.1 |   97.05 |   98.87 | ...59,696,786-787 
 ...ry/qwen-logger |   74.23 |     80.7 |      70 |   74.23 |                   
  event-types.ts   |       0 |        0 |       0 |       0 |                   
  qwen-logger.ts   |   74.23 |    80.53 |   69.49 |   74.23 | ...1122,1160-1161 
 src/test-utils    |   96.38 |    98.64 |   84.09 |   96.38 |                   
  config.ts        |     100 |      100 |     100 |     100 |                   
  ...st-helpers.ts |   94.11 |       90 |     100 |   94.11 | 69-70             
  index.ts         |     100 |      100 |     100 |     100 |                   
  ...mised-lock.ts |     100 |      100 |     100 |     100 |                   
  mock-tool.ts     |   94.85 |      100 |      80 |   94.85 | ...53,227-228,241 
  ...aceContext.ts |     100 |      100 |     100 |     100 |                   
 src/tools         |   87.73 |    86.34 |   90.34 |   87.73 |                   
  ...erQuestion.ts |      90 |    82.75 |   92.85 |      90 | ...01-402,409-410 
  ...-registrar.ts |    77.7 |    66.66 |   66.66 |    77.7 | ...72-277,292-294 
  ...ub-session.ts |   89.72 |    91.48 |   83.33 |   89.72 | ...06-307,318-325 
  cron-create.ts   |   92.26 |    97.72 |      75 |   92.26 | ...,76-77,272-281 
  cron-delete.ts   |   97.56 |      100 |   85.71 |   97.56 | 31-32             
  cron-list.ts     |   98.23 |    95.45 |   88.88 |   98.23 | 57-58             
  diffOptions.ts   |     100 |      100 |     100 |     100 |                   
  display-image.ts |   87.42 |    85.71 |    90.9 |   87.42 | ...29-134,194-195 
  edit.ts          |   82.76 |    86.88 |   82.35 |   82.76 | ...45-746,865-915 
  ...r-worktree.ts |   83.14 |    68.42 |   88.88 |   83.14 | ...84-187,278-279 
  enterPlanMode.ts |      85 |       84 |      90 |      85 | ...28-133,161-175 
  exit-worktree.ts |   83.29 |     83.8 |   94.73 |   83.29 | ...14-515,537-538 
  exitPlanMode.ts  |      95 |    85.29 |     100 |      95 | ...21-325,344,378 
  ...permission.ts |     100 |      100 |     100 |     100 |                   
  glob.ts          |   96.33 |     88.5 |     100 |   96.33 | ...24-225,373,376 
  grep.ts          |   90.73 |    86.71 |   86.36 |   90.73 | ...76-677,727-728 
  ...adTracking.ts |     100 |      100 |     100 |     100 |                   
  image-gen.ts     |   91.66 |    78.12 |   91.66 |   91.66 | ...13-214,221-222 
  list-agents.ts   |   96.52 |    95.55 |    87.5 |   96.52 | 37-38,53-54       
  loop-wakeup.ts   |   99.27 |     93.1 |     100 |   99.27 | 45                
  ls.ts            |   96.74 |    90.54 |     100 |   96.74 | 176-181,212,216   
  lsp.ts           |   72.71 |     59.9 |    90.9 |   72.71 | ...1212,1214-1215 
  ...fier-input.ts |     100 |      100 |     100 |     100 |                   
  ...nt-manager.ts |   82.07 |    80.15 |   85.71 |   82.07 | ...3243,3245-3246 
  mcp-client.ts    |   86.25 |    87.61 |   93.93 |   86.25 | ...2552,2556-2559 
  ...ry-timeout.ts |     100 |      100 |     100 |     100 |                   
  mcp-errors.ts    |     100 |      100 |     100 |     100 |                   
  ...pool-entry.ts |   79.21 |    85.71 |   81.57 |   79.21 | ...1342,1350-1351 
  ...ool-events.ts |       8 |        0 |       0 |       8 | 132-158           
  mcp-pool-key.ts  |    97.5 |    93.93 |     100 |    97.5 | 178-179           
  ...ce-content.ts |   96.55 |    91.17 |     100 |   96.55 | 80-82             
  mcp-retry.ts     |   97.67 |    95.65 |     100 |   97.67 | 131-132           
  ...ion-config.ts |     100 |      100 |     100 |     100 |                   
  mcp-status.ts    |     100 |      100 |     100 |     100 |                   
  mcp-tool.ts      |   98.14 |     93.2 |     100 |   98.14 | ...1269,1324-1325 
  ...sport-pool.ts |   83.98 |     80.3 |   88.46 |   83.98 | ...1411,1418-1422 
  ...ace-budget.ts |   87.27 |     82.6 |     100 |   87.27 | ...00-305,340-345 
  memory-config.ts |     100 |      100 |     100 |     100 |                   
  ...iable-tool.ts |     100 |    84.61 |     100 |     100 | 101,108           
  monitor.ts       |   91.82 |    83.09 |   88.46 |   91.82 | ...99,612,810-815 
  notebook-edit.ts |   85.71 |    77.39 |   82.35 |   85.71 | ...96-912,958-959 
  ...escendants.ts |   36.17 |    64.51 |   55.55 |   36.17 | ...46-310,385-390 
  ...nforcement.ts |   83.21 |    90.69 |     100 |   83.21 | 147-158,207-220   
  read-file.ts     |   95.49 |    88.61 |    87.5 |   95.49 | ...49,464,536-537 
  ...p-resource.ts |   96.85 |      100 |   91.66 |   96.85 | 92-96             
  readManyFiles.ts |   96.04 |    82.25 |     100 |   96.04 | ...41,594,604-608 
  ...d-artifact.ts |   85.68 |    81.59 |   94.73 |   85.68 | ...1071,1095-1096 
  ...t-findings.ts |   99.13 |    93.93 |    92.3 |   99.13 | 255-257           
  ...t-shutdown.ts |    87.2 |    86.66 |   77.77 |    87.2 | ...,75-79,162-165 
  ripGrep.ts       |    94.6 |    87.34 |   95.45 |    94.6 | ...33-734,740-741 
  ...-transport.ts |   71.42 |    55.55 |   71.42 |   71.42 | ...36-137,143-144 
  send-message.ts  |   86.86 |    93.18 |      75 |   86.86 | ...20-426,568-575 
  ...n-mcp-view.ts |   94.07 |    91.89 |    90.9 |   94.07 | 131-139           
  shell.ts         |   78.96 |    84.29 |      93 |   78.96 | ...5036,5111-5112 
  skill-utils.ts   |     100 |      100 |     100 |     100 |                   
  skill.ts         |   93.56 |    90.78 |   91.66 |   93.56 | ...49,653,701-723 
  ...-constants.ts |     100 |      100 |     100 |     100 |                   
  ...eticOutput.ts |   95.12 |      100 |      80 |   95.12 | 87-88             
  task-create.ts   |    94.4 |    93.75 |   83.33 |    94.4 | 45-49,63-64,95    
  task-list.ts     |   80.43 |    86.95 |   85.71 |   80.43 | ...67,121,125-132 
  task-stop.ts     |   93.14 |    96.29 |    87.5 |   93.14 | 39-40,54-64       
  task-update.ts   |   82.87 |     86.5 |   92.85 |   82.87 | ...54-564,588-599 
  team-create.ts   |   97.24 |     87.5 |   85.71 |   97.24 | 48-49,129-130     
  team-delete.ts   |   88.67 |     87.5 |   85.71 |   88.67 | ...2-48,72-73,129 
  ...n-approval.ts |   92.14 |    96.96 |   81.81 |   92.14 | 38-39,42-43,93-99 
  todoWrite.ts     |   95.73 |    90.47 |   93.75 |   95.73 | ...48-552,565-570 
  ...repeat-key.ts |     100 |      100 |     100 |     100 |                   
  tool-error.ts    |     100 |      100 |     100 |     100 |                   
  tool-names.ts    |     100 |      100 |     100 |     100 |                   
  tool-registry.ts |   80.72 |    82.95 |   86.53 |   80.72 | ...1106,1114-1115 
  ...-finalizer.ts |    98.1 |    92.36 |   93.33 |    98.1 | ...34-235,237-241 
  ...iagnostics.ts |   99.06 |    97.69 |   91.66 |   99.06 | 133-134,205       
  ...-retention.ts |     100 |    95.83 |     100 |     100 | 116               
  tool-search.ts   |    96.2 |    89.79 |   93.75 |    96.2 | ...10,260-265,428 
  tool-utils.ts    |   97.46 |    96.55 |     100 |   97.46 | 26-27             
  tools.ts         |   92.93 |    92.18 |      92 |   92.93 | ...67-568,584-590 
  truncation.ts    |   90.61 |    90.35 |     100 |   90.61 | ...53-461,498-504 
  ...reapproved.ts |   99.27 |    94.11 |     100 |   99.27 | 170               
  web-fetch.ts     |   96.05 |    90.54 |   96.77 |   96.05 | ...85-786,800-801 
  web-search.ts    |   90.58 |    83.57 |      80 |   90.58 | ...1025,1083-1086 
  write-file.ts    |   87.29 |    86.15 |   89.47 |   87.29 | ...53-856,893-928 
  zoom-image.ts    |   95.76 |    93.93 |    90.9 |   95.76 | 54-59,203-204     
 src/tools/agent   |   87.26 |    88.53 |   89.71 |   87.26 |                   
  agent.ts         |   85.88 |    87.66 |   87.35 |   85.88 | ...4277,4311-4321 
  fork-profile.ts  |   93.65 |       90 |     100 |   93.65 | ...33-134,171-174 
  fork-subagent.ts |   98.73 |       95 |     100 |   98.73 | 101-102,173       
 ...tools/artifact |   95.83 |    92.51 |   88.63 |   95.83 |                   
  artifact-tool.ts |   91.69 |    88.46 |   71.42 |   91.69 | ...20-321,329-332 
  ...-publisher.ts |     100 |    85.71 |     100 |     100 | 32                
  ...-publisher.ts |   96.74 |    97.72 |    87.5 |   96.74 | 29-30,156-157     
  html.ts          |     100 |    96.77 |     100 |     100 | 122               
  ...-publisher.ts |     100 |       80 |     100 |     100 | 30                
  oss-publisher.ts |    98.1 |    91.48 |     100 |    98.1 | 43-45             
  publisher.ts     |     100 |      100 |     100 |     100 |                   
 ...tools/workflow |   89.33 |    87.68 |   82.75 |   89.33 |                   
  workflow.ts      |   89.33 |    87.68 |   82.75 |   89.33 | ...33,878,880-881 
 src/utils         |   92.79 |    89.75 |    96.9 |   92.79 |                   
  ...Controller.ts |     100 |      100 |     100 |     100 |                   
  ...ssageQueue.ts |     100 |      100 |     100 |     100 |                   
  ...cFileWrite.ts |      95 |    92.76 |     100 |      95 | ...49-550,657-661 
  auth-type.ts     |     100 |      100 |     100 |     100 |                   
  bareMode.ts      |   81.81 |      100 |      50 |   81.81 | 18-19             
  ...ry-content.ts |   98.45 |    95.79 |     100 |   98.45 | 132-133,159-160   
  browser.ts       |   86.84 |    78.94 |     100 |   86.84 | 34,36-37,65-66    
  btwUtils.ts      |   13.95 |      100 |       0 |   13.95 | 17-31,34-55       
  bundlePaths.ts   |     100 |      100 |     100 |     100 |                   
  ...on-context.ts |     100 |      100 |     100 |     100 |                   
  ...igResolver.ts |     100 |      100 |     100 |     100 |                   
  ...engthError.ts |   91.06 |    89.47 |     100 |   91.06 | ...46-147,154-155 
  ...n-branches.ts |   95.89 |    94.11 |      95 |   95.89 | ...99-500,512-525 
  ...tion-chain.ts |     100 |      100 |     100 |     100 |                   
  cronDisplay.ts   |     100 |    97.61 |     100 |     100 | 46                
  cronParser.ts    |   95.34 |    93.33 |     100 |   95.34 | 41-42,47-48,70-71 
  debugLogger.ts   |   99.49 |    96.29 |     100 |   99.49 | 224               
  ...qwen-model.ts |     100 |      100 |     100 |     100 |                   
  editHelper.ts    |   93.63 |     83.9 |     100 |   93.63 | ...27-428,462-463 
  editor.ts        |   97.65 |    95.45 |     100 |   97.65 | ...35-336,338-339 
  encoding.ts      |     100 |      100 |     100 |     100 |                   
  env.ts           |     100 |      100 |     100 |     100 |                   
  ...arResolver.ts |   94.28 |    88.88 |     100 |   94.28 | 28-29,125-126     
  errorParsing.ts  |     100 |      100 |     100 |     100 |                   
  ...rReporting.ts |   95.65 |    93.33 |     100 |   95.65 | 37-38             
  errors.ts        |   88.92 |    93.58 |      68 |   88.92 | ...92,394,410-411 
  fetch.ts         |   90.68 |    82.63 |     100 |   90.68 | ...72,483-484,503 
  ...ng-options.ts |     100 |      100 |     100 |     100 |                   
  file-identity.ts |     100 |      100 |     100 |     100 |                   
  fileUtils.ts     |   94.79 |    92.16 |   96.29 |   94.79 | ...2076,2084-2085 
  formatters.ts    |     100 |      100 |     100 |     100 |                   
  ...eUtilities.ts |    92.4 |    86.95 |     100 |    92.4 | ...52-158,168-169 
  ...rStructure.ts |   94.39 |    94.28 |     100 |   94.39 | ...29-132,343-348 
  getPty.ts        |   31.57 |       50 |     100 |   31.57 | 26-38             
  git-branches.ts  |   91.64 |    84.87 |    92.3 |   91.64 | ...00,415-420,580 
  ...fig-safety.ts |   97.01 |       80 |     100 |   97.01 | 53-54             
  git-ignore.ts    |     100 |      100 |     100 |     100 |                   
  gitDiff.ts       |   95.19 |    81.36 |     100 |   95.19 | ...1073,1419-1420 
  gitDirect.ts     |   98.84 |    94.28 |     100 |   98.84 | 234,318           
  ...noreParser.ts |   94.48 |    93.22 |     100 |   94.48 | ...23-124,158-159 
  gitUtils.ts      |   78.83 |    82.35 |    87.5 |   78.83 | ...22-123,164-215 
  github-prs.ts    |   96.06 |    84.09 |     100 |   96.06 | 251,350-358       
  iconvHelper.ts   |     100 |      100 |     100 |     100 |                   
  ...rePatterns.ts |     100 |      100 |     100 |     100 |                   
  image-view.ts    |   95.08 |    93.47 |     100 |   95.08 | ...62-166,234-238 
  ...lPromptIds.ts |     100 |      100 |     100 |     100 |                   
  ...on-context.ts |     100 |      100 |     100 |     100 |                   
  is-tool.ts       |     100 |      100 |     100 |     100 |                   
  jsonl-utils.ts   |   96.15 |    93.51 |     100 |   96.15 | ...86-387,429-432 
  ...-detection.ts |     100 |      100 |     100 |     100 |                   
  ...iconv-lite.ts |     100 |      100 |     100 |     100 |                   
  ...simple-git.ts |   96.77 |    91.66 |     100 |   96.77 | 38                
  ...m-headless.ts |      96 |    88.88 |     100 |      96 | 34                
  ...-constants.ts |   94.73 |     92.3 |     100 |   94.73 | 66-67             
  ...iagnostics.ts |    96.4 |     94.2 |     100 |    96.4 | ...66,293-294,376 
  ...tProcessor.ts |   94.01 |     90.1 |     100 |   94.01 | ...47-353,445-446 
  ...Inspectors.ts |     100 |      100 |     100 |     100 |                   
  modelId.ts       |   98.96 |    98.24 |     100 |   98.96 | 154               
  ...kerChecker.ts |    90.9 |    91.66 |     100 |    90.9 | 73-79             
  notebook.ts      |   94.57 |    89.91 |   95.83 |   94.57 | ...21,333,385-387 
  openaiLogger.ts  |   91.66 |    89.74 |     100 |   91.66 | ...26-228,251-256 
  osc8.ts          |   54.26 |    64.86 |   83.33 |   54.26 | ...72-195,197-257 
  partUtils.ts     |     100 |    98.64 |     100 |     100 | 211               
  pathReader.ts    |     100 |      100 |     100 |     100 |                   
  paths.ts         |   90.88 |     90.6 |     100 |   90.88 | ...28-629,631-633 
  pdf.ts           |   92.17 |    85.81 |     100 |   92.17 | ...64-565,606-611 
  ...s-liveness.ts |     100 |    93.47 |     100 |     100 | 62,72,108         
  projectPath.ts   |     100 |      100 |     100 |     100 |                   
  projectRoot.ts   |   71.73 |    78.57 |     100 |   71.73 | 54-66             
  ...ectSummary.ts |   89.62 |    72.41 |     100 |   89.62 | ...40-145,196-199 
  ...tIdContext.ts |     100 |      100 |     100 |     100 |                   
  proxyUtils.ts    |     100 |      100 |     100 |     100 |                   
  ...rDetection.ts |   71.15 |       86 |     100 |   71.15 | ...-90,96-101,147 
  ...noreParser.ts |   92.63 |    91.66 |     100 |   92.63 | ...77-178,197-198 
  rateLimit.ts     |   93.75 |    89.62 |     100 |   93.75 | ...13,218-219,262 
  ...text-range.ts |   96.98 |    87.36 |     100 |   96.98 | ...87-688,763-764 
  retry.ts         |   96.09 |    92.52 |     100 |   96.09 | ...72,563-564,582 
  retryContext.ts  |     100 |      100 |     100 |     100 |                   
  ...sification.ts |   97.63 |    97.08 |     100 |   97.63 | ...17,251-252,278 
  retryPolicy.ts   |   97.72 |    90.56 |     100 |   97.72 | 130-131           
  ripgrepUtils.ts  |   90.04 |    93.43 |   95.45 |   90.04 | ...55-565,598-599 
  ...iagnostics.ts |   83.08 |     67.5 |   92.59 |   83.08 | ...23,543-544,550 
  ...tchOptions.ts |   84.87 |    86.71 |   96.29 |   84.87 | ...71,696,725-734 
  ...odelPrefix.ts |     100 |      100 |     100 |     100 |                   
  runtimeStatus.ts |   97.77 |    91.48 |     100 |   97.77 | 172-173           
  safe-mode.ts     |     100 |      100 |     100 |     100 |                   
  safeJsonParse.ts |     100 |      100 |     100 |     100 |                   
  ...nStringify.ts |     100 |      100 |     100 |     100 |                   
  ...-child-env.ts |     100 |      100 |     100 |     100 |                   
  ...aConverter.ts |   98.22 |    98.01 |     100 |   98.22 | 100,102-103       
  ...aValidator.ts |   92.09 |    83.65 |   90.47 |   92.09 | ...60,882-883,896 
  ...r-launcher.ts |   96.35 |    93.97 |   85.71 |   96.35 | ...35-336,347-348 
  sedEditParser.ts |   91.78 |    92.18 |     100 |   91.78 | ...66-569,645-646 
  ...nIdContext.ts |     100 |       90 |     100 |     100 | 95                
  ...orageUtils.ts |   96.21 |    86.32 |     100 |   96.21 | ...70,386,466,485 
  ...-pager-env.ts |     100 |      100 |     100 |     100 |                   
  ...fety-rules.ts |     100 |     89.7 |     100 |     100 | ...01,304,309-311 
  shell-utils.ts   |   86.37 |    88.59 |     100 |   86.37 | ...2361,2368-2372 
  ...lAstParser.ts |    98.3 |    91.59 |     100 |    98.3 | ...1340-1342,1352 
  ...nlyChecker.ts |   96.33 |    96.57 |     100 |   96.33 | ...83-284,292-293 
  sideQuery.ts     |   86.82 |    86.66 |     100 |   86.82 | ...79-185,187-193 
  ...pEventSink.ts |     100 |       80 |     100 |     100 | 61                
  ...tGenerator.ts |     100 |      100 |     100 |     100 |                   
  ...ameContext.ts |     100 |      100 |     100 |     100 |                   
  symlink.ts       |   77.77 |    57.14 |     100 |   77.77 | 44,54-59          
  ...emEncoding.ts |   96.36 |    91.17 |     100 |   96.36 | 59-60,124-125     
  terminal-env.ts  |      50 |      100 |       0 |      50 | 18-19             
  terminalSafe.ts  |     100 |      100 |     100 |     100 |                   
  ...Serializer.ts |   98.72 |       90 |     100 |   98.72 | 42-43,134,201-203 
  testUtils.ts     |   53.33 |      100 |   33.33 |   53.33 | ...53,59-64,70-72 
  ...-constants.ts |     100 |      100 |     100 |     100 |                   
  textUtils.ts     |      65 |      100 |      75 |      65 | 56-75             
  thoughtUtils.ts  |     100 |    95.65 |     100 |     100 | 99                
  ...-converter.ts |   95.23 |    85.71 |     100 |   95.23 | 36-37             
  ...error-type.ts |     100 |      100 |     100 |     100 |                   
  ...name-utils.ts |     100 |      100 |     100 |     100 |                   
  ...ultCleanup.ts |   54.62 |    35.71 |      75 |   54.62 | ...03-105,108-134 
  ...Compaction.ts |   96.83 |     92.7 |     100 |   96.83 | ...37-342,344-349 
  ...pt-records.ts |   87.61 |    86.23 |     100 |   87.61 | ...80-484,514-529 
  ...-constants.ts |     100 |      100 |     100 |     100 |                   
  windowsPath.ts   |   89.47 |    79.31 |     100 |   89.47 | ...57-58,62,90-91 
  ...-directory.ts |    83.7 |    80.95 |    87.5 |    83.7 | ...37-238,252-253 
  ...ifact-path.ts |   94.11 |    92.85 |     100 |   94.11 | 32-33             
  ...aceContext.ts |   95.39 |    89.47 |     100 |   95.39 | ...16-317,321-322 
  xml.ts           |    97.8 |    87.69 |     100 |    97.8 | 98-99             
  yaml-parser.ts   |   83.87 |    77.27 |     100 |   83.87 | ...31-234,239-240 
 ...ils/filesearch |   83.94 |    80.75 |   94.78 |   83.94 |                   
  crawlCache.ts    |     100 |      100 |     100 |     100 |                   
  crawler.ts       |    82.9 |    76.81 |   95.08 |    82.9 | ...1563,1597-1598 
  fileSearch.ts    |   93.78 |    87.67 |     100 |   93.78 | ...71-272,274-275 
  fzfWorker.ts     |       0 |        0 |       0 |       0 | 1-109             
  ...rkerHandle.ts |   84.05 |    75.86 |      90 |   84.05 | ...30-334,340-341 
  ignore.ts        |     100 |    97.36 |     100 |     100 | 187               
  result-cache.ts  |     100 |    93.75 |     100 |     100 | 49                
 ...uest-tokenizer |    92.3 |      100 |   88.88 |    92.3 |                   
  ...ageFormats.ts |   81.81 |      100 |   66.66 |   81.81 | 56-61             
  textTokenizer.ts |     100 |      100 |     100 |     100 |                   
-------------------|---------|----------|---------|---------|-------------------

For detailed HTML reports, please see the 'coverage-reports-22.x-ubuntu-latest' artifact from the main CI run.

@qwen-code-ci-bot qwen-code-ci-bot left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Partially reviewed — gaps disclosed. Suggestions are inline.

Not explored to full depth (tool budget reached): "agent 6b": executing packages/core/src/agents/team/TeamManager.ghost-member.test.ts — blocked by the shared worktree's build prerequisite ( packages/core/dist ) being re….

Not reviewed: reverse audit — stopped before round 3 by the review time budget.

Test Plan (not a blocker): src/agents/team/TeamManager.ghost-member.test.tsno such file or directory.

Deferred under the convergence posture (round 2, not a blocker) — recorded, not requested in this round:

  • packages/core/src/agents/team/TeamManager.ghost-member.test.ts:531 — [review] D2-1 harness boilerplate duplicated verbatim across the two describe blocks
中文说明

仅完成部分审查,审查缺口已披露。 建议见行内评论。

未探索到全部深度(达到工具调用预算):"agent 6b"executing packages/core/src/agents/team/TeamManager.ghost-member.test.ts — blocked by the shared worktree's build prerequisite ( packages/core/dist ) being re…

未审查:反向审计——评审时间预算不足,未能开始第 3 轮。

Test Plan(非阻断):src/agents/team/TeamManager.ghost-member.test.tsno such file or directory

收敛姿态下延后(第 2 轮,非阻断)——已记录,本轮不要求修改:共 1 条(原文未翻译,列表见上方英文部分)。

— qwen3.8-max via Qwen Code /review (v0.22.3)

Comment on lines +374 to +375
this.teamFileWritesCommitted <= options.onlyIfCommittedAfter
) {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Suggestion] R1-1: Still stands — round 2 re-verified this with an independent re-derivation and an executed mutation. The gate's skip branch is never tested with teamFileWritesCommitted strictly between 0 and the push watermark — a committed write below the watermark plus a rejected write that advanced teamFileWritesStarted past it. Alpha's write seq 1 commits (committed=1); beta's success write seq 2 rejects with ENOSPC and beta rolls back; gamma is pushed (watermark 2) and its spawn fails with no further writes. The correct behaviour is skip (1 ≤ 2), but the one-line mutation <==== on the anchored comparison passes all nine existing tests, and the mutant then fires the redundant compensating write in this interleaving — with the disk still full that write rejects and emits the misleading <team_error> ghost-member leader notice, the exact symptom #10297 removes. A future edit to this comparison could regress the fix with the whole suite green.

Witness:

Round-2 mutation run (isolated scratch tree, TeamManager.ghost-member.test.ts):
BASE (<=):  9 passed
MUT  (===): 9 passed             <- mutant survives
MUT  (<):   3 failed | 6 passed  <- comparator live, so survival is real
with the proposed strict-between test added:
BASE (<=):  10 passed
MUT  (===): 1 failed | 9 passed - AssertionError: expected 3 to be 2
            (the mutant runs the redundant compensating write)

Suggested fix: add one test to the #10297 describe block — alpha's write commits normally; arm vi.spyOn(teamHelpers, 'writeTeamFile').mockRejectedValueOnce(new Error('ENOSPC: no space left on device')) so beta's success write rejects and beta's spawn rejects; push gamma and reject gamma's backend gate so gamma fails with no new write; assert the total writeTeamFile call count shows no compensating write ran and leaderSpy was not called.

Fix witness: that new strict-between test is the acceptance criterion — mutate <= to === and run it; it must go red, proving it pins the comparison the suite currently leaves unguarded.

中文说明

仍然成立——第二轮通过独立重新推导与执行变异重新验证了该结论。门控的跳过分支从未测试过 teamFileWritesCommitted 严格介于 0 与 push 水位之间的场景——即水位之下有一笔已提交的写入、同时有一笔被拒写入把 teamFileWritesStarted 推过水位。设 alpha 的写入序号 1 提交(committed=1);beta 的成功写入序号 2 以 ENOSPC 被拒并回滚;gamma 被 push(水位 2)且其 spawn 失败、无后续写入。正确行为是跳过(1 ≤ 2),但把锚定比较单行变异为 <==== 能通过全部 9 个现有测试,而该变异体在此交错下会执行多余的补偿写——磁盘仍满时该写入被拒并发出误导性的 <team_error> 幽灵成员 leader 通知,正是 #10297 要消除的症状。未来对这处比较的改动可能在整个套件全绿的情况下让修复回归。

建议修复:在 #10297 describe 块中补一个测试——alpha 的写入正常提交;用 vi.spyOn(teamHelpers, 'writeTeamFile').mockRejectedValueOnce(new Error('ENOSPC: no space left on device')) 让 beta 的成功写入被拒、spawn 失败;push gamma 并拒绝其后端门控使其失败且无新写入;断言 writeTeamFile 总调用次数表明没有补偿写执行且 leaderSpy 未被调用。

修复见证:该新的严格介于测试即验收标准——把 <= 变异为 === 后运行它必须变红,证明它钉住了当前套件未设防的比较。

— qwen3.8-max via Qwen Code /review (v0.22.3)

Comment on lines +376 to +379
// No write that started inside the failed member's window
// committed, so nothing on disk can contain the rolled-back
// member — skip the compensating write.
return;

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Suggestion] R1-2: Still stands — re-verified at this commit. The gate's skip path returns silently — no debug log, no trail — so a skipped compensating write is indistinguishable in logs from one that never ran. The only observability on this path is the debug.warn and the leader <team_error> notice, and both sit inside the compensating-write failure catch — unreachable when the gate skips. When a ghost member surfaces in config.json after a failed spawn (the exact #10208/#10297 bug family), the oncall greps debug output and finds nothing for the skipped case — identical to the catch path never having run at all — so validating or falsifying the gate in production requires reproducing the exact interleaving blind. The adjacent failure branch already leaves a trail precisely so a resurfaced ghost member can be told apart from a compensating write that itself failed; the new skip branch is the one outcome that trail cannot now distinguish.

Witness:

Read-based re-check at HEAD 176ed09b:
skip branch (TeamManager.ts:376-380) contains no debug.* call;
the only debug.warn on the path is at :736 and the only leaderMessageCallback at :745
— both inside catch (writeErr), unreachable when the gate skips.

Suggested fix: log the skip before returning via the existing debug logger, naming both watermark values, e.g. Skipping compensating team-file write after failed spawn: committed watermark ${this.teamFileWritesCommitted} did not pass push watermark ${options.onlyIfCommittedAfter}.

Fix witness: add a debug-logger spy assertion to the solo skip test asserting the skip message and both watermark values — deleting the log line must turn that test red.

中文说明

仍然成立——已在该提交上重新验证。门控的跳过路径静默返回——没有 debug 日志、没有任何痕迹——因此被跳过的补偿写在日志中与从未运行过无法区分。该路径上唯一的可观测性是 debug.warn 与 leader <team_error> 通知,而两者都在补偿写失败的 catch 内——门控跳过时不可达。当失败 spawn 后 config.json 中出现幽灵成员(正是 #10208/#10297 一族缺陷)时,oncall 检索 debug 输出,对"被跳过"这种情形什么都找不到——与 catch 路径从未执行完全一样——于是在生产中验证或证伪该门控只能盲目复现那个精确交错。相邻的失败分支特意留下痕迹,正是为了让重新出现的幽灵成员能与"补偿写本身失败"区分开;新的跳过分支是这条痕迹目前无法区分的唯一结果。

建议修复:在返回前用现有 debug 日志器记录跳过,并给出两个水位值,例如 Skipping compensating team-file write after failed spawn: committed watermark ${this.teamFileWritesCommitted} did not pass push watermark ${options.onlyIfCommittedAfter}

修复见证:在单独跳过用例中加一个 debug-logger spy 断言,断言跳过消息与两个水位值——删除该日志行必须使该测试变红。

— qwen3.8-max via Qwen Code /review (v0.22.3)

Comment on lines +373 to +374
options?.onlyIfCommittedAfter !== undefined &&
this.teamFileWritesCommitted <= options.onlyIfCommittedAfter

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Suggestion] R1-3: Still stands — independently re-derived by this round's reverse audit and re-executed as a flip probe at this commit. Because the gate reads teamFileWritesCommitted at queued-task run time, it also trips on writes that only drained after the failed member's rollback and never snapshotted it — preserving, in one narrower interleaving the pre-PR synchronous check correctly skipped, the redundant compensating write (and its misleading leader notice on failure) this PR exists to remove. Concretely: K's write V is in flight; L's successful spawn queues write W behind V; M is pushed (watermark N = V's seq) and M's spawn fails fast — rollback removes M and queues compensating task C_M with onlyIfCommittedAfter: N. V settles after the rollback; W drains next, takes seq N+1, snapshots the post-rollback roster (M already removed), and commits. C_M then sees N+1 > N and fires, rewriting state that is already on disk — and if that redundant write rejects under the same degraded-disk onset #10297 targets, the leader receives a ghost-member <team_error> about M despite nothing on disk containing M. No ghost or data loss results — C_M's snapshot is the authoritative post-rollback state — so this is a residual of the exact symptom, not a correctness regression.

Witness:

Round-2 flip probe (isolated scratch tree):
PR arm:  writeLog=["#1[alpha]","#2[alpha,beta]","#3[alpha,beta]"]
         notices=["<team_error>Compensating team-file write after failed spawn of gamma@test-team failed: ENOSPC..."]
         persisted=["alpha","beta"]   (#3 is the redundant compensating write)
Reverted to the pre-PR synchronous gate:
         writeLog=["#1[alpha]","#2[alpha,beta]"]   notices=[]

Suggested fix: proportionate fix (round 1): extend the gate's doc comment above persistTeamFile to state that commits from writes started after the rollback also trip the gate — conservative over-fire, never a ghost. Alternative exact fix (round-2 auditor): sample teamFileWritesStarted in the catch block after rollback() and advance a second watermark at the commit point only for writes at-or-below that sample, comparing the gate against it. Any added bookkeeping must preserve seq monotonicity and the serial-commit order the gate relies on — TeamManager.ts:231-233 ("Deliberately monotonic — a rejected write keeps its number so a later write cannot reuse the value and hide at or below an earlier member's push watermark (#10297)").

Fix witness: a new test that holds an initial write in flight, queues a second write behind it, pushes a member whose spawn fails immediately, releases the in-flight write only after the rollback settles, and asserts the compensating write did not run — it goes red on the current gate, and any exact fix must keep it green alongside the existing five-step interleaving test (persistedNames must not contain 'beta').

中文说明

仍然成立——本轮反向审计独立重新推导了该交错,并在该提交上以翻转探针重新执行验证。由于门控在队列任务运行时才读取 teamFileWritesCommitted,它也会被那些在失败成员回滚之后才流出、从未快照到该成员的写入触发——在一个更窄的交错下保留了本 PR 要消除的"多余补偿写(及其失败时的误导性通知)",而 PR 前的同步检查在该交错下是正确跳过的。具体:K 的写入 V 在途;L 的成功 spawn 把写入 W 排在 V 之后;M 被 push(水位 N = V 的序号)后 spawn 快速失败——回滚移除 M 并把补偿任务 C_M 以 onlyIfCommittedAfter: N 入队。V 在回滚后落定;W 随后流出,取序号 N+1,快照回滚后的名单(M 已移除)并提交。C_M 看到 N+1 > N 便触发,重写一份已在磁盘上的状态——若这次多余写入在 #10297 针对的同一次磁盘劣化下失败,leader 会收到一条关于 M 的幽灵成员 <team_error>,而磁盘上根本没有任何包含 M 的内容。不会产生幽灵或数据丢失——C_M 的快照即回滚后的权威状态——所以这是同一症状的残留,而非正确性回归。

建议修复(相称修法,第一轮):把 persistTeamFile 上方的门控文档注释扩展为"回滚之后才启动的写入若有提交同样会触发门控——保守的过度触发,绝不产生幽灵"。替代的精确修法(第二轮审计):在 catch 块 rollback() 之后采样 teamFileWritesStarted,提交点仅为不超过该采样的写入推进第二个水位,门控与该水位比较。任何新增记账都必须保持序号单调与门控依赖的串行提交顺序——TeamManager.ts:231-233("刻意单调——被拒写入保留其序号,后续写入无法复用该值藏到更早成员的水位之下(#10297)")。

修复见证:新增测试——挂起一笔初始写入、在其后入队第二笔、push 一个立即 spawn 失败的成员、仅在回滚落定后释放初始写入,断言补偿写未执行——该测试在当前门控下变红;任何精确修法必须与既有五步交错测试(persistedNames 不含 'beta')一起保持其绿色。

— qwen3.8-max via Qwen Code /review (v0.22.3)

Comment on lines +729 to +732
await this.persistTeamFile({
onlyIfCommittedAfter: writesStartedAtPush,
});
} catch (writeErr) {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Suggestion] R1-4: Still stands — the code here is byte-identical to round 1, and this round's performance walk independently re-derived the behaviour. Moving the skip/fire decision into the serialized write queue makes a failed spawn's rejection block behind unrelated pre-push roster writes that never settle — where the pre-PR synchronous gate rejected immediately — so the spawn error can hang indefinitely behind a wedged write. A success-path write that started before the failed member's push hangs without settling (writeTeamFile is await fs.mkdir + atomic rename with no timeout anywhere on the write path; an unresponsive NFS/FUSE mount or wedged disk can hang it indefinitely). A teammate spawn then fails; the member is already rolled back and the gate's outcome is a foregone skip — nothing committed in the window — but the gate task chains behind the hung write, so spawnTeammate never reaches throw err and the leader's spawn tool call hangs indefinitely instead of surfacing the spawn error. Pre-PR the synchronous check was false in this exact interleaving and the rejection was immediate. The endorsed "await in-flight writes" tradeoff bounds the count of queued writes, not wall-clock, when one of them never settles. Two mitigating facts keep this at Suggestion: the hang class pre-existed in the sibling in-window interleaving pre-PR (the diff widens an existing failure class rather than adding a new one), and no wrong state results — the skip is the correct outcome once the write settles.

Witness:

Round-1 probe (isolated scratch tree):
PR arm:  spawnX outcome while W0 hung: STILL_PENDING_AFTER_1500MS
         writeCalls at race time: 1; after release+drain: 1 (foregone skip materialized)
Reverted to the pre-PR synchronous gate:
         spawnX outcome while W0 hung: REJECTED: spawn failed
Round-2: empty git diff e11d980..HEAD on both changed files (byte-identical).

Suggested fix: don't let the decision wait block error propagation — race the await against a generous timeout and proceed to throw err on expiry, leaving the gate task queued (the serial queue still lands or skips the repair in order), and move the warn/leader-notice handling into the task's settlement path since catch (writeErr) no longer observes it. The fix must keep the compensating task queued — never dropped — so a late-landing repair still lands last; the existing tests that read the disk immediately after spawnTeammate rejects pin that in the normal fast case the repair settles before the rejection (teamFileWriteQueue doc comment, TeamManager.ts:209-220).

Fix witness: a new test that holds write 1 on a gate that is never released, pushes beta after it starts, rejects beta's spawn, and asserts spawnTeammate settles with the spawn error within a bounded time — removing the timeout race from the fix makes that test hang/go red.

中文说明

仍然成立——该行代码与第一轮字节一致,本轮性能走查独立重新推导了该行为。把跳过/触发决定移入串行写队列后,失败 spawn 的 reject 会被阻塞在那些永不落定的 push 前 roster 写入之后——而 PR 前的同步门控在这种交错下会立即 reject——于是 spawn 错误可能被一次卡死的写入无限期挂起。设一笔在失败成员 push 之前启动的成功路径写入挂起不落定(writeTeamFileawait fs.mkdir + 原子 rename,整条写路径没有任何超时;无响应的 NFS/FUSE 挂载或卡死的磁盘可以无限期挂住它)。随后某个 teammate 的 spawn 失败;成员已经回滚、门控结果是注定的跳过——窗口内没有任何提交——但门控任务排在那笔挂起写入之后,spawnTeammate 永远到不了 throw err,leader 的 spawn 工具调用被无限期挂起,而不是得到 spawn 错误。PR 前同步检查在这个交错下为假,reject 立即发生。所采纳的"等待在途写入"权衡约束的是已入队写入的数量而非墙钟时间——当其中一笔永不落定时。两个减轻因素使其保持 Suggestion:该挂起类别在 PR 前已存在于同族的窗口内交错中(本 diff 扩大了一个既有失败类别而非新增),且不会产生错误状态——写入落定后跳过就是正确结果。

建议修复:不要让决定等待阻塞错误传播——将 await 与一个宽裕的超时竞速,超时后即继续 throw err,让门控任务留在队列中(串行队列仍会按序落定或跳过修复),并把 warn/leader 通知处理移入任务的落定路径,因为 catch (writeErr) 不再观察到它。修复必须让补偿任务保持在队列中——绝不丢弃——以保证迟到的修复仍然最后落盘;既有测试在 spawnTeammate reject 后立即读盘,钉住了正常情况下修复先于 reject 落定(teamFileWriteQueue 文档注释,TeamManager.ts:209-220)。

修复见证:新增测试——把写入 1 挂在永不释放的门控上,在其启动后 push beta,拒绝 beta 的 spawn,断言 spawnTeammate 在有限时间内带着 spawn 错误落定——把超时竞速从修复中移除会使该测试挂起/变红。

— qwen3.8-max via Qwen Code /review (v0.22.3)

@qqqys

qqqys commented Aug 31, 2026

Copy link
Copy Markdown
Collaborator

E2E review report (no Critical found) — head 176ed09b61

Reviewed at head 176ed09b61 (original fix e11d980ac2 + a merge of main; no code changes since the bot's round-2 re-verification). Independent review of the diff found no Critical issue: the sequence number stays monotonic (rejected writes keep their number), teamFileWritesCommitted advances only when writeTeamFile resolves, the gate decides at queued-task run time — the one point where the serial queue guarantees every earlier write has settled — and onlyIfCommittedAfter: 0 is handled via !== undefined. Success-path writes stay unconditional. The four open bot findings (R1-1..R1-4) are Suggestions (mutation-coverage gap, skip-path observability, one narrower redundant-write interleaving, spawn rejection draining behind a wedged write) — none is a blocker: the last two fail on the safe, best-effort side, and the wedged-write exposure predates this PR (a wedged roster write already stalls every later write).

Unit verification on the built head (npm ci, all packages green)

  • TeamManager.ghost-member.test.ts + TeamManager.initial-result.test.ts + teamHelpers.test.ts: 67/67 pass at head.
  • Falsification probes on the same tree (source restored afterwards, 9/9 re-pass confirmed):
    • Mutation A — gate disabled (always compensate): the new solo-skip test fails (2 write attempts + spurious <team_error> leader notice instead of 1 write/no notice), plus the two pre-existing Agent Team: failed concurrent spawn can persist a ghost member #10208 gate tests; repair-direction tests still pass.
    • Mutation B — compensating write always skipped: the new five-step interleaving test fails (ghost beta persists on disk), plus three pre-existing repair tests; skip-direction tests still pass.
    • Both directions of the fix are pinned by the suite.

tmux interactive-TUI e2e (bundled dist/cli.js, hermetic HOME + runtime dir, QWEN_CODE_ENABLE_AGENT_TEAM=1, --yolo, real model qwen3.8-max)

Probe Result
TeamCreate e2eteam → spawn teammate alpha (write hello.txt) ✅ "Teammate alpha is now running concurrently"; alpha tab appears in the tab bar
Teammate work + report ✅ alpha created the file, reported via send_message; leader independently verified content (13 bytes, exact)
RequestShutdownTeamDelete cleanup ✅ both ran; team dir removed with the delete
Second team rostercheck kept alive for inspection config.json persisted with exactly one member (beta@rostercheck, full record: agentId/prompt/joinedAt/cwd/backendType) — no ghost entries; leader tracked via leadAgentId/leadSessionId/leadPid
/quit on the leader ✅ clean exit; --resume UUID matches the roster's leadSessionId; no orphaned teammate/CLI processes afterwards

CI at head

All product lanes green on 176ed09b61: Test (ubuntu), Integration Tests (no-AK, No Sandbox), web-shell E2E Smoke, Desktop Shell (ubuntu/windows), review-pr, security/secret scans (16 success / 65 skipped / 0 failure).

Verdict

No Critical; the fix works end-to-end in the shipped bundle and its tests discriminate both directions. Not approving from this account — no formal APPROVED review is on record (the bot's Stage-3 5/5 verdict was deferred pending CI green on the pre-merge sha, and CI is green only now on the merge head); a /triage re-run or maintainer sign-off should land it. The open R1-* Suggestions remain for the author/maintainer to weigh.

— automated e2e pass by qqqys (tmux + real model on the built head); no code changes.

@wenshao

wenshao commented Sep 1, 2026

Copy link
Copy Markdown
Collaborator

@qwen-code /triage

@qwen-code-ci-bot

qwen-code-ci-bot commented Sep 1, 2026

Copy link
Copy Markdown
Collaborator

Sandboxed verification: ✅ passed — merge-ready (agent verdict) - workflow run

Ran the PR in an isolated, token-free container: A/B against the base build, mock-free harness assertions, targeted gates. Advisory evidence for human reviewers — not a review, an approval, or a CI check.

Scripted assertions: 371 passed · 0 failed · 371 total

Flakiness gate: ✅ 1 changed test file(s) x 5 identical rounds, no divergence

中文 — 判定:✅ 通过 · 可合入(agent 判定)

沙箱验证在隔离、无凭证的容器中执行了该 PR 的代码(与 base 构建 A/B 对照、无 mock harness 断言、定向门禁)。仅作为评审证据,不构成评审、批准或 CI 检查

脚本断言:371 通过 · 0 失败 · 371 总计

抖动门:✅ 1 changed test file(s) x 5 identical rounds, no divergence

Verification report

PR #10522 Deep Verification Report

Verdict: merge-ready — 371 scripted assertions executed, 371 pass, 0 fail.
Verified head: 176ed09b61b9631b0e83c38d8373deb024f3afe1 (git rev-parse HEAD^2); merge commit 63591594, base tip f8609836.

中文摘要
  • 结论:merge-ready。断言总数见顶部 verdict 行,全部通过,0 失败。
  • A/B 结论:中心声明成立。在 base 代码上运行本 PR 的新测试,单独(solo)用例以 expected "writeTeamFile" to be called 1 times, but got 2 times 失败(与 PR 描述逐字节一致),即修复前补偿写确实多发一次并可触发 <team_error> 通知;在 head 上全绿(见「Central claim and A/B」表)。原有 7 个 Agent Team: failed concurrent spawn can persist a ghost member #10208 回归测试在两臂均通过。五步交错用例在 base 上本就通过——它防御的是"拒绝时递减计数"这一被排除的朴素修法,变异矩阵(M4 行)证实了这一点。
  • 变异矩阵:5 个变异体全部被杀死,无幸存者(见「Mutation matrix」表);阳性对照(M5,令补偿写永不触发)在同一文件内使 5 个测试变红,证明测试收集链路有效。新测试非空洞:移除门控(M1)使 solo 用例以预期的行为断言失败。
  • 同胞探测(套件未覆盖的新交错,见「Sibling probes」表):S1——两个成员先后失败、共享一个在途即被拒的写入时,head 把两次补偿写全部跳过,base 冗余触发,磁盘结果两臂一致且无幽灵;S2——存在一类设计内残留的"假阳性触发"(回滚后才快照的写入提交后水位越过阈值,补偿写仍会触发),实测为幂等的正确写入、无通知、磁盘状态与 base 一致,属门控语义的固有边界而非缺陷(见 Findings 1)。
  • 未覆盖:逐提交验证(浅克隆仅 3 个提交可达,本地可达 1 个 < 元数据 2 个);仓库级 lint/全量测试;真实磁盘写满的端到端复现(故障经 writeTeamFile mock 注入,复现的是故障形状而非真实 ENOSPC 触发);Windows/macOS 行为。

Central claim and A/B

Central claim: the failed-spawn compensating-write gate becomes commit-aware — when the only roster write inside the failed member's window rejected (persisted nothing), the compensating write is skipped (exactly one write attempt, no <team_error> leader notice); when a write above the push watermark committed, the repair still fires and removes the member from disk.

Secondary claims: (a) the monotonic sequence numbering rules out the decrement-on-reject naive fix (the issue's five-step interleaving); (b) the seven existing #10208 interleaving tests pass unchanged.

The PR's invariant (ghost on disk ⇒ a write with seq > push-watermark committed ⇒ teamFileWritesCommitted advanced ⇒ gate fires) holds by construction: seq is assigned synchronously at snapshot time in a serial queue, so a snapshot containing the member exists only for writes running after the push, and the watermark update is part of the same promise chain the next queued task waits on. The A/B and mutation matrix below prove it behaviorally.

Cell Code Tests Result Oracle
A/A sanity base (f8609836) base suite (7) 7/7 pass, exit 0 vitest counts
Red cell base (f8609836) PR suite (9) 8 pass / 1 fail, exit 1 — solo fails expected "writeTeamFile" to be called 1 times, but got 2 times; five-step passes vitest counts + failure message
Head cell head (176ed09b) PR suite (9) 9/9 pass, exit 0 vitest counts

Witnesses: 01-ab-base-red-cell.png (base + PR tests, solo red), 02-ab-head-green-cell.png (head, 9/9). Raw logs: logs/cell2-base-suite.log, logs/cell3-base-code-head-tests.log, logs/cell1-head-suite.log.

The base-cell red is the expected control failure — the predicted test (solo) failed with the byte-identical message the PR body claims, and the predicted-green tests (including five-step on base) all passed. The red cell also proves the base worktree loaded base code: had head code leaked in through dist/, the solo test would have passed.

Corrections

None (first verification round; no earlier claims to correct).

Findings

No blockers. Two design-boundary notes, both measured:

1. (Note) Residual false-positive fire when a post-rollback write commits — inherent to the watermark design, harmless

Probe S2 (not in the shipped suite): alpha's write hangs in flight; beta is pushed (watermark 1) and then fails and rolls back while nothing has committed; gamma's write then commits a snapshot taken after the rollback ([alpha, gamma] — never contained beta). The gate reads committed=2 > 1 and fires a compensating write that repairs nothing.

Arm writeCalls disk after leader notice
head 3 (alpha + gamma + redundant repair) [alpha, gamma] none
base 2 (alpha + gamma; sync gate skipped) [alpha, gamma] none

Repro: logs/probe-head2.log, logs/probe-base2.log (harness: sibling-probes.harness.test.ts, S2). This is intended behavior under the PR's own gate spec ("write only if a write above the watermark committed" — the gate cannot know the committed snapshot's contents), the extra write is idempotent and matches in-memory state, and it cannot emit a misleading notice unless the disk is still failing. It is the mirror image of the class the PR eliminates (S1), so it is reported as a boundary note, not a defect. Notably the two arms differ here in the opposite direction from the fix: head does one more harmless write than base in this narrow interleaving.

2. (Note) Spawn rejection is now delayed until in-flight roster writes settle — accepted tradeoff, observed live

Documented in the PR body and endorsed by the #10297 triage. My probes observed it directly: on base, spawnTeammate rejects synchronously in the catch path (rejection landed during the test's sleep window, creating an unhandled-rejection gap in my harness); on head, the same rejection waits for the queued compensating task — which waits for in-flight writes — so it resolves only after they settle. The wait is bounded by the serial queue (writes already queued). No action needed; recorded so the behavioral difference is evidenced rather than only claimed.

Mutation matrix (vacuity + positive control)

Run at head in a scratch worktree; unmutated control 9/9 green first (logs/m0-control.log). Driver: run-mutants.sh; per-mutant logs in logs/mutant-*.log; matrix as printed: 03-mutation-matrix.png.

Mutant Change Killed by (red tests) Pinned?
M1 gate-removed skip-check → false #10208 gate test, fs-await-window test, solo (3 red)
M2 boundary-flip <=< #10208 gate test, fs-await-window test, solo (3 red)
M3 watermark-at-start watermark advanced before writeTeamFile solo (1 red)
M4 decrement-on-reject teamFileWritesStarted-- on reject five-step (1 red): expected [ 'beta', 'gamma' ] to not include 'beta'
M5 repair-never-fires onlyIfCommittedAfter: Number.MAX_SAFE_INTEGER tests 1, 3, 4, 7 + five-step (5 red) — positive control in the same file

Zero survivors. Every kill landed on the predicted test(s) — attribution checked per mutant. Two rows carry the PR's own claims:

  • Vacuity check: reverting the key hunk (M1 = gate removal) turns the new solo test red with the exact behavioral assertion it exists to make (expected "writeTeamFile" to be called 1 times, but got 2 times, line 567) — not an import/compile artifact.
  • Decrement ruled out: M4 implements the naive fix the issue explicitly excludes; the five-step test kills it with a ghost-on-disk assertion, proving the test defends the interleaving it was named for. (M4's solo test stays green, as expected — decrement "fixes" the solo case while re-introducing the Agent Team: failed concurrent spawn can persist a ghost member #10208 ghost.)

Sibling probes (novel interleavings beyond the suite)

Harness: sibling-probes.harness.test.ts (in artifact dir; ran in both worktrees). Witness: 04-sibling-probes-head.png.

Probe Scenario head base Disk outcome
S1 Two members fail in sequence; the only window write hangs in flight then rejects; both compensating writes queue behind it writeCalls=1 (both repairs skip) writeCalls=3 (both fire redundantly) [alpha], ghost-free, no notice — identical on both arms
S2 Post-rollback write commits above the watermark (see Finding 1) writeCalls=3 (fires) writeCalls=2 (skips) [alpha, gamma], ghost-free, no notice — identical on both arms

S1 is the issue's complaint generalized to N concurrent failures sharing one rejecting write: head eliminates every redundant write while base fires one per failed member. Write-path census: the only roster writers are persistTeamFile's two call sites (success write, compensating write) — TeamManager.ts:714/:729 — plus createTeamFile in team-create.ts for initial creation before any member exists; no writer bypasses the queue, so the seq/watermark accounting covers every path that can persist a member.

Targeted gates (at head)

  • src/agents/team/ full directory: 13 files, 324/324 pass (logs/gate-team-dir.log).
  • tsc --noEmit in packages/core: exit 0, zero diagnostics (logs/typecheck-core.log). Liveness: the identical tsc --build invocation reported 71 real errors when run against the base worktree before its dependencies were wired — the compiler surfaces errors when present.
  • Prettier on the two changed files: clean. Liveness: a planted malformatted file was caught (exit 1) — with one caveat: prettier honors the repo ignore files, so a planted check inside gitignored tmp/ silently passes; the liveness plant had to live at a tracked path.

Not covered

  • Per-commit attribution. Checkout is depth 2; git rev-list HEAD^1..HEAD^2 returns 1 while the metadata lists 2 commits (the fix + a merge of main). The second commit's parent is beyond the shallow boundary, so only the aggregate HEAD^1..HEAD diff was verified. (Both metadata commits describe one logical change; the merge-of-main commit carries no feature diff.)
  • Real disk-full end-to-end. ENOSPC was injected by mocking writeTeamFile rejections — this reproduces the wire shape of the failure class (reject → rollback → gate decision), not the kernel-level trigger (a genuinely full filesystem, temp-file residue, partial renames). The harness writes real files for everything it does not mock.
  • Repo-wide gates. ESLint across packages, the full packages/core suite beyond agents/team, and CI lanes were not run (targeted-gate scope; the PR's own CI covers them).
  • Windows/macOS. Gate logic uses structuredClone + fs promises only; nothing OS-specific was identified, but no non-Linux cell was executed.
  • team-create.ts initial-creation path — inventoried as outside the queue (runs before any member exists), not behaviorally exercised.
  • Timing-threshold measurement of the 50 ms ordering sleeps in the suite: they cushion microtask-level ordering with wide margin and match the pre-existing Agent Team: failed concurrent spawn can persist a ghost member #10208 tests' pattern; no wall-clock timer races an uncontrolled operation here, so no threshold bisect was performed.

Methodology

Environment: the CI verify container (node:22-bookworm), working tree = refs/pull/10522/merge at depth 2; npm ci + npm run build completed before this round. A/B construction: git worktree add --detach tmp/base-tree HEAD^1; packages/core rebuilt there with the root tsc --build (~80 s) after symlinking the root and package-local node_modules into the worktree — a clean control because the PR touches no package.json/package-lock.json (diff is exactly two source files). Internal-link audit: readlink -f node_modules/@qwen-code/qwen-code-core from the base worktree points into the main tree's packages/core, but the ghost-member suite's import closure is entirely core-relative (no self-name imports — verified by census), so no dist/ leakage is possible; the red cell failing on the new test independently proves base code was loaded. Mutations and sibling probes ran in a second scratch worktree at HEAD (tmp/head-scratch), restored with git checkout between mutants. Every cell was executed under vitest run (config silent:true; probes re-run with --silent=false to surface the write-call counters) and captured via scripts/verify-capture.mjs. Raw per-cell stdout/stderr and build logs live in logs/; harness scripts in this directory. Assertion accounting: each predicted red control cell counts as a passed expectation (the base solo-red matched the predicted message byte-for-byte); fail counts only unexpected outcomes — there were none.

Flakiness gate log

rounds=5 files=1 skipped=0
file packages/core/src/agents/team/TeamManager.ghost-member.test.ts: (cd packages/core) npx --no-install vitest run ./src/agents/team/TeamManager.ghost-member.test.ts


per-file results (P=pass F=fail I=infra-exit, one letter per run):
  packages/core/src/agents/team/TeamManager.ghost-member.test.ts: PPPPP

verdict: pass
summary: 1 changed test file(s) x 5 identical rounds, no divergence

--- per-invocation detail (full copy in the artifact) ---
round 1 · packages/core/src/agents/team/TeamManager.ghost-member.test.ts: P (exit 0)
round 2 · packages/core/src/agents/team/TeamManager.ghost-member.test.ts: P (exit 0)
round 3 · packages/core/src/agents/team/TeamManager.ghost-member.test.ts: P (exit 0)
round 4 · packages/core/src/agents/team/TeamManager.ghost-member.test.ts: P (exit 0)
round 5 · packages/core/src/agents/team/TeamManager.ghost-member.test.ts: P (exit 0)

Evidence images

01-ab-base-red-cell

02-ab-head-green-cell

03-mutation-matrix

04-sibling-probes-head

Harness scripts and raw logs are in the workflow run artifacts (7-day retention).

Qwen Code · sandboxed verification

@qwen-code-ci-bot qwen-code-ci-bot left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, looks ready to ship. ✅

@wenshao

wenshao commented Sep 1, 2026

Copy link
Copy Markdown
Collaborator

Real-environment verification at head 176ed09b61 — merge reference

Verified locally on macOS with the production hunk reverted in the same tree for the BEFORE arm, so both arms share one checkout, one node_modules and one build pipeline. This complements the earlier e2e pass by @qqqys with a different method: the roster write is failed by a genuinely full filesystem (and, in the concurrency rigs, by faults injected at the open(2) boundary), never by vi.mock. It also takes an evidence-backed position on the four open R1-* Suggestions.

Head verified 176ed09b61 (e11d980ac2 + merge of main); unchanged during the run
Platform macOS 15 (Darwin 25.6.0), Node v24.18.1, npm ci + npm run build + npm run bundle
Disk-full source 64 MiB HFS+ RAM disk (hdiutil + diskutil) filled to 0 free blocks, QWEN_HOME on it
Instrumentation DYLD_INSERT_LIBRARIES interpose on open/openat/rename — counts and, where stated, delays or fails syscalls. The code under test is unmodified.
A/B method same tree, git apply -R of the PR's TeamManager.ts hunks, rebuild packages/core (and re-bundle for the TUI arm)

1. End-to-end through the bundled CLI — the leader really does get the bogus notice

dist/cli.js in a real PTY, scripted OpenAI-compatible server (team_create, then agent with a teammate name), QWEN_CODE_ENABLE_AGENT_TEAM=1, --approval-mode yolo, hermetic HOME/QWEN_HOME. Every atomic roster write (config.json.<hex>.tmp) is failed with a real ENOSPC at open(2) — the "disk filled up after the team was created" case from #10297. team_create itself uses flag: 'wx' (no temp file), so the team is created and only the teammate spawn hits the full disk.

BEFORE — one extra line on screen, and a <team_error> about a member that cannot exist:

before

AFTER — the spawn error alone, carrying the real cause:

after

BEFORE AFTER
roster-write attempts (syscall count) 2, both errno=28 1, errno=28
extra TUI line ● Team roster write after failed spawn of "alpha" failed
<team_error> reaches the model yes — injected as a user message, present in requests #4 and #5 no
persisted roster empty empty

The notice is not just cosmetic: it lands in the leader's history as a user-role turn and is re-sent on every subsequent request, so the model keeps reasoning about a ghost member that never existed, on top of the spawn error that already says "no space left on device".

2. Real ENOSPC, no mocks, syscall-level A/B

Same behaviour in-process against the built packages/core, with the roster on a truly full volume: real writeTeamFile → real atomicWriteJSON → real kernel ENOSPC.

syscalls

3. Mutation matrix — 11 of 12 killed, and the survivor is exactly R1-1

Each mutant applied to the head source, TeamManager.ghost-member.test.ts (9 tests) run, file restored from a byte copy.

mutants

Both directions of the fix are pinned, including the trap the issue calls out (M5, decrement-on-reject, killed by the five-step test) and the onlyIfCommittedAfter: 0 handling (M4). M12 survives: a mutant that behaves correctly everywhere except when 0 < teamFileWritesCommitted < watermark, where it writes instead of skipping, passes 9/9. That is R1-1, reproduced as an executed mutant rather than an argument.

4. Concurrency rigs on a real filesystem — the four open Suggestions, measured

Real TeamManager, real serial write queue, real atomic temp+rename; only the agent backend is a double, and write timing / transient ENOSPC are injected at open(2).

rigs

  • repair direction — no regression. Beta's spawn hangs, gamma's write commits a snapshot that still contains beta (disk shows [beta, gamma]), beta then fails: both arms end at [gamma].
  • R1-1 — real gap, correct behaviour. Rig r11 drives 0 < committed(1) < watermark(2) with a syscall-injected ENOSPC on beta's write. Head skips correctly (2 write attempts, 0 notices); the surviving mutant M12 writes (3 attempts). One test in this shape closes the gap.
  • R1-3 — real, one redundant write, same bytes. Rig r13: alpha's write is in flight when Z is pushed (so BEFORE's synchronous check skips), gamma's write is queued before Z's catch and commits after Z's rollback. BEFORE: 2 roster writes. AFTER: 3. The extra write persists exactly what gamma just committed — [alpha, gamma] on disk in both arms. The window where it could serialize a still-pending sibling is the ~6 ms between two back-to-back queue tasks measured here, and such a sibling's own compensating write would then repair it.
  • R1-4 — real, quantified. Rig r14 wedges a roster write for 6 s inside open(2). Z's spawn rejection: 30 ms BEFORE, 5993 ms AFTER. Bounded by writes already queued, and a wedged roster write already stalls every later write today — but the number is worth having on record.
  • R1-2 — confirmed by construction. The skip path is a bare return;. In the AFTER arm of §1 and §2 there is no debug line, no notice, nothing at all: a skipped compensating write is indistinguishable from one that never ran.

5. Suites and build at head

  • TeamManager.ghost-member.test.ts9/9; all of packages/core/src/agents/team/322/322 (13 files).
  • npm ci + npm run build (tsc --build) + npm run bundle — green.
  • CI on 176ed09b61 — all product lanes green; bot review is APPROVED as of 2026-09-01.

Verdict

No Critical. Good to merge as a reference for this reviewer. The mechanism does what the PR says on a real filesystem and in the shipped bundle: it removes a user-visible, model-visible spurious <team_error> on a full disk, halves the write attempts in that path, and does not regress the repair direction that #10208 exists for.

Non-blocking follow-ups, in the order I'd rank them:

  1. One test for the 0 < committed < watermark skip (kills M12, closes R1-1).
  2. A one-line debug.debug on the skip branch (R1-2) — the cheapest way to keep this path diagnosable.
  3. R1-3 and R1-4 are inherent to deciding inside the queue, which is the option team: make the failed-spawn compensating-write gate commit-aware (avoid redundant write when the only window write rejected) #10297 endorsed; both fail on the safe side.

Reproduce

# same tree, both arms
git fetch origin pull/10522/head && git checkout 176ed09b61
npm ci && npm run build && npm run bundle
# AFTER arm as-is; BEFORE arm:
git show e11d980ac2 -- packages/core/src/agents/team/TeamManager.ts | git apply -R
npm run build --workspace=packages/core   # + npm run bundle for the TUI arm

Full-disk volume: DEV=$(hdiutil attach -nomount ram://131072 | awk '{print $1}'); diskutil erasevolume "Case-sensitive HFS+" QWENTINY "$DEV", then fill it and point QWEN_HOME inside. The syscall probe is a ~120-line DYLD_INTERPOSE dylib over open/openat/rename with optional per-Nth delay and ENOSPC injection; the TUI arm uses the repo's own integration-tests/terminal-capture + fake-openai-server.

Caveats: macOS only (no Windows/Linux arm here). The agent backend is FakeBackend, so a teammate process is not actually started — the roster-write path under test is fully real. Timing and transient faults in §4 are injected at the syscall boundary, not by patching the code under test.

中文说明

在 head 176ed09b61 上的真实环境验证 —— 合并参考

在 macOS 本地验证,同一棵树内回退生产 hunk 作为 BEFORE 臂,两臂共用同一个 checkout、同一份 node_modules、同一条构建流水线。这份报告与 @qqqys 早前的 e2e 互补,方法不同:roster 写入是被真正写满的文件系统弄失败的(并发场景里则是在 open(2) 边界注入故障),全程没有 vi.mock。同时对四条未决的 R1-* Suggestion 给出有证据的判断。

验证的 head 176ed09b61e11d980ac2 + 合并 main),验证期间未变
平台 macOS 15(Darwin 25.6.0)、Node v24.18.1,npm ci + npm run build + npm run bundle
磁盘满的来源 64 MiB HFS+ 内存盘(hdiutil + diskutil)填到剩余 0 块QWEN_HOME 放在上面
插桩方式 DYLD_INSERT_LIBRARIES interpose open/openat/rename——计数,并按需延迟或让其失败。被测代码本身未做任何修改。
A/B 方法 同树 git apply -R PR 对 TeamManager.ts 的 hunk,重建 packages/core(TUI 臂再重新 bundle)

1. 走打包 CLI 的端到端 —— leader 确实收到了那条假通知

真实 PTY 里跑 dist/cli.js,用脚本化的 OpenAI 兼容服务端(先 team_create,再带 teammate nameagent),QWEN_CODE_ENABLE_AGENT_TEAM=1--approval-mode yolo、隔离的 HOME/QWEN_HOME。所有原子 roster 写入(config.json.<hex>.tmp)都在 open(2) 处被注入真实 ENOSPC——正是 #10297 里「建好团队之后磁盘写满」的情形。team_create 自身用 flag: 'wx'(不走临时文件),所以团队能建起来,只有 teammate spawn 撞上满盘。

修复前:屏幕上多一行,并发出一条关于不可能存在的成员的 <team_error>(见上方第一张图)。
修复后:只剩 spawn 错误本身,且携带真实原因(第二张图)。

修复前 修复后
roster 写入尝试(syscall 计数) 2 次,均 errno=28 1 次,errno=28
多出的 TUI 行 ● Team roster write after failed spawn of "alpha" failed
<team_error> 是否进模型 —— 作为 user 消息注入,出现在第 4、5 次请求
落盘 roster

这条通知不只是观感问题:它以 user 轮的形式进入 leader 历史,之后每一轮请求都会带上,模型会持续围绕一个根本不存在的幽灵成员推理——而 spawn 错误本身早就说清楚了「磁盘没空间」。

2. 真 ENOSPC、零 mock、syscall 级 A/B

同样的行为在进程内对构建产物 packages/core 复现:roster 放在真正写满的卷上,真 writeTeamFile → 真 atomicWriteJSON → 内核真 ENOSPC(第三张图)。

3. 变异矩阵 —— 12 个杀掉 11 个,存活的那个正好是 R1-1

每个变异体打到 head 源码上,跑 TeamManager.ghost-member.test.ts(9 个用例),再用字节备份还原(第四张图)。

修复的两个方向都被钉住,包括 issue 明确点名的陷阱(M5 拒绝时递减,被五步交错用例杀掉)和 onlyIfCommittedAfter: 0 的处理(M4)。M12 存活:一个只在 0 < teamFileWritesCommitted < watermark 时写入(其余场景都正确)的变异体,9/9 全绿通过。这就是 R1-1,用一个真跑出来的变异体而不是论证复现出来。

4. 真实文件系统上的并发装置 —— 四条未决 Suggestion,量化

TeamManager、真串行写队列、真原子 temp+rename;只有 agent backend 是替身,写入时序与瞬时 ENOSPCopen(2) 处注入(第五张图)。

  • 修复方向 —— 无回归。 beta 的 spawn 挂住,gamma 的写入提交了仍含 beta 的快照(盘上是 [beta, gamma]),随后 beta 失败:两臂最终都是 [gamma]
  • R1-1 —— 缺口真实,行为正确。 装置 r11 用注入到 beta 写入上的 ENOSPC 造出 0 < committed(1) < watermark(2)。head 正确跳过(2 次写入尝试、0 条通知);存活变异体 M12 会写(3 次)。补一个这种形状的用例即可闭合。
  • R1-3 —— 真实,多一次写入,字节相同。 装置 r13:Z 被 push 时 alpha 的写入在途(所以 BEFORE 的同步判断会跳过),gamma 的写入在 Z 的 catch 之前入队、在 Z 回滚之后提交。BEFORE:2 次 roster 写入;AFTER:3 次。多出的那次写的正是 gamma 刚提交的内容——两臂盘上都是 [alpha, gamma]。它可能把仍在 pending 的兄弟成员序列化进去的窗口,实测只有两个背靠背队列任务之间的约 6 ms,而那个兄弟自己的补偿写随后也会修复它。
  • R1-4 —— 真实,已量化。 装置 r14open(2) 里把一次 roster 写入卡住 6 秒。Z 的 spawn 拒绝耗时:BEFORE 30 ms,AFTER 5993 ms。上界是已入队的写入,且今天一次卡死的 roster 写入本来就会拖住之后所有写入——但这个数字值得留档。
  • R1-2 —— 由构造确认。 跳过分支就是一个裸 return;。在 §1、§2 的 AFTER 臂里没有任何 debug 行、没有通知、什么都没有:被跳过的补偿写与「压根没跑过」在日志上无法区分。

5. head 上的测试与构建

  • TeamManager.ghost-member.test.ts —— 9/9packages/core/src/agents/team/ 全部 —— 322/322(13 个文件)。
  • npm ci + npm run buildtsc --build)+ npm run bundle —— 全绿。
  • 176ed09b61 上的 CI —— 产品泳道全绿;机器人评审已于 2026-09-01 APPROVED

结论

没有 Critical,从本次复核看可以合并。 该机制在真实文件系统和打包产物里确实做到了 PR 所述:消除了满盘场景下用户可见、模型也可见的假 <team_error>,把该路径的写入尝试减半,且没有回归 #10208 所依赖的修复方向。

非阻塞的后续,按我的优先级:

  1. 补一个 0 < committed < watermark 的跳过用例(杀掉 M12,闭合 R1-1)。
  2. 在跳过分支加一行 debug.debug(R1-2)——保持该路径可诊断的最低成本做法。
  3. R1-3、R1-4 是「在队列内做判断」这一选择的固有代价,而这正是 team: make the failed-spawn compensating-write gate commit-aware (avoid redundant write when the only window write rejected) #10297 认可的方案;两者都朝安全侧失败。

复现

命令见上方英文小节。满盘卷:DEV=$(hdiutil attach -nomount ram://131072 | awk '{print $1}'); diskutil erasevolume "Case-sensitive HFS+" QWENTINY "$DEV",填满后把 QWEN_HOME 指进去。syscall 探针是一个约 120 行、对 open/openat/renameDYLD_INTERPOSE 的 dylib,支持按第 N 次调用延迟或注入 ENOSPC;TUI 臂用的是仓库自带的 integration-tests/terminal-capture + fake-openai-server

局限: 仅 macOS(没有 Windows/Linux 臂)。agent backend 是 FakeBackend,因此没有真正拉起 teammate 进程——但被测的 roster 写入路径完全是真的。§4 中的时序与瞬时故障是在 syscall 边界注入的,而不是改被测代码。

@wenshao
wenshao added this pull request to the merge queue Sep 1, 2026
Merged via the queue into main with commit 5efa9d4 Sep 1, 2026
135 of 139 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

review/self-reported The linked issue was opened by the PR author (self-reported)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

team: make the failed-spawn compensating-write gate commit-aware (avoid redundant write when the only window write rejected)

5 participants