modcomms/documentation/architecture/diagrams/02_agent_pipeline.mmd
michael b6078cf534 Add comprehensive Technical Architecture PDF documentation
Generate a professional 22-page A4 PDF covering the full ModComms system
architecture including: system overview, multi-agent AI pipeline, WebSocket
analysis flow, database schema (15 tables), frontend component hierarchy,
Azure AD authentication & RBAC, knowledge base processing pipeline,
deployment architecture, REST API reference, and appendices.

Includes 8 Mermaid diagrams rendered to high-res PNGs, styled tables,
and consistent Barclays design tokens throughout.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-27 13:42:59 -06:00

41 lines
1.7 KiB
Text

graph TB
INPUT["Proof Upload<br/>(Image / PDF)"] --> DECODE["Decode & Rasterize"]
DECODE --> PARALLEL
subgraph PARALLEL ["Parallel Agent Execution"]
direction LR
LEGAL["Legal Agent<br/>Advertising standards,<br/>disclaimers, financial<br/>promotion detection"]
BRAND["Brand Agent<br/>Logo usage, colors,<br/>typography, design<br/>principles"]
CBP["Channel Best<br/>Practices Agent<br/>Platform guidelines,<br/>accessibility"]
CTS["Channel Tech<br/>Specs Agent<br/>Dimensions, file size,<br/>format compliance"]
end
PARALLEL --> LEAD["Lead Agent<br/>(Synthesis)"]
LEAD --> DECISION{RAG Decision}
DECISION -->|"All pass,<br/>max 1 amber/agent,<br/>no Legal amber"| GREEN["GREEN<br/>Passed"]
DECISION -->|">1 issue/agent,<br/>or Legal amber"| AMBER["AMBER<br/>Requires Manual<br/>Legal Review"]
DECISION -->|"Any Red"| RED["RED<br/>Failed"]
subgraph "Revision-Aware"
PREV["Previous Version<br/>Analysis"] -.->|"Context"| LEGAL
PREV -.->|"Context"| BRAND
PREV -.->|"Context"| CBP
PREV -.->|"Context"| CTS
end
classDef input fill:#006DE3,stroke:#1A2142,color:#fff
classDef agent fill:#1A2142,stroke:#006DE3,color:#fff
classDef lead fill:#7A0FF9,stroke:#1A2142,color:#fff
classDef green fill:#09821F,stroke:#1A2142,color:#fff
classDef amber fill:#FFBA00,stroke:#1A2142,color:#1A2142
classDef red fill:#E3000F,stroke:#1A2142,color:#fff
classDef revision fill:#01A1A2,stroke:#1A2142,color:#fff
class INPUT,DECODE input
class LEGAL,BRAND,CBP,CTS agent
class LEAD lead
class GREEN green
class AMBER amber
class RED red
class PREV revision