Skip to content

Preserve repo-relative Windows scenario paths#12

Merged
RMANOV merged 1 commit into
mainfrom
fix-windows-public-path-order
Apr 25, 2026
Merged

Preserve repo-relative Windows scenario paths#12
RMANOV merged 1 commit into
mainfrom
fix-windows-public-path-order

Conversation

@RMANOV
Copy link
Copy Markdown
Owner

@RMANOV RMANOV commented Apr 25, 2026

This follow-up addresses the PR #11 Copilot/Codex review finding.\n\nChanges:\n- keep in-repo scenario paths repo-relative before applying Windows external-path redaction\n- retain external Windows/UNC redaction for public-safe reports\n- add regression coverage for Windows-style repo-relative paths\n\nValidation:\n- python scripts/verify_public_surface.py -> passed\n- pytest -q python/tests/test_strix_scenario_contract.py -> 11 passed\n- pytest -q -> 142 passed\n- cargo test -p strix-optimizer doctrine_profile_accepts_neutral_aliases --lib -> passed\n- cargo check -p strix-python -> passed

Copilot AI review requested due to automatic review settings April 25, 2026 08:30
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adjusts scenario-path sanitization to preserve repo-relative paths on Windows while still redacting truly external Windows/UNC paths in public-safe reports.

Changes:

  • Prioritize repo-relative detection in public_path() before applying Windows drive/UNC redaction.
  • Add regression test ensuring Windows-style paths under ROOT stay repo-relative in reports.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
scripts/strix_scenario_contract.py Reorders public_path() logic so in-repo Windows paths remain repo-relative before external redaction logic runs.
python/tests/test_strix_scenario_contract.py Adds coverage asserting repo-relative behavior for Windows-style paths when ROOT is Windows-flavored.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@RMANOV RMANOV merged commit bddebd6 into main Apr 25, 2026
14 checks passed
@RMANOV RMANOV deleted the fix-windows-public-path-order branch April 25, 2026 08:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants