โ๏ธLayer 3: Aegis Cloud
The feature map of the backend (aegis-platform). All 20 implemented items at a glance.
The feature-category implementation map for Aegis Cloud (the aegis-platform backend).
Source: INVENTORY.md ยง1.6. Each card lists its primary implementation file:line.
allowlist / routing / form-capture / call_logs / recording / slack / monitoring v0.1 / MCP (28 tools) / Item A (strict_approval) / category_override / Realtime 2 / event-trace / retention sweeper / duration_seconds / AuditLogger / risk_classifier / adapters (Rhodium, Retell, Realtime) โ almost all implemented. Only internationalization is partial.
Feature map (20 items)
STT pipeline + blocklist screening
engine/stt_corrector.py:18, engine/blocklist_checker.py:13 Routing decision (sales/partner)
core/integration_policy.py, adapters/telephony_adapter.py:28 Form capture / transfer_to_human
services/tools_core.py:130, api/retell_functions.py:68 call_logs + monthly JSON export
logger/call_logger.py:11 NAS recording storage
services/recording_storage.py:97 Slack notifications
notifications/slack.py:18 Dormant by default (no-op when the webhook is unset)
monitoring v0.1
api/monitoring.py, services/monitoring_collector.py Item A: strict_approval_mode (non-bypassable gate)
services/strict_approval_gate.py:53 category_override (wired to the gate)
mcp/tools/categories.py, services/risk_classifier.py:113 MCP server (HTTP/Bearer/CORS/hosts/trace)
mcp/server.py:79, mcp/middleware.py 28 tools
Retell Custom LLM webhook
api/retell_functions.py:42/68, api/custom_llm.py Route C / OpenAI Realtime
adapters/realtime_adapter.py:79, api/realtime_session.py B4 duration_seconds
call_log.py:15, realtime_session.py:102 B6 retention sweeper (incl. dry-run)
services/retention_sweeper.py:68 B7 event-trace endpoint
services/event_trace_buffer.py:31 (deque maxlen=100) B1' dashboard live updates (SSE)
api/calls_stream.py:125, hooks/useLiveCalls.ts AuditLogger
services/audit_logger.py:55, models/tool_audit_event.py risk_classifier
services/risk_classifier.py:62 Adapter layer (Rhodium/Retell/Realtime)
adapters/telephony_adapter.py:74/130, twilio_retell.py:37 Internationalization (i18n)
backend ใฏ enum ใณใผใใฎใฟใ่กจ็คบ็ฟป่จณใฏ UI ๅฑค REVIEW Low-3: the source of the monitoring enum is undetermined
API / DB scale (from INVENTORY)
- API endpoints: 129 (GET 64 / POST 54 / PUT 5 / PATCH 1 / DELETE 5)
- DB tables: 20 (19 SQLAlchemy models)
- Alembic migrations: 26 (head:
w4x5y6z7a8b9, 2026-05-28). As of this siteโs creation, PR #26 adds โON DELETE on all FKsโ. - pytest: 519 (55 test files). The review fixes added roughly +30 (see each PR).