Apple
cad3663508
feat(matrix-bridge-dagi): add egress, audit integration, fix router endpoint (PR-M1.4)
Closes the full Matrix ↔ DAGI loop:
Egress:
- invoke Router POST /v1/agents/{agent_id}/infer (field: prompt, response: response)
- send_text() reply to Matrix room with idempotent txn_id = make_txn_id(room_id, event_id)
- empty reply → skip send (no spam)
- reply truncated to 4000 chars if needed
Audit (via sofiia-console POST /api/audit/internal):
- matrix.message.received (on ingress)
- matrix.agent.replied (on successful reply)
- matrix.error (on router/send failure, with error_code)
- fire-and-forget: audit failures never crash the loop
Router URL fix:
- DAGI_GATEWAY_URL now points to dagi-router-node1:8000 (not gateway:9300)
- Session ID: stable per room — matrix:{room_localpart} (memory context)
9 tests: invoke endpoint, fallback fields, audit write, full cycle,
dedupe, empty reply skip, metric callbacks
Made-with: Cursor
2026-03-03 08:06:49 -08:00
..
2026-03-02 08:11:13 -08:00
2026-03-03 07:14:14 -08:00
2026-03-03 07:14:14 -08:00
2026-03-03 07:14:14 -08:00
2026-03-03 07:14:14 -08:00
2026-03-03 07:14:14 -08:00
2026-03-03 07:14:14 -08:00
2026-03-03 07:14:14 -08:00
2026-03-03 07:14:14 -08:00
2026-03-03 07:14:14 -08:00
2026-03-03 07:14:14 -08:00
2026-03-03 07:14:14 -08:00
2026-03-03 07:14:14 -08:00
2026-03-03 07:14:14 -08:00
2026-02-09 08:46:46 -08:00
2026-03-03 07:14:14 -08:00
2026-03-03 07:14:14 -08:00
2026-03-03 07:14:14 -08:00
2026-03-03 07:14:14 -08:00
2026-03-03 07:14:14 -08:00
2026-02-09 08:46:46 -08:00
2026-02-09 08:46:46 -08:00
2026-03-03 07:14:14 -08:00
2026-02-27 05:24:09 -08:00
2026-03-03 07:14:14 -08:00
2026-03-03 07:14:14 -08:00
2026-03-03 07:14:14 -08:00
2026-03-03 07:14:14 -08:00
2026-03-03 07:14:14 -08:00
2026-03-03 07:14:14 -08:00
2026-03-03 07:14:14 -08:00
2026-03-03 07:14:14 -08:00
2026-03-03 07:14:14 -08:00
2026-03-03 07:14:14 -08:00
2026-03-03 07:14:14 -08:00
2026-03-03 07:14:14 -08:00
2026-03-03 07:38:54 -08:00
2026-03-03 08:06:49 -08:00
2026-03-03 07:51:13 -08:00
2026-03-03 07:14:14 -08:00
2026-02-27 02:55:44 -08:00
2026-02-27 02:44:05 -08:00
2026-02-27 02:44:05 -08:00
2026-02-27 02:44:05 -08:00
2026-02-09 08:46:46 -08:00
2026-02-09 08:46:46 -08:00
2026-03-03 07:14:14 -08:00
2026-03-03 07:14:14 -08:00
2026-03-03 07:14:14 -08:00
2026-03-03 07:14:14 -08:00
2026-03-03 07:14:14 -08:00
2026-03-03 07:14:14 -08:00
2026-03-03 07:14:14 -08:00
2026-03-03 07:14:14 -08:00
2026-03-03 07:14:14 -08:00
2026-03-03 07:14:14 -08:00
2026-03-03 07:14:14 -08:00
2026-03-03 07:14:14 -08:00
2026-03-03 07:14:14 -08:00
2026-03-03 07:14:14 -08:00
2026-03-03 07:14:14 -08:00
2026-03-03 07:14:14 -08:00
2026-03-03 07:14:14 -08:00
2026-03-03 07:14:14 -08:00
2026-02-19 00:14:06 -08:00
2026-02-27 02:55:44 -08:00
2026-03-03 07:14:14 -08:00
2026-03-02 09:42:10 -08:00
2026-03-02 09:42:10 -08:00
2026-03-02 09:29:14 -08:00
2026-03-02 08:12:19 -08:00
2026-03-02 04:03:30 -08:00
2026-03-02 04:03:30 -08:00
2026-03-02 04:03:30 -08:00
2026-03-02 08:00:35 -08:00
2026-03-03 04:36:52 -08:00
2026-03-03 07:14:14 -08:00
2026-03-02 08:18:59 -08:00
2026-03-02 09:08:54 -08:00
2026-03-02 04:52:04 -08:00
2026-03-02 09:24:21 -08:00
2026-03-03 05:07:52 -08:00
2026-03-03 04:49:19 -08:00
2026-03-03 04:57:22 -08:00
2026-03-02 08:24:54 -08:00
2026-02-09 08:46:46 -08:00
2026-03-03 07:14:14 -08:00
2026-03-03 07:14:14 -08:00
2026-03-03 07:14:14 -08:00
2026-03-03 07:14:14 -08:00
2026-03-03 07:14:14 -08:00
2026-03-03 07:14:14 -08:00
2026-03-03 07:14:14 -08:00
2026-03-03 07:14:14 -08:00
2026-03-03 07:14:14 -08:00
2026-03-03 07:14:14 -08:00
2026-03-03 07:14:14 -08:00
2026-03-03 07:14:14 -08:00
2026-03-03 07:14:14 -08:00
2026-03-03 07:14:14 -08:00
2026-03-03 07:14:14 -08:00
2026-03-03 07:14:14 -08:00
2026-03-03 07:14:14 -08:00
2026-03-03 07:14:14 -08:00
2026-03-03 07:14:14 -08:00
2026-03-03 07:14:14 -08:00
2026-03-03 07:14:14 -08:00
2026-03-03 07:14:14 -08:00
2026-03-03 07:14:14 -08:00
2026-03-03 07:14:14 -08:00
2026-03-03 07:14:14 -08:00
2026-03-03 07:14:14 -08:00
2026-03-03 07:14:14 -08:00
2026-03-03 07:14:14 -08:00
2026-03-03 07:14:14 -08:00
2026-03-03 07:14:14 -08:00
2026-03-03 07:14:14 -08:00
2026-03-03 07:14:14 -08:00
2026-03-03 07:14:14 -08:00