AC-0023: filter C-case quantity mismatch slots from strategy RPC, fail-closed on warn_store failure, symbol-aggregate verify clear

Co-authored-by: genichin <4282227+genichin@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-08-25 13:17:06 +00:00
committed by GitHub
co-authored by genichin
parent d9205fe151
commit 1179bdfe23
8 changed files with 666 additions and 13 deletions
+11
View File
@@ -391,6 +391,13 @@ class ReconcileWarningStore(Protocol):
"""
...
def list_c_case_warned(self) -> "set[str]":
"""Return set of slot_id strings that have an active case_code='C' warning.
AC-0023: used by strategy slots RPC to exclude C-case mismatched holding slots.
"""
...
class InMemoryReconcileWarningStore:
"""Process-local reconcile-warning store for tests + CI (REQ-102)."""
@@ -434,6 +441,10 @@ class InMemoryReconcileWarningStore:
info = self._warned.get(slot_id)
return dict(info) if info is not None else None
def list_c_case_warned(self) -> "set[str]":
with self._lock:
return {sid for sid, info in self._warned.items() if info.get("case_code") == "C"}
def slot_to_dict(
s,