Files
instagram-bot/GramAddict
Marc Mintel 749e82ea14 fix(guard+memory): radical overhaul of close friends detection & circuit breaker
CLOSE FRIENDS GUARD:
- Replaced broken text-only detection ('enge freunde'/'close friend')
  with STRUCTURAL resource-id marker detection:
  * friendly_bubbles_component (feed posts)
  * profile_header_close_friend (profile view)
  * close_friends_badge (Reels)
  * close_friends_star (green star)
- Kept legacy text fallback for edge cases
- TDD: 5 tests including meta-test enforcing structural detection

CONTEXT MEMORY CIRCUIT BREAKER:
- Old system: single failure permanently blocks action (confidence < 0.2 = dead)
- New system: time-based decay — failures older than 1 hour are auto-forgiven
  and the poisoned entry is DELETED, allowing re-exploration
- This prevents catastrophic self-sabotage where the bot blocks its own
  core actions (tap like, tap follow, tap comment) permanently
- Purged 14 poisoned entries from live Qdrant that were blocking ALL
  fundamental interactions
- TDD: 2 meta-tests enforcing time-decay and no permanent blocking

Full suite: 106/107 passed (1 infra flake)
2026-05-05 15:48:59 +02:00
..
2026-04-16 18:58:18 +02:00
2026-04-16 18:58:18 +02:00