package self type BenchmarkCaseRef string type PersonalBenchmark struct { ID string PrincipalID string ApprovedCaseRefs []BenchmarkCaseRef GoalProfile []string PreferenceEvidenceRefs []SemanticReference RecordedAt int64 } type BenchmarkEvaluation struct { CaseRef BenchmarkCaseRef Path string QualityMillis int64 ReliabilityMillis int64 LatencyMillis int64 CostMicros int64 CorrectionCount int64 EvidenceRefs []SemanticReference } func (e BenchmarkEvaluation) Valid() bool { return e.CaseRef != "" && len(e.EvidenceRefs) > 0 && e.QualityMillis >= 0 && e.ReliabilityMillis >= 0 && e.CorrectionCount >= 0 }