Skip to content

refactor(runtime): align projection and compaction ownership - #1448

Merged
Astro-Han merged 4 commits into
mainfrom
refactor/1403-runtime-ownership-contracts
Jul 24, 2026
Merged

Astro-Han merged 4 commits into
mainfrom
refactor/1403-runtime-ownership-contracts

Conversation

@Astro-Han

@Astro-Han Astro-Han commented Jul 24, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • move request-projection composition to request-projection.ts while keeping AiSdkBackend.send() as the single provider-step loop
  • introduce a narrow compaction capability contract so AiSdkCompaction no longer imports the full AiSdkBackendInput; keep existing public callback type imports compatible through type-only re-exports
  • strengthen replay and schema-only behavior coverage, remove a hand-written parallel loop test, and replace the two refactor(runtime): make a single provider step the ModelAdapter primitive #1381-adjacent source-regex extraction contracts with typed and behavioral coverage

Refs #1403. Follow-up governance for #1381.

Verification

  • npm run format:check
  • npm run lint
  • npm --workspace @maka/runtime test — 2480 passed, 0 failed, 7 environment-conditional skips
  • npm run typecheck — core, storage, MCP, runtime, runtime-host, computer-use, headless, CLI, and UI passed; local desktop renderer checking then hit the pre-existing checkout errors at apps/desktop/src/renderer/app-shell.tsx:1789-1791 (onAskAboutSelection missing from ChatMessageSurfaceProps), reproduced from the clean root main checkout
  • PR CI — typecheck, test, and e2e passed

Review focus

This is behavior-neutral ownership cleanup. AiSdkBackend.send() remains the only agent-loop owner, ToolRuntime.settleToolCall() remains the settlement owner, and ModelAdapter remains the AI SDK protocol boundary. The moved callback types remain available from the existing @maka/runtime and @maka/runtime/ai-sdk-backend import surfaces.

@Astro-Han
Astro-Han merged commit b82f3e1 into main Jul 24, 2026
3 checks passed
@Astro-Han
Astro-Han deleted the refactor/1403-runtime-ownership-contracts branch July 24, 2026 10:39
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.

1 participant