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

Function attestation_vault_path

atomic-cli/src/commands/memory/bridge.rs:140–145  ·  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

138/// `infer_entry_type` maps any `attestations/` prefix to `Attestation`, so this
139/// needs no atomic-repository change.
140pub fn attestation_vault_path(id_or_path: &str) -> String {
141 format!(
142 "attestations/memory/{}/attested.md",
143 sanitize_id(&memory_id(id_or_path))
144 )
145}
146
147/// The directory that holds a memory's canonical sidecar artifacts:
148/// `<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