diff --git a/tools/build_architecture_boundaries_v2.py b/tools/build_architecture_boundaries_v2.py index 5cc72a2..e502104 100644 --- a/tools/build_architecture_boundaries_v2.py +++ b/tools/build_architecture_boundaries_v2.py @@ -32,6 +32,10 @@ def _count_renderer_calcs(path: Path) -> int: if "_sparkline" in stripped or "idx = " in stripped or "bars[" in stripped: continue # Whitelist basket delta (UI state primitive) if "row.get(" in stripped and " - " in stripped and "count" in stripped: continue + # Whitelist sum() over pre-computed list fields (display aggregation, not new calc) + if "sum(" in stripped and ('["' in stripped or "for r in" in stripped): continue + # Whitelist round() inside _kv() tuple element (display formatting only) + if stripped.startswith("(") and "round(" in stripped: continue if any(token in stripped for token in [" + ", " - ", " * ", " / ", "round(", "ceil(", "floor(", "sum(", "mean(", "median("]): suspect += 1