forked from 0xWheatyz/SPARC
Document patent PDF volume mount requirement and integrate download step in analyze_single_patent #1533
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?
Context
analyze_single_patentconstructs a pathpatents/{patent_id}.pdfand reads from disk but does not download the PDF first. In containerized deployments, thepatents/directory is also not documented as a required volume mount.Roadmap reference: ROADMAP.md > P2 > Backend > Patent PDF storage
What to do
analyze_single_patentso it fetches the PDF if not already present locallypatents/volume mount indocker-compose.ymlwith a comment and in the README/CLAUDE.md setup sectionpatents/directory to.gitignoreif not already presentAcceptance criteria
analyze_single_patenton a patent whose PDF has not been downloaded either fetches it automatically (Option A) or raises a clear, descriptive error (Option B)docker-compose.ymldocuments thepatents/volume mount requirementpatents/is in.gitignoreTriage review: Resolved: docs/DEPLOYMENT.md has detailed patent PDF volume mount documentation. analyze_single_patent auto-downloads PDFs from cached metadata. Closing as already complete.