feat(storage): X14 Phase 1 — unified storage layer (services/storage.py) #151
Reference in New Issue
Block a user
Delete Branch "worktree-storage-minio-phase1"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
מה זה
שלב 1 של הגירת-האחסון ל-MinIO (X14, משימה 106.2): שכבת-אחסון יחידה
services/storage.py— נקודת-החיבור היחידה לכל ה-I/O הבינארי, שמחליפה את ה-open()/shutil/Path.write_bytesהמפוזרים על ~8 שירותים.מנוע נבחר ע"י
STORAGE_BACKENDעיצוב
שינויים
config.py:STORAGE_BACKEND+MINIO_*(endpoint/public/creds/region/3 דליות/presign-TTL)mcp_env_catalog.py: קטגורייתstorageחדשה + 10 specs (X10/INV-ENV1)pyproject.toml:aioboto3>=13(נצרך כאן → נפרס עם השימוש הראשון)tests/test_storage.py: 18 בדיקות עוברות (round-trip FS, נרמול-מפתח + traversal guard, החלטת-מנוע, dual write-both + fallback כש-S3 למטה)סוג + invariants
לא חוברו call-sites עדיין (זה שלב 2/106.3).
STORAGE_BACKEND=filesystemבייצור → אין שינוי-התנהגות.מקיים G2 (מסלול-אחסון יחיד). מבסס INV-STG1/2/3/6. ספ:
docs/spec/X14-storage-minio.md.🤖 Generated with Claude Code