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

Function attestation_vault_path

atomic-cli/src/commands/memory/bridge.rs:153–158  ·  view source on GitHub ↗

The tracked-vault path for a memory's attestation: `attestations/memory/ /attested.md`. NOTE the `attestations/memory/` sub-namespace: a memory id can therefore never collide with an intent human key at `attestations/ /attested.md`. `infer_entry_type` maps any `attestations/` prefix to `Attestation`, so this needs no atomic-repository change.

(id_or_path: &str)

Source from the content-addressed store, hash-verified

151/// `infer_entry_type` maps any `attestations/` prefix to `Attestation`, so this
152/// needs no atomic-repository change.
153pub fn attestation_vault_path(id_or_path: &str) -> String {
154 format!(
155 "attestations/memory/{}/attested.md",
156 sanitize_id(&memory_id(id_or_path))
157 )
158}
159
160/// The directory that holds a memory's canonical sidecar artifacts:
161/// `<dot_dir>/canonical/memory/<sanitized-id>/`.

Callers 7

load_attestationFunction · 0.70
write_trackedFunction · 0.70
runMethod · 0.70
write_trackedFunction · 0.70

Calls

no outgoing calls