Skip to content

Releases

v0.1.1 — rate-limits docs + OG banner resize

Choose a tag to compare

@quolu quolu released this 01 May 09:13

Documentation-only release surfacing JPO API rate limits where operators will see them.

Documentation

  • README / README.en: New top-level "Rate limits (operations)" section. Daily quota of 30–800/day per endpoint and the per-minute caps (10/min for /api/patent/*, 5/min for /opdapi/*) are now visible without spelunking into tool descriptions.
  • OPERATIONS.md: New "JPO API レート制約とクォータ" section with a tool → endpoint mapping table and operational thresholds, including the recommendation to back off jpo_fetch_full_record once any endpoint quota drops below ~200/day.
  • jpo_fetch_full_record tool description: Rewritten to make the quota cost explicit — one call consumes 1 unit from each of 4 separate daily quotas (case_number_reference, app_progress, registration_info, cite_doc_info), and the bottleneck is whichever is lowest. The previous wording ("~4 of the daily quota") was misleading and risked the LLM under-counting consumption.

Chore

  • Open Graph banner resized to 1280×640 PNG and re-optimized to fit GitHub's 1 MB Social Preview cap.

Notes

No code-behavior changes. All 63 tests still green. Existing v0.1.0 deployments do not need to redeploy unless updated docs are wanted in-image.

Full diff: v0.1.0...v0.1.1

v0.1.0 — initial public-ready release

Choose a tag to compare

@quolu quolu released this 01 May 08:24

First public-ready cut. Implements Phase 1A (official JPO tools), Phase 1B (isolated external keyword search), and Phase 1.5 (operational hardening — OAuth persistence, access log, ops docs).

Highlights

  • 12 official JPO tools (tools_official/, names start with jpo_*):
    number conversion, examination progress, registration, citations,
    divisional / priority apps, applicant lookup, patent documents
    (binary ZIP + signed URL), J-PlatPat URL, OPD family / doc list,
    composite full-record fetch.
  • 1 isolated keyword-search tool (tools_external/external_search_patents_by_keyword)
    via Google Patents XHR. Code-level boundary test forbids any import
    from the external module into the official module — no silent
    fallback.
  • OAuth 2.1 server with Dynamic Client Registration + PKCE +
    master-password consent, persisted to SQLite so issued tokens
    survive container restarts. Unauthenticated mode also supported for
    LAN-only deploys.
  • JSONL access log at logs/access.jsonl recording every JPO and
    external call with timestamp, endpoint, elapsed time, outcome, and —
    for JPO calls — the live remainAccessCount quota counter. CLI
    summary script in scripts/summarize_logs.py.
  • Docker Compose deployment with Caddy + Let's Encrypt for HTTPS
    exposure. Tested with iPhone Claude / claude.ai Custom Connectors.
  • 63 tests (provider, access log, raw-response binary detection,
    tool-boundary isolation, status-code parsing, normalization). CI on
    push/PR via GitHub Actions (pytest + ruff).

Verification

End-to-end smoke-tested on 2026-05-01 against a live deployment for
patent 特開2010-228687 (Hitachi Train Control Ground Equipment, Japanese
patent registration 5094774). 11 of 13 tools verified through the MCP
path; remaining 2 OPD tools were quota-blocked on the test day and
returned the structured rate_limited_daily error per the architecture
rule (no silent fallback). See [OPERATIONS.md] for the full status
table.

Architectural rules (do not regress)

  • tools_official/ and tools_external/ are completely separate code
    hierarchies; cross-imports are blocked by a unit test.
  • Every response carries an explicit source field ("jpo_official"
    or "google_patents_unofficial") so the LLM can never misattribute
    data.
  • Same-source retry only: HTTP 401 / statusCode 210 triggers a token
    refresh; statusCode 303 triggers exponential backoff. No
    cross-source fallback under any error.

Known limitations

  • LAN-deploy + public-OAuth deploy are documented; multi-user setups
    are out of scope for v0.1.x.
  • Phase 2 (refusal-reason PDF structured extraction, AI-assisted
    review, EPO OPS / WIPO PATENTSCOPE supplements) deferred.