mirror of
https://github.com/pewdiepie-archdaemon/odysseus.git
synced 2026-10-28 00:32:22 +01:00
feat(security): apply audited PR #6738 remediations and test hardening
- Enforce vision probe SSRF safe local host validation, SafeProbeBackend TOCTOU elimination, and session owner authorization - Authorize session titling endpoints against registered owner configuration - Sanitize sensitive metadata logging from agent loop debug logs - Add async non-blocking execution for spec router tools and thinking decisions - Harden email cache invalidation fencing and thread-safe mutation - Add regression test suites for legacy browser authority, spec contracts, spec router request scoping, and task MCP delivery
This commit is contained in:
@@ -37,6 +37,13 @@ def test_score_value_and_choice_of():
|
||||
assert jd.choice_of(None) is None
|
||||
|
||||
|
||||
def test_non_finite_score_falls_back(monkeypatch):
|
||||
for bad in (float("nan"), float("inf"), "nan"):
|
||||
assert jd.score_value({"type": "score", "score": bad}) is None
|
||||
_enable(monkeypatch, bad)
|
||||
assert _run(ba._spec_triage_email_urgency({"subject": "x", "body": "y"}, triage_version=11)) is None
|
||||
|
||||
|
||||
def test_disabled_job_does_not_call_adapter(monkeypatch):
|
||||
monkeypatch.setenv("ODYSSEUS_JEFF_EMAIL_URGENCY", "0")
|
||||
calls = {"n": 0}
|
||||
|
||||
Reference in New Issue
Block a user