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

Function attested_base

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

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

()

Source from the content-addressed store, hash-verified

489
490 /// A minimal, fully attested Intent that conforms — the base for mutation.
491 fn attested_base() -> CanonicalNode {
492 let kp = KeyPair::generate();
493 let id = Identity::new("lee", &kp);
494 let node = CanonicalNode {
495 context: CONTEXT_URL.to_string(),
496 type_: NodeType::Intent.as_str().to_string(),
497 id: "urn:atomic:intent:gate-1".to_string(),
498 human_key: "GATE-1".to_string(),
499 title: "Gate base".to_string(),
500 status: "todo".to_string(),
501 kind: default_kind(),
502 priority: None,
503 view: None,
504 motivated_by: None,
505 informed_by: Vec::new(),
506 has_acceptance_criterion: Vec::new(),
507 has_task: Vec::new(),
508 has_scope_in: Vec::new(),
509 has_scope_out: Vec::new(),
510 has_constraint: Vec::new(),
511 depends_on: Vec::new(),
512 why: Some("a reason".to_string()),
513 content_hash: None,
514 attributed_to: None,
515 created_at: "2026-06-25T00:00:00Z".to_string(),
516 proof: None,
517 };
518 proof::attest(node, &id, &kp)
519 }
520
521 /// A `:::ref{edge=reviews}` targeting another intent.
522 fn reviews_ref(target: &str) -> Ref {

Calls 3

default_kindFunction · 0.85
attestFunction · 0.85
as_strMethod · 0.45