PR checks: reject the Phi family in every common spelling #939
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/945"
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?
Imported from ivall/xcl. Originally posted by vedantdadhich21 on 2026-11-24T09:21:06Z.
CONTRIBUTING.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
Imported from ivall/xcl. Originally posted by ettehn on 2026-11-24T09:24:33Z.
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).
Imported from ivall/xcl. Originally posted by vedantdadhich21 on 2026-11-24T09:28:35Z.
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.Imported from ivall/xcl. Originally posted by vedantdadhich21 on 2026-11-24T09:30:07Z.
Closing this lower-impact policy-edge fix so review attention stays on the validation bypass fixed by #952.
upstream-sync referenced this pull request2026-11-24 21:29:08 +00:00
upstream-sync referenced this pull request2026-11-25 11:07:09 +00:00
Pull request closed