feat(ingestion): implement Phase 2 multi-format intake and raw storage

- Add format validation and inspection for PDF, DOCX, Markdown, Text, HTML, and images
- Implement secure decompression defenses (zip bombs, ratio checks) and image dimension limits
- Implement FileStore with content-addressable storage and intake repositories
- Add unit and integration tests for document intake, format sniffing, and storage roots
- Include sample acceptance document fixtures in data/documents/
This commit is contained in:
amirhosein mazaheri
2026-10-07 16:20:41 +03:30
parent 0a998ac94a
commit b036912293
16 changed files with 1714 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
"""Safe ingestion domain errors shared across application and persistence."""
class IntakeError(ValueError):
def __init__(self, code, message):
super().__init__(message)
self.code = code