Harden maintainer-preview harness and review fixes

Unify conversational domain routing, preserve artifact completion evidence, replace provisional tool-round prose with terminal synthesis, and resolve verified maintainer review findings across search, frontend module identity, path policy, configuration, and built-in skill startup.
This commit is contained in:
pewdiepie-archdaemon
2026-09-21 06:54:03 +00:00
parent d7cad0621f
commit 297ad19248
54 changed files with 1223 additions and 110 deletions
+15
View File
@@ -178,6 +178,21 @@ class FastEmbedClient:
except Exception as _e:
logger.debug("embedding cache symlink-heal skipped: %s", _e)
kwargs = {"model_name": self.model, "cache_dir": cache_dir}
# Isolated evaluation and worker fleets can run many Odysseus
# processes on one host. FastEmbed otherwise lets ONNX Runtime size
# a thread pool from the whole machine for every process, which can
# create hundreds of threads per worker and starve inference. Keep
# the existing default for normal installs, but allow operators to
# bound that pool explicitly.
raw_threads = os.getenv("FASTEMBED_THREADS", "").strip()
if raw_threads:
try:
threads = int(raw_threads)
except ValueError as exc:
raise ValueError("FASTEMBED_THREADS must be an integer") from exc
if not 1 <= threads <= 256:
raise ValueError("FASTEMBED_THREADS must be between 1 and 256")
kwargs["threads"] = threads
self._embedding = TextEmbedding(**kwargs)
self._dim: Optional[int] = None
self.url = "local://fastembed"