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
Session Handoff [auto-2163]: Report a Python File the Prose Gate Cannot Parse, for #2163 #2795
Fix Report a Python File the Prose Gate Cannot Parse Instead of Skipping It #2163 in .github/actions/prose-gate/prose_lint.py. When the interpreter running the gate cannot parse a Python file, the docstring extraction (the ast.parse site returning {}) and the comment tokenizer (the tokenize site returning None, whose caller falls back to regex extraction) currently skip their checks silently, and the run reads as a clean pass. Done looks like the issue's own Done: the file is reported rather than skipped, or the gate's scope line states that it skipped that file's AST-based checks, so a pass under a mismatched interpreter is distinguishable from a clean one. Tests feed a constructed file holding syntax the running interpreter cannot parse, such as a PEP 695 type statement above a function with a docstring under Python 3.11, and assert the report or the scope-line statement. Revert the fix once to prove each test fails without it.
Drive the pull request to develop with Closes on promotion: #2163 in its body.
External blockers
None known.
Internal dependencies
None. Step 2 follows step 1.
State
No branch, worktree, or pull request exists for this lane yet. The worker creates feature/auto-2163 in its own worktree based on develop.
The parked decision queue
None for this lane.
What the last round did
Nothing yet. This is the lane's first link, created by the unattended picker from the open backlog.
Activity
ptr727 commentedon Oct 11, 2026
Lane closed out, scope develop.
.pyfile the running interpreter cannot parse when a parser-based rule ran, so a pass under an older interpreter is distinguishable from a clean one. Its body carriesCloses on promotion: #2163, so Report a Python File the Prose Gate Cannot Parse Instead of Skipping It #2163 stays open until develop is promoted.bug,pre-existing,prose: Report a File the Prose Gate Cannot Decode Instead of Skipping It #2796 (a file whose bytes are not UTF-8 is skipped in silence) and Read a First-Line Comment After a Byte Order Mark as Leading in Every Language #2798 (a byte order mark hides a first-line comment in the languages other than Python).