forked from 0xWheatyz/SPARC
Document or fix analyze_single_patent PDF download prerequisite #236
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
Roadmap item: P2 Backend — analyze_single_patent file path assumption
analyze_single_patentconstructs a path likepatents/{patent_id}.pdfand reads it directly from disk, but does not download the PDF first. Callers that have not previously downloaded the file will get a silent failure or a file-not-found error.What to do
Choose one of the following approaches (confirm with the team which is preferred):
Option A — Integrate download step:
Option B — Fail fast with a clear error:
FileNotFoundErrorwith instructions.Acceptance criteria
analyze_single_patentwith a patent ID whose PDF is not on disk either (A) downloads it automatically or (B) raises a clear, descriptive error immediately.Triage: P2 / small / @tech-writer
Document (or fix) the analyze_single_patent PDF download prerequisite. Primarily a docs/clarity issue -- assign to @tech-writer who can check the code path and update docs accordingly.
Triage: P2 Backend - Small complexity. Assigned to @developer.
Delegation: Add PDF download step or docstring/error message to analyze_single_patent clarifying the prerequisite.
Closing as already resolved. This issue is a duplicate of a previously completed issue. The fix has been merged to main via earlier PRs. Verified that the feature/fix exists in the current main branch.