코드 탭 빌드 실패 조기 종료를 복구 경로로 보강하고 다중 오류 파일 조사 유도를 추가한다

- Code 탭의 review 전용 실행 결과 게이트를 bugfix/feature/refactor에도 확대 적용해 build_run/test_loop 실패 후 읽기만 하고 종료되는 회귀를 막음

- balanced/reasoning_first/tool_call_strict 프로파일에 최근 실행 근거 게이트와 실행 성공 게이트 재시도 1회를 부여해 최소 한 번의 수정·재검증 루프를 보장함

- 빌드 로그에서 오류 파일이 여러 개 잡히면 BuildFailureInvestigationPrompt가 multi_read를 우선 쓰도록 유도해 Themes\\ControlStyles.xaml, Themes\\Effects.xaml 같은 동시 오류를 더 빠르게 좁히도록 개선함

- AgentLoopCodeQualityTests에 다중 오류 파일 조사, 코드 작업 실행 게이트 범위, 코드 중심 프로파일 회귀 테스트를 추가함

- 검증: dotnet build src/AxCopilot/AxCopilot.csproj -c Release -v minimal / dotnet test src/AxCopilot.Tests/AxCopilot.Tests.csproj -c Release -v minimal --filter AgentLoopCodeQualityTests (경고 0 / 오류 0, 134 통과)
This commit is contained in:
2026-04-15 23:06:29 +09:00
parent 16e136107c
commit 4980113b99
6 changed files with 161 additions and 11 deletions

View File

@@ -2317,3 +2317,12 @@ MIT License
- 寃€利?
- `dotnet build src/AxCopilot/AxCopilot.csproj -c Release -v minimal -p:OutputPath=bin\\verify_background_conversation_live_ui\\ -p:IntermediateOutputPath=obj\\verify_background_conversation_live_ui\\` 寃쎄퀬 0 / ?ㅻ쪟 0
- `dotnet test src/AxCopilot.Tests/AxCopilot.Tests.csproj -c Release -v minimal --filter "ChatStreamingUiPolicyTests|AppStateServiceTests" -p:OutputPath=bin\\verify_background_conversation_live_ui_tests\\ -p:IntermediateOutputPath=obj\\verify_background_conversation_live_ui_tests\\` ?듦낵 49
업데이트: 2026-04-15 23:03 (KST)
- Code 탭 빌드 실패 후 조기 종료 회귀를 보강했습니다. `src/AxCopilot/Services/Agent/AgentLoopTransitions.Verification.cs`가 이제 `review`뿐 아니라 `bugfix/feature/refactor`에도 최근 실행 근거 게이트와 실행 성공 게이트를 적용해, 실패한 `build_run/test_loop` 뒤에 모델이 읽기만 하고 텍스트 종료로 빠지는 흐름을 한 번 더 실행 복구 경로로 밀어줍니다.
- `src/AxCopilot/Services/Agent/ModelExecutionProfileCatalog.cs``balanced`, `reasoning_first`, `tool_call_strict` 프로파일에 `RecentExecutionGateMaxRetries=1`, `ExecutionSuccessGateMaxRetries=1`을 부여했습니다. 코드 작업 중심 프로파일에서는 최소 1회 이상 `실패 후 수정/재검증` 루프를 허용하도록 맞춘 것입니다.
- `src/AxCopilot/Services/Agent/AgentLoopService.cs`의 실패 조사 프롬프트는 빌드 로그에 오류 파일이 2개 이상 잡히면 `multi_read`로 함께 읽도록 유도합니다. 예를 들어 `Themes\\ControlStyles.xaml`, `Themes\\Effects.xaml`처럼 동시 오류가 난 경우 단건 `file_read` 반복보다 빠르게 원인을 좁히는 쪽으로 유도합니다.
- 테스트:
- `src/AxCopilot.Tests/Services/AgentLoopCodeQualityTests.cs`에 다중 오류 파일 `multi_read` 유도, 코드 작업용 실행 게이트 적용 범위, 코드 중심 실행 프로파일 게이트 활성화 회귀 테스트를 추가했습니다.
- 검증:
- `dotnet build src/AxCopilot/AxCopilot.csproj -c Release -v minimal -p:OutputPath=bin\\verify_build_failure_recovery\\ -p:IntermediateOutputPath=obj\\verify_build_failure_recovery\\` 경고 0 / 오류 0
- `dotnet test src/AxCopilot.Tests/AxCopilot.Tests.csproj -c Release -v minimal --filter "AgentLoopCodeQualityTests" -p:OutputPath=bin\\verify_build_failure_recovery_tests\\ -p:IntermediateOutputPath=obj\\verify_build_failure_recovery_tests\\` 통과 134