fix(sources): resolve arXiv IDs via arXiv DOI (OpenAlex /works/arxiv: 404s) #5
Reference in New Issue
Block a user
No description provided.
Delete Branch "fix/openalex-arxiv-doi"
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?
Summary
_resolve_id()was buildingarxiv:<id>paths that 404 on the OpenAlex/works/endpointarxiv:-prefixed, modern and legacy) now resolve todoi:10.48550/arXiv.<id>, which OpenAlex accepts reliablymath/0603097, and explicitarxiv:prefix strippingReview-Gate
Opus APPROVE — 3 WARNs (all non-blocking: case-sensitivity edge case, no double-prefix guard test, minor docstring drift in
fetch_paper).Test plan
uv run pytest tests/sources/test_openalex.py— 19 tests greenuv run ruff check . && uv run mypy codex/— clean🤖 Generated with Claude Code
OpenAlex' /works/{id}-Pfad akzeptiert die arxiv:-Namespace-Form nicht (404). _resolve_id löst arXiv-IDs jetzt auf die arXiv-DOI 10.48550/arXiv.<id> auf — empirisch verifiziert für modern (1005.2698) und legacy (math/0603097) IDs. Behebt D-03 (Erstingest: alle Metadaten leer, weil fetch_paper 404 gab). - _resolve_id: arxiv:-Präfix strippen, arXiv-DOI bauen - Tests: arxiv (modern/legacy/prefixed) erwarten jetzt doi:10.48550/arXiv.* - 19 Tests grün, ruff + mypy sauber Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>