Data Classes
Data Flow Diagram
Benchmark Split Boundaries
The diagram shows three distinct evaluation data flows:- Optimization Set (orange): Metrics feed directly into FitnessEngine and EvolutionEngine. This split is used for hyperparameter tuning and merge strategy selection.
- Validation Set (orange): Metrics are logged to ExperimentTracker for monitoring and early stopping. Not used for fitness computation.
- Hidden Test Set (red): Metrics are computed once per experiment, after evolution converges, and are never exposed to EvolutionEngine or FitnessEngine. This enforces CONST-05 and ADR-006/007.
Flow Constraints
- Weights flow is unidirectional: Weights move from ArtifactStore → ModelLoader → TensorEngine/MergeEngine → CandidateGenerator → QuantizationEngine → InferenceBackend. There is no reverse flow.
- Task Vectors are ephemeral: Task Vectors exist only in memory during merge operations. They are not persisted to ArtifactStore.
- Metrics are append-only: Once computed, metrics are written to ExperimentTracker and cannot be modified. Invalid metrics are marked INVALID, not overwritten.
- Signatures are computed post-merge: The ed25519 signature covers the merged weights, config, and manifest. It is computed after CandidateGenerator produces the manifest and before DeploymentManager releases the artifact.
- Hidden Test Set metrics are isolated: The red boundary indicates that Hidden Test Set metrics never enter the EvolutionEngine loop. Access is logged and audited.