You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
C2 path judge: follow-ups from #340 (non-UTF-8 names, config path spelling, rule order, wording, test gaps) #348
Non-UTF-8 file names (all three lenses; fork-ci/.../head_check.py ~77 and ~264): a PR with a file named like docs/bad\xff.md crashes the path diff with UnicodeDecodeError. It fails closed, but in shadow it now blocks a PR main would judge, and the reason is unclear. Fix: read the diff as bytes and refuse with a plain "file name is not UTF-8" reason (or judge the bytes); test.
Config path spelling (review_judge.py ~97): a config input written as ././x or ./a//b is still read by git, but the protected-path check misses it. Only the project's own workflow sets it (a setup mistake that fails open). Fix: normalise it with the same rule as lens prompt paths; test.
A lighter rule above a heavier one hides a critical folder (rule order): with **/*.md (light) above src/** (critical), src/notes.md is judged light, with no lenses. Fix: warn or refuse in the config check when a lighter rule above can shadow a heavier one, or document "critical rules first". Recommend: refuse in enforce, warn in shadow.
Old "empty = refused" wording: gate-caller.example.yml ~37 (fork file) and the required-lenses input text in .github/workflows/fork-head-gate.yml ~32 (workflow: needs a writer whose token can push workflows).
Test gaps (each a surviving mutation):
path lenses keyed by the raw name instead of the normalised one (head_check.py ~320): add a lens name with capitals;
the "the path rules would have said" summary row (head_check.py ~328) is never asserted;
the empty required-lenses refusal when the config cannot be read is only caught later by decide (head_gate.py ~595): test that step alone.
No-review wording: with no review block the "required lens without a read" message now ends "...or the review rules of the config" (head_check.py ~210); the brief asked for byte-for-byte the same text. Restore the old text when there is no block.
For C3/T2 (notes, no change now): add a non-ASCII (emoji) glob vector so a TypeScript matcher counts characters the same way; the GitHub API changed-files list stops at 3,000 and uses words, not git letters: T2 must map them and assume the heaviest weight when the list is cut.
Activity
C2 path judge: non-UTF-8 names, config path spelling, rule order, wor…
C2 path judge: non-UTF-8 names, config path spelling, rule order, wor…
C2 path judge: non-UTF-8 names, config path spelling, rule order, wor…