refactor(acp): extract runtime composition - #644
Merged
Conversation
Codex ReviewVerdict: mergeable No actionable findings. Summary: Static inspection found no concrete merge-blocking defect in the pull request changes. The moved ACP composition preserves existing wiring, and removed compatibility aliases have no remaining repository callers. Branch and title prechecks are valid. |
ewen-poch
force-pushed
the
refactor/acp-runtime-composition
branch
from
August 3, 2026 02:55
7d7e3e1 to
5ee9ee0
Compare
Codex ReviewVerdict: mergeable No actionable findings. Summary: No concrete merge-blocking defects found in the requested diff. Branch and pull request title prechecks are valid. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
ACP Electron IPC owns construction of the cross-framework runtime coordinator as well as transport registration. That mixes application composition with handler registration and leaves duplicate compatibility forwarding in
AcpRuntimeandAcpRuntimeCoordinator.Issue #458 remains forward compatibility only. This pull request adds no orchestration state, parent/child relationship, budget, plan, persistence, method, event, or public API.
Proposed change
Move runtime/coordinator construction into main-owned
runtime-composition.ts. Keepipc.tsresponsible for registering the unchanged ACP handler inventory against an already-composed runtime. Remove unused compatibility wrappers and duplicate continuation aliases.Handler-owned create/resume diagnostics and prompt notification tracking/rollback remain behaviorally unchanged here and are explicitly assigned to A9.4b. This PR does not claim the final side-effect-free handler boundary.
Compatibility boundaries
Commits and size
test(transport): pin acp handler inventoryrefactor(acp): extract runtime compositionProduction churn is
+255/-289 = 544, within the 300–550 target. The new composition module replaces construction removed from the IPC adapter.Validation
--max-warnings=0: passed with 0 findings.git diff --check: passed.Review focus
registerAcpIpcHandlers,continuePrompt, andsendPromptForHandoffaliases have no remaining consumers and their canonical operations are unchanged.