continuum

Components — continuum

Project: continuum Phase: INCEPTION — Application Design Date: 2026-05-08 Depth: Comprehensive

Note: 本ドキュメントはコンポーネントの 高レベル責務とインターフェース を定義する。各コンポーネントの詳細業務ルール・入出力データ構造の精緻化は Functional Design(Construction Phase per-unit) で実施する。


0. Architectural Overview

0.1 アーキテクチャスタイル

0.2 3層アーキテクチャ(要件定義 §2 由来)

┌─────────────────────────────────────────────────────────────────┐
│                        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                  │
└──────────────────────────────────────────────────────────────┘

1. Component Inventory

合計 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 へのサンプルデータ投入バッチ

2. Frontend Components 詳細

C-FE-01: WebApp (PWA Shell)

責務:

インターフェース:

依存: 全 Frontend View コンポーネント, AuthUI


C-FE-02: AuthUI

責務:

インターフェース:

依存: AWS Amplify Auth ライブラリ, AuthHandler API


C-FE-03: InboxView

責務:

インターフェース:

依存: InboundResponseEngine, MaturityPhaseManager(フェーズ取得)


C-FE-04: OutboundReviewView

責務:

依存: OutboundOrchestrator, MaturityPhaseManager


C-FE-05: DashboardView

責務:

依存: DashboardEngine


C-FE-06: MaturitySettingsView

責務:

依存: MaturityPhaseManager


C-FE-07: DemoSetPieceView

責務:

依存: WebSocketClient, MACPCoordinator


C-FE-08: WebSocketClient

責務:

依存: API Gateway WebSocket


3. Backend Components 詳細

C-BE-01: AuthHandler

責務:

インターフェース:

依存: Cognito User Pool, DynamoDB Single-Table


C-BE-02: ContactHandler

責務:

インターフェース:

依存: DynamoDB Single-Table


C-BE-03: InboundResponseEngine

責務:

インターフェース:

依存: Bedrock, AgentCore Runtime, AgentCore Memory, MaturityPhaseManager(Lv1判定), ContactHandler(プロファイル取得)


C-BE-04: OutboundOrchestrator

責務:

インターフェース:

依存: SignalExtractor, Bedrock, AgentCore Memory, MaturityPhaseManager, ContactHandler, EventBridge


C-BE-05: SignalExtractor

責務:

インターフェース:

依存: Bedrock, DynamoDB Single-Table


C-BE-06: MaturityPhaseManager

責務:

インターフェース:

依存: DynamoDB Single-Table, EventBridge


C-BE-07: MACPCoordinator

責務(FR-9):

インターフェース:

依存: AgentCore Identity, AgentCore Gateway, AgentCore Memory, Bedrock, OutboundOrchestrator, EventBridge


C-BE-08: DashboardEngine

責務:

インターフェース:

依存: DynamoDB Single-Table, MaturityPhaseManager


C-BE-09: WebSocketBroker

責務:

インターフェース:

依存: DynamoDB Single-Table(Connection Table), MACPCoordinator(イベント源)


C-BE-10: MockSocialFeedSeeder

責務:

インターフェース:

依存: DynamoDB Single-Table


4. Component Boundaries Rationale

4.1 なぜ Per-Use-Case 中粒度(10 コンポーネント / Lambda)?

4.2 Frontend / Backend の境界

4.3 Inbound / Outbound / Federated の3層分離

4.4 Maturity Phase Manager の cross-cutting 配置


5. AgentCore サービス利用マッピング

AgentCore サービス 利用先コンポーネント 用途
Runtime InboundResponseEngine, OutboundOrchestrator, MACPCoordinator エージェント実行基盤
Memory InboundResponseEngine, OutboundOrchestrator, MACPCoordinator 過去応答履歴 + MACP 交渉履歴の永続化
Identity MACPCoordinator テナント間相互認証
Gateway MACPCoordinator エージェント間通信
Browser Tool (本番想定 / SignalExtractor の reference architecture) 実 SNS 監視(デモではモックで代替、アーキ図に記載)

6. AWS リソースマッピング(暫定)

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