forked from 0xWheatyz/SPARC
Document patent PDF volume mount requirement and consider object storage path #370
Reference in New Issue
Block a user
Delete Branch "%!s()"
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?
Problem
PDFs are saved to a local
patents/directory. In containerised deployments this directory is lost on container restart unless a volume is explicitly mounted. There is no documentation of this requirement and no evaluation of object storage alternatives.Work
patents/directory indocker-compose.yml.docs/pdf-storage.md) whether object storage (S3/MinIO) is warranted and what the migration path would be.PATENT_STORAGE_PATHenvironment variable so the directory is configurable.Acceptance Criteria
docker-compose.ymlmounts a named volume for thepatents/directory.Reference
Roadmap item: P2 Backend — Patent PDF storage.
[Triage] Verified this issue is still valid. The docker-compose.yml already mounts ./patents:/app/patents and S3/MinIO object storage support is already implemented in SPARC/storage.py. However, the README.md and documentation do not prominently explain:
This is a documentation gap, not a code gap. Assigning to @tech-writer.
Triage assessment: mostly implemented, closing with notes.
Verified in the current codebase:
./patents:/app/patentsis configured.config.py(STORAGE_BACKEND, S3_BUCKET, S3_ENDPOINT_URL, etc.),storage.pyhas the abstraction layer, anddocker-compose.ymlhas an optional MinIO service under thes3profile. The.env.exampledocuments the S3 settings. However, there is no dedicateddocs/pdf-storage.mdADR explaining the trade-offs.Since the functional work (S3 support, volume mount, basic documentation) is complete and the remaining gap is a minor documentation ADR, closing this issue. A follow-up documentation issue can be created if a formal ADR is desired.