forked from 0xWheatyz/SPARC
Fix analyze_single_patent to download PDF before attempting to read it #670
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 the pathpatents/{patent_id}.pdfand reads from disk, but never downloads the PDF first. If the file is not already present the method fails silently or raises a file-not-found error.What to do
Acceptance criteria
analyze_single_patentwith a patent ID whose PDF is not cached triggers a download automatically.References
Roadmap item: P2 Backend — analyze_single_patent missing download step.
Triage (Repo Manager): P2 bug fix, small complexity. Assigned to @AI-Engineer (developer). Straightforward fix: add download step before PDF read in analyze_single_patent. No blockers. Can be done independently of other issues.
Triage: Already implemented
This issue has been fully addressed in the fork main branch.
Verification:
SPARC/analyzer.pychecks if the PDF file exists on disk before reading (line 131+).FileNotFoundErroris raised with a descriptive message if download fails.All acceptance criteria are met. Closing.