sync update from LAN repo (source dhk-1 @ 3b1ec5b4)

This commit is contained in:
gozeros committed 2026-11-05 10:56:34 +08:00
1 parent da6521b6cb
commit 264e2200d6
995 files changed
+148105 -13399

No files matched your search

@@ -82,3 +82,11 @@ class ToolMetricsStore(ABC):
"which skills were invoked, and how often did each succeed/fail".
"""
raise NotImplementedError
async def purge_before(self, cutoff: datetime, *, batch_size: int = 1_000) -> int:
"""Delete one bounded batch of audit rows older than ``cutoff``.
The default keeps alternate/in-memory implementations compatible; the
SQL repository supplies the real retention operation.
"""
return 0