mirror of
https://github.com/pewdiepie-archdaemon/odysseus.git
synced 2026-11-05 12:42:20 +01:00
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:
@@ -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) == []
|
||||
|
||||
Reference in New Issue
Block a user