feat: ConnectAI structural hardening and retrieval precision improvements

This commit is contained in:
g1nation
2026-05-05 21:37:45 +09:00
parent c2f17cfb03
commit 466e9e4d5f
17 changed files with 424 additions and 160 deletions
+3 -2
View File
@@ -21,6 +21,7 @@ import {
} from '../src/lib/engine';
import * as fs from 'fs';
import * as path from 'path';
import { createHash } from 'crypto';
// ─── Setup ───
const getBaseDir = () => {
@@ -622,12 +623,12 @@ describe('Concurrency & Stress Tests', () => {
// resilientExecute의 fallback 로직이 allowFallback 옵션에 반응하는지 테스트
const options: AgentExecuteOptions = {
config: { allowFallback: true },
config: { allowFallback: true, isSamePrompt: true },
priorResults: { previousValidData: expectedFallback }
};
const result = await (engine as any).resilientExecute(
new MissionState('fallback_test'),
new MissionState('fallback_test', createHash('sha256').update(testPrompt).digest('hex').slice(0, 16)),
failingAgent,
'FailingAgent',
testPrompt,