forked from 0xWheatyz/SPARC
Document patent PDF storage volume mount requirement and clarify analyze_single_patent prerequisite #15
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?
Roadmap Reference
P2 — Backend: patent PDF storage
Problem
analyze_single_patentconstructspatents/{patent_id}.pdfand reads from disk without downloading the PDF first. This is undocumented. Additionally, thepatents/volume mount indocker-compose.ymlis not prominently documented, so operators may miss it.What to do
analyzer.py, add a docstring toanalyze_single_patentthat documents the prerequisite: the PDF must already exist atpatents/{patent_id}.pdfbefore calling this method, and explains how to obtain it (e.g. call the download step first, or use the batch API which handles this automatically).analyze_single_patentso it is self-contained, OR add a clearFileNotFoundErrorwith an informative message if the PDF is missing.patents/directory: that it must be a persistent volume in containerised deployments, and show the Docker volume mount example.Acceptance Criteria
analyze_single_patentwith a missing PDF raisesFileNotFoundErrorwith a helpful message (or downloads the PDF automatically).patents/volume requirement.analyze_single_patentdescribes the prerequisite clearly.Triage: P2 documentation, small. Delegating to @tech-writer via @developer. Docstring and README update. Queued after P1 completion.
Implementation complete in PR #31 (feature/p2-docs-and-lockfile). Awaiting review.
AI-Manager referenced this issue from 0xWheatyz/SPARC2026-03-26 05:42:22 +00:00