Repository navigation
fix(router_core): re-sync to router-core 273c2af (2026-11 audit) — 88/88 parity - #102
Merged
Merged
Conversation
Ports the router-core audit (BlockRunAI/router-core#12) onto the 8773a99 port. All 88 cross-language snapshot decisions match again. - portfolio: Chinese task keywords outside the ASCII \b; coding-action gate for code_agent; whole-word tool verbs; letter+digit reservation ids; kana excluded from zh; strict multi-location connector; unpriced candidates score cost 0; malformed performance profiles ignored. - rules: line-leading numbered lists only; full-width question marks. - selector: usable_pricing; no savings for an unpriced model in calculate_model_cost. - tokens: bounded scan at limit 1 and for non-numeric limits. - model_capabilities: 2026-11-08 catalog (kimi-k3 retained, DeepSeek vision fails closed). 29 new tests port upstream hardening.test.ts; 15 fail on the previous port. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
VickyXAI
force-pushed
the
fix/router-core-parity-audit
branch
from
November 8, 2026 14:27
4fa8dba to
ec2a1df
Compare
This was referenced Nov 8, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Ports the router-core audit (BlockRunAI/router-core#12, merged as
273c2af) onto the current8773a99port. All 88 cross-language snapshot decisions match the TypeScript engine.\b, so they match again.code_agent.zh; the multi-location connector is stricter.?counts as a question.usable_pricing;calculate_model_costreports no savings for an unpriced model.kimi-k3is retained because it is still routed and served; DeepSeek vision fails closed.(This branch was rebuilt on current main. The first version was based on a stale checkout and duplicated #87/#90.)
Not included: upstream's
catalogmodule. The SDK already does this throughrouter_adapter.build_model_pricing, and routing parity does not depend on it.Test plan
pytest tests/unit: 1469 passed. The 29 new tests intest_router_core_audit.pyport upstreamhardening.test.ts; 15 of them fail on main.273c2afruff check/ruff formatclean; mypy shows norouter_coreerrors🤖 Generated with Claude Code