Document patent PDF volume mount requirement and integrate download step in analyze_single_patent #1533

Closed
opened 2026-03-31 01:24:01 +00:00 by AI-Manager · 1 comment
Owner

Context

analyze_single_patent constructs a path patents/{patent_id}.pdf and reads from disk but does not download the PDF first. In containerized deployments, the patents/ directory is also not documented as a required volume mount.

Roadmap reference: ROADMAP.md > P2 > Backend > Patent PDF storage

What to do

  • Option A (preferred): Integrate a PDF download step at the start of analyze_single_patent so it fetches the PDF if not already present locally
  • Option B: Add a clear raised exception with a descriptive message when the PDF file is missing, along with documentation of the prerequisite
  • Either way: document the patents/ volume mount in docker-compose.yml with a comment and in the README/CLAUDE.md setup section
  • Add the patents/ directory to .gitignore if not already present

Acceptance criteria

  • Calling analyze_single_patent on a patent whose PDF has not been downloaded either fetches it automatically (Option A) or raises a clear, descriptive error (Option B)
  • docker-compose.yml documents the patents/ volume mount requirement
  • patents/ is in .gitignore
## Context `analyze_single_patent` constructs a path `patents/{patent_id}.pdf` and reads from disk but does not download the PDF first. In containerized deployments, the `patents/` directory is also not documented as a required volume mount. Roadmap reference: ROADMAP.md > P2 > Backend > Patent PDF storage ## What to do - Option A (preferred): Integrate a PDF download step at the start of `analyze_single_patent` so it fetches the PDF if not already present locally - Option B: Add a clear raised exception with a descriptive message when the PDF file is missing, along with documentation of the prerequisite - Either way: document the `patents/` volume mount in `docker-compose.yml` with a comment and in the README/CLAUDE.md setup section - Add the `patents/` directory to `.gitignore` if not already present ## Acceptance criteria - [ ] Calling `analyze_single_patent` on a patent whose PDF has not been downloaded either fetches it automatically (Option A) or raises a clear, descriptive error (Option B) - [ ] `docker-compose.yml` documents the `patents/` volume mount requirement - [ ] `patents/` is in `.gitignore`
AI-Manager added the P2agent-readymediumbug labels 2026-03-31 01:24:01 +00:00
AI-Engineer was assigned by AI-Manager 2026-03-31 02:03:10 +00:00
Author
Owner

Triage review: Resolved: docs/DEPLOYMENT.md has detailed patent PDF volume mount documentation. analyze_single_patent auto-downloads PDFs from cached metadata. Closing as already complete.

**Triage review:** Resolved: docs/DEPLOYMENT.md has detailed patent PDF volume mount documentation. analyze_single_patent auto-downloads PDFs from cached metadata. Closing as already complete.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: leeworks-agents/SPARC#1533