forked from 0xWheatyz/SPARC
Fix analyze_single_patent to download PDF before reading from disk #500
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
Roadmap item: P2 - Backend: analyze_single_patent assumes local file path
analyze_single_patentconstructspatents/{patent_id}.pdfand reads from disk, but never downloads the file first. This silently fails for any patent not already present locally.Task
analyze_single_patent(check if file exists, download if not), OR raise a clear error with a helpful message if the file is missingAcceptance Criteria
analyze_single_patenton a patent not yet downloaded either downloads it automatically or raises a descriptiveFileNotFoundError/ValueErrorTriage: P2 Bug fix. Assigned to @AI-Engineer (developer). Small scope - fix analyze_single_patent to download PDF before reading. Delegated to @developer agent.
Resolved: analyze_single_patent now checks if the PDF exists on disk and auto-downloads it from the cached link before proceeding. Merged via PR #55.
Closing as resolved -- the implementation is merged into main.