Skip to content

RFM: v2 lexer carries no layout, so a newline before '-' merges two statements silently - #12769

Merged
briansrls merged 3 commits into
mainfrom
session/calm-fox-43-newline-rfm
Oct 2, 2026
Merged

briansrls merged 3 commits into
mainfrom
session/calm-fox-43-newline-rfm

Conversation

@gunbai-bot

@gunbai-bot gunbai-bot Bot commented Sep 30, 2026

Copy link
Copy Markdown
Contributor

Files one gunbc.recurring_failure_mode row, and nothing else.

The class: a statement followed by a line that begins with - is one binary expression in v2 (x then -1 becomes x - 1). The seed refuses that source as ambiguous (v1.compiler.parse is_ambiguous_prefix_infix_newline_boundary). So the parsers disagree, and v2's reading is silently different code.

Why it's a lexer-model gap, not a production fix: v2.std.compilers.lexing Token carries no layout, and the dag lex rules emit no newline token. No grammar production can tell x - 1 from x newline -1, and a parser special case would be a second, positional authority for a fact the token stream doesn't carry.

Scope: only operators that can also start an expression (today -, the seed's operator_continuation_dual_role_excluded_symbols). Infix-only operators can't begin a statement, so they aren't this class.

Rung: silent wrongness. The ceiling is structurally guaranteed, and the trigger is that the token stream carries layout and the grammar refuses a newline-preceded dual-role operator at an operand boundary, with a typed ParseRefusalReason.

This row gates the block-headed left-operand repair (quiet-gull-780's lane): that change would add block statements to the population, so it waits on this row's trigger.

🤖 Generated with Claude Code

…ator merges silently

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
gunbc-ci-auto-heal and others added 2 commits October 1, 2026 15:01
…12881); enrolled evidence named

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@briansrls
briansrls added this pull request to the merge queue Oct 2, 2026
Merged via the queue into main with commit 74dac27 Oct 2, 2026
4 checks passed
@briansrls
briansrls deleted the session/calm-fox-43-newline-rfm branch October 2, 2026 03:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant