mirror of
https://github.com/proffesor-for-testing/agentic-qe.git
synced 2026-09-19 08:45:47 +08:00
c981d84f5d
Defense-in-depth after the QEReasoningBank init recursion. Pattern search + model routing in createDomainHandler are optional hints, so they must never block a tool call. Wrap routeDomainTask() in withTimeout (ROUTE_ADVISORY_TIMEOUT_MS, default 5s, env-overridable): on timeout the tool proceeds with null routing (mapToPayload already tolerates null). Also cache the learning engine only AFTER a successful init, so a failed/slow init no longer serves a half-initialized engine on the next call. Adds unit tests for withTimeout (fallback on stall, real value when fast, fallback on reject). MCP code_index still returns normally.