From 2a78c90b60da4086d1e14ed544830fd702781859 Mon Sep 17 00:00:00 2001 From: Lareb Zafar Date: Sun, 6 Dec 2026 15:40:39 +0530 Subject: [PATCH] The review brief's history remap no longer reads as an unnoted exception branch The remap that turns a record of another file's definition into unknown tested each gathered result for an exception and passed it through. The broad-handler scan reads that pass-through as a fallback that notes nothing, so test_degraded_unnoted failed on main. It now tests what it means, a record whose symbol path is another file; the loop below still notes each failed read. Co-Authored-By: Claude Opus 5.5 Signed-off-by: Lareb Zafar --- server/code/app/index/review_brief_build.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/server/code/app/index/review_brief_build.py b/server/code/app/index/review_brief_build.py index e7e66eb24a..70f937c3ab 100644 --- a/server/code/app/index/review_brief_build.py +++ b/server/code/app/index/review_brief_build.py @@ -953,10 +953,9 @@ async def _history_section( left = 0 # functions an op refused to read: a cap # a name that resolved to another file's definition reads as unknown results = [ - r - if isinstance(r, BaseException) - or str((r.get("symbol") or {}).get("path") or "") in ("", path) - else {"verdict": "unknown"} + {"verdict": "unknown"} + if isinstance(r, dict) and str((r.get("symbol") or {}).get("path") or "") not in ("", path) + else r for (_, path), r in zip(defs, results, strict=True) ] listed = any(not isinstance(r, BaseException) and r.get("regression_prs") for r in results)