Skip to content

Route cheap low-risk turns to economy#451

Merged
mylukin merged 3 commits into
mainfrom
codex/cheap-model-low-risk-routing-20260704
Jul 4, 2026
Merged

Route cheap low-risk turns to economy#451
mylukin merged 3 commits into
mainfrom
codex/cheap-model-low-risk-routing-20260704

Conversation

@mylukin

@mylukin mylukin commented Jul 4, 2026

Copy link
Copy Markdown
Contributor

Summary

  • add a configurable cheap_model_low_risk classifier override for short current-turn read/check/status requests when the client explicitly asked for a cheap model
  • scope the rule to the last user turn and block JSON, vision, code-changing, debug, deploy, security, math, and explicit heavy-model cases
  • add schema coverage plus override and golden-routing regressions for the openclaw cost pattern

Verification

  • corepack pnpm exec vitest run packages/core/src/classifier/overrides.test.ts packages/core/src/classifier/golden-routing.test.ts packages/shared/src/config/classifier-schema.test.ts
  • corepack pnpm typecheck
  • corepack pnpm lint (passes; existing info-level template-literal suggestion in packages/core/src/memory/forgetting/facts.test.ts)
  • corepack pnpm build
  • corepack pnpm test (322 files, 5008 tests)

mylukin and others added 3 commits July 4, 2026 22:52
Co-Authored-By: Codex <noreply@openai.com>
Co-Authored-By: Codex <noreply@openai.com>
Co-Authored-By: Codex <noreply@openai.com>
@mylukin mylukin merged commit e7bfc9c into main Jul 4, 2026
3 checks passed
@mylukin mylukin mentioned this pull request Jul 4, 2026
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