feat(rel-006): dcy-022/023 + BAT-032~034 — 실행 정책·qty 검증·allocated_capital 제거 통합
BAT-032 (dcy-022): timeout_sec/slippage_pct 실행 정책, 미체결 자동 취소, 보호 지정가, `trex-core cancel` 백스톱. 마이그레이션 012. BAT-033: `trex-core enter --qty` 필수 검증 — 미지정 시 RPC 전 즉시 오류. BAT-034 (dcy-023): allocated_capital 죽은 필드 전 경로 제거 (domain·intent· persistence·snapshot·CLI). 마이그레이션 013(비가역 DROP). 외부 발신자 unknown key 무시 수신 의미론 적용. REL-006 confirmed: BAT-026~034 통합 릴리즈, pre-release smoke 증거 포함. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
# BAT-033 Planning
|
||||
|
||||
- Status: done
|
||||
- Batch: BAT-033
|
||||
|
||||
## Milestones
|
||||
|
||||
| ID | 목표 | 연결 REQ |
|
||||
|---|---|---|
|
||||
| M1 | `enter --qty` 미지정 검증 + 테스트 | REQ-032 (CHG-20260610-06 AC-7) |
|
||||
|
||||
## M1 상세 (enter --qty 미지정 검증)
|
||||
|
||||
`trex_core/runtime/cli.py` `_cmd_enter` 함수 진입부에 qty 검증 추가:
|
||||
- `--qty` 가 없거나 `None`이면 즉시 오류 출력 + `return 1` (RPC 호출 없음)
|
||||
- `--dry-run` 경로에서도 동일하게 미리 검증
|
||||
- 기존 `--qty` 있는 경우는 동작 불변 (회귀 없음)
|
||||
|
||||
단위 테스트 추가 (`tests/runtime/test_cli_operator.py`):
|
||||
- `enter` without `--qty` → rc=1, rpc.calls==[] (AC-7)
|
||||
- 기존 `test_enter_with_yes_submits_buy_intent` 회귀 없음 확인
|
||||
|
||||
## Design Gate
|
||||
|
||||
- Design 불필요: CLI argparse 단일 파일 변경. 구조/인터페이스/런타임 흐름 영향 없음.
|
||||
- 검증: 단위 테스트 + 기존 suite 회귀 없음으로 충분.
|
||||
|
||||
## 위험 요소
|
||||
|
||||
- R-1 (dry-run 경로 누락): dry-run에서도 qty 체크를 해야 오류 메시지를 미리 볼 수 있음 → 동일 검증 로직 적용으로 해소.
|
||||
Reference in New Issue
Block a user