Repository navigation
refactor: extract ACP manager runtime handle cache - #88725
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed May 31, 2026, 1:38 PM ET / 17:38 UTC. Summary PR surface: Source +33. Total +33 across 2 files. Reproducibility: not applicable. This PR is an internal refactor rather than a bug report. Behavior preservation is covered by source parity review and the existing focused ACP runtime-handle tests listed in the PR body. Review metrics: none identified. Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Risk before merge
Maintainer options:
Next step before merge
Security Review detailsBest possible solution: Land the extraction as a narrow behavior-preserving refactor once the branch is refreshed and the focused ACP manager runtime-handle/runtime-config tests plus current CI stay green. Do we have a high-confidence way to reproduce the issue? Not applicable; this PR is an internal refactor rather than a bug report. Behavior preservation is covered by source parity review and the existing focused ACP runtime-handle tests listed in the PR body. Is this the best way to solve the issue? Yes; extracting the cache owner is the narrow maintainable shape because it moves cohesive runtime-handle cache operations out of AGENTS.md: found and applied where relevant. Codex review notes: model gpt-5.5, reasoning high; reviewed against bb5b6f38f424. Label changesLabel changes:
Label justifications:
Evidence reviewedPR surface: Source +33. Total +33 across 2 files. View PR surface stats
What I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
|
Summary
ManagerRuntimeHandleCachemanager.core.tsAcpSessionManagerfocused on session orchestration and runtime lifecycle decisionsVerification
Behavior addressed: internal ACP manager refactor only; no protocol or user-visible behavior change intended.
Real environment tested: local macOS checkout, Node/pnpm repo tooling.
Exact steps or command run after this patch:
pnpm test src/acp/control-plane/manager.runtime-handles.test.ts src/acp/control-plane/runtime-cache.test.ts src/acp/control-plane/manager.runtime-config.test.tsnode scripts/run-oxlint.mjs src/acp/control-plane/manager.core.ts src/acp/control-plane/manager.runtime-handle-cache.tspnpm check:test-types.agents/skills/autoreview/scripts/autoreview --mode localEvidence after fix: focused manager runtime-handle/runtime-config tests passed; narrow oxlint passed; test types passed; autoreview reported no accepted/actionable findings.
Observed result after fix: cached runtime handle reuse, unhealthy-status eviction, handle matching, close/clear, idle eviction, and observability behavior are preserved through the extracted owner.
What was not tested: full CI before PR creation.