PR checks: reject the Phi family in every common spelling #945
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!945
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/945/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@vedantdadhich21 on GitHub · 2026-11-24 09:21 UTC · original
vedantdadhich21:scripts/ban-phi-family→main· +26 −1 · 2 files · 1 commits · closed without mergingCONTRIBUTING.mdbans Phi and its distills, but the PR checker only matchedPhiwhen it was followed immediately by an optional hyphen and digits. A description namingPhi,Phi 4, orPHI 3.5therefore passed the model check.What is in it
scripts/pr_check.py: match the Phi family name itself without changing the existing compact-name behavior of the other banned families.scripts/test_pr_check.py: cover common Phi spellings, compact banned-family names, aPhilipnegative control, and allowed-model controls.Tested
a1b5ecf47690767c4546fe362e4159bb7b95dca0.python3 -B -m unittest discover -s scripts -p 'test_pr_check.py' -v: 7 passed, 0 failed.Phi,Phi 4,Phi4, andPHI 3.5.Qwen3,Llama3, andGemma2; the final revision keeps those rejected and is covered by regression tests.python3 -B -m py_compile scripts/pr_check.py scripts/test_pr_check.py: passed.git diff --check origin/main...HEAD: passed.Regression run
crates/xcl/srcis untouched.Not tested
PR checksworkflow itself.AI use
@ettehn on GitHub · 2026-11-24 09:24 UTC · original
On Windows at
afd1594, four regression cases fail:Phi4,Qwen3,Llama3, andGemma2. The new trailing word boundary applies to every alternative, so it also changes existing behavior outside the Phi family.Keeping the original family alternatives and limiting the new condition to
phi(?=\b|\d)fixed all four locally. All six unittest methods then passed, including the existing spaced and hyphenated cases and aPhilipnegative control.Verification assisted by OpenAI Codex (GPT-6.2 Astra).
@vedantdadhich21 on GitHub · 2026-11-24 09:28 UTC · original
Thanks for catching that. Fixed in
a1b5ecf: the original family alternatives are unchanged, and only Phi gets the new boundary/digit lookahead. Added regression cases for Qwen3, Llama3, Gemma2, Phi4, and a Philip negative control. All 7 unittest methods pass on macOS.@vedantdadhich21 on GitHub · 2026-11-24 09:30 UTC · original
Closing this lower-impact policy-edge fix so review attention stays on the validation bypass fixed by #952.
Pull request closed