{"record":{"id":"7ecff42ee39a2fec","repo":"diegosouzapw/OmniRoute","slug":"routerstrategy-strategy-name-not-found-fal","errorCode":null,"errorMessage":"[RouterStrategy] Strategy '${name}' not found, falling back to 'rules'","messagePattern":"\\[RouterStrategy\\] Strategy '(.+?)' not found, falling back to 'rules'","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"open-sse/services/autoCombo/routerStrategy.ts","lineNumber":354,"sourceCode":"const rulesStrategy = new RulesStrategyImpl();\nconst costStrategy = new CostStrategyImpl();\nconst latencyStrategy = new LatencyStrategyImpl();\nconst slaStrategy = new SLAStrategyImpl();\nconst lkgpStrategy = new LKGPStrategyImpl();\n\nstrategyRegistry.set(\"rules\", rulesStrategy);\nstrategyRegistry.set(\"cost\", costStrategy);\nstrategyRegistry.set(\"eco\", costStrategy); // alias\nstrategyRegistry.set(\"latency\", latencyStrategy);\nstrategyRegistry.set(\"fast\", latencyStrategy); // alias\nstrategyRegistry.set(\"sla-aware\", slaStrategy);\nstrategyRegistry.set(\"sla\", slaStrategy); // alias\nstrategyRegistry.set(\"lkgp\", lkgpStrategy);\n\nexport function getStrategy(name: string): RouterStrategy {\n  const strategy = strategyRegistry.get(name);\n  if (!strategy) {\n    console.warn(`[RouterStrategy] Strategy '${name}' not found, falling back to 'rules'`);\n    return rulesStrategy;\n  }\n  return strategy;\n}\n\nexport function registerStrategy(name: string, strategy: RouterStrategy): void {\n  if (strategyRegistry.has(name)) {\n    console.warn(`[RouterStrategy] Overwriting strategy '${name}'`);\n  }\n  strategyRegistry.set(name, strategy);\n}\n\nexport function listStrategies(): Array<{ name: string; description: string }> {\n  return [...strategyRegistry.entries()].map(([name, s]) => ({ name, description: s.description }));\n}\n\nexport function selectWithStrategy(\n  pool: ProviderCandidate[],","sourceCodeStart":336,"sourceCodeEnd":372,"githubUrl":"https://github.com/diegosouzapw/OmniRoute/blob/a179ffed5bb2e0b883b9ae7214ce8717b2a94c4d/open-sse/services/autoCombo/routerStrategy.ts#L336-L372","documentation":"Error \"[RouterStrategy] Strategy '${name}' not found, falling back to 'rules'\" thrown in diegosouzapw/OmniRoute.","triggerScenarios":"Thrown at open-sse/services/autoCombo/routerStrategy.ts:354 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"a179ffed5bb2e0b883b9ae7214ce8717b2a94c4d","analyzedAt":"2026-08-25T18:35:09.898Z","schemaVersion":2},"datasetVersion":"2026-08-25T21:54:21.419Z"}