fix(cloud-agent-next): recover leaked sandbox wrappers safely#3555
fix(cloud-agent-next): recover leaked sandbox wrappers safely#3555eshurakov wants to merge 6 commits into
Conversation
Track physical wrapper ownership and require verified cleanup before reuse or deletion, while rejecting workspace admission when capacity cannot be safely verified.
Preserve stop backoff during retention cleanup and identify legacy bundles through observable environment markers so rolling deploys do not strand or misidentify wrappers.
Code Review SummaryStatus: 1 Issue Remaining (carried forward, intentional by design) | Recommendation: Merge Executive SummaryThe new commit wraps the Overview
Issue Details (click to expand)RESOLVED| File | Line | Issue | WARNING (carried forward — author acknowledged as intentional)| File | Line | Issue | WARNING — At if (!metadata) {
if ((await getWrapperLease(this.ctx.storage)).state !== 'none') {
await this.scheduleAlarmAtOrBefore(Date.now() + 1_000);
return false;
}When the metadata key is missing but a The PR author has acknowledged this as intentional fail-closed behavior: without metadata the DO cannot reconstruct the provider sandbox to verify physical wrapper absence, so retaining the non- Changed Files Reviewed (this round — commit e2e56e6)
Unchanged (carried forward from prior rounds):
Fix these issues in Kilo Cloud Reviewed by claude-sonnet-4.6 · 301,043 tokens Review guidance: REVIEW.md from base branch |
|
Addressed the actionable warm-bootstrap progress finding in I did not change the missing-metadata deletion branch. The public delete route short-circuits when session metadata is absent, and the Durable Object cannot reconstruct the provider sandbox or verify physical wrapper absence without that metadata. Retaining a non- |
Summary
AgentSandboxseam as the provider boundary for physical discovery, stop, keep-alive, and capacity operations; runtime, supervisor, deletion, interrupt, terminal, and router flows now converge on that lifecycle rather than performing ad-hoc sandbox teardown.Verification