Integration and measurement

Event Router

Central event dispatcher: receives events, matches routing rules, fans out to n8n, state or actions.

Status, in the repository's words: 1.1.x is the current version line and receives security fixes.

Repositorybulletproof-event-router
OwnerBulletproofSoftwareAI
Version1.1.3
In suite v1.0.01.1.3, tagged 2026-11-14
Released2026-11-14
LicenseApache-2.0

What it is

A FastAPI service that gives a multi-agent system a single place to emit events and have them routed.

Producers emit a typed event once, and the router passes it to whichever consumers a rule file names.

It matches events against glob-pattern routing rules and dispatches them to three consumer types.

The docs describe it as lightweight and say it is not a message broker with durable ordered topics.

What it does today

What it ships

What it needs

Install

Copied from the repository's README. This site has not run these commands.

mkdir -p ~/.config/event-router
cp config.example/*.yaml ~/.config/event-router/
pip install -r requirements.txt
export EVENTS_DIR=~/.config/event-router
export EVENT_ROUTER_TOKEN=$(python3 -c "import secrets; print(secrets.token_urlsafe(32))")
uvicorn app.main:app --host 127.0.0.1 --port 8085

Limits and known issues, as the repository lists them

As listed on branch main of BulletproofSoftwareAI/bulletproof-event-router on 2026-11-30, commit 88ae73c: newer than the version described above.

  • A missing taxonomy.yaml fails open: the router then accepts all events.
  • Outbound webhooks are unsigned: the router posts the event JSON with no signature.
  • The router database stores the full payload of every event in its routing log.
  • The router does not provide multi-tenancy or per-caller authorization.
  • Known gap: the dashboard page cannot send the router token, so with auth on it answers 401; use the JSON endpoints.
  • The router process is the only thing that may open its database file.

Works with

Runtime Security: The optional bridge daemon can mirror events into runtime-security.
Metrics Engine: The optional bridge daemon can send a cost backfill to metrics-engine over HMAC-signed HTTP.
Agent Economics: hook-dispatch.py can optionally mark the session active in agent-economics.

Documents in the repository

Source code

Where each statement on this page comes from

Read from BulletproofSoftwareAI/bulletproof-event-router, branch main, commit e6a6e87; the limits and known issues from BulletproofSoftwareAI/bulletproof-event-router, branch main, commit 88ae73c, read on 2026-11-30. File and line for each statement:

  1. Central event dispatcher: receives events, matches routing rules, fans out to n8n, state or actions. README.md:3
  2. 1.1.x is the current version line and receives security fixes. SECURITY.md:9
  3. 1.1.3 app/__init__.py:4
  4. 2026-11-14 CHANGELOG.md:6
  5. Apache-2.0 README.md:172
  6. A FastAPI service that gives a multi-agent system a single place to emit events and have them routed. README.md:14
  7. Producers emit a typed event once, and the router passes it to whichever consumers a rule file names. docs/OVERVIEW.md:14
  8. It matches events against glob-pattern routing rules and dispatches them to three consumer types. README.md:16
  9. The docs describe it as lightweight and say it is not a message broker with durable ordered topics. docs/OVERVIEW.md:97
  10. Receives events at POST /events; by default the sender does not wait for delivery (fire-and-forget). README.md:22
  11. Validates events against a versioned event taxonomy kept in taxonomy.yaml. README.md:23
  12. Routes with glob patterns from routing-rules.yaml, which is reloaded without a restart. README.md:24
  13. Dispatches to n8n webhooks, conductor state, or direct actions. README.md:25
  14. Failed deliveries land in a SQLite dead-letter queue and can be replayed. README.md:26
  15. A consumer can delay delivery with delay_seconds and collapse duplicate events with dedup_key. docs/HOW-TO-USE.md:143
  16. Logs every routing decision and tracks workflow health against SLA. README.md:27
  17. Prunes and archives its own database on a schedule or on request. README.md:31
  18. Every route except /health, /metrics and /static/* needs a bearer token. README.md:33
  19. The router is the only program that may open its SQLite file; other tools read through the HTTP API. README.md:109
  20. hook-dispatch.py: reads a Claude Code hook payload from stdin and posts a derived event to the router. README.md:126
  21. emit-event.sh: a command-line emitter that sends an event without waiting and never blocks the caller. README.md:127
  22. bridge-daemon.py (optional): follows the routing log through the API and mirrors events into downstream consumers. README.md:128
  23. prune_event_db.py and prune-event-db.sh (optional): a scheduler entry point that asks the router to prune. README.md:130
  24. n8n-health-poller.py: polls n8n executions and updates the router's workflow-health table. README.md:131
  25. Working example configuration files in config.example/. README.md:45
  26. A Dockerfile that builds a minimal image running as a non-root user. docs/INSTALL.md:52
  27. A small dashboard page served at / (see known issues). README.md:28
  28. Python 3.12. docs/INSTALL.md:9
  29. Seven pinned Python dependencies. docs/INSTALL.md:3
  30. A bearer token in EVENT_ROUTER_TOKEN is required; when it is unset, protected routes answer 503. README.md:96
  31. Three YAML configuration files in the directory named by EVENTS_DIR. README.md:37
  32. Docker and Docker Compose are optional. docs/INSTALL.md:14
  33. The optional bridge mirror also needs the psycopg2 Postgres client. docs/INSTALL.md:12
  34. A missing taxonomy.yaml fails open: the router then accepts all events. docs/ADMINISTRATOR.md:256 at 88ae73c
  35. Outbound webhooks are unsigned: the router posts the event JSON with no signature. docs/ADMINISTRATOR.md:115 at 88ae73c
  36. The router database stores the full payload of every event in its routing log. SECURITY.md:61 at 88ae73c
  37. The router does not provide multi-tenancy or per-caller authorization. SECURITY.md:69 at 88ae73c
  38. Known gap: the dashboard page cannot send the router token, so with auth on it answers 401; use the JSON endpoints. README.md:28 at 88ae73c
  39. The router process is the only thing that may open its database file. docs/ADMINISTRATOR.md:8 at 88ae73c
  40. The optional bridge daemon can mirror events into runtime-security. README.md:128
  41. The optional bridge daemon can send a cost backfill to metrics-engine over HMAC-signed HTTP. CHANGELOG.md:118
  42. hook-dispatch.py can optionally mark the session active in agent-economics. docs/OVERVIEW.md:85
  43. Install section of the README README.md:59

Bulletproof suite v1.0.0 pins tag v1.1.3, commit e6a6e87, tagged 2026-11-14.