Skip to content

Post-Sprint Code Review & Followups (2026-11-28)

Note of 2026-11-29: this review predates the consolidation into one distribution. The package names it uses (aireloom, aletheca, stavrophora, and the names of the then unpublished clients) are history. Migrating from the standalone packages lists the current names.

This report captures the full codebase review of the 48-hour sprint on main (snapshot at commit a21dbeb, 2026-11-28), covering bibliofabric 0.8.0, updates to aireloom / aletheca / stavrophora 0.5.0, the 11 Wave 1 libraries, the 2 Wave 2 libraries (archeion, prodromus), and scripts/unasync.py.

A second reviewer checked every claim against the code at the same commit, by reading the cited lines and by running the affected functions, models, and fixtures. The great majority holds. Claims that did not hold carry a Second review note in place, and section 7 lists those notes together with the findings that sections 1 to 6 did not contain.

Section 8 records the state of every item after the fixes of 2026-11-28.

Baseline Status

All standard workspace quality gates pass on main (a21dbeb):

  • uv run ruff check — passed.
  • uv run ruff format --check — 911 files formatted.
  • uv run ty check packages/*/src packages/*/tests scripts/unasync.py — 0 diagnostics.
  • uv run python scripts/unasync.py --check — all 17 packages fresh.
  • uv run mkdocs build --strict — passed.
  • uv run pytest — 2,288 passed, 500 live_api tests deselected.
  • Env-var isolation stress test (dummy credentials exported for AIRELOOM_*, ALETHECA_*, ORCHIS_*, SCHOLIAST_*, STAVROPHORA_*, ZENOTHECA_*): all 11 Wave 1 packages, both Wave 2 packages, and aletheca pass; aireloom and stavrophora fail with 124 failures and 28 errors (2,164 passed).
  • CI history (second review): the four main runs for 59264d7, bccc00e, acd5a65, and 9f3a6a5 (2026-11-28 04:08 to 04:23) failed in the lint job on stale: packages/diurnalia/src/diurnalia/_sync/journals.py and skipped the test, docs, publish, and release jobs. The two later main runs are green.
  • Env-var isolation, core suite (second review): exporting USER_AGENT=x FOLLOW_REDIRECTS=true MAX_RETRIES=1 fails 3 of 198 tests in packages/bibliofabric/tests, because FakeSettings() (tests/_async/conftest.py:114-115) has no settings prefix.
  • Env-var isolation, second run: with AIRELOOM_OPENAIRE_REFRESH_TOKEN and STAVROPHORA_RATE_LIMITS exported, aireloom fails 116 tests with 26 errors and stavrophora 9 with 1. The counts move with the set of variables. The cause is the same (section 2 and section 7, item 2).

Suggested Execution Order

Batch Focus Scope
0 — Before the next push Green CI on every push Run uv run pre-commit install in every clone and document the command in docs/contributing.md and AGENTS.md. .pre-commit-config.yaml already runs scripts/unasync.py --check; the four red runs needed that hook installed (section 7, item 1).
1 — Core & Infra Framework fixes, codegen hardening, test isolation bibliofabric (_search_params, ids.py, JsonApiUnwrapper, default_headers, attached_request, ClientCredentialsAuth), scripts/unasync.py, __all__ export parity test, env-var isolation (aireloom, stavrophora, Wave 1 test_settings.py)
2 — High-Impact Runtime & Model Bugs Silent data loss, broken pagination, protocol/route bugs Model aliases & schemas (orchis, europaea, quiddita, scholiast, hodoi, diurnalia), OAI/dump/Atom/route bugs (zenotheca, rorifer, archeion, quiddita, europaea, scholiast, dataphora, stavrophora, prodromus, opcitato, seriatim)
3 — Contract, Tests & Docs Polish Error semantics, atomic I/O, coverage & doc drift Uniform limit <= 0 guards, ValidationError HTTP context, APIError vs ConfigurationError, atomic downloads, prodromus docs parity, stale docs/ and AGENTS.md fixes
4 — Release Changelog dates & PyPI trusted publishing Update ## [0.1.0] in all 13 unpublished CHANGELOG.md files, register PyPI pending trusted publishers, optionally cut bibliofabric 0.8.1, then tag <name>-v0.1.0

Second review: batch 1 also takes the environment read in the aireloom, stavrophora, and core test fixtures and the quiddita _module() error check (section 7, items 2 and 3). Items 4, 5, and 6 of section 7 belong in batch 2.


1. Core Framework (bibliofabric) & Codegen (scripts/unasync.py)

bibliofabric Core

  • False ConfigurationError and unconditional search_path(None) in _search_params()
  • Location: packages/bibliofabric/src/bibliofabric/_async/resources.py:583-591 (sync twin _sync/resources.py:584-592).
  • Context: When dialect.query_param is None, _search_params() checks self.search_path(query) == self.search_path(None). Subclasses that map None to a wildcard (e.g., diurnalia's DiurnaliaResourceClient.search_path returning "*" for empty strings) falsely raise ConfigurationError on query="". Conversely, subclasses whose search_path(None) raises ConfigurationError fail even when a valid query is passed.
  • Recommended fix: Check type(self).search_path is ResourceClient.search_path instead of calling search_path(None).

  • Identifier normalizer edge cases in ids.py

  • Location: packages/bibliofabric/src/bibliofabric/ids.py:21-27, 61-69, 97-105, 166, 175, 194, 213, 225 (see Identifiers docs).
  • Context:
    1. normalize_isbn() (:166) and normalize_isni() (:175) do not call .rstrip("/") after stripping URL prefixes, so trailing slashes block ISBN-13 conversion and ISNI 4×4 grouping.
    2. normalize_wikidata_qid() (:61-68, 213) strips / before #fragment ("https://www.wikidata.org/wiki/Q42/#P3153" → "Q42/"), and _WIKIDATA_PREFIXES omits non-www. URLs and https://www.wikidata.org/wiki/Property:.
    3. normalize_viaf() (:225) and _is_valid_isbn_10() (:97-105) check .isdigit() without .isascii(), so Unicode superscripts like "²" raise unhandled ValueError instead of passing through cleanly.
    4. _GND_PREFIXES (:69) contains an undocumented "gdz:" prefix; _ROR_PREFIXES (:21-27) added "https://www.ror.org/" and "ror.org/" (e6feb2f) but omitted "http://www.ror.org/" and "www.ror.org/".
    5. normalize_arxiv("1706.03762V1") (:194) keeps V1 uppercase, because only ids containing / are lowercased. Second review: the docstring (:190) documents this ("Version suffixes are kept as given"), so treat it as a design question, not a defect.
  • Recommended fix: Strip #fragment/?query before .rstrip("/"); add .rstrip("/") to normalize_isbn/normalize_isni; expand Wikidata/ROR prefixes (and verify/remove "gdz:"); guard digit checks with .isascii() and .isdigit(). Decide separately whether normalize_arxiv() should lowercase the version suffix.
  • Second review, ran it: normalize_isbn("https://www.worldcat.org/isbn/0306406158/") returns 0306406158/, normalize_isni("https://isni.org/isni/0000000121097254/") returns 0000000121097254/, normalize_wikidata_qid("https://www.wikidata.org/wiki/Q42/#P3153") returns "Q42/", normalize_wikidata_qid("https://wikidata.org/wiki/Q42") returns "HTTPS://WIKIDATA.ORG/WIKI/Q42", and normalize_viaf("²") raises ValueError. JsonApiUnwrapper().next_cursor({"links": {"next": {"href": "https://x.org/dois?page[cursor]=abc"}}}) returns None.

  • JsonApiUnwrapper.next_cursor() ignores JSON:API link objects

  • Location: packages/bibliofabric/src/bibliofabric/unwrap.py:77-84.
  • Context: JSON:API 1.0/1.1 allows links.next to be either a URL string or {"href": "<url>", ...}, but if not isinstance(next_url, str): return None silently truncates pagination after page 1 for link objects.
  • Recommended fix: When isinstance(next_url, dict), extract next_url.get("href") before the string check.

  • default_headers["User-Agent"] ignored on caller-owned http_client

  • Location: packages/bibliofabric/src/bibliofabric/_async/client.py:373-401 (sync twin _sync/client.py:372-400).
  • Context: When a caller passes an http_client carrying python-httpx/..., request_headers injects "User-Agent": effective_user_agent() before default_headers are merged, putting "user-agent" in overrides and silently dropping default_headers["User-Agent"].
  • Recommended fix: Apply default_headers before the fallback User-Agent injection (or exclude the injected fallback from overrides).
  • Second review: Confirmed by running with a caller-owned client. The case is latent today, because no client in the workspace sets User-Agent in default_headers.

  • BaseApiClient.get_json() drops forwarding kwargs & ClientCredentialsAuth 401 race

  • Location: packages/bibliofabric/src/bibliofabric/_async/client.py:550-559; packages/bibliofabric/src/bibliofabric/auth.py.
  • Context: get_json() does not forward follow_redirects, timeout, or retry. In ClientCredentialsAuth, two concurrent 401 responses on an expired token can both call invalidate_token(), allowing the second to clear the token freshly minted by the first.
  • Recommended fix: Forward follow_redirects, timeout, and retry in get_json(); pass the failed token to invalidate_token(failed_token) so it only clears if unchanged. Also expose a public attached_request(response) helper from bibliofabric (replacing _response_request in _async/resources.py:36-40) so clients avoid the getattr(response, "request", None) RuntimeError trap.

Codegen (scripts/unasync.py)

  • Replacement precedence clobbers [tool.unasync] replacements (scripts/unasync.py:230-235): class_renames(files) is merged after extra_replacements(package), overriding package-specific pyproject.toml renames. Fix: Merge extra_replacements(package) last.
  • class_renames() scans tests/_async/ package-wide (scripts/unasync.py:128-144): Any public class in tests/_async/ (e.g., class Client:) enters the package-wide rename map and can rename symbols inside src/. Fix: Scope class_renames() to src/ (or separate test vs source rename maps), and skip private/non-I/O dataclasses if excluded.
  • Naive "_async" substring replacement in paths (scripts/unasync.py:163, 237): Both Path(str(rel).replace("_async", GENERATED_SUFFIX)) and unasync.Rule(fromdir="_async", todir="_sync") replace every occurrence of _async in filenames (turning test_async_helpers.py into test_sync_helpers.py). Fix: Replace only the _async path component (/_async/ → /_sync/).
  • Second review: Latent. No file name under any tests/_async/ directory contains _async today.
  • CWD dependency & symlink-unsafe relative_to(Path.cwd()) (scripts/unasync.py:70, 85, 155, 168): Fails when invoked outside repo root or via a symlinked CWD. Fix: Derive REPO_ROOT = Path(__file__).resolve().parent.parent and resolve paths consistently.
  • Orphaned _sync/ files ignored in write mode (scripts/unasync.py:226-254): Deleting or renaming a file in _async/ leaves stale files in _sync/ during normal runs (only --check reports them). Fix: Remove orphaned files in _sync/ during generation.
  • Missing STANDARD_REPLACEMENTS (scripts/unasync.py:49-62): Seven async names have no mapping (aiter_raw, AsyncBaseTransport, AsyncHTTPTransport, AsyncByteStream, AsyncExitStack, asend, athrow). Second review: an unmapped name passes through unchanged into _sync/, where ruff and ty report it, so the output never contains a non-existent Sync* symbol. None of the seven occurs under packages/ today, which makes the item hypothetical. Fix: Add the seven to STANDARD_REPLACEMENTS or close the item.
  • Missing import asyncio guard & O(N) ruff subprocesses (scripts/unasync.py:132, 169-199, 267-268): Reject import asyncio / from asyncio import ... during the AST scan (prevents silent unawaited coroutine bugs in _sync/); batch the 2 * N (34) ruff invocations across all generated files into 2 calls; fix --check summary printing checked all sync files for 17 packages instead of file count.

2. Cross-Cutting Issues Across Packages

Broken or Incomplete __all__ Exports

Several packages omit public classes/constants from __init__.py __all__ or duplicate entries:

Package Location Missing / Broken Exports
dataphora packages/dataphora/src/dataphora/__init__.py:106-191 Missing DataphoraClient and EventFilters; Issn missing from models/registry.py:197-208
europaea packages/europaea/src/europaea/__init__.py:113-216 Missing ProfilesSyncClient, StatusUpdateResponse (and models/status.py classes), ProfileRequest, DataLinksTag, DataLinksTagsList, Subset, SubsetList, MeshQualifierList; duplicates "EuropaeaSettings"
scholiast packages/scholiast/src/scholiast/__init__.py:85-153 Missing RecommendationsClient, RecommendationsSyncClient, SEMANTICSCHOLAR_AUTHOR_DIALECT
quiddita packages/quiddita/src/quiddita/__init__.py:45, 90-173 Missing get_settings
zenotheca packages/zenotheca/src/zenotheca/__init__.py:46-131 Missing ZenothecaVocabulary and all 14 OAI models (OaiRecord, OaiHeader, OaiRecords, etc.); OaiSet missing from models/oai.py:172-186
opcitato packages/opcitato/src/opcitato/__init__.py Missing SparqlHead, SparqlResults, SparqlBinding (despite docs/opcitato/reference.md)
orchis packages/orchis/src/orchis/__init__.py Missing NormalizationError (also missing from models/common.py:__all__)
diurnalia packages/diurnalia/src/diurnalia/dialect.py:49-56 Missing DOAJ_JOURNAL_CSV_URL in dialect.__all__
seriatim packages/seriatim/src/seriatim/__init__.py Missing SeriatimUnwrapper, ISSN_L_TABLE_URL
archeion packages/archeion/src/archeion/__init__.py Missing BATCH_SIZE
prodromus packages/prodromus/src/prodromus/__init__.py Submodule __all__ symbols STATISTICS_INTERVALS, date_range, server_segment, check_status, message not re-exported at root

Recommended fix: Fix each __init__.py __all__ and add a workspace-level test verifying every public import in packages/*/src/*/__init__.py is listed in __all__ without duplicates, and every *Client has a matching *SyncClient.

Missing HTTP Context on ValidationError & response.request RuntimeError Trap

  • Location: prodromus (_async/routes.py:33-37, 44, 61, 80), quiddita (claims.py:69, entity_data.py:73, lexemes.py:31, rest_items.py:48,63,99,115, search.py:182, sitelinks.py:61, sparql.py:50,65, statements.py:58,76, utilities.py:87,126,162), europaea (articles.py:166,183,224,232, search.py:237, annotations.py:70,181, grants.py:80, profiles.py:39,44), seriatim (resources.py:89-90,118-119, search.py:81), hodoi (_async/client.py:214, xmlparse.py:30-33), zenotheca (vocabularies.py:87-93,133-158), scholiast (papers.py:341); plus getattr(response, "request", None) in rorifer (dumps.py:65,89, organizations.py:257), zenotheca (records.py:62,191,217,233,259, communities.py:70,133), dataphora (dois.py:57, registry.py:56, graphql.py:64), opcitato (resources.py:103-105), and orchis (resources.py:363).
  • Context: validate_model(...) is often called without request= and response=, leaving ValidationError.request/.response/.status_code as None. Separately, getattr(response, "request", None) does not prevent httpx.Response.request from raising RuntimeError (not AttributeError) on detached responses.
  • Recommended fix: Forward request=attached_request(response), response=response to every validate_model() call and replace getattr(response, "request", None) / direct response.request with bibliofabric.attached_request(response).
  • Second review, ran it: getattr(httpx.Response(200, json={}), "request", None) raises RuntimeError: The request instance has not been set on this response. Every row of the __all__ table above holds.

Custom iterate() Methods Broken for limit <= 0

  • Location: zenotheca (_async/vocabularies.py:95-124), scholiast (_async/papers.py:190-212 bulk_iterate()), europaea (_async/search.py:224 iterate_post(), _async/grants.py:43-80 GrantsClient.iterate()), seriatim (_async/search.py:203-229, _async/ltwa.py:113-131).
  • Context: Checking seen >= limit after yielding the first item causes limit=0 and limit=-1 to issue an HTTP request and yield one item.
  • Recommended fix: Validate if limit is not None and limit < 0: raise ConfigurationError(...) eagerly before iterating, and return immediately if limit == 0 before making any HTTP call.

ConfigurationError Misused for Upstream Server / Payload Errors

  • Location: stavrophora (_async/datacitations.py:128-132), archeion (atom.py:33-36), prodromus (unwrapper.py:26-35), quiddita (unwrapper.py:21-29), opcitato (_async/resources.py:129-133, 152-156), hodoi (_async/client.py:101,110,182, xmlparse.py:22-29, unwrapper.py:45), scholiast (_async/resources.py:53-54, datasets.py:32-35), orchis (_async/resources.py:341-368, _fetch_raw), seriatim (parser.py:52-59).
  • Context: Malformed JSON/XML, unexpected response shapes, or HTTP 200 upstream transient error envelopes (maxlag, ratelimited, readonly) raise ConfigurationError (without response/body) instead of APIError, RateLimitError, NotFoundError, or ValidationError.
  • Recommended fix: Reserve ConfigurationError for invalid caller input/settings and raise APIError / RateLimitError / NotFoundError / ValidationError with request/response/body attached for upstream responses.

Non-Atomic Large Downloads & Missing Accept / follow_redirects

  • Location: diurnalia (packages/diurnalia/src/diurnalia/_async/journals.py:52-74), seriatim (packages/seriatim/src/seriatim/_async/resources.py:121-141), zenotheca (packages/zenotheca/src/zenotheca/_async/records.py:308-312).
  • Context: diurnalia.journals.download_csv() (~26 MB S3 CSV) and seriatim.issn_l.download_table() (~27 MB zip) write directly to dest ("wb"), leaving corrupt truncated files if interrupted mid-stream, and inherit JSON/JSON-LD Accept headers. seriatim also hardcodes ISSN_L_TABLE_URL (ignoring base_url) and omits follow_redirects=True; zenotheca.records.download_file() also omits follow_redirects=True.
  • Recommended fix: Stream into a sibling temp file and atomically replace via os.replace(), set explicit Accept (text/csv, */* or application/zip, */*), pass follow_redirects=True, and use relative paths when under the client's base_url.

Env-Var Isolation in Tests & Plain-Text Secrets

  • Location: packages/aireloom/tests/, packages/stavrophora/tests/ (including _async/test_datacitations.py), packages/hodoi/tests/conftest.py:39-48, packages/quiddita/tests/conftest.py:27-34 & test_settings.py:12-58, packages/zenotheca/tests/_async/test_live_api.py:34, packages/orchis/tests/_async/test_live_api.py:17, Wave 1 test_settings.py files (rorifer, zenotheca, dataphora, opcitato, hodoi, scholiast, orchis, europaea, diurnalia, seriatim), and packages/orchis/src/orchis/config.py:47-49.
  • Context:
  • Exporting credentials causes 124 failures / 28 errors in aireloom and stavrophora.
  • Almost all Wave 1 test_settings.py suites clear only 3–4 env vars (missing *_MAX_RETRIES, *_USER_AGENT, *_MAILTO, *_MAX_CONCURRENCY, ZENOTHECA_API_TOKEN); quiddita/tests/test_settings.py:18 asserts max_concurrency == 1 against default 1 (vacuous).
  • hodoi/tests/conftest.py omits follow_redirects=False; quiddita/tests/conftest.py omits rate_limits/user_agent/mailto; zenotheca/tests/_async/test_live_api.py:34 omits api_token=None; orchis/tests/_async/test_live_api.py:17 instantiates OrchisSettings() at import time.
  • OrchisSettings.access_token and client_secret (orchis/config.py:47-49) are plain str | None rather than SecretStr | None, leaking secrets in repr()/model_dump().
  • Recommended fix: Make every non-live test pass explicit field defaults to *Settings(_env_file=None, ...) (and clear all BaseApiSettings env vars via monkeypatch in test_settings.py); defer OrchisSettings() inside live fixtures; change OrchisSettings credentials to SecretStr | None.
  • Second review: the cause is confirmed and extends to the core suite. Section 7, item 2 has the locations and the fix.

Unusable Inherited ResourceClient Methods

  • Location: diurnalia (_async/base.py, journals.py, articles.py), orchis (_async/resources.py:75-111), quiddita (_async/entities.py, _async/search.py), seriatim (_async/resources.py:24-120), europaea (_async/articles.py:49-61).
  • Context: Resource subclasses inherit batch_get(), exists(), search(), iterate(), collect(), first(), or count() when the upstream endpoint does not support them, causing either AttributeError: ... has no attribute 'path'/'dialect' or broken HTTP calls (diurnalia batch_get hits /search/*?id=...).
  • Recommended fix: Set batch_size = 0 where batching is unsupported and override unsupported ResourceClient entrypoints to raise ConfigurationError (or declare dialect on europaea.ArticlesClient).

3. Model & Wire-Schema Bugs

Package Location Issue & Upstream / Fixture Evidence Recommended Fix
orchis packages/orchis/src/orchis/models/person.py:31 Name.credit_name lacks alias="credit-name" (confirmed in tests/fixtures/person.json:18); breaks docs/orchis/records.md (lines 40–42). Add Field(default=None, alias="credit-name").
orchis packages/orchis/src/orchis/models/activities.py:290-316, 330-335 PeerReviewsSection omits ORCID's 3-level group[].peer-review-group[].peer-review-summary[] nesting (put_codes() returns []); ResearchResourcesSection has no group / put_codes() (contradicts docs/orchis/activities.md, line 23). Model PeerReviewGrouping + peer_review_group and add group / put_codes() to ResearchResourcesSection.
orchis packages/orchis/src/orchis/models/common.py:56-62; person.py:160-169 FuzzyDate.iso() returns "2020-15" if month is None and day is set; person.ExternalIdentifier lacks normalized / normalized_error fields present on common.ExternalId. Stop joining parts once a higher-precision component is missing; align ExternalIdentifier fields.
europaea packages/europaea/src/europaea/models/article.py:160, 196; search.py:327 LinkTarget.publisher lacks alias="Publisher" (tests/fixtures/data_links.json:47 lands in model_extra); SearchResult.author_id_list uses AuthorList instead of {"authorId": [...]}; DataLinkList lacks extra="allow". Add alias="Publisher", model AuthorIdList (author_id aliased to "authorId"), and set extra="allow" on DataLinkList.
europaea packages/europaea/src/europaea/_async/unwrapper.py:69 excluded omits "databaseLinkList", leaking raw link payloads into Page.meta. Add "databaseLinkList" to excluded (and move pure unwrapper out of _async/).
quiddita packages/quiddita/src/quiddita/models/sparql.py:21, 41-52 SparqlBindingValue.xml_lang lacks alias="xml:lang"; SparqlResult requires results and lacks boolean: bool \| None so SPARQL ASK fails validation. Add AliasChoices("xml_lang", "xml:lang") and make results optional alongside boolean: bool \| None = None.
quiddita packages/quiddita/src/quiddita/models/entity.py:64, 75; rest.py:112, 127-129 Reference.snaks_order and Claim.qualifiers_order lack "snaks-order" / "qualifiers-order" aliases (tests/fixtures/entity_q42.json:1086); RestProperty.datatype lacks "data_type"; RestSearchResult.display_label rejects null. Add AliasChoices for dashed/underscored wire names and type display_label: str \| None = None.
scholiast packages/scholiast/src/scholiast/models/snippet.py:48; paper.py:134-140 Snippet.snippetOffset is SafeList[int], but S2 /snippet/search returns {"start": int, "end": int}; CitationContext declares plural contexts instead of S2's singular context. Model SnippetOffset(start: int, end: int) (accepting both dict or legacy list if needed) and add singular context: str \| None on CitationContext.
hodoi packages/hodoi/src/hodoi/models/handle.py:25-26; metadata.py:31-42 HandleValueData.value rejects HS_SITE (dict) and HS_VLIST (list[dict]) despite extra="allow"; SchemaOrgThing.@context/@type reject dict/list JSON-LD forms; DataciteRecord.publisher/titles reject non-str values. Widen HandleValueData.value to include dict[str, Any] \| list[Any], widen @context/@type, and use Any values in DataciteRecord dicts.
diurnalia packages/diurnalia/src/diurnalia/models/article.py:111-114 Article.issns reads only bibjson.journal.issns, returning [] on articles.get_by_id() (tests/fixtures/article_get_by_id.json places ISSNs only in bibjson.identifier). Fall back to / merge bibjson.identifier entries with type in {"pissn", "eissn", "issn"}.
dataphora packages/dataphora/src/dataphora/models/common.py:36, 52-70; filters.py:71, 91, 129 _id_to_str() converts None → "None"; _flatten_envelope() (flat.update(attributes)) can clobber top-level id/type/links; links rejects link objects/null; DoiFilters.resource_type, sample_group, and ProviderFilters.focus_area lack hyphenated aliases. Stringify int (excluding bool) only; preserve envelope keys & widen links; verify and alias the 3 filter keys against DataCite API docs.
seriatim packages/seriatim/src/seriatim/models/record.py:29, 53, 170 TitleValue/IdentifiedBy.main_title reject untagged str titles; _node_value() uses flat.type == node_type even though flat.type can be list[str]. Accept str \| LangString \| None and check node_type in flat.type when flat.type is a list.
zenotheca packages/zenotheca/src/zenotheca/unwrapper.py:23-25; models/*.py ZenothecaUnwrapper.item() returns {} for non-dict JSON, validating as an all-None model; several submodels type links: dict[str, str] too narrowly. Raise APIError/ValidationError on non-dict body; widen links to dict[str, Any].
prodromus packages/prodromus/src/prodromus/models/preprint.py (models.py:17-18, 64-66, 109-135) Stats endpoints return "year": "" in tests/fixtures/usage.json vs int in sum.json (empty/"NA" numeric strings crash int fields); published_doi only strips exact "NA" (not "na"/"N/A"). Normalize blank/"NA" strings to None before validation and make published_doi check case-insensitive.
stavrophora packages/stavrophora/src/stavrophora/models/work.py:156; __init__.py Work.retractions checks entry.type == "retraction" case-sensitively (is_retracted also ignores "reinstatement"); UpdateTo is not exported from stavrophora.__init__. Compare (entry.type or "").lower() == "retraction" (note reinstatement caveat) and export UpdateTo.

Second review notes on the table:

  • scholiast row: the two upstream shapes are not verified, and the repo fixtures contradict them. tests/fixtures/snippets.json:8 has "snippetOffset": [0, 61], and tests/fixtures/citations.json uses plural contexts, both as the models expect. The live snippet route answered 429 on 2026-11-28. Check the live bodies before changing the models, and accept both shapes if the object form is real.
  • hodoi row: DataciteRecord.publisher is str | dict[str, str] (metadata.py:40), so object publishers pass. Only non-string values inside the dict and in titles fail.
  • dataphora row: links: dict[str, str] | None accepts null. It rejects nested link objects only.
  • zenotheca row: item() is at unwrapper.py:24-27.
  • prodromus row: the file is models.py, and year: int | str | None (models.py:113, 126) accepts "" and "NA". The crash risk is in the numeric count fields, which coerce strings to int. Do not tighten year to int, because the fixtures carry "2019" as a string.

4. Protocol, Paging, Routing, & Runtime Bugs (By Package)

stavrophora (0.5.0)

  • Missing beta rate-limit header (packages/stavrophora/src/stavrophora/_async/client.py:55-60): _RATE_LIMIT_HEADERS omits "x-rate-limit" returned by /beta/datacitations (documented in docs/stavrophora/data-citations.md, line 46). Fix: Include "x-rate-limit".
  • DataCitationsResource paging, errors & parity (packages/stavrophora/src/stavrophora/_async/datacitations.py:42-156): iterate() lacks a repeated page_number loop guard, defers rows validation until first iteration, casts int(total)/int(page_number) unsafely (bool/non-digits), strips custom base_url path prefixes via copy_with(path=...), and lacks on_error/failures/limit/on_page/collect/first (plus uses rows= vs page_size= and returns next_cursor as str while search() accepts page: int). Fix: Guard non-advancing next-page, validate rows eagerly, preserve base_url prefix, and align helper methods/parameters.

rorifer

  • Shrinking size breaks DumpsClient.list() past page 1 (packages/rorifer/src/rorifer/_async/dumps.py:45-57): Sending "size": min(ZENODO_SEARCH_PAGE_SIZE, limit - len(dumps)) changes page size on the final page (for limit=27, page 2 sends page=2&size=2 and fetches offset 2 instead of 25). Fix: Keep size constant (min(ZENODO_SEARCH_PAGE_SIZE, limit)) across pages.
  • Truncated dumps & v1 zip members (packages/rorifer/src/rorifer/dump.py:39-41, 71-106): iter_dump_records() never verifies closing ] (silently succeeds on truncated files or [), accepts stray [ between elements, and picks the first .json in a zip (which in ROR v1.47–v1.7x is schema v1 instead of *_schema_v2.json). Fix: Require closing ] before EOF, validate comma separators, and prefer *_schema_v2.json.
  • Second review: the truncation part holds. A file that ends after a complete record passes silently, because the test at tests/test_dump_reader.py:79-84 covers only a cut inside a record, and a file holding [ alone yields nothing without an error. The claim that v1.47 to v1.7x zips carry a v1 JSON member beside the v2 one is recorded nowhere in the repo. Verify it on a live dump before adding a *_schema_v2.json preference.
  • Hyphenated ISNI dropped in find_by_external_id() (packages/rorifer/src/rorifer/_async/organizations.py:290-294, dump.py:108-109): compact_external_id() strips whitespace but not hyphens, discarding valid matches for hyphenated ISNIs. Fix: Strip hyphens (or normalize ISNIs) in compact_external_id().
  • Non-list errors in RoriferUnwrapper._object() (packages/rorifer/src/rorifer/unwrapper.py:73-76): Splits a string into characters ("a; b; c"). Fix: Handle str vs list explicitly.

zenotheca

  • OAI-PMH 2.0 resumptionToken exclusivity & _fetch() error swallowing (packages/zenotheca/src/zenotheca/_async/oai.py:142-144, 172-174, 227-259, 296-304, 384-385):
  • list_identifiers/list_records send resumptionToken together with metadataPrefix/from/until/set (causes badArgument on page 2+ per OAI-PMH 2.0). Fix: When resumption_token is given, send only verb and resumptionToken.
  • _fetch() catches all APIErrors (429 RateLimitError, 404, 5xx) and passes non-XML bodies to ElementTree.fromstring(). Fix: Intercept only HTTP 422 (Zenodo's OAI error status).
  • _record() (:384-385) misparses unnamespaced XML tags as namespaces, and OaiClient (:300) hardcodes ZENODO_OAI_BASE_URL instead of deriving from self._client.base_url. Fix: Check tag.startswith("{") before extracting namespace; derive OAI URL from base_url.
  • Missing all_versions on collect()/first() (packages/zenotheca/src/zenotheca/_async/records.py:66-157): Contradicts docs/zenotheca/usage/records.md (line 56). Fix: Override collect() and first() to accept all_versions.
  • ID & slug edge cases (packages/zenotheca/src/zenotheca/ids.py:27-42, 68; _async/communities.py:65, 124): Trailing slashes on Zenodo URLs raise IndexError; normalize_record_id() rejects https://doi.org/10.5281/zenodo.<id> while accepting "10.5281/zenodo.bogus.123"; community slugs in records()/subcommunities() are unquoted (quote(..., safe="")). Fix: Guard empty URL segments, handle doi.org Zenodo DOIs strictly, and URL-encode community slugs.
  • Skip consistency (_async/communities.py:79-83) & dialect enforcement (_async/vocabularies.py:133-158): communities.records(..., on_error="skip") skips logging and stores bibliofabric.ValidationError instead of pydantic.ValidationError like ResourceClient; VocabulariesClient.search() skips ZENODO_MAX_PAGE_SIZE / max_offset guards. Fix: Align both with ResourceClient and ZENODO_DIALECT.
  • Second review: the guard gap is in _query_params (_async/vocabularies.py:44-70), not at :133-158.

dataphora

  • PrefixesClient.totals() crashes on 204 No Content (packages/dataphora/src/dataphora/_async/registry.py:44-70, 201-210): Calls parse_json() unconditionally on 204 despite packages/dataphora/AGENTS.md:32. Fix: Return empty/zero DataphoraTotals on 204 or reject empty client_id before sending.
  • GraphqlClient._summarize_errors() crashes on string errors (packages/dataphora/src/dataphora/_async/graphql.py:94-97): Calls error.get(...) without checking isinstance(error, dict). Fix: Guard with isinstance(error, dict).
  • *.dois(id, **kwargs) collision & blank id (packages/dataphora/src/dataphora/_async/registry.py:122-213): Passing filters= raises TypeError (duplicate filters argument), and empty id sends a blank filter. Fix: Reject empty id and accept/merge filters explicitly.
  • DoisClient.activities() silent 10k truncation (packages/dataphora/src/dataphora/_async/dois.py:41-63): Stops silently at 10 pages, accepts bool as int, and returns [] on non-dict JSON. Fix: Exclude bool, raise on invalid upstream envelope, and document or raise when capped.

opcitato

  • sort validation & SPARQL method (packages/opcitato/src/opcitato/_async/resources.py:89-98, 182-193): removesuffix(")") accepts unclosed "asc(creation", and _send_sparql() silently treats "post" or "PUT" as "GET". Fix: Require matching ( and ); validate method in {"GET", "POST"} (uppercased or strict).
  • Case-sensitive CSV check & __ inside DOIs (_async/resources.py:125; ids.py:119): startswith("text/csv") fails on "Text/CSV", and normalize_meta_ids("doi:10.1234/foo__bar") splits a single DOI containing __. Fix: Lowercase content-type; treat str inputs carefully or document/require sequences when IDs contain __.

hodoi

  • ra_chunks() exceeds 4,000 chars (packages/hodoi/src/hodoi/dialect.py:95-116, _async/client.py:93): Doesn't count the 4-char /ra/ prefix, reaching 4,003 chars. Fix: Subtract len("/ra/") from the budget.
  • strip_doi_form() whitespace (packages/hodoi/src/hodoi/dialect.py:64-66): "doi: 10.1038/..." retains a leading space and fails normalize_doi(). Fix: .strip() after removing prefix.
  • content(), handle(), resolve() edge cases (packages/hodoi/src/hodoi/_async/client.py:145-198, 236-297):
  • content() ignores response Content-Type (so DOIs without metadata servers redirect to publisher HTML and return HTML as BibTeX text) and strips ; q=... weights before checking JSON. Fix: Inspect actual response Content-Type before parsing/returning.
  • handle() ignores non-1/200 responseCode inside HTTP 200 JSON, and isinstance(values, int | str) accepts bool. Fix: Check responseCode and exclude bool.
  • resolve() lacks a follow_redirects parameter (fails if HODOI_FOLLOW_REDIRECTS=true). Fix: Force follow_redirects=False (or expose explicit parameter defaulting to False).

scholiast

  • PapersClient.search_match() raw Pydantic error (packages/scholiast/src/scholiast/_async/papers.py:341, models/paper.py:189-199): Calls Paper.model_validate() instead of validate_model(..., request=..., response=...). Fix: Use validate_model with HTTP context.
  • AuthorsClient.search() missing fields= (packages/scholiast/src/scholiast/_async/authors.py:19-37): Documented in docs/scholiast/authors.md (lines 33–35) but raises TypeError. Fix: Add fields= parameter matching PapersClient.search().
  • Empty SCHOLIAST_API_KEY="" sends empty x-api-key header (packages/scholiast/src/scholiast/_async/client.py:47-62): Sends x-api-key: "" via default_headers (HTTP 403 upstream) and evaluates get_settings() twice. Fix: Use HeaderAuth("x-api-key", ...) only when api_key.get_secret_value().strip() is non-empty.
  • Offset cap & batch blank IDs (packages/scholiast/src/scholiast/dialect.py:29, 48, 55-60; papers.py:104; authors.py:77; recommendations.py:89-92): SEARCH_MAX_OFFSET = 9900 allows offset + limit >= 10000 (HTTP 400); papers.batch()/authors.batch() don't strip/reject blank IDs; RecommendationsClient._parse() returns [] on invalid bodies; bulk_iterate() lacks a repeated-token loop guard. Fix: Enforce offset + limit < 10000, reject blank batch IDs, raise on invalid recommendation envelopes, and guard repeated tokens.
  • Second review: change the check, not only the constant. The base class compares offset with max_offset using the paging size, not the caller's limit, so SEARCH_MAX_OFFSET = 9899 alone is wrong for other page sizes.

orchis

  • ClientCredentialsAuth wiring (packages/orchis/src/orchis/_async/client.py:30-48, _sync/client.py:31-49): Omits timeout=settings.timeout, and accepts whitespace-only access_token/client_id/client_secret. Fix: Forward timeout=settings.timeout and .strip() credential strings before truthiness checks.
  • Blank ORCIDs & unguarded search routes (packages/orchis/src/orchis/_async/resources.py:108-110, 455-509): _base("") sends /biography instead of raising ConfigurationError; ExpandedSearchClient/SolrSearchClient only check query is None in search(), not iterate()/count(), and csv() doesn't cap rows <= 100 (EXPANDED_SEARCH_MAX_ROWS) or reject " ". Fix: Reject blank ORCIDs in _base(), enforce query non-blank across all search entrypoints, and cap csv(rows=...).
  • works_bulk() issues (packages/orchis/src/orchis/_async/resources.py:341-368): Silently skips non-dict "work" values and treats bool as int put-codes. Fix: Raise ValidationError on non-dict "work" entries and reject bool.

europaea

  • ArticlesClient missing dialect & unencoded paths (packages/europaea/src/europaea/_async/articles.py:49-116, 165-299): Inherited ResourceClient methods raise AttributeError; full_text_xml, book_xml, supplementary_files, item_path, data_links, labs_links, evaluations, and status_updates don't reject blank IDs or URL-encode path segments. Fix: Declare dialect (or override unsupported methods) and quote(..., safe="") after rejecting blank IDs.
  • JATS XML false-positive NotFoundError (packages/europaea/src/europaea/_async/articles.py:251-258): if "<message>" in text: + "not" in document.message triggers on valid JATS articles mentioning <message>...note...</message>. Fix: Check specifically for the <fullTextXMLBean> error wrapper root.
  • PreprintsClient leaks non-preprints (packages/europaea/src/europaea/_async/preprints.py:16-100): count(), search_post(), and iterate_post() bypass SRC:PPR scoping, and _ppr_query("SRC:PPR AND a OR b") skips parenthesization. Fix: Apply _ppr_query() across all routes and parenthesize unconditionally.
  • SearchClient ResultType, sort, & iterate_post (packages/europaea/src/europaea/_async/search.py:14, 147-232, 272-276): ResultType includes format names "json"/"xml"/"dc" (HTTP 400); sort=["CITED", "desc"] passes _check_sort() then joins with "," instead of " "; search_post()/iterate_post() skip _check_on_error() and iterate_post() omits on_page. Fix: Restrict ResultType to idlist/lite/core, align sort joining, and validate on_error.
  • Second review: the live route confirms the enum. On 2026-11-28, resultType=idlist, lite, and core returned a result wrapper, and resultType=json returned HTTP 200 with an XML errorBean body ("Invalid resultType provided. Please enter either "lite" or "core"."), so the client raises APIError for invalid JSON rather than seeing an HTTP 400. format=json is a separate parameter. docs/europaea/search.md:19-22 repeats the wrong list and needs the same fix.
  • AnnotationsClient & GrantsClient (_async/annotations.py:58, 149-152; _async/grants.py:43-80): by_section() ignores sub_type in its required-filter guard; by_article_ids() silently returns [] on non-list JSON; GrantsClient.iterate() returns an eager list counting pages instead of yielding GrantRecords, and _get() passes params= (contradicting its own note that ? breaks Grist). Fix: Include sub_type in the guard, raise on non-list JSON, convert GrantsClient.iterate() to a real iterator, and drop ? params on Grist.
  • Second review: GrantsClient.iterate() counts pages, not records, in limit. Keep that meaning, or document the change, when turning it into a real iterator.

quiddita

  • UtilitiesClient swallows HTTP 200 MediaWiki errors (packages/quiddita/src/quiddita/_async/utilities.py:34-72, 109-165): _module() skips unwrapper, turning errors into [], {}, or "None" (format_value). Fix: Route through self._client.unwrapper and add 50-ID chunking/normalization to format_entities(), check_constraints(), and suggestions().
  • Second review, ran it: with a MediaWiki {"error": {...}} body and HTTP 200, available_badges() returned [] and format_value() returned the string "None". Six methods share _module(). Normalisation is already in place (utilities.py:57,107,144); only the 50-id chunking is missing. This item moves up; see section 7, item 3.
  • Redirects dropped in batch_get(), iterate_ids(), entity_data.get() (_async/entities.py:16-31, 110, 164; _async/entity_data.py:68-80): wbgetentities keys "entities" by the redirect target ID (per tests/fixtures/entity_redirect.json), so split_entities() drops redirected items. Fix: Map requested IDs via "redirects" in the payload (or document/align keying).
  • Entity-type routing & ID bugs (ids.py:37-43; _async/statements.py:38-39; _async/rest_items.py:44-51, 111; _async/base.py:24-30; _async/client.py:179-184):
  • normalize_wikidata_id("m42") bypasses MediaInfo M rejection (case check precedes .upper()).
  • StatementsClient.for_entity("L2") routes to /entities/items/L2/statements instead of raising ConfigurationError; ItemsClient accepts P IDs and PropertiesClient accepts Q IDs; lexemes.py:27 and statements.py:70 raise raw ValueError instead of ConfigurationError.
  • join_values() crashes (TypeError) on scalar int/bool params; QuidditaClient.aclose() lacks try/finally around _query_client.aclose(); entity_data.py and sparql.py hardcode URLs ignoring base_url; EntitiesClient.iterate_ids() skips on_error validation.
  • Recommended fix: Uppercase before prefix check, validate entity prefixes uniformly with ConfigurationError, convert scalars in join_values(), wrap aclose() in try/finally, and respect base_url.
  • Second review: only entity_data.negotiate() hardcodes its URL (entity_data.py:24,110). entity_data.get() uses a relative path. The SPARQL host is a documented second endpoint, not a base_url bug.

diurnalia

  • issn_query() / doi_query() validation & escaping (packages/diurnalia/src/diurnalia/filters.py:14-37): issn_query() fails on ISSN URLs (because bibliofabric.ids.normalize_issn() does not strip URL prefixes, contradicting docs/diurnalia/journals.md, line 13), both accept arbitrary non-blank garbage, and doi_query() leaves Lucene syntax chars unquoted (HTTP 400 on SICI DOIs). Fix: Extract/validate strict ISSNs/DOIs and quote DOIs for Lucene.
  • 1,000-record cap & get() / search() edge cases (dialect.py:29-33; _async/base.py:22-72; _async/journals.py:45; _async/articles.py:40; journal_csv.py:8-18): max_offset=999 allows (page - 1) * page_size + page_size > 1000 when page_size does not divide 1000; get() silently discards select=; search(" ") and get_by_id(" ") don't strip whitespace; iter_journal_csv() yields None cells/keys on ragged CSV rows (restval="" fixes).
  • Second review, ran it: restval="" fills short rows only. For a long row, DictReader stores the extra cells under the key None ({'a': '1', 'b': '2', None: ['3']}). Drop that key as well, or read with csv.reader.

seriatim

  • "Other Medium" parser bug (packages/seriatim/src/seriatim/search_parser.py:161-165, 203-207): Resets self._label = None on </a> instead of </dd>, dropping every medium link after the first. Fix: Reset on </dd> / <dt>.
  • ISSN-L TSV & ISSN validation (issn_l_table.py:36-40, 61-67; filters.py:31-38, 53-56): iter_issn_to_issn_l() raises IndexError on 1-column/whitespace lines and should open with with io.TextIOWrapper(..., encoding="utf-8-sig"); is_valid_issn() crashes on Unicode superscripts (.isascii()); require_issn() fails on #ISSN / ?format=json JSON-LD URI fragments. Fix: Guard column count, strip fragments/queries before rsplit, and require ASCII digits.
  • Second review, ran it: is_valid_issn("²²²²-²²²X") raises ValueError. A table with a one-column line or a blank line raises IndexError in iter_issn_to_issn_l(). require_issn() rejects both Portal URL forms.
  • Search criteria & sequence filters (_async/search.py:74-75, 163-178; _async/ltwa.py:60-63): sort_field/sort_order/fuzzy/chinese_script bypass the "needs a search criterion" check; passing a str (iso_country="GBR") iterates character-by-character; SearchClient/LtwaClient don't enforce dialect.py limits (page_size > 100 on LTWA silently returns empty). Fix: Restrict criterion check to actual search fields, wrap/reject bare str, and validate page_size/sort/order.

archeion

  • HTTP 400 error feeds unreachable & http:// prefix missed (packages/archeion/src/archeion/_async/query.py:174-179; atom.py:20, 31-50): BaseApiClient raises APIError on HTTP 400 before parse_feed() sees arXiv's error <entry>, and ERROR_ID_PREFIX = "https://arxiv.org/api/errors" misses http://arxiv.org/api/errors. Also parse_feed() never checks root.tag == f"{ATOM}feed" (HTML maintenance pages look like empty feeds). Fix: Catch HTTP 400 APIError in _fetch() to parse Atom error feeds, match both http:// and https:// error prefixes, and verify the Atom <feed> root tag.
  • Second review: keep the catch for HTTP 400 narrow. parse_feed() also raises ConfigurationError for a non-XML body, and a broad except APIError in _fetch() would hide real query errors.
  • batch_get() overwrites newest version (packages/archeion/src/archeion/_async/query.py:159-164): by_base = {entry.arxiv_id: entry for entry in page.results} keeps the last entry in feed order, so requesting 1706.03762v1,1706.03762 overwrites v7 with v1 (contrary to docs/archeion/upstream-quirks.md, line 7). Also batch_get() lacks on_error/failures. Fix: Keep the entry with the highest entry.version in by_base.
  • Paging, blank IDs, & missing helpers (packages/archeion/src/archeion/_async/query.py:71-76, 120-129, 154, 210-221): iterate() advances start += size instead of len(records) (skips records on partial pages, wastes 3s on extra empty request when total is None, and hides page_size > 2000 when limit is small); on_error validation is skipped on empty pages; " " / "arXiv:" leak empty entries into id_list; search(ids=...) doesn't chunk >100 IDs; no query builder helper exists for arXiv field prefixes or 12-digit GMT date ranges.

prodromus

  • Unencoded / unvalidated DOIs, ROR IDs & prefixes (packages/prodromus/src/prodromus/_async/routes.py:106-109, 186-189, 239-285): details.get(""), published.get(""), and funders.*("") send empty path segments (//); published.get() does not quote(wanted, safe="/") journal DOIs containing ?/#/%; _doi_prefix() accepts "10." / "10.abc". Fix: Reject empty normalized IDs, URL-encode DOIs, and match r"10\.\d{4,9}".
  • date_range(), check_status(), & next_cursor() (dialect.py:24-42; unwrapper.py:26-35, 68-92; _async/routes.py:85-90, 150-174): date_range() accepts "2026-02-31" and "2026-11-01\n" while rejecting datetime.datetime; check_status() is case-sensitive on "ok" and too permissive on "no ..."; next_cursor() omits negative count/cursor guards and stops early if total is None; blank category=" " sends ?category=; details.recent() returns list[Preprint] (dropping messages[0]) and accepts bool (posts=True); PublishedClient lacks iterate_biorxiv() and recent(), and routes.py hardcodes 30/100 instead of importing dialect constants.
  • Second review, ran it: date_range("2026-02-31", ...), date_range("2026-11-01\n", ...), and a date object all pass, and a datetime.datetime fails. date objects are a declared input and work.

5. Test Coverage Gaps & Documentation Drift

Test Coverage Gaps

  • aireloom & stavrophora: Tests fail when credentials/mailto are exported in the shell (124 failures, 28 errors). Add explicit credential/mailto overrides in fixtures (e.g., tests/conftest.py) and add follow_redirects= forwarding tests on AireloomClient/AlethecaClient.
  • stavrophora (packages/stavrophora/tests/_async/test_datacitations.py): Missing tests for missing message envelope error, iterate() invalid rows / empty-page termination, count() returning 0, explicit page=, and on_response() with x-rate-limit.
  • diurnalia: packages/diurnalia/tests/_async/test_live_api.py:55 hardcodes assert await live_client.journals.count() == 23831 (will break on live catalog updates); test_journal_csv.py lacks error/empty/ragged-row tests; test_request_shape.py:21-23 calls unquote(), masking whether path segments are actually percent-encoded; missing on_error="raise" test.
  • seriatim: Zero offline tests for IssnLClient.download_table() or ValidationError on invalid JSON-LD; test_records.py:78-82 checks url.path without checking url.host for base_url override.
  • prodromus: Offline tests do not cover published.search(), published.iterate(), published.iterate_by_publisher(), published.get() NotFoundError, funders.iterate(), by_publisher() with records, monthly sum/m & usage/m, date objects in date_range(), ValidationError, or ProdromusUnwrapper.
  • archeion: Missing tests for on_error="skip"/failures/ValidationError, <arxiv:affiliation>, batch_get() chunking (>100 IDs) and versioned+unversioned ordering, limit <= 0, and HTTP 200/400 error feeds; tests/_async/test_request_shape.py:40-43 mocks 1706.03762 with fixture TWO (hep-th/9711200v3).
  • Second review: test_request_shape.py:39-44 is a request-shape test. It asserts only that id_list is 1706.03762. The fixture mismatch is a cosmetic weakness, not a defect.
  • scholiast: tests/_async/test_request_shape.py:240-243 mocks author("1") for authors.papers() (Paper.authorId passes via extra="allow"); missing tests for papers.batch() (>500) / authors.batch() (>1000) chunking and ValidationError wrapping.
  • orchis: tests/test_parsing.py:169-181 leaks an unclosed OrchisClient; missing tests for ClientCredentialsAuth 401 refresh, AuthError, token precedence, and ValidationError.
  • europaea & quiddita: Zero offline tests verifying bibliofabric.ValidationError raising after 3be418d; quiddita lacks HTTP 200 error tests on claims/sitelinks/utilities.
  • rorifer & opcitato: Missing tests for truncated dumps missing ], hyphenated ISNIs in find_by_external_id, non-list RoriferUnwrapper errors, malformed opcitato sort="asc(creation", invalid SPARQL method, and uppercase Text/CSV.
  • Second review: packages/rorifer/tests/test_dump_reader.py:79-84 covers a cut inside a record. The missing test is the file that ends after a complete record.

Documentation & AGENTS.md Drift

  • prodromus docs parity (docs/prodromus/index.md, mkdocs.yml:232-234): Only index.md exists (missing upstream-quirks.md, reference.md, and symbols ProdromusSettings, ProdromusSyncClient, ProdromusUnwrapper, ContentStatistic, UsageStatistic, FunderDeclaration, dialect constants).
  • Root overview (README.md:7-37, docs/index.md lines 10–50): README.md prose says only "eleven more Wave 1 libraries" and mixes Wave 2 (archeion, prodromus) into the Wave 1 table; docs/index.md intro omits Wave 2.
  • Second review: only the intro sentence of docs/index.md leaves out Wave 2. The page has a "Wave 2 libraries" section at lines 43 to 50.
  • Roadmap (docs/roadmap/api-landscape-works.md line 36, docs/roadmap/deferred.md line 14, docs/roadmap/index.md line 210): api-landscape-works.md still says bioRxiv /details is fixed 100/call (actual is 30/page per packages/prodromus/AGENTS.md:21); deferred.md still lists arXiv Atom as unblocking a core non-JSON decoder despite archeion shipping its own parser; roadmap/index.md describes deferred.md as Wave 1 only.
  • aireloom (docs/aireloom/api.md line 67): Incorrectly states iterate() yields Page records (it yields entity records).
  • stavrophora (packages/stavrophora/AGENTS.md:7, README.md:86, docs/stavrophora/index.md line 65): AGENTS.md still says Current release: 0.3.0; AGENTS.md, README.md, and index.md omit data_citations, Work.retractions, and the datacitations pool limit.
  • Second review: docs/stavrophora/index.md:3 links the data-citations page. Only the rate summary at line 65 leaves out the datacitations pool.
  • dataphora (docs/dataphora/usage/prefixes.md lines 15–16, dois.md lines 88–89, providers.md line 9, upstream-quirks.md line 13): Shows state="unallocated" ("unassigned"), nonexistent prefixes.search(prefix=...), typo "APA" ("APAC"), claims prov:* keys land in model_extra (they are typed prov_* fields), and contradicts dialect.py:10-12 on post-10k paging behavior.
  • Second review: the paging contradiction is settled. Live on 2026-11-28, page 11 of 1000 returns HTTP 200 with meta.page 10, so dialect.py:10-11 is right and the quirks page is wrong (section 7, item 6).
  • scholiast (docs/scholiast/papers.md lines 20–98, other-routes.md line 43, upstream-quirks.md lines 61–75, packages/scholiast/AGENTS.md:29): Shows bulk_search(..., limit=1000) (TypeError), citations.citingPaperInfo (AttributeError), openAccessPdf="true" (expects ""), pre-encoded URL: guidance (now double-encodes), stale batch-envelope & AGENTS.md notes.
  • europaea (docs/europaea/articles.md lines 26–38, packages/europaea/AGENTS.md:58-60): Shows book_xml() returning book.message (it raises NotFoundError); articles.py:173-174 docstring cites nonexistent providerIds; profiles.py:26 shows pre-encoded query string; AGENTS.md has stale gate commands.
  • quiddita (docs/quiddita/reference.md lines 11–37, ids.py:7,38, entities.md line 12): Reference omits entity_data, lexemes, utilities; ids.py accepts bare digits "42" → "Q42" contrary to entities.md; DataValue docstring cites nonexistent parse_time.
  • diurnalia (docs/diurnalia/articles.md line 3, upstream-quirks.md lines 32–40, packages/diurnalia/AGENTS.md:19): Contradicts itself on whether GET /api/articles/{id} requires a key and whether full dumps are public; AGENTS.md omits get_by_id() and journal_csv.py.
  • Second review: the key contradiction is unresolved. upstream-quirks.md:32 describes GET /api/v4/articles/{id}, and line 40 lists /api/articles/{id}. These may be two routes. Check live before editing either line.
  • archeion, seriatim, zenotheca (docs/archeion/reference.md, packages/archeion/README.md:61, packages/seriatim/AGENTS.md, packages/zenotheca/src/zenotheca/dialect.py:13): docs/archeion/reference.md omits ArcheionUnwrapper, get_settings, and dialect constants; README.md writes 0.333 instead of 1/3; seriatim/AGENTS.md omits issn_l_table.py; zenotheca/dialect.py keeps stale (not wrapped by this client) OAI comment.

6. Pre-Release Checklist (13 Unpublished Packages)

Before tagging the 11 Wave 1 + 2 Wave 2 libraries (0.1.0):

  1. Update CHANGELOG.md headings: All 13 unpublished packages currently have ## [Unreleased] with no ## [0.1.0] heading. .github/workflows/ci.yml:227-233 extracts GitHub Release notes using ^## \[<version>\], so rename/cut ## [0.1.0] - YYYY-MM-DD before tagging <name>-v0.1.0.
  2. Register PyPI pending trusted publishers: Add pending publisher entries on PyPI (owner utsmok, repo bibliofabric, workflow ci.yml, environment pypi) for all 13 names (listed in deferred.md).
  3. Optional bibliofabric 0.8.1: If Batch 1 fixes (_search_params, ids.py, JsonApiUnwrapper, default_headers, attached_request) land first, cut bibliofabric 0.8.1 (v0.8.1 tag) before releasing the child libraries (all pin bibliofabric>=0.8,<0.9).
  4. Add archeion and prodromus to the release lists (second review): docs/roadmap/wave-1-libraries.md:45-46 says to tag each Wave 1 library, and .agents/skills/bibliofabric-family-release/SKILL.md:9 names the four released packages only. Both Wave 2 libraries need the same pending publisher and the same tag pattern (section 7, item 8).

7. Second Review: Verification and Additional Findings

The second reviewer re-checked every claim in sections 1 to 6 against the code at a21dbeb, by reading the cited lines and by running the affected functions, models, and fixtures. The great majority holds. The rest carries a Second review note in place, and the first table below lists those notes. The numbered items after it are findings that sections 1 to 6 did not contain. Every item was checked against the code or by running it, and items that need a live upstream check say so.

Claims That Needed a Change

Section Claim in sections 1 to 6 Change
1, ids.py normalize_arxiv("1706.03762V1") is a defect The docstring documents the behaviour, so it is a design question.
1, get_json() The helper is _attached_request The helper is _response_request.
1, default_headers User-Agent is dropped Holds, but no client sets User-Agent in default_headers, so it is latent.
1, codegen Unmapped names become Sync*, and _async is replaced in file names Unmapped names pass through unchanged. Both items are hypothetical today.
2, env vars quiddita/tests/test_settings.py:39-44 The vacuous assertion is at line 18. Fixed in place.
3, scholiast S2 returns snippetOffset as an object and a singular context Not verified. The repo fixtures show a list and plural contexts.
3, hodoi publisher rejects objects publisher: str \| dict[str, str] accepts objects.
3, dataphora links rejects null It accepts null and rejects nested objects.
3, prodromus The file is models/preprint.py, and blank strings crash year The file is models.py, and year accepts strings.
4, rorifer v1.47 to v1.7x zips hold a v1 JSON member Not recorded in the repo. Verify it live first.
4, europaea result_type="json" gives HTTP 400 Live, it gives HTTP 200 with an XML errorBean body.
4, quiddita Normalisation is missing, and entity_data.py and sparql.py ignore base_url Normalisation exists. Only entity_data.negotiate() hardcodes a URL.
4, diurnalia restval="" fixes ragged rows It fixes short rows only.
4, prodromus date_range() rejects date objects It rejects datetime.datetime and accepts date.
4, zenotheca The guard gap is at vocabularies.py:133-158 The gap is at _query_params, lines 44 to 70.
5, archeion A test mocks the wrong id The test checks the request shape on purpose. Cosmetic.
5, rorifer No test covers a dump missing ] A cut inside a record is tested. A clean cut after a record is not.
5, docs docs/index.md omits Wave 2 Only its intro sentence does.
5, docs docs/stavrophora/index.md omits data_citations Only the rate summary at line 65 omits the pool.
5, docs The diurnalia docs contradict themselves on the article key Unresolved. The two lines may describe two routes.

Additional Findings

Item 1 is due before the next push. Items 2 to 6 are due before the 0.1.0 tags. Items 7 to 16 belong in the polishing batch.

  1. Four red main runs, and no local gate to stop the next one. Runs 46106131762, 46106319775, 46106894279, and 46107306233 (commits 59264d7, bccc00e, acd5a65, 9f3a6a5, 2026-11-28 04:08 to 04:23) failed in the lint job on stale: packages/diurnalia/src/diurnalia/_sync/journals.py. Each skipped the test, docs, publish, and release jobs. .pre-commit-config.yaml already runs scripts/unasync.py --check, but this clone has no hook installed (.git/hooks holds the sample files only), and neither AGENTS.md nor docs/contributing.md mentions pre-commit install. Fix: run uv run pre-commit install in every clone, and add the command to docs/contributing.md and to the setup commands in AGENTS.md.

  2. Three test suites read the process environment. This extends the env-var item in section 2 to the released clients and to the core. packages/aireloom/tests/_async/conftest.py:27-40 builds AireloomSettings(**defaults) without _env_file=None and without openaire_refresh_token=None. packages/stavrophora/tests/_async/conftest.py:10-14 and _async/test_auth.py:91-98 build StavrophoraSettings(...) without _env_file=None. FakeSettings() in packages/bibliofabric/tests/_async/conftest.py:114-115 has no settings prefix, so it reads USER_AGENT, FOLLOW_REDIRECTS, and MAX_RETRIES. Ran on 2026-11-28. With AIRELOOM_OPENAIRE_REFRESH_TOKEN exported, aireloom fails 116 tests with 26 errors. With STAVROPHORA_RATE_LIMITS exported, stavrophora fails 9 with 1 error. With the three core variables exported, the core suite fails 3 of 198. AGENTS.md requires every suite to pass with and without credentials exported. Fix: pass _env_file=None and an explicit value for every credential field, as the Wave 1 fixtures do, and build FakeSettings the same way.

  3. quiddita utility methods turn upstream errors into empty answers. Section 4 lists this under quiddita. It belongs higher, because the caller cannot tell an error from an empty answer. Ran with a MediaWiki error body and HTTP 200. available_badges() returned [], and format_value() returned the string "None". Six methods share _module() (packages/quiddita/src/quiddita/_async/utilities.py:34-41), which never calls QuidditaUnwrapper._raise_errors() (unwrapper.py:21-29). Fix: call _raise_errors(body) in _module(), and add one test per return shape.
  4. A wrong-shaped HTTP 200 body becomes an empty or all-None result in eight packages. Sections 3 and 4 list the sites one at a time. The cause is shared. unwrapper.item() returns {} for a body that is not an object in diurnalia, hodoi, orchis, scholiast, seriatim, and zenotheca, and a record with no recognised field validates into a model whose fields are all None. Ran rorifer get() on {"foo": "bar"} and got Organization(id=None, names=[], ...) with no error. scholiast _async/recommendations.py:89-92 and europaea _async/annotations.py:69 return [] for a body of the wrong type. Fix once in the core: ResourceClient.get() (packages/bibliofabric/src/bibliofabric/_async/resources.py:246-249) raises ValidationError, with the response attached, when the item has no key that the model declares. Give the two results() callers the same guard.
  5. stavrophora prints the Metadata Plus key. plus_token is a plain str | None field (packages/stavrophora/src/stavrophora/config.py:45), so repr(settings) shows the key (ran it). This is the released-client twin of the orchis item in section 2. Fix: Field(default=None, repr=False), as zenotheca does for api_token (packages/zenotheca/src/zenotheca/config.py:52). It changes no public type.
  6. The dataphora paging docs disagree, and the code is right. docs/dataphora/upstream-quirks.md:12-14 says that a page[number] past 10,000 records returns 400. packages/dataphora/src/dataphora/dialect.py:10-11 says that the API answers with the last reachable page again. Live on 2026-11-28, GET /dois?page[number]=11&page[size]=1000 returned HTTP 200 with meta.page 10 and the same first record as page 10. Fix: correct the quirks page.

  7. Four places state a ROR limit that ROR no longer applies. The client-id page (updated 2026-09-03) gives 2,000 requests per 5 minutes with a Client-Id header and 50 per 5 minutes without one, and says that neither limit is enforced while client-id registration is paused. These still say 2,000 per 5 minutes per IP address: docs/rorifer/upstream-quirks.md:54, packages/rorifer/AGENTS.md:38, docs/roadmap/deferred.md:28, and packages/rorifer/src/rorifer/config.py:16. Fix: correct the four texts. When ROR enforces the tiers, a caller without a Client-Id header gets 50 requests per 5 minutes, and the client sends none.

  8. The release list covers eleven names, not thirteen. docs/roadmap/wave-1-libraries.md:45-46 says to tag each Wave 1 library, and .agents/skills/bibliofabric-family-release/SKILL.md:9 names bibliofabric, aireloom, aletheca, and stavrophora only. archeion and prodromus need the same pending publisher and tag pattern. Added to the checklist in section 6.
  9. Two rows of docs/roadmap/deferred.md name triggers that have happened. The "Pluggable non-JSON decoder" row (:14) lists arXiv Atom, and archeion now ships its own parser (packages/archeion/src/archeion/atom.py). The "POST-body search dialect" row (:12) lists SPARQL endpoints with a POST interface, and quiddita and opcitato send SPARQL by POST today. Fix: do the work or rewrite the two rows, so that the page keeps its rule that an item leaves only when it is done.
  10. packages/rorifer/CHANGELOG.md:37-38 names the wrong exception. It says that a body without the shape of a record raises APIError. Ran with a mocked body. A record with a wrong-typed field raises ValidationError, and an object with no record field returns an all-None Organization without an error. Only a body without items or without the object shape raises APIError (unwrapper.py:24-27, 66-72). Fix: reword the entry. Item 4 removes the silent case.
  11. packages/bibliofabric/CHANGELOG.md:46-47 under-reports on_error. The entry lists search() and batch_get(). iterate(), collect(), first(), and count() accept on_error too (_async/resources.py:332, 392, 425, 480). Fix: extend the entry.
  12. HeaderAuth sends its header to another host on a redirect. Ran BaseApiClient.request() with HeaderAuth("X-Api-Key", ...) and follow_redirects=True. A 302 from a.example to b.example carried x-api-key to b.example, because httpx removes only Authorization, Cookie, and Proxy-Authorization when the origin changes. The default is follow_redirects=False, so only callers who opt in are exposed. Fix: leave the auth header out when a redirect changes the origin, or state the limit in the follow_redirects docstring.
  13. Three test gaps missing from section 5. archeion has no offline test for search(ids=...), the route that the review says does not chunk. aletheca and stavrophora have no follow_redirects forwarding test, like aireloom. europaea has no test for result_type="idlist", a value that the live API accepts.
  14. Twelve europaea fixtures are loaded by no test. The tests read 8 of the 20 files in packages/europaea/tests/fixtures/ by name. The other 12 hold 59,910 of the 60,714 lines: search_core.json, search_core_single.json, search_lite.json, search_post_page2.json, search_cursor_page2.json, annotations_by_article.json, annotations_by_entity.json, annotations_by_provider.json, citations.json, references.json, grants.json, and book_snippet.xml. Rows of the section 3 table cite search_core.json and citations.json as evidence. Fix: add parsing tests that load them, or delete them.
  15. Two copies that the atomic-download fix can remove. _write_body() has the same body in packages/diurnalia/src/diurnalia/_async/journals.py:69 and packages/seriatim/src/seriatim/_async/resources.py:136. One core helper that streams to a temporary file and calls os.replace() serves both packages and the zenotheca download, and settles the non-atomic download item of section 2 once. stavrophora also defines its own SafeStrList (models/safe_types.py:15) next to the core SafeList[str].
  16. The dependency floor is not exercised. packages/bibliofabric/pyproject.toml:23 declares pydantic>=2.9.0. The lock file and CI resolve 2.14.4 only, so no run has tested the 2.9 floor. Fix: raise the floor to a version that CI has run, or add a job that installs the lowest versions.

Effect on the Execution Order

Batch 0 is new, and item 1 says why it comes first. Items 2 and 3 join batch 1. Items 4, 5, and 6 join batch 2. Items 7 to 16 join batch 3.


8. Status of the Fixes (2026-11-28)

Every item in sections 1 to 7 is implemented in the working tree, except for the entries under "Still open" at the end of this section. Each package's CHANGELOG.md lists its caller-visible changes under ## [Unreleased].

Gates on the final tree

Gate Result
uv run ruff check, uv run ruff format --check passed, 933 files formatted
uv run ty check packages/*/src packages/*/tests scripts/unasync.py tests 0 diagnostics, no ignore comments
uv run python scripts/unasync.py --check 220 sync files fresh for 17 packages
uv run mkdocs build --strict passed
uv run pytest, no credentials exported 2,981 passed, 500 live_api deselected (2,288 at a21dbeb)
uv run pytest, every settings variable exported with a dummy value passed
Lowest direct dependencies (pydantic 2.9.0, pydantic-settings 2.9.1, httpx 0.28.0, tenacity 9.0.0, pytest 8.3.4) 2,981 passed

Section 1, core and codegen

Item Result
_search_params() Checks whether the subclass overrides search_path. It never calls search_path(None).
ids.py normalizers Fragments and queries are stripped before trailing slashes. ISBN and ISNI resolvers with a trailing slash work. Wikidata accepts bare hosts and Property: URLs. ROR accepts http://www.ror.org/ and www.ror.org/. Digit checks reject non-ASCII digits. The gdz: prefix is removed. normalize_issn() also reads ISSN Portal URLs. normalize_arxiv() lowercases the version suffix, which answers the design question with "lowercase".
JsonApiUnwrapper.next_cursor() Reads links.next as a URL string or as a {"href": ...} object.
default_headers["User-Agent"] Wins over the fallback User-Agent of a caller-owned client.
get_json() and ClientCredentialsAuth get_json() forwards timeout, retry, and follow_redirects. invalidate_token(failed_token) clears the token only when it still holds the rejected one. attached_request(response) is exported from bibliofabric.
Codegen, replacement precedence [tool.unasync] replacements merge last.
Codegen, class_renames() scope Scans src/ only, so test classes keep their names in twins.
Codegen, _async in file names Replaces the path component only.
Codegen, CWD dependency The script derives the repository root from its own path.
Codegen, orphaned _sync/ files A write run deletes them. --check reports them.
Codegen, seven unmapped names Added to STANDARD_REPLACEMENTS.
Codegen, asyncio imports, ruff calls, --check count The AST scan rejects asyncio imports. ruff runs twice per run instead of twice per file. --check prints the number of checked files.
Codegen tests tests/test_unasync_script.py holds 8 tests. tests/test_public_exports.py fails when a public import is missing from __all__, when an entry repeats, or when a *Client has no *SyncClient.

Section 2, cross-cutting

Item Result
__all__ exports Every row of the table is fixed. The workspace export test guards all packages.
HTTP context All 75 validate_model() calls under packages/ pass request=attached_request(response), response=response, except the one in the rorifer dump reader, which reads a local file. No getattr(response, "request", None) site remains.
limit <= 0 A negative limit raises ConfigurationError before any request and limit=0 sends none, in the zenotheca vocabularies, scholiast bulk_iterate(), europaea iterate_post() and GrantsClient.iterate(), and the seriatim search and LTWA clients. The core iterate() already behaved this way.
ConfigurationError misuse Upstream payload problems raise APIError or ValidationError with the request and response attached, in stavrophora, archeion, prodromus, quiddita, opcitato, hodoi, scholiast, orchis, and seriatim.
Atomic downloads BaseApiClient.download() streams into a temporary file next to dest and moves it into place after the last chunk. diurnalia (Accept: text/csv, */*), seriatim (Accept: application/zip, */*, relative to base_url, redirects followed), zenotheca (Accept: application/octet-stream), and the rorifer dump download use it. The two _write_body() copies are gone.
Env-var isolation Every non-live fixture builds settings with _env_file=None and an explicit value for every field. The test_settings.py files clear every variable of their prefix. OrchisSettings.access_token and client_secret are SecretStr. The orchis live test reads its settings inside the test. The core FakeSettings pins every field.
Unusable inherited methods diurnalia, orchis, quiddita, seriatim, and europaea set batch_size = 0 and assign unsupported_operation(...). An unsupported entry point raises ConfigurationError before any request.

Section 3, model and wire-schema bugs

Every row is fixed. Three rows differ from the text of the review:

  • scholiast accepts both shapes of snippetOffset (object and array) and both context and contexts, because the live body could not be fetched (see "Still open").
  • hodoi widened the values inside publisher and titles, not the object form, which already passed.
  • zenotheca item() raises APIError for a body that is not an object, the family convention.

Section 4, protocol, paging, routing, and runtime bugs

Every item is fixed. These items differ from the text of the review:

  • rorifer reads the *_schema_v2.json member of a multi-member zip. Checked on Zenodo on 2026-11-28: the v1.58 and v1.74 zips hold a schema v1 .json listed first and a *_schema_v2.json; the v2.0 and v2.16 zips hold one .json.
  • stavrophora data_citations.search() and iterate() take page_size= instead of rows=. Page.next_cursor stays a string, as the core Page contract says.
  • europaea result_type accepts idlist, lite, and core. GrantsClient.iterate() now counts records, not pages, in limit.
  • archeion search(ids=...) rejects more than 100 ids with ConfigurationError and points at batch_get() and iterate(), which chunk. The new archeion.queries module holds the query builder (clause(), date_range(), combine()).
  • seriatim require_issn() already accepted the Portal URL forms after the core normalizer change, so the package pins that with a test.
  • prodromus date_range() accepts date and datetime objects and rejects dates that do not exist. details.recent() returns Page[Preprint]. published gained recent() and iterate_biorxiv().

Section 5, tests and docs

Item Result
Test coverage gaps Every listed test exists. The diurnalia live count asserts > 20_000 instead of 23831. prodromus went from 30 to 100 tests.
Item 13 of section 7 archeion tests search(ids=...), aletheca, stavrophora, and aireloom have follow_redirects forwarding tests, europaea tests result_type="idlist".
Documentation drift Every listed page is corrected. prodromus has upstream-quirks.md and reference.md. The diurnalia record routes were checked live without a key on 2026-11-28.

Sections 6 and 7

Item Result
7.1 pre-commit hook Installed in this clone. AGENTS.md and docs/contributing.md name uv run pre-commit install.
7.2 suites that read the environment Fixed. See "Env-var isolation" above.
7.3 quiddita utilities swallow errors _module() routes through the unwrapper. Error bodies raise. The three list arguments are chunked at 50 ids.
7.4 wrong-shaped HTTP 200 bodies ResourceClient.get() raises ValidationError when the unwrapped item has no key the model declares. List methods treat such records as validation failures. The per-package item() unwrappers and the two [] sites raise.
7.5 stavrophora prints the key plus_token is repr=False.
7.6 dataphora paging docs upstream-quirks.md says the API answers with the last reachable page.
7.7 ROR limit texts Corrected in the four places.
7.8 release list wave-1-libraries.md and the family release skill name thirteen packages.
7.9 deferred.md rows Both rows state that the trigger has fired and name the work that remains.
7.10 rorifer changelog Reworded.
7.11 core changelog on_error Lists iterate(), collect(), and first(). count() takes no on_error, so the review item was wrong on that method.
7.12 HeaderAuth on a cross-origin redirect Auth headers and query parameters are left out when a redirect changes the origin. Redirects are followed hop by hop, up to the http client's max_redirects.
7.13 test gaps Closed. See section 5 above.
7.14 europaea fixtures Every file in tests/fixtures/ is loaded by a test.
7.15 duplicate copies The core download() helper serves the three packages. SafeStrList is removed.
7.16 dependency floor CI has a test-lowest job (uv sync --resolution lowest-direct). Its first run found a real floor bug: aireloom's three filter type aliases used type statements, which pydantic reads only from 2.10 on, so import aireloom failed on the declared floor 2.9.0. They are TypeAlias assignments again.

Still open

  1. The consolidation into one distribution (0.9.0) replaced the thirteen pending trusted publishers and the thirteen 0.1.0 changelogs of section 6. bibliofabric is the only package to publish, under its existing trusted publisher.
  2. The live shapes of the Semantic Scholar /snippet/search route are not verified, because the route answers 429 without a key. The scholiast models accept both the object and the array form.
  3. The live_api suite ran on 2026-11-29 after the consolidation: 485 passed, 7 skipped, 8 failed. The failures were four bugs, each in its async and sync variant, and all four are fixed. Zenodo download_file() sent Accept: application/octet-stream, which Zenodo answers with 406. Europe PMC percent-encoded the slash of MED/23903748 into one path segment, which the gateway answers with 400. The Crossref live test still passed rows=. The OpenAlex rerank test required meta.reranked to be true, but OpenAlex now returns false with a rerank_reason such as search_busy when the reranker is busy.