From cdb2e505c6d48e151c9104ff42f2e31b758552d9 Mon Sep 17 00:00:00 2001 From: Christian Nennemann Date: Mon, 9 Mar 2026 04:04:19 +0100 Subject: [PATCH] fix: restore SAFETY/CAPABILITY_CATEGORIES lost in data.py split Constants were defined in the old monolithic data.py but not carried over to data/analysis.py during the split, breaking /trends page. Co-Authored-By: Claude Opus 4.6 --- src/webui/data/analysis.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/webui/data/analysis.py b/src/webui/data/analysis.py index f78f672..155ece0 100644 --- a/src/webui/data/analysis.py +++ b/src/webui/data/analysis.py @@ -13,6 +13,10 @@ from sklearn.preprocessing import normalize as sk_normalize from ietf_analyzer.config import Config from ietf_analyzer.db import Database + +SAFETY_CATEGORIES = {"AI safety/alignment", "Agent identity/auth", "Policy/governance"} +CAPABILITY_CATEGORIES = {"A2A protocols", "Agent discovery/reg", "Autonomous netops", + "Data formats/interop", "Human-agent interaction", "Model serving/inference"} from webui.data._shared import _cached, _extract_month from webui.data.drafts import get_draft_detail