feat(core-B): 운영자 sync/verify CLI + cold-start onboarding (BAT-051, REQ-105/106, PR #32)
dcy-034 마지막 조각. sync(슬롯 qty←브로커+warning해제+OQ-A 전이엣지+FR-7 평단seed)/verify(C 재대조·강제해제없음). core-A QC minor 2건 정리 동봉. QC(opus) PASS, 683 passed. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VHtM5Ws1HKCKQ4JGi6GRb5
This commit is contained in:
@@ -69,9 +69,23 @@ _FROM_ERROR_TRANSITIONS: frozenset[tuple[SlotState, SlotState]] = frozenset(
|
||||
}
|
||||
)
|
||||
|
||||
# dcy-034 / REQ-105 OQ-A: cold-start onboarding transition (actor=sync/reconcile only).
|
||||
# A permanent slot that already has a position in the broker at daemon cold-start can
|
||||
# transition INACTIVE→HOLDING so the sync command can onboard it without going through
|
||||
# the normal INACTIVE→PENDING_BUY buy-flow. Wire-contract unchanged: SlotState enum
|
||||
# values remain 5 (inactive/pending_buy/holding/pending_sell/error). Only the transition
|
||||
# table expands. Callers MUST supply actor="sync" and reason="onboarding" (or
|
||||
# "reconcile_sync") so the transition_log is auditable and distinct from the normal
|
||||
# strategy entry path (INACTIVE→PENDING_BUY→HOLDING).
|
||||
_SYNC_TRANSITIONS: frozenset[tuple[SlotState, SlotState]] = frozenset(
|
||||
{
|
||||
(SlotState.INACTIVE, SlotState.HOLDING), # REQ-105 OQ-A: cold-start onboarding
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
ALLOWED_TRANSITIONS: frozenset[tuple[SlotState, SlotState]] = (
|
||||
_BASE_TRANSITIONS | _TO_ERROR_TRANSITIONS | _FROM_ERROR_TRANSITIONS
|
||||
_BASE_TRANSITIONS | _TO_ERROR_TRANSITIONS | _FROM_ERROR_TRANSITIONS | _SYNC_TRANSITIONS
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user