flowchart TD
A["Ingestion<br/>XML → PolicyList"]
B["RAG<br/>PolicyList → CandidateList"]
C["Mapping<br/>CandidateList → MappingList"]
D["Execution<br/>MappingList → MulesoftProject"]
E{"Review Gate<br/>confidence threshold"}
F["Done Queue"]
G["Needs-Review Queue"]
H["Corpus Feedback<br/>(future)"]
A --> B --> C --> D --> E
E -->|≥ 0.8| F
E -->|< 0.8| G
G --> H
style A fill:#E3F2FD,color:#0D47A1
style B fill:#E3F2FD,color:#0D47A1
style C fill:#E3F2FD,color:#0D47A1
style D fill:#E3F2FD,color:#0D47A1
style F fill:#E8F5E9,color:#1B5E20
style G fill:#FBE9E7,color:#BF360C
style H fill:#F3E5F5,color:#4A148C