Skip to content

Add temporary EFO IDs and automated definitive ID allocation - #2698

Merged
jamesamcl merged 8 commits into
masterfrom
copilot/implement-pull-3567-in-efo
May 15, 2026
Merged

jamesamcl merged 8 commits into
masterfrom
copilot/implement-pull-3567-in-efo

Conversation

Copilot AI commented May 15, 2026 •

Copy link
Copy Markdown
Contributor

EFO new-term creation currently uses a shared definitive EFO_092xxxx range for AI/automation, which can collide across parallel PRs. This PR applies the Uberon-style temporary-ID pattern to EFO terms so new terms can be minted safely and rewritten to definitive IDs later.

  • ID policy

    • Rename the existing EFO_092xxxx range from AI Agent to Automation
    • Add a new Temporary IDs range: EFO_099xxxx
    • This separates PR-time minting from definitive ID assignment
  • Allocation workflow

    • Add an allocate-definitive-ids Make target in src/ontology/Makefile
    • The target rewrites temporary EFO_099xxxx IDs into definitive IDs from the Automation range via kgcl:mint
  • GitHub Actions automation

    • Add .github/workflows/allocate-definitive-ids.yml
    • Supports:
      • automatic allocation on master pushes affecting src/ontology/efo-edit.owl
      • manual dispatch for branch-time replacement when needed
  • Agent guidance

    • Update internal agent instructions and quick reference docs to mint EFO_099xxxx temporary IDs instead of allocating directly from EFO_092xxxx

Example of the new allocation flow:

allocate-definitive-ids: $(SRC)
	$(ROBOT) kgcl:mint -i $(SRC) \
		--temp-id-prefix http://www.ebi.ac.uk/efo/EFO_099 \
		--id-range-name Automation \
		convert -f owl --check false -o $(SRC)

This keeps term creation unblocked in concurrent PRs while preserving a dedicated definitive EFO allocation range.

Copilot AI changed the title [WIP] Implement pull request 3567 in EFO to avoid ID collisions Add temporary EFO IDs and automated definitive ID allocation May 15, 2026
Copilot AI requested a review from jamesamcl May 15, 2026 10:54
@jamesamcl

Copy link
Copy Markdown
Member

@copilot during working on this you had problems with kgcl:mint not being available, is this fixed now? You might need to add a robot plugin?

Copilot AI commented May 15, 2026 •

Copy link
Copy Markdown
Contributor Author

@copilot during working on this you had problems with kgcl:mint not being available, is this fixed now? You might need to add a robot plugin?

Fixed in a667632. The issue was not the kgcl:mint syntax itself; it was missing ROBOT plugin setup. I updated the workflow to expose the ODK-bundled KGCL plugin via ROBOT_PLUGINS_DIRECTORY, and I also added the missing mondo_import.owl bootstrap so the mint step can actually run in CI. I validated locally that kgcl:mint is discovered with that setup and that the workflow command sequence completes.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • https://purl.obolibrary.org/obo/mondo/mondo-base.owl
    • Triggering command: /usr/bin/curl curl -IL REDACTED (http block)
    • Triggering command: /usr/bin/curl curl -L --range 0-1023 -o /tmp/mondo-head.bin -w %{http_code}\n REDACTED (http block)
  • robot.obolibrary.org
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node /home/REDACTED/work/_temp/ghcca-node/node/bin/node --enable-source-maps /home/REDACTED/work/_temp/copilot-developer-action-main/dist/index.js (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

@jamesamcl
jamesamcl marked this pull request as ready for review May 15, 2026 12:13
@jamesamcl
jamesamcl requested a review from aleixpuigb May 15, 2026 12:14
jobs:
assign_ids:
runs-on: ubuntu-latest
container: obolibrary/odkfull:v1.6

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We might need ODK before this can be implemented.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It does depend on ODK, and that is already how this workflow is set up: it runs inside obolibrary/odkfull:v1.6, which is where the KGCL plugin path comes from. No additional change was needed for that part; the current setup remains in place, and the token cleanup is in d251509.

@jamesamcl

Copy link
Copy Markdown
Member

@copilot is ID_ALLOCATION_TOKEN necessary or is there another way to authenticate it considering this runs on github

Copilot AI commented May 15, 2026

Copy link
Copy Markdown
Contributor Author

@copilot is ID_ALLOCATION_TOKEN necessary or is there another way to authenticate it considering this runs on github

No, the extra secret is not necessary here. I removed the explicit ID_ALLOCATION_TOKEN override in d251509, so the workflow now uses the default GITHUB_TOKEN from actions/checkout together with contents: write for the final push.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

3 participants