From 5cbb081b027af4bc1015465d9097afd406bbc9dd Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 29 Jan 2026 17:29:39 +0000 Subject: [PATCH 1/2] Initial plan From 13ab8dc7b73e67492b969ef2e5bdda52ed3e6f12 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 29 Jan 2026 17:30:58 +0000 Subject: [PATCH 2/2] Fix status code threshold: change >= 400 to > 400 to match docstring and spec Co-authored-by: groupthinking <154503486+groupthinking@users.noreply.github.com> --- scripts/nightly_audit_agent.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/nightly_audit_agent.py b/scripts/nightly_audit_agent.py index 680a4cd0..a714e236 100644 --- a/scripts/nightly_audit_agent.py +++ b/scripts/nightly_audit_agent.py @@ -118,7 +118,7 @@ async def analyze_logs(self): for line in f: try: entry = json.loads(line) - if entry.get('status_code', 0) >= 400: + if entry.get('status_code', 0) > 400: self.issues.append({ "type": "http_error", "severity": "medium" if entry.get('status_code') < 500 else "high",