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