pub fn superseded_record_ids(
records: &[(String, MemoryRecord)],
) -> HashSet<String>Expand description
当 knowledge (wiki 综合页) 记录处于 accepted / canonical 状态时,其 related_records
里列出的源碎片视为被综合页吸收,不应再作为独立 lifecycle candidate 返回。
同时包含显式 supersedes 字段指向的被替代记录。
Karpathy LLM Wiki 的 “compiled 页优先于源碎片” 语义在此落地。