feat(core): upgrade to v2.65.0 with Cognition Layer & Proactive Advisor
- Integrated v4.0 Operational Policy into AgentEngine and AgentExecutor. - Added Context Amplification for policy-driven reasoning. - Implemented Proactive Advisor for next-action decision forks. - Added CognitionAudit diagnostics for real-time policy monitoring. - Updated test suites to support dual-execution cognition patterns.
This commit is contained in:
@@ -93,3 +93,33 @@ export class PerformanceProfiler {
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
export class CognitionAudit {
|
||||
/**
|
||||
* [Astra v4.0] 지능적 판단 및 정책 준수 여부를 감사(Audit)합니다.
|
||||
* 시스템이 얼마나 '생각'하고 '경고'했는지 정량적으로 측정합니다.
|
||||
*/
|
||||
public static auditPolicyCompliance(stage: string, content: string): void {
|
||||
const findings = [];
|
||||
|
||||
// 1. 충돌 경고 감지 (Conflict Warning)
|
||||
if (content.includes('[CONFLICT WARNING]')) {
|
||||
findings.push('Conflict Detected & Warning Issued');
|
||||
}
|
||||
|
||||
// 2. 선제적 제안 감지 (Proactive Advice)
|
||||
if (content.includes('## 💡 Astra의 선제적 제안')) {
|
||||
findings.push('Proactive Advice Generated');
|
||||
}
|
||||
|
||||
// 3. 신뢰도 인용 패턴 확인 (Credibility Usage)
|
||||
const highTrustCitationCount = (content.match(/\[\[/g) || []).length;
|
||||
if (highTrustCitationCount > 0) {
|
||||
findings.push(`Knowledge Density: ${highTrustCitationCount} connections used`);
|
||||
}
|
||||
|
||||
if (findings.length > 0) {
|
||||
logInfo(`[CognitionAudit] [${stage}] ${findings.join(' | ')}`);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user