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

Function attested_base

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

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

()

Source from the content-addressed store, hash-verified

504
505 /// A minimal, fully attested Intent that conforms — the base for mutation.
506 fn attested_base() -> CanonicalNode {
507 let kp = KeyPair::generate();
508 let id = Identity::new("lee", &kp);
509 let node = CanonicalNode {
510 context: CONTEXT_URL.to_string(),
511 type_: NodeType::Intent.as_str().to_string(),
512 id: "urn:atomic:intent:gate-1".to_string(),
513 human_key: "GATE-1".to_string(),
514 title: "Gate base".to_string(),
515 status: "todo".to_string(),
516 kind: default_kind(),
517 priority: None,
518 view: None,
519 motivated_by: None,
520 informed_by: Vec::new(),
521 has_acceptance_criterion: Vec::new(),
522 has_task: Vec::new(),
523 has_scope_in: Vec::new(),
524 has_scope_out: Vec::new(),
525 has_constraint: Vec::new(),
526 depends_on: Vec::new(),
527 why: Some("a reason".to_string()),
528 content_hash: None,
529 attributed_to: None,
530 created_at: "2026-06-25T00:00:00Z".to_string(),
531 proof: None,
532 };
533 proof::attest(node, &id, &kp)
534 }
535
536 /// A `:::ref{edge=reviews}` targeting another intent.
537 fn reviews_ref(target: &str) -> Ref {

Calls 3

default_kindFunction · 0.85
attestFunction · 0.85
as_strMethod · 0.45