MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / is_eligible_memory

Function is_eligible_memory

libatomic/src/daemon/services_agent.rs:302–312  ·  view source on GitHub ↗
(entry: &VaultEntry)

Source from the content-addressed store, hash-verified

300 }
301
302 fn is_eligible_memory(entry: &VaultEntry) -> bool {
303 if entry.entry_type != VaultEntryType::Memory {
304 return false;
305 }
306 let kind = frontmatter_kind(&entry.frontmatter_json);
307 if EXCLUDED_MEMORY_TYPES.contains(&kind.as_str()) {
308 return false;
309 }
310 frontmatter_status(&entry.frontmatter_json)
311 .is_some_and(|status| status.eq_ignore_ascii_case("active"))
312 }
313
314 /// Identify the exact stored Vault revision (entry type, frontmatter,
315 /// and body — not only the body content hash).

Callers 3

gather_candidatesFunction · 0.70
scan_memory_bodiesFunction · 0.70
resolve_and_rankFunction · 0.70

Calls 4

frontmatter_kindFunction · 0.70
frontmatter_statusFunction · 0.70
containsMethod · 0.45
as_strMethod · 0.45

Tested by

no test coverage detected