`intents/pimo-1/intent.md` -> `intent:PIMO-1` (nested paths keep their inner segments, uppercased, matching the KG indexer).
(path: &str)
| 599 | /// `intents/pimo-1/intent.md` -> `intent:PIMO-1` (nested paths keep |
| 600 | /// their inner segments, uppercased, matching the KG indexer). |
| 601 | fn intent_path_to_node_id(path: &str) -> String { |
| 602 | let id = path |
| 603 | .strip_prefix("intents/") |
| 604 | .and_then(|s| s.strip_suffix("/intent.md")) |
| 605 | .unwrap_or(path) |
| 606 | .to_uppercase(); |
| 607 | format!("intent:{}", id) |
| 608 | } |
| 609 | |
| 610 | // Frontmatter helpers |
| 611 |