Skip to content

fix(cloud-agent-next): isolate scoped Stop across the service boundary - #6005

Merged
eshurakov merged 2 commits into
eshurakov/control-outbox-isolation-squashfrom
eshurakov/control-outbox-isolation-integration
Sep 10, 2026
Merged

fix(cloud-agent-next): isolate scoped Stop across the service boundary#6005
eshurakov merged 2 commits into
eshurakov/control-outbox-isolation-squashfrom
eshurakov/control-outbox-isolation-integration

Conversation

@eshurakov

Copy link
Copy Markdown
Contributor

Summary

  • Isolate scoped Stop across the service boundary.
  • Release operation-only root cleanup without fencing sibling chats.
  • Keep per-root claims from retiring a successor; reject root+quiescence on the strict abort-result reader.
  • Preserve shared-root retirement without a kilo runtime; detach terminals only after successful abort retirement.

Test plan

  • cloud-agent-next wrapper unit tests for abort, worktree, terminal, operation-registry

@eshurakov
eshurakov force-pushed the eshurakov/control-outbox-isolation-integration branch from c4f0c5d to 70f6a25 Compare September 9, 2026 18:26
@kilo-code-bot

kilo-code-bot Bot commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

Code Review Summary

Status: No Issues Found | Recommendation: Merge

Executive Summary

Incremental review of the wrangler catalog pin to 4.112.0 (workspace + lockfile) with high confidence and no new high-severity defects.

Files Reviewed (2 files)
  • pnpm-workspace.yaml
  • pnpm-lock.yaml
Previous Review Summaries (2 snapshots, latest commit 88b903a)

Current summary above is authoritative. Previous snapshots are kept for context only.

Previous review (commit 88b903a)

Status: No Issues Found | Recommendation: Merge

Executive Summary

Incremental review of the follow-up Stop isolation fixes (cleanup-vs-fullCleanup wait, delayed shared-root abort acknowledgment, and detach wrapping) with high confidence that the changed production paths are correct.

Files Reviewed (3 files)
  • services/cloud-agent-next/wrapper/src/control/operation-registry.ts
  • services/cloud-agent-next/wrapper/src/control/operation-registry.test.ts
  • services/cloud-agent-next/wrapper/src/control/sandbox-control-handlers.ts

Previous review (commit 70f6a25)

Status: No Issues Found | Recommendation: Merge

Executive Summary

Reviewed scoped Stop isolation across the sandbox-control service boundary (abort-result protocol, root-vs-runtime cleanup, per-root retirement claims, and outbox lanes) with high confidence that the changed production paths do not introduce new high-severity defects.

Files Reviewed (31 files)
  • services/cloud-agent-next/src/persistence/SandboxControl.ts
  • services/cloud-agent-next/src/sandbox-control/frames.test.ts
  • services/cloud-agent-next/src/sandbox-control/frames.ts
  • services/cloud-agent-next/src/sandbox-control/lifecycle.test.ts
  • services/cloud-agent-next/src/sandbox-control/scoped-stop-maintenance.test.ts
  • services/cloud-agent-next/src/sandbox-control/socket.test.ts
  • services/cloud-agent-next/src/sandbox-control/socket.ts
  • services/cloud-agent-next/src/sandbox-session/session-stop-progress.test.ts
  • services/cloud-agent-next/src/shared/sandbox-control-protocol.ts
  • services/cloud-agent-next/test/e2e/fake-llm-server.ts
  • services/cloud-agent-next/test/unit/fake-llm-server.test.ts
  • services/cloud-agent-next/wrapper/src/control/control-event-outbox.test.ts
  • services/cloud-agent-next/wrapper/src/control/control-event-outbox.ts
  • services/cloud-agent-next/wrapper/src/control/control-event-transport.test.ts
  • services/cloud-agent-next/wrapper/src/control/control-event-transport.ts
  • services/cloud-agent-next/wrapper/src/control/main.ts
  • services/cloud-agent-next/wrapper/src/control/operation-registry.test.ts
  • services/cloud-agent-next/wrapper/src/control/operation-registry.ts
  • services/cloud-agent-next/wrapper/src/control/sandbox-control-client.test.ts
  • services/cloud-agent-next/wrapper/src/control/sandbox-control-client.ts
  • services/cloud-agent-next/wrapper/src/control/sandbox-control-handlers.test.ts
  • services/cloud-agent-next/wrapper/src/control/sandbox-control-handlers.ts
  • services/cloud-agent-next/wrapper/src/control/session-directories.test.ts
  • services/cloud-agent-next/wrapper/src/control/session-directories.ts
  • services/cloud-agent-next/wrapper/src/control/session-operation-cleanup.test.ts
  • services/cloud-agent-next/wrapper/src/control/session-operation-cleanup.ts
  • services/cloud-agent-next/wrapper/src/control/session-operation.ts
  • services/cloud-agent-next/wrapper/src/control/terminal-runtime.test.ts
  • services/cloud-agent-next/wrapper/src/control/terminal-runtime.ts
  • services/cloud-agent-next/wrapper/src/control/worktree-runtime.test.ts
  • services/cloud-agent-next/wrapper/src/control/worktree-runtime.ts

Reviewed by grok-4.6 · Input: 124.5K · Output: 5.1K · Cached: 186.9K

Review guidance: REVIEW.md from base branch eshurakov/control-outbox-isolation-squash

@eshurakov
eshurakov force-pushed the eshurakov/control-outbox-isolation-integration branch from 70f6a25 to 0e214a6 Compare September 9, 2026 19:06
Release operation-only root cleanup without fencing sibling chats, keep
per-root claims from retiring a successor, and reject root+quiescence on
the strict abort-result reader.

Preserve shared-root retirement without a kilo runtime, detach terminals
only after a successful abort retirement, and cover worktree/terminal
abort paths in unit tests.
@eshurakov
eshurakov force-pushed the eshurakov/control-outbox-isolation-integration branch from 0e214a6 to 88b903a Compare September 9, 2026 19:22

@iscekic iscekic left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved.

@eshurakov
eshurakov added this pull request to stack #6038 September 10, 2026 07:15
@eshurakov
eshurakov merged commit 526a0d7 into main Sep 10, 2026
50 checks passed
@eshurakov
eshurakov deleted the eshurakov/control-outbox-isolation-integration branch September 10, 2026 07:17
iscekic added a commit that referenced this pull request Sep 10, 2026
Sync with main and regenerate pnpm-lock.yaml. Main downgraded the wrangler
catalog to 4.112.0 (#6005); the stale branch lockfile made --frozen-lockfile
fail on the PR merge ref with ERR_PNPM_LOCKFILE_MISSING_DEPENDENCY.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants