Repository navigation
feat(execution): 실행 실패 사유 코드 정의와 로컬 기록 (#101) - #113
Merged
Merged
Conversation
- FailureCode(SAFETY_REJECTED·APPROVAL_EXPIRED·TELEMETRY_STALE·POSTURE_UNKNOWN·SDK_REJECTED·TIMEOUT· NOT_MOVED·EXECUTION_ERROR)와 CodedError/failure_code_of 추가. - guard·SDK client·backend 의 raise 위치에서 코드 지정, ExecutionResult.failure_code 와 execution_failed 로그 failure_code 필드로 기록. Server 보고는 Poppy-Server#134 계약 확정 후. Part of #101 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 10, 2026
exijn
added a commit
that referenced
this pull request
Nov 16, 2026
#95 머지 뒤 base 를 develop 으로 바꾸며 생긴 충돌을 푼다. - unitree_sdk.py import: develop 의 observability import 와 이 브랜치의 SportStateSample import 를 모두 둔다 - 테스트 FakeSportClient: robot(SimulatedRobot)과 fail_codes 를 모두 둔다 - 폐루프 경로의 'Move call blocked too long' 도 develop(#113)과 같이 FailureCode.TIMEOUT 으로 표시한다 pytest 542·ruff·ruff format·mypy·harness 통과. 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.
Part of #101 (Server 보고는 Poppy-Server#134 계약 확정 후 후속)
변경
execution/failure.py:FailureCode8종,CodedError,failure_code_of(원인 체인 탐색).APPROVAL_EXPIRED, 텔레메트리 →TELEMETRY_STALE, SDK 0 아닌 결과/backend 결과 False →SDK_REJECTED, Move 호출 지연 →TIMEOUT, guard 한도 →SAFETY_REJECTED, 나머지EXECUTION_ERROR.ExecutionResult.failure_code추가, runtimeexecution_failed로그에failure_code(allow-list 추가).docs/failure-codes.md: 코드표와 Server 계약 제안.POSTURE_UNKNOWN(fix(physical): 자세·프리셋 실패 시 자세 불명으로 두고 재조회로 복구 (#98) #110)·NOT_MOVED(feat(physical): MOVE·TURN을 sportmodestate 기반 폐루프로 전환 (r11) #97)는 해당 PR 머지 후 연결.검증
harness, ruff, ruff format, mypy, pytest(신규 11, fake 전용) 통과. 로봇·네트워크 접근 없음.
🤖 Generated with Claude Code