forked from 0xWheatyz/SPARC
Fix analyze_single_patent: download PDF before attempting local file read #1026
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 the pathpatents/{patent_id}.pdfand reads it from disk, but never downloads the PDF first. If the file is absent the analysis silently fails or raises an unhelpful error.What to do
patents/{patent_id}.pdfalready exists.Acceptance criteria
analyze_single_patentfor a patent whose PDF has not been downloaded succeeds (downloads automatically) OR raises a descriptive error explaining what the caller must do first.Roadmap ref: ROADMAP.md — P2 Backend / analyze_single_patent assumes local file path.
Fix analyze_single_patent PDF handlingto Fix analyze_single_patent: download PDF before attempting local file readTriage (AI-Manager): Assigned to @AI-Engineer. P2 bug fix -- fix analyze_single_patent to download PDF before attempting local file read.
Resolved. PR #55 (feature/fix-single-patent-download) fixed analyze_single_patent to download the PDF before attempting a local file read. Verified in current main.