Shieldgram v0.2.0
— 2026-07-17
Added
- Spam Detector — Link detection (URL + t.me), advertising pattern matching (casino, crypto, "buy cheap", etc.)
- User Reputation System — Redis-backed 0.0–1.0 scoring with penalty on attack and decay on normal behavior
- PostgreSQL Logger — AsyncSQLAlchemy event store for audit trails and analytics (
detection_logstable) - Reputation Config —
penalty(0.15) anddecay(0.95) tunable per deployment - Spam Config —
max_links_per_message(3) andad_pattern_threshold(2)
Changed
- ShieldConfig — Added
spam_detector,reputation, andpostgres_urlfields - Shield middleware — Integrated reputation engine, spam detector, and PostgreSQL logging
- Bumped test suite from 26 to 37 tests