Files
trex-core/docs/discovery/index.md
T
genichinandClaude Opus 4.8 0b7db66463 feat(runtime): dcy-014 trading_date KST 타임존 분리 + 일일 슬롯 preallocation (BAT-018)
데몬이 시스템 UTC 날짜로 슬롯을 1회만 preallocate 해 trading_date 가 KST 캘린더와
어긋나고 재시작 없이는 다음날 슬롯이 안 생기던 문제(issue #14) 정정.

거버넌스: 전부 change-req (신규 REQ 없음, dcy-014 OQ-3; 스케줄러는 REQ-030 패턴 준용).
- REQ-005: trading_date 를 설정 타임존(기본 Asia/Seoul) 기준 계산(timestamp 는 UTC
  유지). DailyPreallocationScheduler 신규 — TZ 일자당 1회 멱등 fire, 재시작 없이
  다음날 슬롯 자동 생성. setup() 배선 + trex-preallocation 스레드
- REQ-048: TOML trading_timezone/daily_preallocation_time 키 + from_config 전파
- REQ-009: runtime-flows/data-model 정합 + instance.example.toml

OQ-1 기본 00:00(TZ 자정, TOML 설정 가능) / OQ-2 매 캘린더일 생성(거래일 캘린더 후속).
멱등 preallocate 로 중복 tick·다중 인스턴스 중복 생성 0.

검증: 단위 302 passed/32 skipped, 인프라 게이트(PG+RabbitMQ) 334 passed, ruff clean.
신규 test_preallocation_scheduler(고정 clock) + test_instance_config 확장.
BAT-018 release-candidate.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-08 15:39:04 +09:00

3.8 KiB

Discovery 전체 인덱스

Discovery 목록

ID 날짜 이슈명 문서 상태
dcy-001_20260603_slot-pure-domain-migration 20260603 trex-core 베이스 수립 및 slot 순수 도메인 이식 Discovery confirmed
dcy-002_20260603_slot-core-daemon-http-api 20260603 trex-core 슬롯 코어 데몬화 + HTTP intent API Discovery confirmed
dcy-003_20260604_broker-execution-and-outbox 20260604 브로커 단일 세션 + 주문 집행 + durable outbox (불변식 B) Discovery confirmed
dcy-004_20260604_portfolio-hub-ledger-integration 20260604 portfolio-hub ledger 연동 — 체결을 외부 원장에 기록 Discovery confirmed
dcy-005_20260604_portfolio-hub-asset-snapshot-api 20260604 portfolio-hub 종목 스냅샷 read API — 전략 모듈에 전략 실행 대상 자산 리스트 제공 Discovery confirmed
dcy-006_20260605_strategy-module-rabbitmq-transport 20260605 trex-core ↔ 전략 모듈 통신 transport — RabbitMQ 도입 (스냅샷 read + intent 제출 + 이벤트) Discovery confirmed
dcy-007_20260606_core-autonomous-safety-sell 20260606 core 자율 안전 매도 — stop-loss·시간 만기 자동 트리거 Discovery confirmed
dcy-008_20260607_emergency-stop-kill-switch 20260607 비상 정지/강제 청산(kill-switch) — portfolio/전역 슬롯 청산 + 당일 전략 제외 Discovery confirmed
dcy-009_20260607_multi-instance-rabbitmq-topology 20260607 인스턴스별 독립 RabbitMQ 채널 토폴로지 — trex-core 다중 인스턴스 운영을 위한 Topic Exchange + Fanout Exchange per-instance 큐 분리 Discovery confirmed
dcy-010_20260607_safety-sell-persistent-rejection-backoff 20260607 safety-sell 영속 거부 재시도 백오프 — 장 휴장·잔고 부족·규제 등 지속 거부 상황에서 KIS 주문 spam 방지를 위한 슬롯별 재시도 backoff/cooldown 정책 Discovery confirmed
dcy-011_20260608_buy-intent-portfolio-id-required-symbol-resolve 20260608 buy intent — portfolio_id를 필수 키로, symbol은 universe(SnapshotStore)에서 resolve (+ issue #11 portfolio_id 누락 체결 ledger silent skip 가시화 흡수) Discovery confirmed
dcy-012_20260608_sell-order-pricing-entry-price-bug 20260608 매도 주문이 현재가가 아닌 entry_price(매수가) 지정가로 나가는 버그 — sell dispatch 가격 정책 부재 (issue #10) Discovery confirmed
dcy-013_20260608_kis-external-cancel-pending-sell-stuck 20260608 KIS 외부 주문 취소 시 슬롯이 pending_sell 에 영구히 갇힘 — cncl_yn 미파싱 (issue #9) Discovery confirmed
dcy-014_20260608_trading-date-configurable-timezone-kst 20260608 당일 슬롯 생성 기준 시간을 KST(설정 가능)로 분리 — trading_date 타임존 분리 + 일자 경계 preallocation (issue #14) Discovery confirmed