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

Function format_violation

libatomic/src/daemon/services_agent.rs:740–752  ·  view source on GitHub ↗

One canonical-gate violation in the message shape ordinary validation already serves.

(violation: &atomic_canonical::Violation)

Source from the content-addressed store, hash-verified

738/// One canonical-gate violation in the message shape ordinary validation
739/// already serves.
740fn format_violation(violation: &atomic_canonical::Violation) -> String {
741 format!(
742 "[{}] {}{}: {}",
743 violation.shape,
744 violation.focus_node,
745 violation
746 .path
747 .as_ref()
748 .map(|path| format!(" ({path})"))
749 .unwrap_or_default(),
750 violation.message
751 )
752}
753
754fn evidence_context_to_proto(
755 context: &intent_evidence::EvidenceContext,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected