﻿# Qwen Code Managed Session loops create persistent schedules through session authority

Verify session-scoped create/list/retire, idempotent tool replay and existing scanner delivery; Managed loops use persistent automation rather than local process timers.

Author: Retrivium team
Updated: 2026-11-15
Canonical URL: https://retrivium.ai/journal/week46-agent-qwen-managed-loop-persistent-session-authority/
Language: en

Qwen Code v0.27.4, released on November 15 at 07:04:40 UTC, adds fixed-interval /loop entry points inside Managed Sessions on the admitted schedule profiles. Creation feeds the existing persistent automation scanner rather than a new local scheduler. The release makes session-scoped authority and replay identity central: one session’s writer must not manage another session’s definitions, even when both have the same creator.

## Create through the declared session tool surface

Use an owned Managed Session with a supported schedule profile and create a harmless recurring prompt through the declared tool. Inspect the resulting automation definition and wait for a controlled due slot to arrive as an automation turn in that same session. This verifies the newly delivered entry path. An administrator creating a schedule through a public management route can exercise the older pipeline without establishing that the session’s model can now reach it.

## Tool replay must converge on one definition

Replay the same synthetic tool execution with its derived idempotency key and inspect definition count and returned identity. Then change the body under that key and check the documented conflict. Repeated model output or network retries should not multiply recurring work. Keep a genuinely new execution as a control so an implementation that refuses every second creation cannot masquerade as correct idempotency. Compare future fires as well as stored definitions.

## Shared creator identity does not merge session authority

Create two sessions for the same synthetic creator and attempt list and retire across their definitions using session-writer credentials. The new internal routes remain session scoped. A public creator management credential has a different authority and should be tested separately. Include another tenant as a stronger negative control, but do not rely only on that case: same-creator cross-session isolation is explicitly part of the implementation’s promised boundary.

## Disabling creation must preserve cleanup

Exercise the deployment gate off with an existing owned definition: creation is refused while list and retire remain available under the documented contract. Validate invalid timezone, unsupported one-shot or nondurable requests through their typed errors. This feature adds an authority path to the established automation machinery; it does not replace overlap, catch-up or run-ledger policy. A useful adoption record separates definition admission, replay, session ownership and observed persistent delivery.

## Sources

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

## Related reading

- [Retrying generation POSTs: idempotency must be explicit](/journal/provider-post-retry-idempotency-ledger/)
- [Subagent permissions: delegation does not add authority](/journal/frontier-space-subagent-permission-inheritance/)
