Isolated cron runs leak context when they reuse a stable session key Different isolated…
- User
Isolated cron runs leak context when they reuse a stable session key
Different isolated cron runtime sessions that reuse a stable session key must not share active LCM context. Prior runs remain archived, compaction within the current run still works, and ordinary non-cron session continuity is unchanged.
Interface
No new public interfaces are introduced.
- Assistant
I’ll trace session identity and LCM context loading for cron runs, then add a focused regression test and changeset if this affects released behavior.
- Assistant
The leak is in stable-key lookup: cron runs with a new runtime session ID still resolve the prior active conversation. I’m tightening the existing rollover guard specifically for
agent:*:cron:*identities, while leaving the conservative behavior for ordinary stable sessions intact. - Assistant
The focused regression now passes, including archive preservation, no prior-run assembly, and compaction routing to the new run. I’m running the full TypeScript and test suites to catch lifecycle interactions elsewhere.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.