Project: continuum Phase: INCEPTION — Application Design Date: 2026-05-08 Depth: Comprehensive
Note: 本ドキュメントはコンポーネントの 高レベル責務とインターフェース を定義する。各コンポーネントの詳細業務ルール・入出力データ構造の精緻化は Functional Design(Construction Phase per-unit) で実施する。
┌─────────────────────────────────────────────────────────────────┐
│ Frontend (PWA) │
│ Vite + React + Service Worker / S3 + CloudFront │
└──────────────────┬──────────────────┬──────────────────┬────────┘
│ REST │ WebSocket │
v v │
┌──────────────────────────────────────────────────────┐ │
│ API Gateway (REST + WebSocket) │ │
└──────────────────┬───────────────────────────────────┘ │
│ │
┌───────────────┴────────────────────────────────┐ │
│ │ │
v v │
┌──────────────────┐ ┌──────────────────┐ ┌──────────────────┐
│ Inbound Arm │ │ Outbound Arm │ │ Federated Layer │
│ (FR-2) │ │ (FR-8) │ │ (FR-9 MACP) │
│ - Response Gen │ │ - Outreach Sched│ │ - Peer Discovery│
│ - Variations │ │ - Heartbeat │ │ - Negotiation │
│ - Calibration │ │ - Plausibility │ │ - Theatrical │
└────────┬─────────┘ └────────┬─────────┘ └────────┬─────────┘
│ │ │
v v v
┌──────────────────────────────────────────────────────────────┐
│ Cross-Cutting: Maturity Phase Manager (FR-7) Lv1〜Lv5 │
└────────┬─────────────────────────────────────────────────────┘
│
v
┌──────────────────────────────────────────────────────────────┐
│ Foundation: Auth / Profile / Contact / Mock Feed / Dashbd │
└────────┬─────────────────────────────────────────────────────┘
│
v
┌──────────────────────────────────────────────────────────────┐
│ Persistence: DynamoDB Single-Table / EventBridge / │
│ AgentCore Memory / Bedrock │
└──────────────────────────────────────────────────────────────┘
合計 18 コンポーネント を識別。論理層別に整理:
| Layer | Component ID | Component Name | 主責務 |
|---|---|---|---|
| Frontend | C-FE-01 | WebApp (PWA Shell) | UI ナビゲーション・ルーティング・Service Worker 統合 |
| Frontend | C-FE-02 | AuthUI | サインアップ・ログイン・JWT管理 |
| Frontend | C-FE-03 | InboxView | 受信ボックス + 応答レビュー + 3案選択UI |
| Frontend | C-FE-04 | OutboundReviewView | Outbound Pending Queue 確認 + レビュー |
| Frontend | C-FE-05 | DashboardView | KPIカード + Maturity表示 + 認定バッジ |
| Frontend | C-FE-06 | MaturitySettingsView | フェーズ切替UI + Lv4 自己有効化トグル |
| Frontend | C-FE-07 | DemoSetPieceView | 決勝デモ用 Split-Screen 演出UI |
| Frontend | C-FE-08 | WebSocketClient | リアルタイム接続管理 |
| Backend | C-BE-01 | AuthHandler | Cognito 連携 + JWT検証 + プロファイル CRUD |
| Backend | C-BE-02 | ContactHandler | コンタクト CRUD + Engagement Cadence + Critical タグ |
| Backend | C-BE-03 | InboundResponseEngine | 受信応答 3バリエーション生成(Conservative/Pragmatic/Cordial)+ Relational Calibration |
| Backend | C-BE-04 | OutboundOrchestrator | Strategic Outreach + Heartbeat + Conflict Detection + Plausibility Engineering |
| Backend | C-BE-05 | SignalExtractor | Mock Social Feed 解析 + Availability Window 抽出 + Confidence Scoring |
| Backend | C-BE-06 | MaturityPhaseManager | Lv1〜Lv5 状態管理 + Recommendation + Lv5 自動認定 |
| Backend | C-BE-07 | MACPCoordinator | Peer Discovery + Inter-Agent Negotiation + Theatrical Performance Director + Outcome Confirmation |
| Backend | C-BE-08 | DashboardEngine | KPI 集計 + Maturity Certification 付与 + Outbound メトリクス |
| Backend | C-BE-09 | WebSocketBroker | WebSocket 接続管理 + クライアント間メッセージ配信 |
| Backend | C-BE-10 | MockSocialFeedSeeder | DynamoDB へのサンプルデータ投入バッチ |
責務:
インターフェース:
依存: 全 Frontend View コンポーネント, AuthUI
責務:
インターフェース:
依存: AWS Amplify Auth ライブラリ, AuthHandler API
責務:
インターフェース:
依存: InboundResponseEngine, MaturityPhaseManager(フェーズ取得)
責務:
依存: OutboundOrchestrator, MaturityPhaseManager
責務:
依存: DashboardEngine
責務:
依存: MaturityPhaseManager
責務:
依存: WebSocketClient, MACPCoordinator
責務:
依存: API Gateway WebSocket
責務:
インターフェース:
POST /auth/signup, POST /auth/login, GET /me, PUT /me依存: Cognito User Pool, DynamoDB Single-Table
責務:
インターフェース:
GET /contacts, POST /contacts, PUT /contacts/{id}, DELETE /contacts/{id}依存: DynamoDB Single-Table
責務:
インターフェース:
POST /inbound/{messageId}/generate → 3案返却POST /inbound/{messageId}/send → 選択した案を送信完了状態へ依存: Bedrock, AgentCore Runtime, AgentCore Memory, MaturityPhaseManager(Lv1判定), ContactHandler(プロファイル取得)
責務:
インターフェース:
GET /outbound/pending, POST /outbound/{id}/approve, POST /outbound/{id}/rejectoutbound.scheduled.send イベント受信依存: SignalExtractor, Bedrock, AgentCore Memory, MaturityPhaseManager, ContactHandler, EventBridge
責務:
インターフェース:
extractSignals(contactId) → Window[]getOptimalWindows(contactId, threshold) → Window[]依存: Bedrock, DynamoDB Single-Table
責務:
インターフェース:
GET /maturity/status, PUT /maturity/phase, POST /maturity/activate-autonomousshouldReviewInbound(messageId) → booleanshouldReviewOutbound(outboundId) → booleanmaturity.daily.check イベント受信(Nirvana 認定)依存: DynamoDB Single-Table, EventBridge
責務(FR-9):
インターフェース:
Internal API: attemptMACP(outboundCandidate) → MACPSession |
null |
POST /macp/negotiate (cross-tenant via AgentCore Gateway)macp.theater.send イベント受信依存: AgentCore Identity, AgentCore Gateway, AgentCore Memory, Bedrock, OutboundOrchestrator, EventBridge
責務:
インターフェース:
GET /dashboard/kpi, GET /dashboard/badges, GET /dashboard/recommendations依存: DynamoDB Single-Table, MaturityPhaseManager
責務:
$connect / $disconnect / $default)インターフェース:
$connect, $disconnect, $defaultpushToUser(userId, event), broadcastDemo(event)依存: DynamoDB Single-Table(Connection Table), MACPCoordinator(イベント源)
責務:
インターフェース:
seed-mock-feed.sh (CDK Deploy 時のカスタムリソース or 手動実行)依存: DynamoDB Single-Table
| AgentCore サービス | 利用先コンポーネント | 用途 |
|---|---|---|
| Runtime | InboundResponseEngine, OutboundOrchestrator, MACPCoordinator | エージェント実行基盤 |
| Memory | InboundResponseEngine, OutboundOrchestrator, MACPCoordinator | 過去応答履歴 + MACP 交渉履歴の永続化 |
| Identity | MACPCoordinator | テナント間相互認証 |
| Gateway | MACPCoordinator | エージェント間通信 |
| Browser Tool | (本番想定 / SignalExtractor の reference architecture) | 実 SNS 監視(デモではモックで代替、アーキ図に記載) |
| Component | AWS Resource |
|---|---|
| C-FE-01〜08(Frontend 全体) | S3 (静的ホスティング) + CloudFront (CDN) |
| C-BE-01〜10(Backend 全体) | Lambda Functions(10個) |
| HTTP API ルーティング | API Gateway REST API |
| WebSocket ルーティング | API Gateway WebSocket API |
| データストア | DynamoDB Single-Table(+ Connection Table) |
| 認証 | Cognito User Pool |
| 非同期通信 | EventBridge |
| AI 基盤 | Bedrock + AgentCore (Runtime/Memory/Identity/Gateway) |
| シークレット管理 | Secrets Manager |
| ロギング | CloudWatch Logs (+ X-Ray for Phase 3) |
| CDN 配信証明書 | ACM |
| ドメイン | Route 53 |