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
@@ -752,3 +752,21 @@ def test_service_ddg_html_fallback_sends_safesearch(monkeypatch):
assert seen["params"]["kp"] == "-2"
assert seen["timeout"] <= 5
assert results[0]["url"].startswith("https://notduckduckgo.com/")
def test_relevance_filter_falls_back_when_heuristic_rejects_every_result():
rows = [{
"title": "Bicycle buying guide",
"snippet": "Road bikes and city bikes",
"url": "https://example.test/bicycle-guide",
}]
assert core._filter_low_relevance_results("bicycles", rows) == rows
def test_relevance_filter_does_not_bypass_explicit_site_scope():
rows = [{
"title": "Bicycle buying guide",
"snippet": "Road bikes and city bikes",
"url": "https://example.test/bicycle-guide",
}]
assert core._filter_low_relevance_results("site:official.test bicycles", rows) == []