Repository navigation
형식 거절의 결함 종류를 다음 요청에 전달(ADR-0098) - #173
Draft
SonAIengine wants to merge 2 commits into
Draft
SonAIengine wants to merge 2 commits into
SonAIengine wants to merge 2 commits into
Conversation
기준선 bridge 응답 1,482개 중 146개(9.9%)가 형식 거절이고 8과업이 3연속 거절로 끝났다. 같은 계약 규칙으로 재분류하면 문자열 escape 62, 봉투 구조 71, 안전 필터 13이다. 고정 code responseDefect 전달과 뜻이 하나뿐인 문자열 보정(오프라인 22건 회복)을 제안하고, 분석에 쓴 분류기 bench/harbor/classify_responses.py를 함께 넣는다. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
기준선 응답 1,482개 중 146개(9.9%)가 형식 거절인데, 모델은 "계약에 안 맞음"이라는 고정 문장만 받아 같은 갈래를 23/131번 다시 틀렸고 8과업이 3연속 거절로 끝났다. - PlannerPortFailure::InvalidResponse가 ResponseDefect(13개 고정 code)를 싣는다. - journal Rejected settlement에 response_defect, 다음 context의 previousResponseRejection에 responseDefect와 code별 meaning을 넣는다. 없으면 직렬화 안 함. - JSON 문법 오류는 serde가 멈춘 위치의 첫 문자열 결함만 제어 문자/escape로 본다. 봉투 오류는 Step 필드 최상위, 봉투 필드 누락, 알 수 없는 필드, kind 순으로 판정한다. - agy transport의 응답 사전 JSON 검사를 빼서 HTTP와 같은 decoder가 분류하고 ADR-0068 닫는 괄호 보정도 받게 했다. 검증: 기준선 bridge 응답 1,511개를 Rust decoder로 재판정해 거절 146건 모두 구체 code (unclassified 0). cargo test --workspace 실패 0, clippy -D warnings 통과, 새 테스트 3개. diff-model-requests 8개 사례 중 거절 재시도 1건만 meaning·responseDefect가 바뀜. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
배경
약한 모델 하네스 연구(Terminal-Bench 2.1, agy
gemini-3.8-flash-low) 기준선에서 응답 1,482개 중 146개(9.9%)가planner_invalid_response로 거절됐다. 8과업은 3연속 거절로 끝났다.모델이 받는 건 "계약에 안 맞거나 completion check에 실패했다"는 고정 문장뿐이다. 그래서 무엇을 고쳐야 하는지 모른다. 거절 다음 응답에서 같은 갈래를 다시 틀린 경우가 131번 중 23번이다.
거절 146건의 갈래:
bash -c안의 여러 줄 코드변경 (ADR-0098 1번)
PlannerPortFailure::InvalidResponse(ResponseDefect): 고정 code 13개를 싣는다. 응답 내용은 담지 않는다.ModelCallSettlement::Rejected.response_defectpreviousResponseRejection.responseDefect와 code별 고정meaning"가 문자열을 일찍 닫은 경우는 일반 문법 오류로 남는다.2번(뜻이 하나뿐인 문자열 보정)은 1번 실측 뒤 따로 판단한다.
검증
unclassified는 0건이다.cargo test --workspace실패 0,clippy --workspace --all-targets -D warnings통과. 새 테스트 3개(분류 단위 테스트 2, e2e 1).scripts/diff-model-requests.py --base <main bin> --head <this bin>:거절이 없는 요청은 같다. 바뀌는 건 거절 뒤 재시도 요청 하나뿐이다.
실측 (대기)
🤖 Generated with Claude Code