From 4d6e73f3529b528eca44d5018fb6dba8b3156a2f Mon Sep 17 00:00:00 2001 From: Apple Date: Thu, 5 Mar 2026 08:07:46 -0800 Subject: [PATCH] fix(soak): fix NameError 'm' in rate_limited warning block Made-with: Cursor --- ops/scripts/matrix_bridge_soak.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ops/scripts/matrix_bridge_soak.py b/ops/scripts/matrix_bridge_soak.py index ec64d40f..fa058e58 100644 --- a/ops/scripts/matrix_bridge_soak.py +++ b/ops/scripts/matrix_bridge_soak.py @@ -405,9 +405,9 @@ async def run_soak( "— possible SQLite write pressure (Bottleneck #2)" ) # Rate-limited warning (not a failure, but surfaced prominently) - rl_delta = m.get("rate_limited", 0) + rl_delta = report["metrics_delta"].get("rate_limited", 0) if rl_delta > 0: - rl_pct = rl_delta / s["total_messages"] * 100 + rl_pct = rl_delta / report["summary"]["total_messages"] * 100 report["warnings"] = report.get("warnings", []) report["warnings"].append( f"rate_limited={rl_delta:.0f} ({rl_pct:.0f}% of messages) — "