fix(cli): verify 명령 ImportError 핫픽스 — make_broker→_build_broker

운영 배포 스모크(REL-010 STEP2)서 trex-core verify가 ImportError(make_broker 부재)로 실패.
_cmd_verify가 존재하지 않는 trex_core.adapters.broker.make_broker를 import하던 것을
_cmd_sync와 동일한 trex_core.runtime.daemon._build_broker로 교체. 회귀 테스트 2개 추가.
747 passed/회귀 0. CLI 전용, trading/wire 무관.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VHtM5Ws1HKCKQ4JGi6GRb5
This commit is contained in:
2026-06-30 13:30:07 +09:00
co-authored by Claude Opus 4.8
parent ababf80234
commit 51cc3ccb09
2 changed files with 61 additions and 2 deletions
+2 -2
View File
@@ -582,8 +582,8 @@ def _cmd_verify(args, cfg) -> int:
warn_store = PostgreSQLReconcileWarningStore(cfg.dsn)
slot_repo = PostgreSQLSlotRepository(cfg.dsn)
from trex_core.adapters.broker import make_broker
broker_port = make_broker(cfg)
from trex_core.runtime.daemon import _build_broker
broker_port = _build_broker(cfg)
# Build a minimal snapshot store (we only need asset_quantity for C-case check).
# For verify we use a fresh SnapshotStore populated from warn_store metadata.