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

Function attested_base

atomic-canonical/src/gate.rs:555–583  ·  view source on GitHub ↗

A minimal, fully attested Intent that conforms — the base for mutation.

()

Source from the content-addressed store, hash-verified

553
554 /// A minimal, fully attested Intent that conforms — the base for mutation.
555 fn attested_base() -> CanonicalNode {
556 let kp = KeyPair::generate();
557 let id = Identity::new("lee", &kp);
558 let node = CanonicalNode {
559 context: CONTEXT_URL.to_string(),
560 type_: NodeType::Intent.as_str().to_string(),
561 id: "urn:atomic:intent:gate-1".to_string(),
562 human_key: "GATE-1".to_string(),
563 title: "Gate base".to_string(),
564 status: "todo".to_string(),
565 kind: default_kind(),
566 priority: None,
567 view: None,
568 motivated_by: None,
569 informed_by: Vec::new(),
570 has_acceptance_criterion: Vec::new(),
571 has_task: Vec::new(),
572 has_scope_in: Vec::new(),
573 has_scope_out: Vec::new(),
574 has_constraint: Vec::new(),
575 depends_on: Vec::new(),
576 why: Some("a reason".to_string()),
577 content_hash: None,
578 attributed_to: None,
579 created_at: "2026-06-25T00:00:00Z".to_string(),
580 proof: None,
581 };
582 proof::attest(node, &id, &kp)
583 }
584
585 /// A `:::ref{edge=reviews}` targeting another intent.
586 fn reviews_ref(target: &str) -> Ref {

Calls 3

default_kindFunction · 0.85
attestFunction · 0.85
as_strMethod · 0.45