Consolidate Odysseus agent harness and tool contracts

This commit is contained in:
pewdiepie-archdaemon
2026-09-17 10:07:40 +00:00
parent 84aa9a91de
commit 218d762427
229 changed files with 28899 additions and 1551 deletions
+9
View File
@@ -49,6 +49,13 @@ LOW_QUALITY_MARKERS = [
"copyright notice",
"copyright footer",
"all rights reserved",
# Common small-model extraction leakage: these are process narration, not
# evidence from the fetched page.
"the user wants me to extract",
"provided source data",
"i need to create",
"i will create",
"generic request",
]
@@ -58,6 +65,8 @@ def is_low_quality(summary: str) -> bool:
if not isinstance(summary, str) or not summary:
return True
low = summary.lower()
if low.strip() in {"(no content)", "no content", "(no relevant content)"}:
return True
return any(marker in low for marker in LOW_QUALITY_MARKERS)
except Exception:
return False # fail open