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:
@@ -278,6 +278,15 @@ class ReconcileWarningStore(Protocol):
|
||||
def list_warned(self) -> "set[str]":
|
||||
...
|
||||
|
||||
def get_warning_info(self, slot_id: str) -> "Optional[dict]":
|
||||
"""Return {"portfolio_id", "case_code", "actor", "reason"} or None.
|
||||
|
||||
Used by verify to determine whether the warning is case_code='C'
|
||||
(verify's responsibility) vs 'B' (sync's responsibility, REQ-106 OQ-C).
|
||||
Returns None when the slot has no active warning.
|
||||
"""
|
||||
...
|
||||
|
||||
|
||||
class InMemoryReconcileWarningStore:
|
||||
"""Process-local reconcile-warning store for tests + CI (REQ-102)."""
|
||||
@@ -316,6 +325,11 @@ class InMemoryReconcileWarningStore:
|
||||
with self._lock:
|
||||
return set(self._warned.keys())
|
||||
|
||||
def get_warning_info(self, slot_id: str) -> "Optional[dict]":
|
||||
with self._lock:
|
||||
info = self._warned.get(slot_id)
|
||||
return dict(info) if info is not None else None
|
||||
|
||||
|
||||
def slot_to_dict(
|
||||
s,
|
||||
|
||||
Reference in New Issue
Block a user