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

Function is_vault_path

atomic-cli/src/commands/triage/project.rs:46–49  ·  view source on GitHub ↗

First 12 base32 chars — the short id used for `change: ` KG nodes. True for paths the vault owns — intent files, attestations, audit entries. Changes confined to these are lifecycle bookkeeping, not work a task is expected to have declared.

(path: &str)

Source from the content-addressed store, hash-verified

44/// entries. Changes confined to these are lifecycle bookkeeping, not work
45/// a task is expected to have declared.
46fn is_vault_path(path: &str) -> bool {
47 let p = path.strip_prefix("./").unwrap_or(path);
48 p == ".vault" || p.starts_with(".vault/")
49}
50
51fn short12(hash_b32: &str) -> String {
52 hash_b32.chars().take(12).collect()

Callers 1

build_reportFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected