feat: MACP Phase 2A — Event Bridge + Notification System #11
Reference in New Issue
Block a user
Delete Branch "feat/macp-phase2a"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
MACP Phase 2A — Event Bridge + Notification System
What this adds
tools/orchestrator-matrix/events/event_watcher.py) — pollsevents.ndjson, maintains cursor, dispatches to callbacks. Handles corrupt lines and missing files gracefully.tools/orchestrator-matrix/events/webhook_adapter.py) — POSTs events as JSON to a configured URL with retry/backoff. Includes SSRF mitigation (scheme validation, private IP blocking, auth token cleartext protection).tools/orchestrator-matrix/events/discord_formatter.py) — formats MACP events into human-readable Discord messages with sanitization against control chars and @mention injection.mosaic macp watch [--webhook] [--once]added tobin/mosaic-macp.Review findings addressed
__pycache__artifacts +.gitignoreupdate_sanitize()to Discord formatter for output neutralizationFiles changed
tools/orchestrator-matrix/events/__init__.py(new)tools/orchestrator-matrix/events/event_watcher.py(new)tools/orchestrator-matrix/events/webhook_adapter.py(new)tools/orchestrator-matrix/events/discord_formatter.py(new)bin/mosaic-macp(updated — watch subcommand).gitignore(updated)Notes