Skip to main content

refresh_gaps_cache

Function refresh_gaps_cache 

Source
pub async fn refresh_gaps_cache(state: &AppState, handle: &Arc<PalaceHandle>)
Expand description

Recompute the gaps for handle and write them to the registry cache.

Why: the dream-run path needs this post-cycle bookkeeping; pulling it out of web.rs keeps the dream code on one side of the wall. What: calls knowledge_gaps(), optionally enriches via enrich_gap_exploration, stores on state.registry. Logs gap count. Test: indirectly via kg_gaps_endpoint_returns_cached_gaps.