In this article
Compare legacy, shared and event-bus paths on the same deterministic round; preserved approvals, time limits and tool-result identity establish useful parity.
Qwen Code v0.27.4, released on November 15, includes an experimental AgentCore path where a model round and its tool batch run within one runAgentLoop call. It remains opt-in. The useful migration question concerns preserved scheduling, approvals and result recording across that new boundary, not a presumption that sharing a loop automatically improves task quality or speed.
One round includes a consequential scheduling boundary
Use a deterministic model response that proposes two harmless tools and supplies a recognizable final response identity. Observe model completion, round-end handling and batch launch. The new contract brings them into one loop call but does not make every proposed tool eligible to run. Assert the same selected calls and scheduler behavior as the legacy path before measuring any change in elapsed time.
A deadline can stop work before the batch
Delay the synthetic model round until the agent’s configured limit has passed, then return a tool proposal. Assert no tool starts merely because the model eventually answered. This checks the round-end decision that precedes batch execution. Include a normal within-limit response as the control. The test should record the configured execution limit separately from provider timeouts and from the experimental cancellation settlement cap.
Approval and refusal need the real loop
Run approved, refused and cancelled tool cases through the configured surface instead of invoking the batch helper directly. Inspect result identities and replay bookkeeping. A helper can pass unit checks while the surface loses its approval continuation or records one result under the wrong call. Keep deferred recording as a separate observation so returning a result and durably recording it cannot be conflated.
Rollout evidence should name the execution path
Compare request inputs, accepted outputs, usage and tool dispatch across the legacy path, shared loop and shared loop with the event-bus kernel. Pin the flags and surface identity in the report. The release provides an opt-in migration step; parity in one scenario does not establish every frontend or agent configuration. Timing conclusions belong after behavioral parity and should describe the tested workload rather than the existence of a common abstraction.
Sources
Related reading
Earn rental income from GPUs
Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.