> ## Documentation Index
> Fetch the complete documentation index at: https://doc.blueapi.ir/llms.txt
> Use this file to discover all available pages before exploring further.

# EMEP Master Diagram Index and Quality Gates

> Master index of all 30+ mandatory diagram types across EMEP specifications, with type, location, phase, and quality gate checklist.

EMEP requires diagrams in every specification area. This index catalogs all mandated diagram types, their locations, and the phases in which they must be completed.

## Diagram Index Table

| Diagram                                | Type               | Location                                                                     | Spec          | Phase   | Tasks          | Tests                        |
| -------------------------------------- | ------------------ | ---------------------------------------------------------------------------- | ------------- | ------- | -------------- | ---------------------------- |
| Open-Weight Ecosystem Landscape        | Flowchart          | [Context](/overview/context)                                                 | Overview      | Phase 0 | Review         | Visual inspection            |
| Scope Mindmap                          | Mindmap            | [Vision and Scope](/overview/vision-and-scope)                               | Overview      | Phase 0 | Review         | Visual inspection            |
| Primary Research Loop                  | Flowchart          | [Project Constitution](/overview/project-constitution)                       | Overview      | Phase 0 | Review         | Trace loop closure           |
| Evidence Tree                          | Mindmap            | [Evidence Map](/research/evidence-map)                                       | Research      | Phase 0 | Review         | Tag coverage                 |
| Research-to-Component Graph            | Graph              | [Component Mapping](/research/component-mapping)                             | Research      | Phase 0 | Review         | Component coverage           |
| Executive Dependency Chain             | Flowchart          | [System Dependency Map](/maps/system-dependency-map)                         | Maps          | Phase 0 | Review         | Path coverage                |
| Internal Component Dependency Graph    | Graph              | [Component Dependency Graph](/maps/component-dependency-graph)               | Maps          | Phase 0 | Review         | Cycle detection              |
| Data Flow with Split Boundaries        | Flowchart          | [Data Flow Map](/maps/data-flow-map)                                         | Maps          | Phase 0 | Review         | Split isolation              |
| Experiment State Machine               | State diagram      | [Experiment Lifecycle](/maps/experiment-lifecycle)                           | Maps          | Phase 0 | Review         | Invalid transition detection |
| Level 1 Executive Architecture         | Block diagram      | [Architecture Diagrams](/diagrams/architecture-diagrams)                     | Diagrams      | Phase 0 | Review         | Component count              |
| Level 2 Logical Architecture           | Block diagram      | [Architecture Diagrams](/diagrams/architecture-diagrams)                     | Diagrams      | Phase 0 | Review         | Grouping correctness         |
| Level 3 Internal TensorEngine          | Block diagram      | [Architecture Diagrams](/diagrams/architecture-diagrams)                     | Diagrams      | Phase 1 | Implementation | Unit test                    |
| Level 3 Internal EvolutionEngine       | Block diagram      | [Architecture Diagrams](/diagrams/architecture-diagrams)                     | Diagrams      | Phase 1 | Implementation | Unit test                    |
| Runtime Topology                       | Deployment diagram | [Architecture Diagrams](/diagrams/architecture-diagrams)                     | Diagrams      | Phase 1 | Implementation | Integration test             |
| Storage Tiers                          | Block diagram      | [Architecture Diagrams](/diagrams/architecture-diagrams)                     | Diagrams      | Phase 1 | Implementation | Integration test             |
| GPU Topology                           | Deployment diagram | [Architecture Diagrams](/diagrams/architecture-diagrams)                     | Diagrams      | Phase 1 | Implementation | Integration test             |
| Trust Boundary                         | Security diagram   | [Architecture Diagrams](/diagrams/architecture-diagrams)                     | Diagrams      | Phase 1 | Implementation | Security review              |
| Model Supply Chain                     | Sequence diagram   | [Architecture Diagrams](/diagrams/architecture-diagrams)                     | Diagrams      | Phase 1 | Implementation | Security test                |
| Deployment Topology                    | Deployment diagram | [Architecture Diagrams](/diagrams/architecture-diagrams)                     | Diagrams      | Phase 1 | Implementation | Integration test             |
| Compatibility Analysis Flowchart       | Flowchart          | [Model Compatibility](/compatibility/model-compatibility)                    | Compatibility | Phase 2 | Implementation | Unit test                    |
| Tokenizer Compatibility Flowchart      | Flowchart          | [Tokenizer Compatibility](/compatibility/tokenizer-compatibility)            | Compatibility | Phase 2 | Implementation | Unit test                    |
| Architecture Compatibility Flowchart   | Flowchart          | [Architecture Compatibility](/compatibility/architecture-compatibility)      | Compatibility | Phase 2 | Implementation | Unit test                    |
| Tensor Shape Validation Flowchart      | Flowchart          | [Tensor Shape Validation](/compatibility/tensor-shape-validation)            | Compatibility | Phase 2 | Implementation | Unit test                    |
| Merge Engine Algorithm                 | Flowchart          | [Merge Engine](/merge/merge-engine)                                          | Merge         | Phase 3 | Implementation | Unit test                    |
| Merge Strategy Decision Tree           | Decision tree      | [Merge Strategies](/merge/merge-strategies)                                  | Merge         | Phase 3 | Implementation | Unit test                    |
| Tensor Operations Flowchart            | Flowchart          | [Tensor Operations](/merge/tensor-operations)                                | Merge         | Phase 3 | Implementation | Unit test                    |
| Merge Validation Flowchart             | Flowchart          | [Merge Validation](/merge/merge-validation)                                  | Merge         | Phase 3 | Implementation | Unit test                    |
| SLERP Math Flowchart                   | Flowchart          | [SLERP Math](/math/slerp-math)                                               | Math          | Phase 3 | Implementation | Numerical test               |
| TIES Math Flowchart                    | Flowchart          | [TIES Math](/math/ties-math)                                                 | Math          | Phase 3 | Implementation | Numerical test               |
| DARE Math Flowchart                    | Flowchart          | [DARE Math](/math/dare-math)                                                 | Math          | Phase 3 | Implementation | Numerical test               |
| Task Arithmetic Flowchart              | Flowchart          | [Task Arithmetic](/math/task-arithmetic)                                     | Math          | Phase 3 | Implementation | Numerical test               |
| Tensor Math Flowchart                  | Flowchart          | [Tensor Math](/math/tensor-math)                                             | Math          | Phase 3 | Implementation | Numerical test               |
| Evolution Engine Flowchart             | Flowchart          | [Evolution Engine](/evolution/evolution-engine)                              | Evolution     | Phase 4 | Implementation | Unit test                    |
| Genome Encoding Diagram                | Block diagram      | [Genome](/evolution/genome)                                                  | Evolution     | Phase 4 | Implementation | Unit test                    |
| Population Management Flowchart        | Flowchart          | [Population](/evolution/population)                                          | Evolution     | Phase 4 | Implementation | Unit test                    |
| Mutation Operator Flowchart            | Flowchart          | [Mutation](/evolution/mutation)                                              | Evolution     | Phase 4 | Implementation | Unit test                    |
| Crossover Operator Flowchart           | Flowchart          | [Crossover](/evolution/crossover)                                            | Evolution     | Phase 4 | Implementation | Unit test                    |
| Selection Mechanism Flowchart          | Flowchart          | [Selection](/evolution/selection)                                            | Evolution     | Phase 4 | Implementation | Unit test                    |
| Fitness Computation Flowchart          | Flowchart          | [Fitness](/evolution/fitness)                                                | Evolution     | Phase 4 | Implementation | Unit test                    |
| Multi-Objective Optimization Flowchart | Flowchart          | [Multi-Objective Optimization](/evolution/multi-objective-optimization)      | Evolution     | Phase 4 | Implementation | Unit test                    |
| Evaluation Framework Flowchart         | Flowchart          | [Framework](/evaluation/framework)                                           | Evaluation    | Phase 5 | Implementation | Integration test             |
| Benchmark Specification Flowchart      | Flowchart          | [Benchmark Specification](/evaluation/benchmark-specification)               | Evaluation    | Phase 5 | Implementation | Unit test                    |
| Benchmark Catalog Index                | Table / Index      | [Benchmark Catalog](/evaluation/benchmark-catalog)                           | Evaluation    | Phase 5 | Implementation | Data validation              |
| Persian Evaluation Flowchart           | Flowchart          | [Persian Evaluation](/evaluation/persian-evaluation)                         | Evaluation    | Phase 5 | Implementation | Integration test             |
| Safety Evaluation Flowchart            | Flowchart          | [Safety Evaluation](/evaluation/safety-evaluation)                           | Evaluation    | Phase 5 | Implementation | Integration test             |
| Regression Evaluation Flowchart        | Flowchart          | [Regression Evaluation](/evaluation/regression-evaluation)                   | Evaluation    | Phase 5 | Implementation | Integration test             |
| Benchmark Integrity Flowchart          | Flowchart          | [Benchmark Integrity](/evaluation/benchmark-integrity)                       | Evaluation    | Phase 5 | Implementation | Security test                |
| Experiment Tracking Flowchart          | Flowchart          | [Experiment Tracking](/tracking/experiment-tracking)                         | Tracking      | Phase 6 | Implementation | Integration test             |
| Experiment Schema Diagram              | ER diagram         | [Experiment Schema](/tracking/experiment-schema)                             | Tracking      | Phase 6 | Implementation | Schema validation            |
| Model Registry ER Diagram              | ER diagram         | [Model Registry](/tracking/model-registry)                                   | Tracking      | Phase 6 | Implementation | Schema validation            |
| Dataset Registry ER Diagram            | ER diagram         | [Dataset Registry](/tracking/dataset-registry)                               | Tracking      | Phase 6 | Implementation | Schema validation            |
| Artifact Registry Flowchart            | Flowchart          | [Artifact Registry](/tracking/artifact-registry)                             | Tracking      | Phase 6 | Implementation | Integration test             |
| Model Lineage Graph                    | Graph              | [Model Lineage](/tracking/model-lineage)                                     | Tracking      | Phase 6 | Implementation | Trace test                   |
| Reproducibility Protocol Flowchart     | Flowchart          | [Reproducibility Protocol](/tracking/reproducibility-protocol)               | Tracking      | Phase 6 | Implementation | Integration test             |
| Model Provenance Sequence              | Sequence diagram   | [Model Provenance](/tracking/model-provenance)                               | Tracking      | Phase 6 | Implementation | Security test                |
| Quantization Flowchart                 | Flowchart          | [Quantization](/deployment/quantization)                                     | Deployment    | Phase 8 | Implementation | Unit test                    |
| Inference Flowchart                    | Flowchart          | [Inference](/deployment/inference)                                           | Deployment    | Phase 8 | Implementation | Integration test             |
| Deployment Specification Flowchart     | Flowchart          | [Deployment Specification](/deployment/deployment-specification)             | Deployment    | Phase 8 | Implementation | Integration test             |
| Offline Deployment Flowchart           | Flowchart          | [Offline Deployment](/deployment/offline-deployment)                         | Deployment    | Phase 8 | Implementation | Integration test             |
| Performance Validation Flowchart       | Flowchart          | [Performance Validation](/deployment/performance-validation)                 | Deployment    | Phase 8 | Implementation | Performance test             |
| API Specification Sequence             | Sequence diagram   | [API Specification](/interfaces/api-specification)                           | Interfaces    | Phase 1 | Implementation | Integration test             |
| CLI Specification Flowchart            | Flowchart          | [CLI Specification](/interfaces/cli-specification)                           | Interfaces    | Phase 1 | Implementation | Unit test                    |
| Configuration Specification Diagram    | Block diagram      | [Configuration Specification](/interfaces/configuration-specification)       | Interfaces    | Phase 1 | Implementation | Schema validation            |
| Testing Strategy Overview              | Block diagram      | [Testing Strategy](/testing/testing-strategy)                                | Testing       | Phase 0 | Review         | Review checklist             |
| Unit Test Plan Flowchart               | Flowchart          | [Unit Test Plan](/testing/unit-test-plan)                                    | Testing       | Phase 1 | Implementation | Review checklist             |
| Integration Test Plan Flowchart        | Flowchart          | [Integration Test Plan](/testing/integration-test-plan)                      | Testing       | Phase 2 | Implementation | Review checklist             |
| Model Merge Test Flowchart             | Flowchart          | [Model Merge Tests](/testing/model-merge-tests)                              | Testing       | Phase 3 | Implementation | Unit test                    |
| Numerical Testing Flowchart            | Flowchart          | [Numerical Testing](/testing/numerical-testing)                              | Testing       | Phase 3 | Implementation | Unit test                    |
| Evaluation Testing Flowchart           | Flowchart          | [Evaluation Testing](/testing/evaluation-testing)                            | Testing       | Phase 5 | Implementation | Integration test             |
| Performance Testing Flowchart          | Flowchart          | [Performance Testing](/testing/performance-testing)                          | Testing       | Phase 8 | Implementation | Performance test             |
| Security Testing Flowchart             | Flowchart          | [Security Testing](/testing/security-testing)                                | Testing       | Phase 7 | Implementation | Security test                |
| Failure Injection Flowchart            | Flowchart          | [Failure Injection](/testing/failure-injection)                              | Testing       | Phase 9 | Implementation | Integration test             |
| Failure Modes Diagram                  | Fault tree         | [Failure Modes](/risk/failure-modes)                                         | Risk          | Phase 0 | Review         | Risk review                  |
| Risk Management Flowchart              | Flowchart          | [Risk Management](/risk/risk-management)                                     | Risk          | Phase 0 | Review         | Risk review                  |
| Risk Register Table                    | Table              | [Risk Register](/risk/risk-register)                                         | Risk          | Phase 0 | Review         | Risk review                  |
| Roadmap Timeline                       | Gantt / Timeline   | [Roadmap](/project/roadmap)                                                  | Project       | Phase 0 | Review         | Milestone review             |
| Project Management Flowchart           | Flowchart          | [Project Management](/project/project-management)                            | Project       | Phase 0 | Review         | Review checklist             |
| Task Dependency Graph                  | Graph              | [Tasks](/project/tasks)                                                      | Project       | Phase 0 | Review         | Review checklist             |
| KPI Specification Table                | Table              | [KPI Specification](/project/kpi-specification)                              | Project       | Phase 0 | Review         | Review checklist             |
| Phase 0-9 Flowcharts                   | Flowchart          | [Phases](/project/phases/phase-0) through [Phase 9](/project/phases/phase-9) | Project       | Phase 0 | Review         | Review checklist             |
| Consistency Report Flowchart           | Flowchart          | [Consistency Report](/audit/consistency-report)                              | Audit         | Phase 9 | Implementation | Audit test                   |
| Traceability Matrix Table              | Table              | [Traceability Matrix](/audit/traceability-matrix)                            | Audit         | Phase 9 | Implementation | Audit test                   |
| Open Questions List                    | List               | [Open Questions](/audit/open-questions)                                      | Audit         | Phase 0 | Review         | Review checklist             |

## Quality Gate Checklist

Use this checklist before marking any phase complete:

* [ ] Every specification page contains at least one Mermaid diagram
* [ ] Every flowchart uses START/INPUT/VALIDATION/PROCESSING/DECISION/BRANCHES/OUTPUT/END nodes where applicable
* [ ] Every decision tree covers all branches (no implicit else)
* [ ] Every sequence diagram numbers messages chronologically
* [ ] Every state diagram lists all invalid transitions explicitly
* [ ] Every diagram is referenced by name in the surrounding prose
* [ ] Diagram source renders without Mermaid syntax errors
* [ ] Diagram captions explain what the reader should conclude
* [ ] Cross-links connect diagrams to related specification pages
* [ ] Diagrams use consistent color coding (blue: input, green: output, red: failure, orange: optional)
* [ ] No diagram exceeds 20 nodes without decomposition into sub-diagrams
* [ ] All algorithm flowcharts match the template in [Algorithm Flowchart Index](/diagrams/algorithm-flowchart-index)

## Next Steps

See [Architecture Diagrams](/diagrams/architecture-diagrams) for the actual Mermaid source of all architectural views, or [Algorithm Flowchart Index](/diagrams/algorithm-flowchart-index) for the standardized algorithm template.
