โ˜๏ธ English documentation
ๆ—ฅๆœฌ่ชž โ†’

โ˜๏ธ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.

โœ…Status: 18/20 implemented

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)

๐ŸŽ™๏ธ Done

STT pipeline + blocklist screening

engine/stt_corrector.py:18, engine/blocklist_checker.py:13
๐Ÿ”€ Done

Routing decision (sales/partner)

core/integration_policy.py, adapters/telephony_adapter.py:28
๐Ÿ“ Done

Form capture / transfer_to_human

services/tools_core.py:130, api/retell_functions.py:68
๐Ÿ“’ Done

call_logs + monthly JSON export

logger/call_logger.py:11
๐Ÿ’พ Done

NAS recording storage

services/recording_storage.py:97
๐Ÿ’ฌ Partial

Slack notifications

notifications/slack.py:18

Dormant by default (no-op when the webhook is unset)

๐Ÿ“Š Done

monitoring v0.1

api/monitoring.py, services/monitoring_collector.py
๐Ÿ” Done

Item A: strict_approval_mode (non-bypassable gate)

services/strict_approval_gate.py:53
๐Ÿท๏ธ Done

category_override (wired to the gate)

mcp/tools/categories.py, services/risk_classifier.py:113
๐Ÿ”Œ Done

MCP server (HTTP/Bearer/CORS/hosts/trace)

mcp/server.py:79, mcp/middleware.py

28 tools

๐Ÿ“ž Done

Retell Custom LLM webhook

api/retell_functions.py:42/68, api/custom_llm.py
๐Ÿค– Done

Route C / OpenAI Realtime

adapters/realtime_adapter.py:79, api/realtime_session.py
โฑ๏ธ Done

B4 duration_seconds

call_log.py:15, realtime_session.py:102
๐Ÿงน Done

B6 retention sweeper (incl. dry-run)

services/retention_sweeper.py:68
๐Ÿ”Ž Done

B7 event-trace endpoint

services/event_trace_buffer.py:31 (deque maxlen=100)
๐Ÿ“ก Done

B1' dashboard live updates (SSE)

api/calls_stream.py:125, hooks/useLiveCalls.ts
๐Ÿงพ Done

AuditLogger

services/audit_logger.py:55, models/tool_audit_event.py
โš–๏ธ Done

risk_classifier

services/risk_classifier.py:62
๐Ÿงฉ Done

Adapter layer (Rhodium/Retell/Realtime)

adapters/telephony_adapter.py:74/130, twilio_retell.py:37
๐ŸŒ Partial

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).