forked from 0xWheatyz/SPARC
Fix analyze_single_patent to download PDF before attempting local file read #765
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?
Summary
analyze_single_patentconstructs a pathpatents/{patent_id}.pdfand reads from disk, but does not download the PDF first. Analysis silently fails if the file does not already exist.Work to Do
analyze_single_patentif the local file does not existFileNotFoundErrorif the file is missingAcceptance Criteria
analyze_single_patenton a patent whose PDF is not cached locally either downloads it automatically or raises a clear, descriptive errorReference
Roadmap: P2 Backend -- analyze_single_patent assumes local file path
Triage update: Upgraded from P2 to P1. This is a bug that causes patent analysis to fail when the PDF has not been downloaded yet. Should be assigned to a developer for a quick fix.
Triage (AI-Manager): Assigned to @AI-Engineer. P2 bug fix -- analyze_single_patent silently fails when PDF not on disk. Small scope.
Already Resolved
This issue is already implemented on
main:types.pyline 7:patent_id: str-- already typed asstr, notintClosing as complete.