feat: Resilience Hardening & Boundary Stress Validation (v2.77.3)
This commit is contained in:
@@ -4,7 +4,7 @@ export class AgentDataValidator {
|
||||
/**
|
||||
* 에이전트 간 핸드오프(Handoff) 시 데이터 무결성을 검증하고 품질 점수를 반환합니다.
|
||||
*/
|
||||
public static validateHandoff(stage: string, data: string): number {
|
||||
public static validateHandoff(stage: string, data: string): { score: number, conflictRisk: number } {
|
||||
if (!data || data.trim().length === 0) {
|
||||
throw new Error(`[IntegrityError] 데이터 누락: ${stage} 에이전트의 출력이 비어 있습니다.`);
|
||||
}
|
||||
@@ -46,7 +46,7 @@ export class AgentDataValidator {
|
||||
logInfo(`[ConflictAlert] ${stage} 단계에서 지식 충돌 위험 감지 (Risk: ${conflictRisk}).`);
|
||||
}
|
||||
|
||||
return score - (conflictRisk * 0.5); // 충돌 위험이 높으면 전체 품질 점수를 감쇄함
|
||||
return { score, conflictRisk };
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user