Add dcy-003 (confirmed) + REQ-011~015: broker execution + KIS + outbox

dcy-003 confirmed (all OQ answered, operator-confirmed scope/risk):
- OQ-1: paper/stub + real KIS Open API adapter (validated on KIS paper
  server; live account go-live config-gated, deferred).
- OQ-2: unified async fill (submit -> poll); paper is a deterministic
  async double (no synchronous shortcut) for faithful path coverage.
- OQ-3: option A — pending slot is the execution queue, broker_order_id
  is the idempotency guard; no separate outbox table (option B as a
  growth hook; intent_log stays dedup-only).
- OQ-4: dedicated background execution loop (claim -> submit -> poll ->
  reconcile); intent API only transitions to pending.

Decompose into REQ-011~015 (all Proposed): BrokerPort + paper double,
KIS adapter, execution loop, durability+reconciliation (Exception),
baseline alignment. NFR-1/2/3 absorbed. Update SRS index + dcy-003
created-REQ refs. Safety floor, KIS live account, strategy daemons, and
auth remain deferred to follow-up Discoveries.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-06-04 16:40:23 +09:00
co-authored by Claude Opus 4.8
parent 575ba9f513
commit d60d720bc7
8 changed files with 593 additions and 2 deletions
@@ -0,0 +1,69 @@
# req-015: 브로커/집행 baseline 문서 정합
- Status: Proposed
- Type: Documentation
- Priority: Medium
- Owner: project maintainers
## Intent
- 브로커 세션·주문 집행·체결·reconciliation 레이어가 추가된 뒤 baseline 문서를 실제 구조/흐름/계약과 일치시킨다.
## Requirement
- `docs/runtime-flows.md`(집행 루프·체결·reconciliation 흐름), `docs/project-structure.md`(broker adapter·execution 레이어), `docs/interface-contract.md`(BrokerPort 경계·KIS), `docs/data-model.md`(broker_order_id 를 실행큐/멱등 가드로 쓰는 의미)를 갱신한다.
## Acceptance Criteria
1. Given 집행 구현 완료, When runtime-flows 확인, Then 집행 루프(claim→송신→poll→전이)·reconciliation 흐름이 실제와 일치한다.
2. Given project-structure 확인, Then broker adapter(paper/KIS)·execution 레이어가 반영된다.
3. Given interface-contract/data-model 확인, Then BrokerPort 경계와 broker_order_id 의 실행큐/멱등 역할이 반영된다.
## Impacted Area
- Docs: docs/runtime-flows.md, docs/project-structure.md, docs/interface-contract.md, docs/data-model.md
- Modules: 없음
- Tests: 없음
## Notes
- dcy-003 FR-6. REQ-011~014 구현 완료 후 수행(순서 의존).
- 출처: dcy-003 FR-6.
## Change Log
### CHG-20260604-01
- Date: 2026-06-04
- Author: Justin Ko
#### Change Summary
- dcy-003 FR-6 로부터 최초 생성(Proposed).
#### Intent
- 브로커/집행 baseline 정합 요구사항을 backlog 로 정규화.
#### Acceptance Criteria Delta
- Added:
- runtime-flows, project-structure, interface-contract/data-model 정합 3개 기준
- Updated:
- 없음
- Removed:
- 없음
#### Impacted Area Delta
- Docs:
- docs/runtime-flows.md, docs/project-structure.md, docs/interface-contract.md, docs/data-model.md
- Modules:
- 없음
- Tests:
- 없음
#### Delivery Trace Delta
- Batches:
- none
- Releases:
- none
#### Revalidation Impact
- Reverification Needed: no
- Existing Implementation Invalidated: no
- Status Recommendation: keep-current
- Follow-up Action: REQ-011~014 구현 후 batch verification 단계에서 수행
#### Validation Plan
- baseline 문서와 실제 구현(레이어/흐름/계약) 대조로 검증.