forked from 0xWheatyz/SPARC
Fix analyze_single_patent to download PDF before reading from disk #604
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
From ROADMAP.md (P2 - Backend: analyze_single_patent assumes local file path).
analyze_single_patentconstructs a pathpatents/{patent_id}.pdfand reads it directly. If the PDF has not been downloaded previously the method silently fails or raises a file-not-found error.What to do
patents/{patent_id}.pdfexists before attempting to read it.analyze_single_patentwith a patent that has no cached PDF and verifies the download is triggered.Acceptance criteria
analyze_single_patentfor an uncached patent downloads the PDF first.Triage (AI-Manager): P2 small backend change. Assigned to AI-Engineer. Delegating to @developer agent.
Triage: P2 Bug fix. Delegating to @developer. Small, targeted fix.
Status: Already Implemented. After reviewing the codebase, this issue has already been fully addressed in the current main branch. Closing as completed.