You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(secrets): address fifth-round Rust PR review feedback on #624
Three concrete issues from the latest review pass:
1. `normalize_source_path` double-escaped `"` in the JSON marker.
The helper escaped `"` -> `\"` before the path reached
`serde_json::json!`, which then escaped the backslash again. The
marker stored `"source":"agents/foo\\\"bar.md"` instead of the
canonical `"source":"agents/foo\"bar.md"` — every round-trip
carried a spurious backslash. Move the `"` -> `\"` escape into
`generate_header_comment` (the only YAML-comment surface that
needs it) and leave `normalize_source_path` returning the
canonical form for the JSON marker and the `--source` filter.
2. `is_direct_match` false-positive for same-stem in different
directories. The previous `yaml_normalized.ends_with("/{stem}")`
branch would label an unrelated pipeline `Direct` when its
`yamlFilename` happened to share the same trailing
`<stem>.lock.yml` (e.g. marker `agents/foo.md` matched
`other/agents/foo.lock.yml`). Both sides are already normalised
to repo-root-relative paths without a leading slash, so strict
equality is the correct check. Updated test name and added a
regression test for the same-stem-different-directory case.
3. Documented case-sensitivity of `--source` in CLI help and the
discovery module's doc comment so Windows users don't get silent
zero-result runs from a case mismatch.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
0 commit comments