Commit 9c223cd
endolinbot
pre-push-gates: no-non-ascii-in-source probe (kriskowal #417 directive)
Per the maintainer's review on endojs/endo-but-for-bots#417 (inline
comment r3353301111, 2026-06-04T04:21Z):
Avoid non-ASCII. This is in the guide. Dispatch a gardener to
revise the driver to have deterministic automation to keep source
generally in the ASCII range.
The fixer (bb2325) that addressed the four section-sign instances on
the PR forwarded the gardener-level ask via journal entry
2026-06-04T04:40Z message-fixer-bb2325. This commit lands the
deterministic gate.
skills/pre-push-gates/probes/no-non-ascii-in-source.sh (new): scans
newly-added lines of packages/<pkg>/src/ and packages/<pkg>/lib/
.js/.ts/.mjs/.cjs files for non-ASCII characters. Reports each finding
as file:line: non-ASCII U+XXXX ('char') and exits 1 if any found.
Path exclusions: anything not under src/ or lib/ (so test/ and
fixtures/ are naturally exempt); per-file opt-out via a
/* ascii-exempt */ marker on a line within the first 5 (for the rare
case of a UTF-8-round-trip test living under src/).
Added-lines precision: the probe uses git diff -U0 + perl to track
post-image line numbers and check only the + lines. Pre-existing
non-ASCII in unchanged code does not surface; only new introductions
fail.
skills/pre-push-gates/SKILL.md: probe-table row added with description
and provenance. Notes-from-the-field row for 2026-06-04 cites the
precipitating PR comment and the fixer message.
Composition: the probe runs alongside the existing seven (ascii-banners,
pull-citations, inline-import-jsdoc, test-package-no-main,
security-md-hash-uniform, filename-no-stutter, sentence-per-line-md)
as stage 3 of the pre-push gate. Builder and fixer dispatches that run
`pre-push-gates.sh` before pushing now catch this class at push time
rather than at maintainer review.1 parent 5558874 commit 9c223cd
2 files changed
Lines changed: 66 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| 78 | + | |
78 | 79 | | |
79 | 80 | | |
80 | 81 | | |
| |||
145 | 146 | | |
146 | 147 | | |
147 | 148 | | |
| 149 | + | |
| 150 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
0 commit comments