Fix 6 bugs from DPLAN-0111 audit + cleanup: - Bug #3: memory_threshold_exceeded.py handler→modules import path - Bug #5: startup catch-up fires error_detected (Medic v2) not error_logged - Bug #7: circuit_breaker_record_error at detection time, not dispatch time - Bug #8: add encoding=utf-8 to 5 open() calls missing it - Bug #9: core.py _fire_to_handlers copies data dict before mutation - Cleanup: local prompt 12→14 events, remove stale branch prefixes (backup, The_Commons, aipass_os, aipass_business), add spawn/devpulse 370 tests passing. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Apps
Application layer for TRIGGER.
trigger.py— Entry point. Auto-discovers and routes commands to modules.modules/— Business logic and orchestration. One module per command.handlers/— Implementation details. Called by modules, never by CLI directly.plugins/— Scheduled tasks and extensions.