Repository navigation
v0.4.0 - Keyless public API adapters and fusion hardening
Keyless public API adapters and fusion hardening.
New adapters
Three adapters for documented, keyless APIs, each with a pure fixture-tested parser:
- OpenAlex — bibliographic index. Reconstructs abstracts from the inverted index the API ships instead of the abstract text.
- Crossref — DOI-canonical metadata for the scholarly literature.
- arXiv — Atom feed, whitespace-folded titles.
Profiles
search gained a profile argument. general keeps the web engines, academic serves only public APIs, so a paper search no longer spends HTML engine quota and vice versa. An unknown profile is rejected before any provider is contacted.
Fusion
Replaced the round-robin interleave with weighted RRF over canonical URLs: agreement between independent indexes outranks a single index's top hit, duplicate URLs are merged keeping the richest snippet, and at most two results per source host can reach the payload. Provider quality enters the vote, so the measured-poor HTML SERP cannot dominate a fused ranking.
Quota
- 60-second successful-search cache with a per-key single-flight lock. Concurrent identical calls share one upstream request instead of both missing the cache.
Retry-Afterpropagated from response headers into the typed errors, the per-provider status and the shared cooldown. OpenAlex additionally reads its JSONretryAfterfield, so a politeRetry-After: 11no longer costs the provider a full three minutes.- Default first wave reduced to 2 providers, fallback capacity raised to 5.
Bugs found by smoke testing real APIs
- Crossref's
/worksrejects thepageparameter with HTTP 400 → pagination isoffset-based. - OpenAlex sends explicit JSON
nullfor sparse records; a strict field type aborted the entire response. - Crossref writes
DOIandURLin upper case and serde is case-sensitive — the parse silently produced zero results at HTTP 200.
Adds ARGOS_CONTACT_EMAIL for the OpenAlex/Crossref/PubMed polite pools. It is a contact address, not a key.