()
| 730 | |
| 731 | #[test] |
| 732 | fn gate_rejects_unknown_task_status() { |
| 733 | let mut node = attested_base(); |
| 734 | // `unmet` is acceptance-criterion vocabulary, not a valid task status. |
| 735 | let mut t = task("urn:atomic:task:gate-1-1", &[]); |
| 736 | t.task_status = "unmet".to_string(); |
| 737 | node.has_task = vec![t]; |
| 738 | |
| 739 | let report = validate_intent(&node); |
| 740 | assert!(!report.conforms); |
| 741 | assert!(report.results.iter().any(|v| v.shape == "TaskShape" |
| 742 | && v.path.as_deref() == Some("taskStatus") |
| 743 | && v.message.contains("unmet"))); |
| 744 | } |
| 745 | |
| 746 | #[test] |
| 747 | fn gate_rejects_done_intent_with_open_task() { |
nothing calls this directly
no test coverage detected