Repository navigation
Enrichment: review follow-ups for 0.10.10 - #1558
Merged
Merged
Conversation
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.
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.
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.
📦 Package PreviewYour package is ready to test! bun install -g nemar-cli@PR1558Version: 🤖 Updated on each push. |
Merged
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.
Findings from the independent review of #1556 and the 0.10.10 CHANGELOG (#1554), fixed before the release (#1557). The review was GO with no blockers or important findings; these are its suggestions and nits.
Changes
doi-registry.ts).fetchRegistryRecordreturnsfailedat once once the stage deadline has passed, instead of issuing two requests per remaining DOI that reject immediately. A cached answer still counts after the deadline, so the check sits after the cache lookup.src/commands/admin.ts). The DOI lookup line is yellow whenfailed > 0, and says(reindex this dataset again)when the backend sent no lookup warning, which is what a backend from before Enrichment: DOI lookup warnings, cap marker, and stage deadline #1556 does.doi-registry.tsheader,doi-metadata.ts,enrich-dataset.ts). The runbook reference names Enrichment: Sonnet 5.5 and stricter data-paper relation typing #1550. ThefetchRegistryRecorddocstring says what is logged and what is evicted./webhooks/llm-enrich) logs failed lookups to the Worker log and raises no warning. It also notes that a push toREADME.mdordataset_description.jsonre-enriches too.IsDerivedFromis gated, and existing entries are untouched;demoted_doisandself_dois_droppedare in the enrichment service's response, not the reindex response.Not changed: the webhook path raising its own warning (the review offered documenting the scope as the alternative, taken here). The CHANGELOG date stays 2026-09-29; the tag is published today.
Verification
bun run typecheck,bun run lint, and Biome on the changed backend files: cleantest/reindex-lines.unit.test.ts(new case for a backend without the warning),test/doi-metadata.test.ts(including the offline deadline test, which still sees the cached DOI resolve and the rest fail),test/dataset-reindex.test.ts,test/changelog-format.unit.test.ts: 53 passbackend/test/enrich-doi-sync-skip.test.tsandbackend/test/enrich-relation-guard-wiring.test.ts: 17 pass