fix(snapshot): Cookie-Dedup + schneller Impressum-Tab + Tabellen-Zahl
- Cookies werden je Vendor nach Name dedupliziert (Consent-Phasen-Dubletten; BMW 2196 → ~772) — in cookie-check + get_snapshot, behebt aufgeblähte Kachel-/Finding-Zahlen. - Impressum-Snapshot-Check überspringt den ~40s-LLM-Schritt (context skip_llm) → Tab lädt sofort statt leer zu bleiben. - Vendor-Tabelle zeigt nur die Cookie-Zahl (kein 'Cookies'-Wort je Zeile). Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -259,7 +259,10 @@ class ImpressumAgent(BaseSpecialistAgent):
|
||||
)
|
||||
|
||||
# ── Layer 3: Semantic-Validator nur für HIGH/MEDIUM-Fails ──
|
||||
await self._semantic_demote(text, findings, coverage)
|
||||
# In der interaktiven Snapshot-Ansicht (context skip_llm) übersprungen:
|
||||
# der LLM-Schritt kostet ~40s, das deterministische Ergebnis genügt dort.
|
||||
if not (agent_input.context or {}).get("skip_llm"):
|
||||
await self._semantic_demote(text, findings, coverage)
|
||||
|
||||
# Confidence: harmonic mean der Findings (oder hoch wenn 0)
|
||||
confs = [f.confidence for f in findings if f.confidence] or [0.95]
|
||||
|
||||
Reference in New Issue
Block a user