-
Notifications
You must be signed in to change notification settings - Fork 51
fix(config): refuse Windows device names and trim aliases across the path-guard family (#480, #637) #725
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
fix(config): refuse Windows device names and trim aliases across the path-guard family (#480, #637) #725
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
98ad121
feat(platform): add names_win32_alias, the determinism member of the …
4d6241f
fix(config): refuse Windows device names and trim aliases in policy a…
4d7bc02
fix(plugins): refuse Windows device names and trim aliases in manifes…
3c9b085
fix(runs): restore guard-family parity in _is_path_escape and contain…
5a784a7
fix(sweep): reject a bundle name that is not a legal path segment (#637)
84f2f66
fix(sweep): gate the decision-option bundle_name on the same rule (#637)
a088db2
docs(guards): record the is_absolute anchoring rule and the Win32 pat…
d475aaa
fix(guards): close the round-1 review gaps in the path-guard family a…
c9e3886
test(unity): grade the Assets/... canary through the payload file (#480)
8b4e45d
fix(guards): validate the authored [python] module and gate pre-answe…
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When
BMAD_LOOP_UNITY_SCENE_GUARD_DIRitself ends in a space, such asAssets/BmadLoop/Editor, line 230 strips that space before this new predicate sees the value. The seeder therefore installs intoEditorand returns success rather than refusing the authored trailing-space component as the new validation contract and error message promise; retain the raw value for validation and only use trimming to detect an empty setting.AGENTS.md reference: AGENTS.md:L81-L81
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in d475aaa.
.strip()now only decides whether the env var is set —guard_dir = raw if raw.strip() else _DEFAULT_GUARD_DIR— so validation sees the authored value andAssets/BmadLoop/Editoris refused like at every other site instead of silently installing intoEditor. A whitespace-only value still falls back to the default (unset semantics, unchanged). The behavioral test gained that row plusAssets/...; ablation restoring the old strip-before-validate composition reddens the trailing-space row alone. Stale comments referencing the old strip (the root-naming test's and the clone's_names_tree_rootdocstring) updated.