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, 500live_apitests 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, andalethecapass;aireloomandstavrophorafail with 124 failures and 28 errors (2,164passed). - CI history (second review): the four
mainruns for59264d7,bccc00e,acd5a65, and9f3a6a5(2026-11-28 04:08 to 04:23) failed in thelintjob onstale: packages/diurnalia/src/diurnalia/_sync/journals.pyand skipped the test, docs, publish, and release jobs. The two latermainruns are green. - Env-var isolation, core suite (second review): exporting
USER_AGENT=x FOLLOW_REDIRECTS=true MAX_RETRIES=1fails 3 of 198 tests inpackages/bibliofabric/tests, becauseFakeSettings()(tests/_async/conftest.py:114-115) has no settings prefix. - Env-var isolation, second run: with
AIRELOOM_OPENAIRE_REFRESH_TOKENandSTAVROPHORA_RATE_LIMITSexported,aireloomfails 116 tests with 26 errors andstavrophora9 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
ConfigurationErrorand unconditionalsearch_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()checksself.search_path(query) == self.search_path(None). Subclasses that mapNoneto a wildcard (e.g.,diurnalia'sDiurnaliaResourceClient.search_pathreturning"*"for empty strings) falsely raiseConfigurationErroronquery="". Conversely, subclasses whosesearch_path(None)raisesConfigurationErrorfail even when a validqueryis passed. -
Recommended fix: Check
type(self).search_path is ResourceClient.search_pathinstead of callingsearch_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:
normalize_isbn()(:166) andnormalize_isni()(:175) do not call.rstrip("/")after stripping URL prefixes, so trailing slashes block ISBN-13 conversion and ISNI 4×4 grouping.normalize_wikidata_qid()(:61-68, 213) strips/before#fragment("https://www.wikidata.org/wiki/Q42/#P3153"→"Q42/"), and_WIKIDATA_PREFIXESomits non-www.URLs andhttps://www.wikidata.org/wiki/Property:.normalize_viaf()(:225) and_is_valid_isbn_10()(:97-105) check.isdigit()without.isascii(), so Unicode superscripts like"²"raise unhandledValueErrorinstead of passing through cleanly._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/".normalize_arxiv("1706.03762V1")(:194) keepsV1uppercase, 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/?querybefore.rstrip("/"); add.rstrip("/")tonormalize_isbn/normalize_isni; expand Wikidata/ROR prefixes (and verify/remove"gdz:"); guard digit checks with.isascii() and .isdigit(). Decide separately whethernormalize_arxiv()should lowercase the version suffix. -
Second review, ran it:
normalize_isbn("https://www.worldcat.org/isbn/0306406158/")returns0306406158/,normalize_isni("https://isni.org/isni/0000000121097254/")returns0000000121097254/,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", andnormalize_viaf("²")raisesValueError.JsonApiUnwrapper().next_cursor({"links": {"next": {"href": "https://x.org/dois?page[cursor]=abc"}}})returnsNone. -
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.nextto be either a URL string or{"href": "<url>", ...}, butif not isinstance(next_url, str): return Nonesilently truncates pagination after page 1 for link objects. -
Recommended fix: When
isinstance(next_url, dict), extractnext_url.get("href")before the string check. -
default_headers["User-Agent"]ignored on caller-ownedhttp_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_clientcarryingpython-httpx/...,request_headersinjects"User-Agent": effective_user_agent()beforedefault_headersare merged, putting"user-agent"inoverridesand silently droppingdefault_headers["User-Agent"]. - Recommended fix: Apply
default_headersbefore the fallbackUser-Agentinjection (or exclude the injected fallback fromoverrides). -
Second review: Confirmed by running with a caller-owned client. The case is latent today, because no client in the workspace sets
User-Agentindefault_headers. -
BaseApiClient.get_json()drops forwarding kwargs &ClientCredentialsAuth401 race - Location:
packages/bibliofabric/src/bibliofabric/_async/client.py:550-559;packages/bibliofabric/src/bibliofabric/auth.py. - Context:
get_json()does not forwardfollow_redirects,timeout, orretry. InClientCredentialsAuth, two concurrent 401 responses on an expired token can both callinvalidate_token(), allowing the second to clear the token freshly minted by the first. - Recommended fix: Forward
follow_redirects,timeout, andretryinget_json(); pass the failed token toinvalidate_token(failed_token)so it only clears if unchanged. Also expose a publicattached_request(response)helper frombibliofabric(replacing_response_requestin_async/resources.py:36-40) so clients avoid thegetattr(response, "request", None)RuntimeErrortrap.
Codegen (scripts/unasync.py)
- Replacement precedence clobbers
[tool.unasync] replacements(scripts/unasync.py:230-235):class_renames(files)is merged afterextra_replacements(package), overriding package-specificpyproject.tomlrenames. Fix: Mergeextra_replacements(package)last. class_renames()scanstests/_async/package-wide (scripts/unasync.py:128-144): Any public class intests/_async/(e.g.,class Client:) enters the package-wide rename map and can rename symbols insidesrc/. Fix: Scopeclass_renames()tosrc/(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): BothPath(str(rel).replace("_async", GENERATED_SUFFIX))andunasync.Rule(fromdir="_async", todir="_sync")replace every occurrence of_asyncin filenames (turningtest_async_helpers.pyintotest_sync_helpers.py). Fix: Replace only the_asyncpath component (/_async/→/_sync/). - Second review: Latent. No file name under any
tests/_async/directory contains_asynctoday. - 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: DeriveREPO_ROOT = Path(__file__).resolve().parent.parentand 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--checkreports 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-existentSync*symbol. None of the seven occurs underpackages/today, which makes the item hypothetical. Fix: Add the seven toSTANDARD_REPLACEMENTSor close the item. - Missing
import asyncioguard & O(N) ruff subprocesses (scripts/unasync.py:132, 169-199, 267-268): Rejectimport asyncio/from asyncio import ...during the AST scan (prevents silent unawaited coroutine bugs in_sync/); batch the2 * N(34)ruffinvocations across all generated files into 2 calls; fix--checksummary printingchecked all sync files for 17 packagesinstead 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); plusgetattr(response, "request", None)inrorifer(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), andorchis(resources.py:363). - Context:
validate_model(...)is often called withoutrequest=andresponse=, leavingValidationError.request/.response/.status_codeasNone. Separately,getattr(response, "request", None)does not preventhttpx.Response.requestfrom raisingRuntimeError(notAttributeError) on detached responses. - Recommended fix: Forward
request=attached_request(response), response=responseto everyvalidate_model()call and replacegetattr(response, "request", None)/ directresponse.requestwithbibliofabric.attached_request(response). - Second review, ran it:
getattr(httpx.Response(200, json={}), "request", None)raisesRuntimeError: 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-212bulk_iterate()),europaea(_async/search.py:224iterate_post(),_async/grants.py:43-80GrantsClient.iterate()),seriatim(_async/search.py:203-229,_async/ltwa.py:113-131). - Context: Checking
seen >= limitafter yielding the first item causeslimit=0andlimit=-1to 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 iflimit == 0before 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) raiseConfigurationError(withoutresponse/body) instead ofAPIError,RateLimitError,NotFoundError, orValidationError. - Recommended fix: Reserve
ConfigurationErrorfor invalid caller input/settings and raiseAPIError/RateLimitError/NotFoundError/ValidationErrorwithrequest/response/bodyattached 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) andseriatim.issn_l.download_table()(~27 MB zip) write directly todest("wb"), leaving corrupt truncated files if interrupted mid-stream, and inherit JSON/JSON-LDAcceptheaders.seriatimalso hardcodesISSN_L_TABLE_URL(ignoringbase_url) and omitsfollow_redirects=True;zenotheca.records.download_file()also omitsfollow_redirects=True. - Recommended fix: Stream into a sibling temp file and atomically replace via
os.replace(), set explicitAccept(text/csv, */*orapplication/zip, */*), passfollow_redirects=True, and use relative paths when under the client'sbase_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 1test_settings.pyfiles (rorifer,zenotheca,dataphora,opcitato,hodoi,scholiast,orchis,europaea,diurnalia,seriatim), andpackages/orchis/src/orchis/config.py:47-49. - Context:
- Exporting credentials causes 124 failures / 28 errors in
aireloomandstavrophora. - Almost all Wave 1
test_settings.pysuites clear only 3–4 env vars (missing*_MAX_RETRIES,*_USER_AGENT,*_MAILTO,*_MAX_CONCURRENCY,ZENOTHECA_API_TOKEN);quiddita/tests/test_settings.py:18assertsmax_concurrency == 1against default1(vacuous). hodoi/tests/conftest.pyomitsfollow_redirects=False;quiddita/tests/conftest.pyomitsrate_limits/user_agent/mailto;zenotheca/tests/_async/test_live_api.py:34omitsapi_token=None;orchis/tests/_async/test_live_api.py:17instantiatesOrchisSettings()at import time.OrchisSettings.access_tokenandclient_secret(orchis/config.py:47-49) are plainstr | Nonerather thanSecretStr | None, leaking secrets inrepr()/model_dump().- Recommended fix: Make every non-live test pass explicit field defaults to
*Settings(_env_file=None, ...)(and clear allBaseApiSettingsenv vars viamonkeypatchintest_settings.py); deferOrchisSettings()inside live fixtures; changeOrchisSettingscredentials toSecretStr | 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(), orcount()when the upstream endpoint does not support them, causing eitherAttributeError: ... has no attribute 'path'/'dialect'or broken HTTP calls (diurnaliabatch_gethits/search/*?id=...). - Recommended fix: Set
batch_size = 0where batching is unsupported and override unsupportedResourceCliententrypoints to raiseConfigurationError(or declaredialectoneuropaea.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:
scholiastrow: the two upstream shapes are not verified, and the repo fixtures contradict them.tests/fixtures/snippets.json:8has"snippetOffset": [0, 61], andtests/fixtures/citations.jsonuses pluralcontexts, 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.hodoirow:DataciteRecord.publisherisstr | dict[str, str](metadata.py:40), so object publishers pass. Only non-string values inside the dict and intitlesfail.dataphorarow:links: dict[str, str] | Noneacceptsnull. It rejects nested link objects only.zenothecarow:item()is atunwrapper.py:24-27.prodromusrow: the file ismodels.py, andyear: int | str | None(models.py:113, 126) accepts""and"NA". The crash risk is in the numeric count fields, which coerce strings toint. Do not tightenyeartoint, 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_HEADERSomits"x-rate-limit"returned by/beta/datacitations(documented in docs/stavrophora/data-citations.md, line 46). Fix: Include"x-rate-limit". DataCitationsResourcepaging, errors & parity (packages/stavrophora/src/stavrophora/_async/datacitations.py:42-156):iterate()lacks a repeatedpage_numberloop guard, defersrowsvalidation until first iteration, castsint(total)/int(page_number)unsafely (bool/non-digits), strips custombase_urlpath prefixes viacopy_with(path=...), and lackson_error/failures/limit/on_page/collect/first(plus usesrows=vspage_size=and returnsnext_cursorasstrwhilesearch()acceptspage: int). Fix: Guard non-advancingnext-page, validaterowseagerly, preservebase_urlprefix, and align helper methods/parameters.
rorifer
- Shrinking
sizebreaksDumpsClient.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 (forlimit=27, page 2 sendspage=2&size=2and fetches offset 2 instead of 25). Fix: Keepsizeconstant (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.jsonin 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-84covers 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.jsonpreference. - 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) incompact_external_id(). - Non-list
errorsinRoriferUnwrapper._object()(packages/rorifer/src/rorifer/unwrapper.py:73-76): Splits a string into characters ("a; b; c"). Fix: Handlestrvslistexplicitly.
zenotheca
- OAI-PMH 2.0
resumptionTokenexclusivity &_fetch()error swallowing (packages/zenotheca/src/zenotheca/_async/oai.py:142-144, 172-174, 227-259, 296-304, 384-385): list_identifiers/list_recordssendresumptionTokentogether withmetadataPrefix/from/until/set(causesbadArgumenton page 2+ per OAI-PMH 2.0). Fix: Whenresumption_tokenis given, send onlyverbandresumptionToken._fetch()catches allAPIErrors (429RateLimitError, 404, 5xx) and passes non-XML bodies toElementTree.fromstring(). Fix: Intercept only HTTP 422 (Zenodo's OAI error status)._record()(:384-385) misparses unnamespaced XML tags as namespaces, andOaiClient(:300) hardcodesZENODO_OAI_BASE_URLinstead of deriving fromself._client.base_url. Fix: Checktag.startswith("{")before extracting namespace; derive OAI URL frombase_url.- Missing
all_versionsoncollect()/first()(packages/zenotheca/src/zenotheca/_async/records.py:66-157): Contradicts docs/zenotheca/usage/records.md (line 56). Fix: Overridecollect()andfirst()to acceptall_versions. - ID & slug edge cases (
packages/zenotheca/src/zenotheca/ids.py:27-42, 68;_async/communities.py:65, 124): Trailing slashes on Zenodo URLs raiseIndexError;normalize_record_id()rejectshttps://doi.org/10.5281/zenodo.<id>while accepting"10.5281/zenodo.bogus.123"; community slugs inrecords()/subcommunities()are unquoted (quote(..., safe="")). Fix: Guard empty URL segments, handledoi.orgZenodo 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 storesbibliofabric.ValidationErrorinstead ofpydantic.ValidationErrorlikeResourceClient;VocabulariesClient.search()skipsZENODO_MAX_PAGE_SIZE/max_offsetguards. Fix: Align both withResourceClientandZENODO_DIALECT. - Second review: the guard gap is in
_query_params(_async/vocabularies.py:44-70), not at:133-158.
dataphora
PrefixesClient.totals()crashes on204 No Content(packages/dataphora/src/dataphora/_async/registry.py:44-70, 201-210): Callsparse_json()unconditionally on204despitepackages/dataphora/AGENTS.md:32. Fix: Return empty/zeroDataphoraTotalson 204 or reject emptyclient_idbefore sending.GraphqlClient._summarize_errors()crashes on string errors (packages/dataphora/src/dataphora/_async/graphql.py:94-97): Callserror.get(...)without checkingisinstance(error, dict). Fix: Guard withisinstance(error, dict).*.dois(id, **kwargs)collision & blankid(packages/dataphora/src/dataphora/_async/registry.py:122-213): Passingfilters=raisesTypeError(duplicatefiltersargument), and emptyidsends a blank filter. Fix: Reject emptyidand accept/mergefiltersexplicitly.DoisClient.activities()silent 10k truncation (packages/dataphora/src/dataphora/_async/dois.py:41-63): Stops silently at 10 pages, acceptsboolasint, and returns[]on non-dict JSON. Fix: Excludebool, raise on invalid upstream envelope, and document or raise when capped.
opcitato
sortvalidation & SPARQLmethod(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); validatemethodin{"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", andnormalize_meta_ids("doi:10.1234/foo__bar")splits a single DOI containing__. Fix: Lowercasecontent-type; treatstrinputs 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: Subtractlen("/ra/")from the budget.strip_doi_form()whitespace (packages/hodoi/src/hodoi/dialect.py:64-66):"doi: 10.1038/..."retains a leading space and failsnormalize_doi(). Fix:.strip()after removing prefix.content(),handle(),resolve()edge cases (packages/hodoi/src/hodoi/_async/client.py:145-198, 236-297):content()ignores responseContent-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 responseContent-Typebefore parsing/returning.handle()ignores non-1/200responseCodeinside HTTP 200 JSON, andisinstance(values, int | str)acceptsbool. Fix: CheckresponseCodeand excludebool.resolve()lacks afollow_redirectsparameter (fails ifHODOI_FOLLOW_REDIRECTS=true). Fix: Forcefollow_redirects=False(or expose explicit parameter defaulting toFalse).
scholiast
PapersClient.search_match()raw Pydantic error (packages/scholiast/src/scholiast/_async/papers.py:341,models/paper.py:189-199): CallsPaper.model_validate()instead ofvalidate_model(..., request=..., response=...). Fix: Usevalidate_modelwith HTTP context.AuthorsClient.search()missingfields=(packages/scholiast/src/scholiast/_async/authors.py:19-37): Documented in docs/scholiast/authors.md (lines 33–35) but raisesTypeError. Fix: Addfields=parameter matchingPapersClient.search().- Empty
SCHOLIAST_API_KEY=""sends emptyx-api-keyheader (packages/scholiast/src/scholiast/_async/client.py:47-62): Sendsx-api-key: ""viadefault_headers(HTTP 403 upstream) and evaluatesget_settings()twice. Fix: UseHeaderAuth("x-api-key", ...)only whenapi_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 = 9900allowsoffset + 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: Enforceoffset + 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
offsetwithmax_offsetusing the paging size, not the caller'slimit, soSEARCH_MAX_OFFSET = 9899alone is wrong for other page sizes.
orchis
ClientCredentialsAuthwiring (packages/orchis/src/orchis/_async/client.py:30-48,_sync/client.py:31-49): Omitstimeout=settings.timeout, and accepts whitespace-onlyaccess_token/client_id/client_secret. Fix: Forwardtimeout=settings.timeoutand.strip()credential strings before truthiness checks.- Blank ORCIDs & unguarded search routes (
packages/orchis/src/orchis/_async/resources.py:108-110, 455-509):_base("")sends/biographyinstead of raisingConfigurationError;ExpandedSearchClient/SolrSearchClientonly checkquery is Noneinsearch(), notiterate()/count(), andcsv()doesn't caprows <= 100(EXPANDED_SEARCH_MAX_ROWS) or reject" ". Fix: Reject blank ORCIDs in_base(), enforcequerynon-blank across all search entrypoints, and capcsv(rows=...). works_bulk()issues (packages/orchis/src/orchis/_async/resources.py:341-368): Silently skips non-dict"work"values and treatsboolasintput-codes. Fix: RaiseValidationErroron non-dict"work"entries and rejectbool.
europaea
ArticlesClientmissingdialect& unencoded paths (packages/europaea/src/europaea/_async/articles.py:49-116, 165-299): InheritedResourceClientmethods raiseAttributeError;full_text_xml,book_xml,supplementary_files,item_path,data_links,labs_links,evaluations, andstatus_updatesdon't reject blank IDs or URL-encode path segments. Fix: Declaredialect(or override unsupported methods) andquote(..., 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.messagetriggers on valid JATS articles mentioning<message>...note...</message>. Fix: Check specifically for the<fullTextXMLBean>error wrapper root. PreprintsClientleaks non-preprints (packages/europaea/src/europaea/_async/preprints.py:16-100):count(),search_post(), anditerate_post()bypassSRC:PPRscoping, and_ppr_query("SRC:PPR AND a OR b")skips parenthesization. Fix: Apply_ppr_query()across all routes and parenthesize unconditionally.SearchClientResultType,sort, &iterate_post(packages/europaea/src/europaea/_async/search.py:14, 147-232, 272-276):ResultTypeincludes 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()anditerate_post()omitson_page. Fix: RestrictResultTypetoidlist/lite/core, align sort joining, and validateon_error.- Second review: the live route confirms the enum. On 2026-11-28,
resultType=idlist,lite, andcorereturned a result wrapper, andresultType=jsonreturned HTTP 200 with an XMLerrorBeanbody ("Invalid resultType provided. Please enter either "lite" or "core"."), so the client raisesAPIErrorfor invalid JSON rather than seeing an HTTP 400.format=jsonis a separate parameter.docs/europaea/search.md:19-22repeats the wrong list and needs the same fix. AnnotationsClient&GrantsClient(_async/annotations.py:58, 149-152;_async/grants.py:43-80):by_section()ignoressub_typein its required-filter guard;by_article_ids()silently returns[]on non-list JSON;GrantsClient.iterate()returns an eagerlistcounting pages instead of yieldingGrantRecords, and_get()passesparams=(contradicting its own note that?breaks Grist). Fix: Includesub_typein the guard, raise on non-list JSON, convertGrantsClient.iterate()to a real iterator, and drop?params on Grist.- Second review:
GrantsClient.iterate()counts pages, not records, inlimit. Keep that meaning, or document the change, when turning it into a real iterator.
quiddita
UtilitiesClientswallows HTTP 200 MediaWiki errors (packages/quiddita/src/quiddita/_async/utilities.py:34-72, 109-165):_module()skipsunwrapper, turning errors into[],{}, or"None"(format_value). Fix: Route throughself._client.unwrapperand add 50-ID chunking/normalization toformat_entities(),check_constraints(), andsuggestions().- Second review, ran it: with a MediaWiki
{"error": {...}}body and HTTP 200,available_badges()returned[]andformat_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):wbgetentitieskeys"entities"by the redirect target ID (pertests/fixtures/entity_redirect.json), sosplit_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 MediaInfoMrejection (case check precedes.upper()).StatementsClient.for_entity("L2")routes to/entities/items/L2/statementsinstead of raisingConfigurationError;ItemsClientacceptsPIDs andPropertiesClientacceptsQIDs;lexemes.py:27andstatements.py:70raise rawValueErrorinstead ofConfigurationError.join_values()crashes (TypeError) on scalarint/boolparams;QuidditaClient.aclose()lackstry/finallyaround_query_client.aclose();entity_data.pyandsparql.pyhardcode URLs ignoringbase_url;EntitiesClient.iterate_ids()skipson_errorvalidation.- Recommended fix: Uppercase before prefix check, validate entity prefixes uniformly with
ConfigurationError, convert scalars injoin_values(), wrapaclose()intry/finally, and respectbase_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 abase_urlbug.
diurnalia
issn_query()/doi_query()validation & escaping (packages/diurnalia/src/diurnalia/filters.py:14-37):issn_query()fails on ISSN URLs (becausebibliofabric.ids.normalize_issn()does not strip URL prefixes, contradicting docs/diurnalia/journals.md, line 13), both accept arbitrary non-blank garbage, anddoi_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=999allows(page - 1) * page_size + page_size > 1000whenpage_sizedoes not divide1000;get()silently discardsselect=;search(" ")andget_by_id(" ")don't strip whitespace;iter_journal_csv()yieldsNonecells/keys on ragged CSV rows (restval=""fixes). - Second review, ran it:
restval=""fills short rows only. For a long row,DictReaderstores the extra cells under the keyNone({'a': '1', 'b': '2', None: ['3']}). Drop that key as well, or read withcsv.reader.
seriatim
"Other Medium"parser bug (packages/seriatim/src/seriatim/search_parser.py:161-165, 203-207): Resetsself._label = Noneon</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()raisesIndexErroron 1-column/whitespace lines and should open withwith io.TextIOWrapper(..., encoding="utf-8-sig");is_valid_issn()crashes on Unicode superscripts (.isascii());require_issn()fails on#ISSN/?format=jsonJSON-LD URI fragments. Fix: Guard column count, strip fragments/queries beforersplit, and require ASCII digits. - Second review, ran it:
is_valid_issn("²²²²-²²²X")raisesValueError. A table with a one-column line or a blank line raisesIndexErroriniter_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_scriptbypass the "needs a search criterion" check; passing astr(iso_country="GBR") iterates character-by-character;SearchClient/LtwaClientdon't enforcedialect.pylimits (page_size > 100on LTWA silently returns empty). Fix: Restrict criterion check to actual search fields, wrap/reject barestr, and validatepage_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):BaseApiClientraisesAPIErroron HTTP 400 beforeparse_feed()sees arXiv's error<entry>, andERROR_ID_PREFIX = "https://arxiv.org/api/errors"misseshttp://arxiv.org/api/errors. Alsoparse_feed()never checksroot.tag == f"{ATOM}feed"(HTML maintenance pages look like empty feeds). Fix: Catch HTTP 400APIErrorin_fetch()to parse Atom error feeds, match bothhttp://andhttps://error prefixes, and verify the Atom<feed>root tag. - Second review: keep the catch for HTTP 400 narrow.
parse_feed()also raisesConfigurationErrorfor a non-XML body, and a broadexcept APIErrorin_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 requesting1706.03762v1,1706.03762overwritesv7withv1(contrary to docs/archeion/upstream-quirks.md, line 7). Alsobatch_get()lackson_error/failures. Fix: Keep the entry with the highestentry.versioninby_base.- Paging, blank IDs, & missing helpers (
packages/archeion/src/archeion/_async/query.py:71-76, 120-129, 154, 210-221):iterate()advancesstart += sizeinstead oflen(records)(skips records on partial pages, wastes 3s on extra empty request whentotal is None, and hidespage_size > 2000whenlimitis small);on_errorvalidation is skipped on empty pages;" "/"arXiv:"leak empty entries intoid_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(""), andfunders.*("")send empty path segments (//);published.get()does notquote(wanted, safe="/")journal DOIs containing?/#/%;_doi_prefix()accepts"10."/"10.abc". Fix: Reject empty normalized IDs, URL-encode DOIs, and matchr"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 rejectingdatetime.datetime;check_status()is case-sensitive on"ok"and too permissive on"no ...";next_cursor()omits negativecount/cursorguards and stops early iftotal is None; blankcategory=" "sends?category=;details.recent()returnslist[Preprint](droppingmessages[0]) and acceptsbool(posts=True);PublishedClientlacksiterate_biorxiv()andrecent(), androutes.pyhardcodes30/100instead of importing dialect constants.- Second review, ran it:
date_range("2026-02-31", ...),date_range("2026-11-01\n", ...), and adateobject all pass, and adatetime.datetimefails.dateobjects 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 addfollow_redirects=forwarding tests onAireloomClient/AlethecaClient.stavrophora(packages/stavrophora/tests/_async/test_datacitations.py): Missing tests for missingmessageenvelope error,iterate()invalidrows/ empty-page termination,count()returning0, explicitpage=, andon_response()withx-rate-limit.diurnalia:packages/diurnalia/tests/_async/test_live_api.py:55hardcodesassert await live_client.journals.count() == 23831(will break on live catalog updates);test_journal_csv.pylacks error/empty/ragged-row tests;test_request_shape.py:21-23callsunquote(), masking whether path segments are actually percent-encoded; missingon_error="raise"test.seriatim: Zero offline tests forIssnLClient.download_table()orValidationErroron invalid JSON-LD;test_records.py:78-82checksurl.pathwithout checkingurl.hostforbase_urloverride.prodromus: Offline tests do not coverpublished.search(),published.iterate(),published.iterate_by_publisher(),published.get()NotFoundError,funders.iterate(),by_publisher()with records, monthlysum/m&usage/m,dateobjects indate_range(),ValidationError, orProdromusUnwrapper.archeion: Missing tests foron_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-43mocks1706.03762with fixtureTWO(hep-th/9711200v3).- Second review:
test_request_shape.py:39-44is a request-shape test. It asserts only thatid_listis1706.03762. The fixture mismatch is a cosmetic weakness, not a defect. scholiast:tests/_async/test_request_shape.py:240-243mocksauthor("1")forauthors.papers()(Paper.authorIdpasses viaextra="allow"); missing tests forpapers.batch()(>500) /authors.batch()(>1000) chunking andValidationErrorwrapping.orchis:tests/test_parsing.py:169-181leaks an unclosedOrchisClient; missing tests forClientCredentialsAuth401 refresh,AuthError, token precedence, andValidationError.europaea&quiddita: Zero offline tests verifyingbibliofabric.ValidationErrorraising after3be418d;quidditalacks HTTP 200 error tests onclaims/sitelinks/utilities.rorifer&opcitato: Missing tests for truncated dumps missing], hyphenated ISNIs infind_by_external_id, non-listRoriferUnwrappererrors, malformedopcitatosort="asc(creation", invalid SPARQLmethod, and uppercaseText/CSV.- Second review:
packages/rorifer/tests/test_dump_reader.py:79-84covers a cut inside a record. The missing test is the file that ends after a complete record.
Documentation & AGENTS.md Drift
prodromusdocs parity (docs/prodromus/index.md,mkdocs.yml:232-234): Onlyindex.mdexists (missingupstream-quirks.md,reference.md, and symbolsProdromusSettings,ProdromusSyncClient,ProdromusUnwrapper,ContentStatistic,UsageStatistic,FunderDeclaration, dialect constants).- Root overview (
README.md:7-37, docs/index.md lines 10–50):README.mdprose says only "eleven more Wave 1 libraries" and mixes Wave 2 (archeion,prodromus) into the Wave 1 table;docs/index.mdintro omits Wave 2. - Second review: only the intro sentence of
docs/index.mdleaves 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.mdstill says bioRxiv/detailsisfixed 100/call(actual is 30/page perpackages/prodromus/AGENTS.md:21);deferred.mdstill listsarXiv Atomas unblocking a core non-JSON decoder despitearcheionshipping its own parser;roadmap/index.mddescribesdeferred.mdas Wave 1 only. aireloom(docs/aireloom/api.md line 67): Incorrectly statesiterate()yieldsPagerecords (it yields entity records).stavrophora(packages/stavrophora/AGENTS.md:7,README.md:86, docs/stavrophora/index.md line 65):AGENTS.mdstill saysCurrent release: 0.3.0;AGENTS.md,README.md, andindex.mdomitdata_citations,Work.retractions, and thedatacitationspool limit.- Second review:
docs/stavrophora/index.md:3links the data-citations page. Only the rate summary at line 65 leaves out thedatacitationspool. dataphora(docs/dataphora/usage/prefixes.md lines 15–16, dois.md lines 88–89, providers.md line 9, upstream-quirks.md line 13): Showsstate="unallocated"("unassigned"), nonexistentprefixes.search(prefix=...), typo"APA"("APAC"), claimsprov:*keys land inmodel_extra(they are typedprov_*fields), and contradictsdialect.py:10-12on 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.page10, sodialect.py:10-11is 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): Showsbulk_search(..., limit=1000)(TypeError),citations.citingPaperInfo(AttributeError),openAccessPdf="true"(expects""), pre-encodedURL:guidance (now double-encodes), stale batch-envelope &AGENTS.mdnotes.europaea(docs/europaea/articles.md lines 26–38,packages/europaea/AGENTS.md:58-60): Showsbook_xml()returningbook.message(it raisesNotFoundError);articles.py:173-174docstring cites nonexistentproviderIds;profiles.py:26shows pre-encoded query string;AGENTS.mdhas stale gate commands.quiddita(docs/quiddita/reference.md lines 11–37,ids.py:7,38, entities.md line 12): Reference omitsentity_data,lexemes,utilities;ids.pyaccepts bare digits"42"→"Q42"contrary toentities.md;DataValuedocstring cites nonexistentparse_time.diurnalia(docs/diurnalia/articles.md line 3, upstream-quirks.md lines 32–40,packages/diurnalia/AGENTS.md:19): Contradicts itself on whetherGET /api/articles/{id}requires a key and whether full dumps are public;AGENTS.mdomitsget_by_id()andjournal_csv.py.- Second review: the key contradiction is unresolved.
upstream-quirks.md:32describesGET /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.mdomitsArcheionUnwrapper,get_settings, and dialect constants;README.mdwrites0.333instead of1/3;seriatim/AGENTS.mdomitsissn_l_table.py;zenotheca/dialect.pykeeps 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):
- Update
CHANGELOG.mdheadings: All 13 unpublished packages currently have## [Unreleased]with no## [0.1.0]heading..github/workflows/ci.yml:227-233extracts GitHub Release notes using^## \[<version>\], so rename/cut## [0.1.0] - YYYY-MM-DDbefore tagging<name>-v0.1.0. - Register PyPI pending trusted publishers: Add pending publisher entries on PyPI (owner
utsmok, repobibliofabric, workflowci.yml, environmentpypi) for all 13 names (listed in deferred.md). - Optional
bibliofabric0.8.1: If Batch 1 fixes (_search_params,ids.py,JsonApiUnwrapper,default_headers,attached_request) land first, cutbibliofabric0.8.1(v0.8.1tag) before releasing the child libraries (all pinbibliofabric>=0.8,<0.9). - Add
archeionandprodromusto the release lists (second review):docs/roadmap/wave-1-libraries.md:45-46says to tag each Wave 1 library, and.agents/skills/bibliofabric-family-release/SKILL.md:9names 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.
-
Four red
mainruns, and no local gate to stop the next one. Runs 46106131762, 46106319775, 46106894279, and 46107306233 (commits59264d7,bccc00e,acd5a65,9f3a6a5, 2026-11-28 04:08 to 04:23) failed in thelintjob onstale: packages/diurnalia/src/diurnalia/_sync/journals.py. Each skipped the test, docs, publish, and release jobs..pre-commit-config.yamlalready runsscripts/unasync.py --check, but this clone has no hook installed (.git/hooksholds the sample files only), and neitherAGENTS.mdnordocs/contributing.mdmentionspre-commit install. Fix: runuv run pre-commit installin every clone, and add the command todocs/contributing.mdand to the setup commands inAGENTS.md. -
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-40buildsAireloomSettings(**defaults)without_env_file=Noneand withoutopenaire_refresh_token=None.packages/stavrophora/tests/_async/conftest.py:10-14and_async/test_auth.py:91-98buildStavrophoraSettings(...)without_env_file=None.FakeSettings()inpackages/bibliofabric/tests/_async/conftest.py:114-115has no settings prefix, so it readsUSER_AGENT,FOLLOW_REDIRECTS, andMAX_RETRIES. Ran on 2026-11-28. WithAIRELOOM_OPENAIRE_REFRESH_TOKENexported,aireloomfails 116 tests with 26 errors. WithSTAVROPHORA_RATE_LIMITSexported,stavrophorafails 9 with 1 error. With the three core variables exported, the core suite fails 3 of 198.AGENTS.mdrequires every suite to pass with and without credentials exported. Fix: pass_env_file=Noneand an explicit value for every credential field, as the Wave 1 fixtures do, and buildFakeSettingsthe same way. quidditautility methods turn upstream errors into empty answers. Section 4 lists this underquiddita. 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[], andformat_value()returned the string"None". Six methods share_module()(packages/quiddita/src/quiddita/_async/utilities.py:34-41), which never callsQuidditaUnwrapper._raise_errors()(unwrapper.py:21-29). Fix: call_raise_errors(body)in_module(), and add one test per return shape.- A wrong-shaped HTTP 200 body becomes an empty or all-
Noneresult 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 indiurnalia,hodoi,orchis,scholiast,seriatim, andzenotheca, and a record with no recognised field validates into a model whose fields are allNone. Ranroriferget()on{"foo": "bar"}and gotOrganization(id=None, names=[], ...)with no error.scholiast_async/recommendations.py:89-92andeuropaea_async/annotations.py:69return[]for a body of the wrong type. Fix once in the core:ResourceClient.get()(packages/bibliofabric/src/bibliofabric/_async/resources.py:246-249) raisesValidationError, with the response attached, when the item has no key that the model declares. Give the tworesults()callers the same guard. stavrophoraprints the Metadata Plus key.plus_tokenis a plainstr | Nonefield (packages/stavrophora/src/stavrophora/config.py:45), sorepr(settings)shows the key (ran it). This is the released-client twin of theorchisitem in section 2. Fix:Field(default=None, repr=False), aszenothecadoes forapi_token(packages/zenotheca/src/zenotheca/config.py:52). It changes no public type.-
The
dataphorapaging docs disagree, and the code is right.docs/dataphora/upstream-quirks.md:12-14says that apage[number]past 10,000 records returns 400.packages/dataphora/src/dataphora/dialect.py:10-11says that the API answers with the last reachable page again. Live on 2026-11-28,GET /dois?page[number]=11&page[size]=1000returned HTTP 200 withmeta.page10 and the same first record as page 10. Fix: correct the quirks page. -
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-Idheader 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, andpackages/rorifer/src/rorifer/config.py:16. Fix: correct the four texts. When ROR enforces the tiers, a caller without aClient-Idheader gets 50 requests per 5 minutes, and the client sends none. - The release list covers eleven names, not thirteen.
docs/roadmap/wave-1-libraries.md:45-46says to tag each Wave 1 library, and.agents/skills/bibliofabric-family-release/SKILL.md:9namesbibliofabric,aireloom,aletheca, andstavrophoraonly.archeionandprodromusneed the same pending publisher and tag pattern. Added to the checklist in section 6. - Two rows of
docs/roadmap/deferred.mdname triggers that have happened. The "Pluggable non-JSON decoder" row (:14) lists arXiv Atom, andarcheionnow ships its own parser (packages/archeion/src/archeion/atom.py). The "POST-body search dialect" row (:12) lists SPARQL endpoints with aPOSTinterface, andquidditaandopcitatosend SPARQL byPOSTtoday. 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. packages/rorifer/CHANGELOG.md:37-38names the wrong exception. It says that a body without the shape of a record raisesAPIError. Ran with a mocked body. A record with a wrong-typed field raisesValidationError, and an object with no record field returns an all-NoneOrganizationwithout an error. Only a body withoutitemsor without the object shape raisesAPIError(unwrapper.py:24-27, 66-72). Fix: reword the entry. Item 4 removes the silent case.packages/bibliofabric/CHANGELOG.md:46-47under-reportson_error. The entry listssearch()andbatch_get().iterate(),collect(),first(), andcount()accepton_errortoo (_async/resources.py:332, 392, 425, 480). Fix: extend the entry.HeaderAuthsends its header to another host on a redirect. RanBaseApiClient.request()withHeaderAuth("X-Api-Key", ...)andfollow_redirects=True. A 302 froma.exampletob.examplecarriedx-api-keytob.example, because httpx removes onlyAuthorization,Cookie, andProxy-Authorizationwhen the origin changes. The default isfollow_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 thefollow_redirectsdocstring.- Three test gaps missing from section 5.
archeionhas no offline test forsearch(ids=...), the route that the review says does not chunk.alethecaandstavrophorahave nofollow_redirectsforwarding test, likeaireloom.europaeahas no test forresult_type="idlist", a value that the live API accepts. - Twelve
europaeafixtures are loaded by no test. The tests read 8 of the 20 files inpackages/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, andbook_snippet.xml. Rows of the section 3 table citesearch_core.jsonandcitations.jsonas evidence. Fix: add parsing tests that load them, or delete them. - Two copies that the atomic-download fix can remove.
_write_body()has the same body inpackages/diurnalia/src/diurnalia/_async/journals.py:69andpackages/seriatim/src/seriatim/_async/resources.py:136. One core helper that streams to a temporary file and callsos.replace()serves both packages and thezenothecadownload, and settles the non-atomic download item of section 2 once.stavrophoraalso defines its ownSafeStrList(models/safe_types.py:15) next to the coreSafeList[str]. - The dependency floor is not exercised.
packages/bibliofabric/pyproject.toml:23declarespydantic>=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 bothcontextandcontexts, because the live body could not be fetched (see "Still open"). - hodoi widened the values inside
publisherandtitles, not the object form, which already passed. - zenotheca
item()raisesAPIErrorfor 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.jsonmember of a multi-member zip. Checked on Zenodo on 2026-11-28: the v1.58 and v1.74 zips hold a schema v1.jsonlisted first and a*_schema_v2.json; the v2.0 and v2.16 zips hold one.json. - stavrophora
data_citations.search()anditerate()takepage_size=instead ofrows=.Page.next_cursorstays a string, as the corePagecontract says. - europaea
result_typeacceptsidlist,lite, andcore.GrantsClient.iterate()now counts records, not pages, inlimit. - archeion
search(ids=...)rejects more than 100 ids withConfigurationErrorand points atbatch_get()anditerate(), which chunk. The newarcheion.queriesmodule 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()acceptsdateanddatetimeobjects and rejects dates that do not exist.details.recent()returnsPage[Preprint].publishedgainedrecent()anditerate_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
- The consolidation into one distribution (0.9.0) replaced the thirteen
pending trusted publishers and the thirteen
0.1.0changelogs of section 6.bibliofabricis the only package to publish, under its existing trusted publisher. - The live shapes of the Semantic Scholar
/snippet/searchroute are not verified, because the route answers 429 without a key. The scholiast models accept both the object and the array form. - The
live_apisuite 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. Zenododownload_file()sentAccept: application/octet-stream, which Zenodo answers with 406. Europe PMC percent-encoded the slash ofMED/23903748into one path segment, which the gateway answers with 400. The Crossref live test still passedrows=. The OpenAlex rerank test requiredmeta.rerankedto be true, but OpenAlex now returnsfalsewith arerank_reasonsuch assearch_busywhen the reranker is busy.