Skip to content

Add ontology type mappings, remediation API, and graphiti-core upgrade#20

Merged
pformoso-deus-ai merged 2 commits intomainfrom
feature/ontology-type-mapping-remediation
Feb 17, 2026
Merged

Add ontology type mappings, remediation API, and graphiti-core upgrade#20
pformoso-deus-ai merged 2 commits intomainfrom
feature/ontology-type-mapping-remediation

Conversation

@pformoso-deus-ai
Copy link
Collaborator

@pformoso-deus-ai pformoso-deus-ai commented Feb 17, 2026

Summary

  • Ontology type mappings: Add FoodComponent, Genus, and ModelOrganism type mappings to ODINMedical registry with aliases (Nutrient, Vitamin, DietarySubstance → food_component; Genus, ModelOrganism → organism)
  • Remediation improvements: Add new remediation queries (food_component, genus, model_organism, unknown_type flagging, orphan source classification, type consistency normalization), extract logic into RemediationService, and add REST API endpoints (/api/ontology/remediation/*)
  • graphiti-core upgrade: Pin to >=0.27.1,<0.28 fixing FalkorDB fulltext search group_id syntax errors
  • Episodic memory: Add session-scoped episode search support in EpisodicMemoryService
  • OpenSpec: Archive completed changes, sync delta specs to main specs, add new specs (ontology-type-completeness, episodic-group-id, conversation-node-classification)

Test plan

  • Verify uv run pytest tests/domain/test_odin_medical_types.py -v passes (type alias resolution, registry config)
  • Verify uv run pytest tests/application/test_remediation_service.py -v passes (remediation queries, service logic)
  • Verify uv run pytest tests/application/test_remediation_router.py -v passes (API endpoint tests)
  • Verify uv run pytest tests/ -v full suite passes
  • Confirm graphiti-core imports resolve without errors

🤖 Generated with Claude Code

pformoso-deus-ai and others added 2 commits February 17, 2026 08:43
…d remediation improvements

Extends the ODIN medical ontology with missing type mappings identified by
the quality scan: FoodComponent as a new canonical type, Genus/ModelOrganism
aliased to organism, and Unknown flagged for review. Adds orphan node source
classification (episodic/knowledge/unclassified) and type consistency
normalization as remediation steps.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…hanges, sync specs

- Archive both completed OpenSpec changes with all artifacts and tasks done
- Sync delta specs to main: updated kg-remediation-api and medical-schema-compliance,
  added new ontology-type-completeness and episodic-group-id specs
- Add remediation router, service tests, and episodic memory improvements
- Upgrade graphiti-core to >=0.27.1,<0.28 for FalkorDB compatibility

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@pformoso-deus-ai pformoso-deus-ai changed the title Add ontology type mappings and remediation improvements Add ontology type mappings, remediation API, and graphiti-core upgrade Feb 17, 2026
@pformoso-deus-ai pformoso-deus-ai merged commit 3f98c13 into main Feb 17, 2026
3 of 4 checks 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