test('automatic router uses OpenLux first for current mother and door work without exposing keys',async()=>{constcalls=[];constfetchImpl=async(url,options)=>{calls.push({url,body:JSON.parse(options.body),auth:options.headers.authorization});return{ok:true,asyncjson(){return{choices:[{message:{content:'{"schema":"ok"}'}}]};}};};constrouter=newModelRouter({fetchImpl,deepseekKey:'deep-secret',openluxKey:'open-secret'});awaitrouter.cognize('mother-evolve',{});awaitrouter.cognize('door-test',{});assert.match(calls[0].url,/openlux/);assert.match(calls[1].url,/openlux/);assert.equal(JSON.stringify(router.status()).includes('secret'),false);});