Skip to content

A moved arm left its guard behind - #2790

Merged
gHashTag merged 1 commit into
masterfrom
w702-show-regression
Aug 29, 2026
Merged

A moved arm left its guard behind#2790
gHashTag merged 1 commit into
masterfrom
w702-show-regression

Conversation

@gHashTag

Copy link
Copy Markdown
Owner

Refs #2754

parse-complete --show <spec> is documented to print the tokens top-level drop-recovery discarded, grouped by line. Since #2781 it printed the fallback view instead, and the token view was unreachable.

The --fallbacks --show arm was moved above the --show handler so it could win when both flags are given, and its if fallbacks guard was left at the old site.

Nothing failed. Both outputs are plausible, both name the file, both print line numbers. The flag that selects between them was simply no longer read.

parse-complete --show <spec>              -> 159 token(s) DISCARDED across 13 line(s)
parse-complete --fallbacks --show <spec>  -> 11 whole-block fallback(s)

Found by using --show for something else and getting the wrong picture. There is no test in this CLI that a flag still selects what it names — which is how a guard gets dropped in a refactor and nothing notices.

🤖 Generated with Claude Code

`parse-complete --show <spec>` is documented to print the tokens top-level
drop-recovery discarded, grouped by line. Since #2781 it printed the FALLBACK
view instead, and the token view was unreachable.

The `--fallbacks --show` arm was moved above the `--show` handler so it could
win when both flags are given, and its `if fallbacks` guard was left at the old
site. Nothing failed: both outputs are plausible, both name the file, both print
line numbers. The flag that selects between them was simply no longer read.

Found by using `--show` for something else and getting the wrong picture. There
is no test in this CLI that a flag still selects what it names -- which is how a
guard can be dropped in a refactor and nothing notices.

    parse-complete --show <spec>              -> 159 token(s) DISCARDED
    parse-complete --fallbacks --show <spec>  -> 11 whole-block fallback(s)

Refs #2754

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown
Contributor

📓 NotebookLM Notebook linked to this PR

This notebook contains session context, decisions, and artifacts for this work.

@github-actions

Copy link
Copy Markdown
Contributor

PR Dashboard

Generated at: 2026-08-29 07:46:58 UTC

Summary

Status Count
Total Open PRs 9
PRs with Failing Checks 7
PRs with All Checks Green 2
READY 1
FAILING 7
PENDING 0

Seal Status

  • ⚠️ STALE -- sha256(compiler.rs)=d25ac0cc159e != manifest seal=87e5cbd3ad94.
    The committed NMSE numbers were certified against an older compiler.rs.
    Run scripts/reseal-check.sh locally for the two-step reseal command (advisory; not a merge gate).

@gHashTag
gHashTag merged commit 4378861 into master Aug 29, 2026
33 checks passed
@gHashTag
gHashTag deleted the w702-show-regression branch August 29, 2026 08:06
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