ARCH-001: SEA™ Container Architecture (C4 Model)

Type

Architecture Diagram Reference / System Design Specification

Status

Historical Reference - Original SEA™ Architecture

Purpose

Documents the container-level architecture of the original Sentient Enterprise Architecture (SEA™) 5.0 system using the C4 model. This represents the microservices architecture that informed the evolution to SEA-Forge™.

Context

This architecture represents the original SEA™ implementation with 13 microservices organized around the 4 core pillars. While SEA-Forge™ evolves this design, understanding the original container structure is essential for:


Container Overview

External Interfaces

UserWeb ApplicationAPI Gateway → Internal Services

Total Container Count


Container Catalog

1. Web Application

Technology: React/Next.js
Type: User Interface
Responsibility: Provides user interface for interacting with SEA™ services, including cognitive artifacts and documentation.

Interactions:

Notes:


2. API Gateway

Technology: Kong Gateway
Type: Infrastructure / Gateway Pattern
Responsibility: Routes requests, enforces policies, and handles authentication/authorization.

Interactions:

Downstream Services:


Core Pillar Services

3. Semantic Core & DSL Management Service

Bounded Context: Semantic Domain Management
Technology: Python/FastAPI
Pillar: Semantic Core (Policy + DSL)

Responsibility: Manages policies, DSL definitions, and semantic consistency.

Interactions:

Key Capabilities:


4. Knowledge Graph Service

Bounded Context: Knowledge Graph Domain
Technology: Python/FastAPI
Pillar: Semantic Core (Data Layer)

Responsibility: Manages the Oxigraph Knowledge Graph, providing semantic context.

Interactions:

Key Capabilities:


5. CALM CLI Service

Bounded Context: Architectural Governance
Technology: Go/CLI
Pillar: Architectural Governance (CALM Integration)

Responsibility: Provides command-line interface for architectural governance and CALM validation.

Interactions:

Key Capabilities:

Technology Note:


Cognitive Extension Services (Pillar 3)

6. Context Analyzer Service

Bounded Context: Cognitive Extension - Context Analysis
Technology: Python/FastAPI
Pillar: Cognitive Extension

Responsibility: Analyzes user input and system context to provide relevant information.

Interactions:

Key Capabilities:


7. Recommendation Algorithm Service

Bounded Context: Cognitive Extension - Recommendations
Technology: Python/FastAPI
Pillar: Cognitive Extension

Responsibility: Generates recommendations for cognitive artifacts and AI agent actions.

Interactions:

Key Capabilities:

Integration Pattern:


8. Artifact Engine Service

Bounded Context: Cognitive Extension - Artifact Generation
Technology: Python/FastAPI
Pillar: Cognitive Extension (CADSL)

Responsibility: Generates CADSL-based cognitive artifacts.

Interactions:

Key Capabilities:


9. CADSL Runtime & Renderer

Bounded Context: Cognitive Extension - Presentation
Technology: TypeScript/Node.js
Pillar: Cognitive Extension

Responsibility: Parses and renders CADSL artifacts into interactive UI components.

Interactions:

Key Capabilities:

Technology Note:


10. AI Agent Configuration Service

Bounded Context: AI/Agent Management
Technology: Python/FastAPI
Pillar: Supporting Infrastructure

Responsibility: Manages Prompt Management DSL and AI agent configurations.

Interactions:

Key Capabilities:


11. User Feedback Processor

Bounded Context: Collaboration / User Feedback
Technology: Python/FastAPI
Pillar: Supporting Infrastructure

Responsibility: Collects and processes user interaction data and explicit feedback.

Interactions:

Key Capabilities:

Integration Pattern:


Documentation Generation Services (Pillar 4)

12. Documentation Orchestrator Service

Bounded Context: Documentation Generation - Orchestration
Technology: Python/FastAPI
Pillar: Automated Documentation (ADG Framework)

Responsibility: Coordinates automated documentation generation.

Interactions:

Key Capabilities:


13. Project Context Analyzer

Bounded Context: Documentation Generation - Analysis
Technology: Python/FastAPI
Pillar: Automated Documentation

Responsibility: Extracts project context from codebase and specifications for documentation.

Interactions:

Key Capabilities:


Integration Patterns

Synchronous Communication

Pattern: RESTful Internal APIs
Technology: HTTP/JSON

Used Between:

Asynchronous Communication

Pattern: Message Queue
Technology: Not specified in diagram (likely RabbitMQ, Kafka, or Redis Streams)

Used Between:

Benefits:

Data Access Patterns

Oxigraph Driver (Direct):

Internal API Calls:


Technology Stack Summary

Backend Languages

Frontend

Infrastructure


Architectural Patterns

Microservices Architecture

Domain-Driven Design

Event-Driven Architecture (Partial)

Hexagonal Architecture (Implied)


Service Dependencies Map

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
User
  ↓
Web App (React/Next.js)
  ↓
API Gateway (Kong)
  ↓
  ├─→ Semantic Core ──→ Knowledge Graph ──→ External Systems
  │                         ↑
  ├─→ Context Analyzer ─────┤
  │         ↓
  ├─→ Recommendation Algorithm ←── User Feedback (async)
  │         ↓
  ├─→ Artifact Engine ──→ CADSL Runtime ──→ Web App
  │         ↑                  ↑
  ├─→ Documentation Orchestrator
  │         ↓
  ├─→ Project Context Analyzer ──→ Semantic Core
  │                            └──→ CALM CLI
  ├─→ AI Agent Config
  └─→ CALM CLI

Comparison with SEA-Forge™ Vision

Pillar Mapping

SEA™ Services SEA-Forge™ Pillar Notes
Semantic Core + Knowledge Graph DomainForge™ Expands to polyglot DSL
CALM CLI SEA™ Core + GovernedSpeed™ Splits into cognitive + runtime governance
Context Analyzer + Recommendation + Artifact Engine + CADSL Runtime SEA™ Core (Cognitive layer) Consolidates cognitive extension
Documentation Orchestrator + Project Context Analyzer VibesPro™ Evolves into full app generator
(None in SEA™ 5.0) IAGPM New executive control plane

Key Evolution Points

  1. Consolidation: 11 services → 5 conceptual pillars in SEA-Forge™
  2. Abstraction: Service implementation details hidden behind pillar interfaces
  3. Expansion: New capabilities (polyglot DSL, runtime governance, portfolio intelligence)
  4. Simplification: Cleaner conceptual model for users

Deployment Considerations

Scalability Hotspots

Data Stores (Implied)

Observability Needs


Migration Path to SEA-Forge™

Phase 1: Consolidate Cognitive Services

Phase 2: Enhance Semantic Core

Phase 3: Split Governance

Phase 4: Unify Documentation

Phase 5: Add Executive Layer



Diagram Source

Format: PlantUML C4 Container Diagram
File: documentation/working/09-working-documents/c4-container-v5.puml

Rendering Instructions

1
2
3
4
5
# Using PlantUML CLI
plantuml c4-container-v5.puml

# Using online renderer
# Upload to https://www.plantuml.com/plantuml/uml/

Dependencies:


Notes for SEA-Forge™ Developers

  1. Service Boundaries Are Stable: Even if implementation consolidates, respect these logical boundaries
  2. Integration Patterns Proven: Kong + FastAPI + Oxigraph pattern works well
  3. Async Feedback Loop Critical: Message queue for user feedback enables learning
  4. Go for Performance: Consider Go for compute-intensive governance tasks
  5. TypeScript Bridge: TypeScript/Node.js for frontend-adjacent services

Status: This represents the historical SEA™ architecture. Current SEA-Forge™ development should reference VISION-001 for the target architecture.