Build the routing decision of a mixture-of-experts layer: send a token to the expert whose center is closest, with stable tie breaking.
Required APIdef route_token(value, experts):
return expert_nameBehaviorThink through the mechanism first if you want the extra reasoning step. It never blocks the editor.
route_token(1.0, {'left': 0.0, 'right': 10.0})routing should specialize by input value
route_token(9.0, {'left': 0.0, 'right': 10.0})different tokens can use different capacity
2 hidden edge tests run after the visible contract passes.
Run Tests to see the contract verdicts here.