fix(s03): match Windows del as a command word - #548
Open
mameikagou wants to merge 1 commit into
Open
Conversation
Collaborator
|
感谢修复,del/DEL 的问题真实存在,当前方向也比直接匹配裸字符串更合理。不过该权限逻辑会被后续课程继承,目前 s04–s14、s17 仍使用旧规则,运行这些课程时问题依然存在。 请先同步最新 main,在保留 #510 子进程解码修改的基础上,将规则同步到上述课程,并增加参数化回归测试、更新 versions.json。另外当前正则会误匹配 echo del test.txt,建议补充命令位置及分隔符边界测试后再合入。 |
mameikagou
force-pushed
the
fix-s03-del-command-448
branch
from
August 25, 2026 18:48
635aaba to
44e33d0
Compare
Author
|
已按建议更新:同步最新 main 并保留 #510,将规则扩展到 s03–s14、s17,补充命令位置和分隔符边界测试(含 |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
问题
Gate 2 只识别
rm,Windows 的del/DEL可以绕过删除确认;直接匹配裸字符串又会误拦model、delimiter和echo del test.txt。修复
rm/del命令词;docs.json和versions.json。Closes #448
验证
pytest tests/test_permission_command_words.py -q --capture=no:182 passedpytest tests -q --capture=sys -k 'not test_s16_scenario_matches_the_deterministic_runtime':468 passed, 1 deselected, 100 subtests passedgit diff --checkAI 协助
本次修改使用 GPT-5.6 Luna 协助实现,并由 GPT-5.6 Sol 逐项审阅代码、规则和验证结果后提交。