Skip to content

OpenGATE integration: europepmc authors fix + retrieval CI gate - #7

Merged
nickjlamb merged 2 commits into
mainfrom
opengate-integration
Jul 30, 2026
Merged

OpenGATE integration: europepmc authors fix + retrieval CI gate#7
nickjlamb merged 2 commits into
mainfrom
opengate-integration

Conversation

@nickjlamb

Copy link
Copy Markdown
Owner

Summary

Wires PubCrawl into OpenGATE's retrieval-fidelity gate, and fixes an output inconsistency that wiring surfaced.

Changes

fix(europepmc)search_europepmc returned authors as a single joined string while search_pubmed returns string[]. formatEuropePmcResult now splits authorString into an array, so author lists are uniform across the literature tools. Type + tests updated (62 tests pass, lint + build clean). Logged under [Unreleased] → next release is v2.5.0.

ci — adds .github/workflows/opengate.yml: runs OpenGATE's retrieval scorer against the freshly-built server (points the adapter at dist/index.js, so it gates the code being released, not the published npm). Triggers on release + manual dispatch + weekly — not every PR, since it calls live NCBI / Europe PMC APIs; the offline lint → test → build gate in build.yml stays on every push.

Why the fix matters

OpenGATE's retrieval scorer asserts authors is a non-empty array of strings. On the first live run the Europe PMC case correctly failed the array invariant; after this fix it passes at fidelity 1.0 across both PubMed and Europe PMC. Verification found and fixed a real inconsistency — the point of the gate.

Pairs with opengate#1 (the adapter + gold case).

nickjlamb and others added 2 commits July 30, 2026 14:42
…ubmed)

search_europepmc returned authors as a single joined string while search_pubmed
returns string[]. Downstream consumers (and OpenGATE's retrieval scorer, which
asserts authors is a non-empty array of strings) rely on the array shape.
formatEuropePmcResult now splits authorString into an array. Surfaced by wiring
the tool into OpenGATE retrieval-fidelity checks.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Exercises the built server through OpenGATE's retrieval scorer against
hand-verified anchors, gating parse regressions. Online (hits live NCBI/Europe
PMC), so it runs on release + workflow_dispatch + weekly — not every push.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@nickjlamb
nickjlamb merged commit 43e9332 into main Jul 30, 2026
1 check passed
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