You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maka.apache.org by "0xMudit (via GitHub)" <gi...@apache.org> on 2026/08/26 09:27:19 UTC
[I] refactor(runtime-host): decompose execution-composition.ts (1840 lines, 40+ imports) [maka]
0xMudit opened a new issue, #3911:
URL: https://github.com/apache/maka/issues/3911
## Summary
`packages/runtime-host/src/server/execution-composition.ts` (1,840 lines) is the single composition root that wires 40+ runtime imports. Every new runtime module extracted or renamed requires editing this file, creating a maintenance bottleneck.
## Evidence
- `packages/runtime-host/src/server/execution-composition.ts:31-100` — imports 40+ symbols from `@maka/runtime/*` sub-exports in one file
- The file wires SessionManager, BackendRegistry, tools, sandboxes, filesystem workers, agent graph, goals, skills, and more
- Changes to any runtime module often require corresponding edits here
## Proposed Decomposition
Split into domain-specific composition files:
1. **`tool-composition.ts`** — tool registration and tool pipeline wiring
2. **`agent-graph-composition.ts`** — agent graph scheduling and coordination
3. **`sandbox-composition.ts`** — sandbox boundary and filesystem worker wiring
4. **`history-composition.ts`** — history compaction and event log wiring
5. **`execution-composition.ts`** — orchestration that composes the above
Each domain composition would be a function that receives the kernel and returns its configured subsystem.
## Acceptance Criteria
- [ ] `execution-composition.ts` is under 500 lines
- [ ] Each domain composition is independently testable
- [ ] No new cross-module cycles introduced
- [ ] All existing tests pass
- [ ] Runtime Host boot sequence is unchanged
## Labels
refactor, help wanted
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For additional commands, e-mail: commits-help@maka.apache.org
Re: [I] refactor(runtime-host): decompose execution-composition.ts (1840 lines, 40+ imports) [maka]
Posted by "WangzJi (via GitHub)" <gi...@apache.org>.
WangzJi commented on issue #3911:
URL: https://github.com/apache/maka/issues/3911#issuecomment-5477072584
take
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For additional commands, e-mail: commits-help@maka.apache.org