Skip to content

fix(runtime): harden CodeMode integration - #2467

Merged
Astro-Han merged 3 commits into
apache:mainfrom
Astro-Han:fix/code-mode-harden-runtime
Aug 8, 2026
Merged

Astro-Han merged 3 commits into
apache:mainfrom
Astro-Han:fix/code-mode-harden-runtime

Conversation

@Astro-Han

Copy link
Copy Markdown
Contributor

Summary

  • exclude provider-native tools from the nested CodeMode tool snapshot so their local invariant implementations cannot be dispatched
  • exclude hidden RuntimeEvents, including nested CodeMode calls and results, from provider-context token estimates
  • replace an assertion-free settlement test with focused regressions at the runtime behavior seams

Refs #2466

Verification

  • npm --workspace @maka/runtime test — 3290 tests, 3281 passed, 9 skipped, 0 failed
  • npm run lint
  • npm run format:check

Review focus

This PR is intentionally limited to packages/runtime and its direct tests. It does not change the CodeMode evaluator, the Terminal-Bench 2.1 harness, or the AI SDK integration.

@Astro-Han
Astro-Han marked this pull request as ready for review August 8, 2026 01:50
@Astro-Han
Astro-Han merged commit 9c96a07 into apache:main Aug 8, 2026
11 checks passed
@Astro-Han
Astro-Han deleted the fix/code-mode-harden-runtime branch August 8, 2026 01:56
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