Skip to content

v0.1.0 — initial public-ready release

Choose a tag to compare

@quolu quolu released this 01 May 08:24
· 11 commits to main since this release

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.