docs: clarify store transaction boundaries

This commit is contained in:
lda
2026-06-09 20:22:15 +07:00 Verified
parent d0c2153258
commit efe80effbc
7 changed files with 152 additions and 5 deletions
+12
View File
@@ -54,6 +54,12 @@ class Store(AuthStore, CatalogStore):
class FileAuthStore(AuthStore):
"""Local plaintext JSON auth store for development and test deployments.
Admin surfaces keep payload values write-only, but this filesystem backend
does not encrypt secrets or coordinate cross-process writes.
"""
def __init__(self, root: Path) -> None:
self.root = root
self.root.mkdir(parents=True, exist_ok=True)
@@ -115,6 +121,12 @@ class FileAuthStore(AuthStore):
class FileCatalogStore(CatalogStore):
"""Local JSON cache for MCP catalog snapshots.
Catalog snapshots are a convenience cache, not authoritative desired state,
and writes are not cross-process transactional.
"""
def __init__(self, root: Path) -> None:
self.root = root
self.root.mkdir(parents=True, exist_ok=True)