(entry: &VaultEntry)
| 667 | } |
| 668 | |
| 669 | fn is_eligible_memory(entry: &VaultEntry) -> bool { |
| 670 | if entry.entry_type != VaultEntryType::Memory { |
| 671 | return false; |
| 672 | } |
| 673 | let kind = frontmatter_kind(&entry.frontmatter_json); |
| 674 | if EXCLUDED_MEMORY_TYPES.contains(&kind.as_str()) { |
| 675 | return false; |
| 676 | } |
| 677 | frontmatter_status(&entry.frontmatter_json) |
| 678 | .is_some_and(|status| status.eq_ignore_ascii_case("active")) |
| 679 | } |
| 680 | |
| 681 | /// Identify the exact stored knowledge revision, not only its Markdown body. |
| 682 | /// Length-prefixing keeps the hash input unambiguous while preserving the raw |
no test coverage detected