pub fn auto_compile_from_config(config_path: &Path) -> Option<Vec<String>>Expand description
Auto-compile 入口: 在 lifecycle write 之后检测新可合并集群,auto-propose 为 candidate。
行为:
- 复用
detect_knowledge_clusters(已跳过包含 knowledge 类型的集群,避免重复蒸馏) - 使用 template 合成 (无 LLM),不阻塞主路径
- 失败降级为 stderr warn,返回 None,不影响调用方
- 只在 accepted / canonical 条目 ≥ 3 时才跑聚类,避免冷启动无谓开销
返回新创建的 candidate record_id 列表 (空列表表示无集群/无需合并)。