Zum Hauptinhalt springen
Echtzeit-Radar & Feeds
Alle RSS Feeds ➔
👥 Community & Social
Windows Tipps & SecurityGrafikkarte vor Überhitzung schützen: So geht’s(25.09.2026 um 08:00 Uhr)
••••••••••
Windows Tipps & SecurityGrafikkarte vor Überhitzung schützen: So geht’s(25.09.2026 um 08:00 Uhr)
••••••••••
Intelligence View
⚡ tsecurity.de Intelligence

Building a Transparent AI Pipeline: 59 Weeks of Automated Political Scoring with Claude API

I've been running an automated AI pipeline for over a year that ingests news articles, clusters them into political events, and scores each event on two independent axes. Here's how it works, what I learned, and why I made everything…

0
↗ Quelle (dev.to)
Reagiere als Erste:r — dein Feedback zählt!

I've been running an automated AI pipeline for over a year that ingests news articles, clusters them into political events, and scores each event on two independent axes. Here's how it works, what I learned, and why I made everything transparent.






The Problem



Political events have two dimensions that are rarely measured together:





  1. How much institutional damage does this cause? (democratic health)


  2. How much media attention does it get? (distraction economics)



When these are wildly mismatched — high damage, low attention — something important is being missed. I built The Distraction Index to detect these gaps automatically.






Architecture Overview






News Sources (GDELT + GNews + Google News RSS)
↓ every 4 hours
Ingestion Pipeline (/api/ingest)
↓ dedup + store
Clustering (Claude Haiku) → group articles into events
↓
Dual-Axis Scoring (Claude Sonnet) → Score A + Score B
↓
Weekly Freeze → immutable snapshot






Tech stack: Next.js 16 (App Router), Supabase (PostgreSQL), Claude API, Vercel






Why Two Models?



Cost optimization was critical. Running everything through Sonnet would cost ~$300/month. Instead:





  • Claude Haiku handles article clustering (~$0.25/1M tokens) — it groups articles by topic similarity


  • Claude Sonnet handles scoring (~$3/1M tokens) — it evaluates institutional impact using structured prompts



Result: ~$30/month for a production pipeline processing articles every 4 hours.






The Dual Scoring System






Score A: Constitutional Damage (0-100)



Seven weighted governance drivers, each scored 0-5:
















































Driver Weight What it measures
Judicial Independence 0.18 Court stacking, ruling defiance
Press Freedom 0.15 Journalist targeting, access restrictions
Voting Rights 0.15 Disenfranchisement, election interference
Environmental Policy 0.12 Regulatory rollbacks, enforcement gaps
Civil Liberties 0.15 Due process, privacy, free assembly
International Norms 0.10 Treaty violations, alliance damage
Fiscal Governance 0.15 Budget manipulation, oversight bypass


Multiplied by severity modifiers (durability × reversibility × precedent) and mechanism/scope modifiers.






Score B: Distraction/Hype (0-100)



Two-layer model:





  • Layer 1 (55%): Raw media hype — volume, social amplification, cross-platform spread, emotional framing, celebrity involvement


  • Layer 2 (45%): Strategic manipulation indicators — timing relative to damage events, coordinated messaging, deflection patterns



Layer 2 is modulated by an intentionality score (0-15). Low intentionality → Layer 2 weight drops to 10%.






Classification



Events are classified by dominance margin:





  • Damage (List A): Score A exceeds Score B by ≥10 points


  • Distraction (List B): Score B exceeds Score A by ≥10 points


  • Noise (List C): Neither dominates






The Smokescreen Index



The most interesting feature: automatic pairing of high-distraction events with concurrent high-damage events.



When a B-dominant event (media spectacle) co-occurs with an A-dominant event (institutional harm) that received less coverage, the system flags it as a potential smokescreen.



210+ pairs identified across 59 weeks.






Radical Transparency



Every scoring formula, weight, and AI prompt is published at /methodology. This was a deliberate design choice — if you're scoring political events, your methodology must be auditable.



Key transparency features:





  • Immutable weekly snapshots — once a week freezes, scores cannot be silently changed


  • Append-only corrections — post-freeze corrections are timestamped and linked to the original


  • Published prompts — the exact Claude prompts used for scoring are documented


  • Open source — full codebase on GitHub






What I Learned






1. Publishing your prompts is terrifying



When your prompt templates are public, anyone can argue with your framing. That's the point — but it requires thick skin and a willingness to iterate.






2. Immutability prevents model drift



Without frozen snapshots, you can't tell if score changes come from real-world changes or model updates. Immutability is essential for longitudinal analysis.






3. The two-axis approach reveals patterns



Single-dimension scoring (left/right, reliable/unreliable) misses the key insight: damage and distraction are independent variables. Some events are both. Some are neither.






4. Cost optimization matters for indie projects



The Haiku-for-clustering, Sonnet-for-scoring split keeps costs at ~$30/month. Without this, the project wouldn't be sustainable as a solo effort.






The Numbers



After 59 weeks:





  • 1,500+ scored events


  • 11,800+ ingested articles


  • 210+ smokescreen pairs


  • 288 tests passing


  • 1,071 pages indexed






Try It





I'd love feedback on the scoring methodology. What would you weight differently? What blind spots do you see?

1. Sofort-Triage & Abwehrmaßnahmen

SOC Incident Playbook: Remote Code Execution (RCE) Defense
Syntax validiert (0 Fehler)
title: Detect Exploitation - Building a Transparent AI Pipeline: 59 Weeks of Automated Political Scoring with Claude API
id: d5319d46-1022-4939-84ac-fdb95fe05442
status: experimental
description: Automatisch generierte SIEM-Erkennungsregel basierend auf CTI Intelligence
references:
  - https://tsecurity.de/
author: iShareStuff CTI Automated Detection Engine
date: 2026-09-27
logsource:
  category: network_connection
  product: any
detection:
  selection:
      CommandLine|contains:
        - 'exploit'
  condition: selection
falsepositives:
  - Legitime administrative Zugriffe oder Penetrationstests
level: high
tags:
  - attack.initial_access
Syntax validiert (0 Fehler)
rule CTI_Threat_Indicator {
    meta:
        author = "iShareStuff CTI Automated Detection Engine"
        date = "2026-09-27"
        description = "YARA Signature for "
    strings:
        $str = "Building a Transparent AI Pipe" ascii wide
    condition:
        any of them
}
Syntax validiert (0 Fehler)
index=security sourcetype IN ("cisco:asa", "pan:traffic", "zeek_conn", "suricata", "WinEventLog:Security")
("Building a Transparent AI Pipeline 59 We")
| stats count earliest(_time) as first_seen latest(_time) as last_seen by src_ip, dest_ip, dest_host, signature
| eval first_seen=strftime(first_seen, "%Y-%m-%d %H:%M:%S"), last_seen=strftime(last_seen, "%Y-%m-%d %H:%M:%S")
| sort - count
Syntax validiert (0 Fehler)
message: "*Building a Transparent AI Pipeline 59 We*"
Syntax validiert (0 Fehler)
CommonSecurityLog
| where Message has "Building a Transparent AI Pipeline 59 We"
| summarize EventCount = count(), FirstSeen = min(TimeGenerated), LastSeen = max(TimeGenerated) by SourceIP, DestinationIP, DestinationPort, Activity
| extend DetectionRule = "iShareStuff-CTI-Compiled"
| sort by EventCount desc

2. Cyber Threat Intelligence & Forensik

CTI Threat Relationship Graph2 Knoten / 1 Relationen
CVE / Incident Software MITRE ATT&CK CWE Weakness IoC
🎯
MITRE ATT&CK Matrix Navigator 14 Taktiken
Reconnaissance
-
Resource Development
-
Initial Access
Execution
Persistence
-
Privilege Escalation
Defense Evasion
Credential Access
-
Discovery
-
Lateral Movement
-
Collection
-
Command and Control
Exfiltration
-
Impact
tsecurity.de Cognitive Threat RAG
Fokus-Vektor:

Analyse für identifizierte Bedrohung auf Basis von Live-CTI (ENISA EUVD): CVSS 0.0 · EPSS 0.0% · CISA KEV: nein. Handlungsableitung aus den verlinkten Hersteller-Quellen.

🛡️ Angriffsfläche & Exposure

Netzwerk/Remote-Zugriff ohne Vorauthentifizierung möglich.

⚡ Empfohlene Sofortmaßnahmen
  • 1. Perimeter-Inspektion: Relevante Portfreigaben und exponierte Endpunkte unverzüglich scannen.
  • 2. Patch-Applikation: Hersteller-Hotfix einspielen oder betroffene Daemons in isolierte DMZ-Segmente überführen.
  • 3. Telemetrie & EDR-Alerts: Prozessaufrufe und Child-Processes auf anomale Shell-Spawns überwachen.
Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten Building a Transparent AI Pipeline: 59 Weeks of Automated Political Scoring with Claude API

Thematisch verwandte Begriffe: Building, Transparent, Pipeline, Weeks · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

💬 Kommentare werden geladen…
Zum Aktualisieren ziehen
ZERO-DAY CVE-2026-100620 | Capgo CLI (npm package @capgo/cli) through 7.98.2 is affected by an ove…
Advisory →
tsecurity.de Icon
Offline-Lesen, Eilmeldungen & 0ms Ladezeit

Installiere tsecurity.de direkt auf deinen Home-Bildschirm für das ultimative Vollbild-Magazinerlebnis ohne Browser-Leisten.

Nächster Beitrag