Skip to content

docs: require hasDbXref provenance on synonyms - #2732

Merged
aleixpuigb merged 1 commit into
masterfrom
synonym-dbxref-instructions
Jun 25, 2026
Merged

aleixpuigb merged 1 commit into
masterfrom
synonym-dbxref-instructions

Conversation

@aleixpuigb

Copy link
Copy Markdown
Collaborator

Summary

When agents create new terms, synonyms found in the literature were being added without a source xref, even though definitions are always xref'd. This PR updates the agent instructions so that every synonym carries a hasDbXref provenance — the PMID/DOI (or external-ontology ID) it came from — recorded as a reified owl:Axiom on the synonym assertion, mirroring how NCBITaxon synonyms are already encoded in efo-edit.owl.

The curator now explicitly records each synonym's source; the ontologist encodes it as an axiom; synonyms with no traceable source stay bare and are flagged for the PR rather than getting an invented xref.

Changes

File Change
.claude/agents/efo-curator.md Record a source per synonym for the hasDbXref provenance; report-format updated
.claude/agents/efo-ontologist.md Synonym-provenance owl:Axiom XML pattern + precondition + verify checklist
.github/agents/EFO-curator.md Record source for every synonym (incl. discovered ones)
.github/agents/EFO-ontologist.md Synonym-provenance XML pattern + note in "Handling Synonyms"
.github/copilot-instructions.md Source required per synonym in curator output and ontologist inputs
CLAUDE.md Orchestrator policy: synonyms need a hasDbXref source

Notes

  • The synonym-xref pattern matches existing reified-axiom synonyms in the ontology (e.g. NCBITaxon:1076, NCBITaxon:10029).
  • The /review-pr reviewer (ontology-pr-reviewer) was also updated to check that new synonyms carry a source xref (🟡 IMPORTANT if missing) — but that agent and the review-pr skill live at user level (~/.claude/), outside this repo, so those changes are not in this PR.

🤖 Generated with Claude Code

…uctions

New-term synonyms must carry a source xref (PMID/DOI or external-ontology
ID) recorded as a reified owl:Axiom on the synonym assertion, just like
definitions are xref'd. The curator records each synonym's source; the
ontologist encodes it; bare synonyms without a traceable source are
flagged for the PR rather than invented.

Updates both the Claude (.claude/agents, CLAUDE.md) and Copilot
(.github/agents, copilot-instructions.md) agent specs.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
@aleixpuigb aleixpuigb self-assigned this Jun 25, 2026
@aleixpuigb
aleixpuigb merged commit ee4f1b0 into master Jun 25, 2026
1 check passed
@aleixpuigb
aleixpuigb deleted the synonym-dbxref-instructions branch June 25, 2026 10:49
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