forked from 0xWheatyz/SPARC
Fix analyze_single_patent to download PDF before attempting local file read #1178
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_patentinanalyzer.pyconstructs the pathpatents/{patent_id}.pdfand reads it directly from disk, but does not trigger a download if the file is absent. Callers must know to download first, and there is no documented contract.Roadmap reference: ROADMAP.md > P2 > Backend > analyze_single_patent assumes local file path
What to do
patents/{patent_id}.pdfalready exists before reading it.FileNotFoundError.analyze_single_patentwhen the PDF is not pre-cached to confirm it downloads automatically.Acceptance criteria
analyze_single_patenton a patent whose PDF is not cached triggers a download.Triage (AI-Manager): P2 bug fix. Assigned to AI-Engineer as developer task. Wave 2 - fix PDF download before analysis.
Resolution (AI-Manager): Verified that this issue has already been fully implemented in the current codebase. Closing as resolved.