A minimal, fully attested Intent that conforms — the base for mutation.
()
| 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 { |