Repository navigation
Enrichment: DOI lookup warnings, cap marker, and stage deadline - #1556
Merged
Merged
Conversation
📦 Package PreviewYour package is ready to test! bun install -g nemar-cli@PR1556Version: 🤖 Updated on each push. |
neuromechanist
added a commit
that referenced
this pull request
Sep 29, 2026
Failed-lookup warnings, the lookup-stage deadline, the over-cap marker, and the summary now printing warnings. Changelog format test passes.
neuromechanist
added a commit
that referenced
this pull request
Sep 29, 2026
* docs: CHANGELOG entry for 0.10.10 Covers #1550 (Sonnet 5.5 enrichment, DOI lookups, relation guard) and #1552 (biosigio 1.2.10 case-only sidecar matches). Claims checked against the merged code. * docs: add #1556 to the 0.10.10 entry Failed-lookup warnings, the lookup-stage deadline, the over-cap marker, and the summary now printing warnings. Changelog format test passes.
This was referenced Sep 29, 2026
Merged
neuromechanist
added a commit
that referenced
this pull request
Sep 29, 2026
* fix: start no DOI lookup after the deadline fetchRegistryRecord returns failed at once once the stage deadline has passed, instead of issuing requests that reject immediately; a cached answer still counts. Header and docstring now say what is logged and what is evicted. Tested: doi-metadata offline deadline test, typecheck, Biome. * fix: cue a reindex on failed DOI lookups The DOI lookup line turns yellow when lookups failed, and says to reindex again when the backend sent no lookup warning (a backend before #1556). Tested: reindex-lines unit tests. * docs: scope the DOI lookup warning Comments no longer say a sweep retries; ADR 0075 and the 0.10.10 entry say the warning is reindex-only (push-triggered runs log instead), that a push to README.md or dataset_description.json also re-enriches, that only model-written IsDerivedFrom is gated, and where demoted_dois appears. Tested: changelog format test.
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to #1550 and #1549, from the production-safety review of
main...dev. The bulk reindex cap is tracked in #1555.What changed
backend/src/services/dataset-reindex.ts).doi_resolutioncomment no longer claims the backend retries. It now says nothing in the backend retries, and re-running the reindex is up to the operator or the sweep script.doiLookupWarnings(summary). Whenfailed > 0,runEnrichmentForDatasetappends one warning to the samewarningslist the Phase 5: Real-name DOI attribution #1255 DOI-sync skip uses, for exampledoi_resolution: 2 of 12 DOI lookup(s) got no registry answer; reindex this dataset again to label them with registry metadata.ok: true; the failure branch never carries it. The bulk route passesenr.warningsthrough unchanged.backend/src/services/doi-metadata.ts).formatResolvedDoiBlocklists each skipped DOI asnot looked up (over the per-run cap), so the model is told when a DOI's metadata was not checked.doi-registry.ts,doi-metadata.ts).resolveDoisForEnrichmenttakes a deadline signal, 25 s by default (RESOLVE_DEADLINE_MS). It is combined with each request's 10 s timeout throughAbortSignal.any.failed. Nothing throws out of enrichment.src/commands/admin.ts,src/lib/api/admin.ts).nemar admin reindexnow prints the result'swarnings(the failed-lookup warning, and the Phase 5: Real-name DOI attribution #1255 DOI-sync skip, which the CLI never showed before). It also prints a line whenskipped > 0.reindexLines, whichprintReindexLinenow calls.limit/after, as/admin/vectorize/reindex-alldoes) with the CLI looping over pages.Verification
bun run typecheck: cleanbun run lint(src/) and Biome on every changed file: cleanunit-puretier, same file classification astest.yml: 7311 pass, 26 skip, 0 fail across 417 files (local, ata9fdafee)enrich-doi-sync-skip.test.tsincludedAbortSignal.anyreplaced by the per-request timeout alone;Tests added:
doiLookupWarningsunit tests.failed, it finishes in under 1 s, and the cut-short lookups are evicted.not looked upin the prompt block.reindexLinesoutput tests, which use the backend's own warning text.Pinned source-shape tests:
enrich-doi-sync-skip.test.tsnow pinsconst warnings = [...skips,and...(warnings.length > 0 && { warnings })instead ofwarnings: skips. The intent is unchanged: the skip path returnsok: trueand carries the skips as warnings.enrich-relation-guard-wiring.test.tsadditionally pins that the lookup warning is merged on the ok branch only.Not covered by a test: the default value of the deadline. A test would need a registry that hangs for more than 25 s. The mechanism is exercised with an explicit signal, offline and live.