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

Function attested_node

atomic-cli/src/commands/memory/list.rs:286–291  ·  view source on GitHub ↗

The node whose fields drive the display columns (kind/status/about) — only a FRESH attestation. A Stale attestation is treated like None here so those columns come from the CURRENT source (via `bridge::lift`), matching `memory show`; the drift is still surfaced by the `attested` column ("stale"). (The `verifies` column reads the full `Attestation` separately.)

(attested: &bridge::Attestation)

Source from the content-addressed store, hash-verified

284/// `memory show`; the drift is still surfaced by the `attested` column ("stale").
285/// (The `verifies` column reads the full `Attestation` separately.)
286fn attested_node(attested: &bridge::Attestation) -> Option<&MemoryNode> {
287 match attested {
288 bridge::Attestation::Fresh(n) => Some(n),
289 bridge::Attestation::Stale(_) | bridge::Attestation::None => None,
290 }
291}
292
293/// Classify a loaded attestation into the `attested` column token.
294fn classify(attested: &bridge::Attestation) -> Attested {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected