﻿# Qwen Code overlaps ACP startup work while draining failures and child checks

Use controlled read failures and a pending health-check child to verify overlap, ordered errors and cleanup before accepting a startup timing improvement.

Author: Retrivium team
Updated: 2026-11-15
Canonical URL: https://retrivium.ai/journal/week46-agent-qwen-acp-parallel-initialization-drain/
Language: en

Qwen Code v0.27.4, released on November 15 at 07:04:40 UTC, overlaps independent extension reads and a ripgrep check during native ACP initialization. Started reads drain before the ordered failure returns, and a cancelled health-check child is reaped before initialization settles. The release reduces cold work without prestarting a channel; it does not claim the published source measurements completed the sub-500 ms objective.

## Parallel completion does not choose the first error

Create two harmless resource reads whose completion order differs from their configured order, and make both fail at controlled barriers. The implementation preserves the first returned error by resource order while draining every started read. Observe both completion and the selected error. Returning whichever rejection happens fastest would make diagnosis nondeterministic and could leave a later read running after the caller believes initialization has fully stopped.

## The health check joins at the existing decision

Hold the owned ripgrep check while other initialization proceeds, then release it before the original tool-readiness decision. Verify the tool is not admitted using an unfinished check. Overlap changes scheduling, not the trust or availability condition. The absence of an early await must not become permission to skip the check. Include a failed check followed by a later tool rebuild to establish that failure is retried rather than cached as permanent success or permanent unavailability.

## Cancellation includes child-process ownership

Cancel or fail initialization while the synthetic check child is pending. Await initialization settlement and inspect whether the recorded child has already exited. Killing it sometime later is a weaker lifecycle contract. Then initialize afresh and verify a useful normal session. A test that only observes an exception can miss a leaked process, while an aggressive global process cleanup can hide whether the production cancellation path actually owned and drained its own child.

## Keep measurements inside their tested scope

The PR reports interleaved fresh-process measurements and retains a slower candidate observation. Reproduce a complete SDK await under the application’s own resource inventory, with no readiness prewarming. The local report does not qualify every platform, managed surface or tail-latency SLA. A useful adoption record pairs overlap and cleanup evidence with end-to-end creation timing, preserving all observations instead of treating a shorter module-load phase as proof of a faster usable agent session.

## Sources

- [Qwen Code v0.27.4 release notes](https://github.com/QwenLM/qwen-code/releases/tag/v0.27.4)
- [Implementation and review #17209](https://github.com/QwenLM/qwen-code/pull/17209)

## Related reading

- [Coordinate shared-sandbox writers with explicit artifact ownership](/journal/frontier-swarm-shared-sandbox-write-ownership/)
- [Inspect sandbox boundaries: a configured container does not move Python tool wrappers](/journal/fg2-inspect-sandbox-tool-wrapper-host-execution/)
