Skip to content

feat(orchestrator): impl LearningStore on SharedLearningStore#848

Merged
AlexMikhalev merged 1 commit intomainfrom
task/813-learning-store-impl-v2
Apr 24, 2026
Merged

feat(orchestrator): impl LearningStore on SharedLearningStore#848
AlexMikhalev merged 1 commit intomainfrom
task/813-learning-store-impl-v2

Conversation

@AlexMikhalev
Copy link
Copy Markdown
Contributor

Summary

  • Implements terraphim_types::shared_learning::LearningStore (sync trait) on orchestrator's SharedLearningStore
  • Sync-to-async bridge via tokio::task::block_in_place (types crate has no async runtime)
  • Type conversion functions: to_shared_learning(), convert_trust()
  • Corrects InMemoryLearningStore test assertions (archive_stale and auto_promote)
  • Adds features = ["kg-integration"] to orchestrator's terraphim_types dependency

Test plan

  • cargo test -p terraphim_orchestrator — 518 tests pass including test_learning_store_trait_impl
  • cargo clippy -p terraphim_orchestrator -- -D warnings — clean
  • cargo test -p terraphim_types --features kg-integration — 76 tests pass

Refs #813

Adds sync LearningStore trait impl on orchestrator's SharedLearningStore
with sync-to-async bridge via tokio::task::block_in_place. Includes type
conversion functions and corrected InMemoryLearningStore test assertions.

Refs #813
@AlexMikhalev AlexMikhalev force-pushed the task/813-learning-store-impl-v2 branch from a06e1a1 to d259062 Compare April 23, 2026 19:29
@AlexMikhalev AlexMikhalev merged commit df5bdb6 into main Apr 24, 2026
22 of 24 checks passed
@AlexMikhalev AlexMikhalev deleted the task/813-learning-store-impl-v2 branch April 24, 2026 08:10
AlexMikhalev added a commit that referenced this pull request Apr 25, 2026
Adds sync LearningStore trait impl on orchestrator's SharedLearningStore
with sync-to-async bridge via tokio::task::block_in_place. Includes type
conversion functions and corrected InMemoryLearningStore test assertions.

Refs #813
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