Skip to content

Enrichment: review follow-ups for 0.10.10 - #1558

Merged
neuromechanist merged 3 commits into
devfrom
fix/enrich-review-nits
Sep 29, 2026
Merged

neuromechanist merged 3 commits into
devfrom
fix/enrich-review-nits

Conversation

@neuromechanist

Copy link
Copy Markdown
Contributor

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

  • No lookup starts after the deadline (doi-registry.ts). fetchRegistryRecord returns failed at 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.
  • The CLI cues a reindex on failed lookups (src/commands/admin.ts). The DOI lookup line is yellow when failed > 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.
  • Comments: they no longer say a sweep retries (doi-registry.ts header, doi-metadata.ts, enrich-dataset.ts). The runbook reference names Enrichment: Sonnet 5.5 and stricter data-paper relation typing #1550. The fetchRegistryRecord docstring says what is logged and what is evicted.
  • ADR 0075 states that the lookup warning is reindex-only. A push-triggered enrichment (/webhooks/llm-enrich) logs failed lookups to the Worker log and raises no warning. It also notes that a push to README.md or dataset_description.json re-enriches too.
  • CHANGELOG 0.10.10:
    • only model-written or promoted IsDerivedFrom is gated, and existing entries are untouched;
    • re-enrichment also happens on such a push;
    • the warning is reindex-only;
    • demoted_dois and self_dois_dropped are 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: clean
  • test/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 pass
  • backend/test/enrich-doi-sync-skip.test.ts and backend/test/enrich-relation-guard-wiring.test.ts: 17 pass

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.
@github-actions

Copy link
Copy Markdown

📦 Package Preview

Your package is ready to test!

bun install -g nemar-cli@PR1558

Version: 0.10.10-PR1558.29c6c9e
Commit: 29c6c9e


🤖 Updated on each push.

@neuromechanist
neuromechanist merged commit 9cd78c8 into dev Sep 29, 2026
12 checks passed
@neuromechanist
neuromechanist deleted the fix/enrich-review-nits branch September 29, 2026 18:17
@neuromechanist neuromechanist mentioned this pull request Sep 29, 2026

This branch was previously deployed

1 inactive deployment
npm — 29c6c9e2 Deployed Sep 29, 2026 by neuromechanist via publish #2981
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant