The sanitized id used for sidecar/vault attestation paths — mirrors the CLI bridge's sanitizer (ASCII alphanumerics, `-`, `_`; everything else becomes `_`).
(id: &str)
| 685 | /// CLI bridge's sanitizer (ASCII alphanumerics, `-`, `_`; everything else |
| 686 | /// becomes `_`). |
| 687 | fn sanitize_id(id: &str) -> String { |
| 688 | id.chars() |
| 689 | .map(|c| { |
| 690 | if c.is_ascii_alphanumeric() || c == '-' || c == '_' { |
| 691 | c |
| 692 | } else { |
| 693 | '_' |
| 694 | } |
| 695 | }) |
| 696 | .collect() |
| 697 | } |
| 698 | |
| 699 | /// The normalized intent key (repo resolver first, uppercased fallback) — |
| 700 | /// mirrors the CLI bridge's `normalized_id`. |
no test coverage detected