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,82 @@
|
||||
# req-072: 실행 정책 baseline 문서 정합 — interface-contract / runtime-flows
|
||||
|
||||
- Status: Implemented
|
||||
- Type: Documentation
|
||||
- Priority: Medium
|
||||
- Owner: project maintainers
|
||||
|
||||
## Intent
|
||||
- dcy-022 실행 정책 변경(timeout_sec·slippage_pct intent 계약, timeout 집행 흐름, slippage dispatch, 운영자 cancel 백스톱)을 baseline 문서에 반영해 docs 와 코드 일관성을 유지한다. (dcy-022 FR-6)
|
||||
|
||||
## Requirement
|
||||
- `docs/interface-contract.md`: buy/sell intent payload 에 optional `timeout_sec`(주문 유효시간), `slippage_pct`(체결 보호밴드) 필드 추가 및 설명 반영. `docs/runtime-flows.md`: 집행 루프 흐름에 timeout 취소(cancel_order 송신·race·rollback)·slippage dispatch·운영자 cancel 백스톱 흐름 추가. 하위호환 및 default 정책(config 기본값·미지정=OFF) 명시.
|
||||
|
||||
## Acceptance Criteria
|
||||
1. Given `docs/interface-contract.md`, When 확인, Then buy/sell payload 에 `timeout_sec`(optional int), `slippage_pct`(optional float) 필드 명세와 하위호환 설명이 포함된다.
|
||||
2. Given `docs/runtime-flows.md`, When 확인, Then 집행 루프 섹션에 timeout 초과 → cancel_order 송신 → 다음 poll 수렴 흐름이 기술된다.
|
||||
3. Given `docs/runtime-flows.md`, When 확인, Then dispatch 섹션에 slippage_pct 실효 지정가 산출 흐름(entry_price*(1±pct), entry_price 없으면 무시)이 기술된다.
|
||||
4. Given `docs/runtime-flows.md`, When 확인, Then 운영자 cancel 백스톱 흐름(trex-core cancel → control RPC → cancel_order 송신)이 기술된다.
|
||||
|
||||
## Impacted Area
|
||||
- Docs: docs/interface-contract.md, docs/runtime-flows.md
|
||||
|
||||
## Notes
|
||||
- 출처: dcy-022 FR-6.
|
||||
|
||||
## Change Log
|
||||
|
||||
### CHG-20260610-01
|
||||
- Date: 2026-06-10
|
||||
- Author: Justin Ko
|
||||
|
||||
#### Change Summary
|
||||
- dcy-022 FR-6 로부터 최초 생성(Proposed). 실행 정책 baseline 2문서 정합.
|
||||
|
||||
#### Intent
|
||||
- 실행 정책 변경을 baseline 에 동기화.
|
||||
|
||||
#### Acceptance Criteria Delta
|
||||
- Added: AC-1~4 (interface-contract payload, runtime-flows timeout·slippage·cancel 흐름 4개 기준)
|
||||
|
||||
#### Impacted Area Delta
|
||||
- Docs: docs/interface-contract.md, docs/runtime-flows.md
|
||||
|
||||
#### Delivery Trace Delta
|
||||
- Batches: none
|
||||
|
||||
#### Revalidation Impact
|
||||
- Reverification Needed: no / Existing Implementation Invalidated: no / Status Recommendation: keep-current
|
||||
|
||||
#### Validation Plan
|
||||
- 문서 확인(커밋 메시지 + 내용 일치).
|
||||
|
||||
### CHG-20260610-02
|
||||
- Date: 2026-06-10
|
||||
- Author: Justin Ko
|
||||
|
||||
#### Change Summary
|
||||
- Status Proposed → Approved (confirm-req).
|
||||
|
||||
#### Intent
|
||||
- delivery input 으로 승격.
|
||||
|
||||
#### Acceptance Criteria Delta
|
||||
- Added: 없음 / Updated: 없음 / Removed: 없음
|
||||
|
||||
#### Impacted Area Delta
|
||||
- Docs: docs/srs/index.md (Register Approved)
|
||||
|
||||
#### Delivery Trace Delta
|
||||
- Batches: none
|
||||
|
||||
#### Revalidation Impact
|
||||
- Reverification Needed: no / Existing Implementation Invalidated: no / Status Recommendation: keep-current / Follow-up Action: BAT-032.
|
||||
|
||||
#### Validation Plan
|
||||
- 승인 후 batch planning 에서 AC 검증 기준으로 사용.
|
||||
|
||||
### CHG-20260611-IMPL
|
||||
- Date: 2026-06-11
|
||||
- Author: Justin Ko
|
||||
- Type: status
|
||||
- Summary: Approved → Implemented (confirm-req-implemented). 근거: BAT-032(release-candidate) verification — 실행 정책(timeout_sec·slippage_pct) 계약·집행·운영자 cancel 백스톱 전 AC acceptance mapping 존재(신규 71 tests), 단위 425 passed 회귀 없음, baseline 2문서 수동 확인(M5). Blocking Issues 없음.
|
||||
Reference in New Issue
Block a user