Repository navigation
refactor(runtime): remove unused AgentRun execute path - #3043
Conversation
6583c80 to
ff4a453
Compare
|
Warning Review limit reached
Next review available in: 49 seconds Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (3)
💤 Files with no reviewable changes (1)
📝 WalkthroughSummaryThis PR removes the unused, test-only The change extends the existing The solution is the smallest coherent change. It deletes The diff reduces test code by 204 lines. Further deletion is not recommended because the remaining tests cover failed terminal-ledger persistence, failed-turn projection, normal tool mode, session events, and Runtime invocation behavior. Validation and risksThe PR reports successful Runtime build, typecheck, formatting, and focused tests. The full repository test suite was not run. Required checks remain unverified from direct execution evidence. The apparent protected-area effect is the removal of the public No security, licensing, release, or governance effect was identified in the current diff. The person performing the merge must review the final diff, and a maintainer makes the final determination. WalkthroughRuntime removes the unused ChangesRuntime execution and validation
Estimated code review effort: 3 (Moderate) | ~20 minutes Merge Risk: ⚪ Minimal · up to This PR removes an unused execution path while retaining the production runtime authority and focused validation; no actionable merge-blocking risk remains after normal checks and review. Suggested reviewers: 🚥 Pre-merge checks | ✅ 5 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
Delete the test-only AgentRun.execute flow so RuntimeKernel remains the sole execution authority. Move terminal-ledger and tool-mode coverage through SessionManager's production path, and drop duplicated post-terminal coverage. Refs #3034 Generated-by: Codex
Remove an ineffective terminal-ordering guard, anchor normal tool-mode forwarding at the SessionManager execution boundary, and make failed turn projection injection cover batched writes. Refs #3034 Generated-by: Codex
ff4a453 to
c4df956
Compare
|
Fast-path determination (posted by Codex on behalf of @Astro-Han) @Astro-Han reviewed the final diff and commit messages and chose the self-merge fast path for revision c4df956. This revision qualifies because:
The human contributor of record accepts responsibility for the final change, provenance, licensing, and merge decision. |
Summary
AgentRun.execute(), an unused test-only path that reconstructedAiSdkFlowoutsideRuntimeKernel.RuntimeKernelas the sole production execution authority.Fixes #3034
Verification
npm --workspace @maka/core run buildnpm --workspace @maka/runtime run buildnode --test dist/__tests__/session-manager-terminal-ledger.test.js— 39 passednode --test dist/__tests__/session-manager.test.js— 220 passednpm --workspace @maka/runtime run typechecknpx biome check packages/runtime/src/agent-run.ts packages/runtime/src/__tests__/session-manager-terminal-ledger.test.ts packages/runtime/src/__tests__/session-manager.test.tsThe branch was rebased onto the latest
mainbefore running these checks. The full repository test suite was not run locally; repository-wide coverage is left to CI.Review focus
Confirm that removing the internal parallel execution path leaves
RuntimeKernelas the single execution authority and that the remaining tests cover production seams without duplicate fixtures.AgentRunis not exported by the private@maka/runtimepackage, so this does not change a public contract.AI use
Select exactly one:
Tool(s) and scope: Codex implemented the code and test changes, performed focused verification, and adjudicated review feedback. Claude Opus High and a Codex reviewer agent performed adversarial reviews of the implementation and test coverage. The human contributor of record reviews the final diff and commits and owns the submission, provenance, licensing, and merge decision.
Checklist
Does this PR entail a change in behavior?