Skip to content

Lab: corpus diff filters (--code, --added, --tag, --also-zero) and a --line that reads only its files #99

Backlog

Description

@mareklangiewicz

Lab issue (neospector lua/myemmylabcli.lua corpus_diff at 786, hits_by_line at 766). Part of #17. From the 2026-11-26 retro.

Problem

  1. Filtering is a hand grep, and it fails silently. Reading 1472's corpus diff needed "added need-check-nil lines that neither 0.25.1 nor the fork reports". That was grep '^[^:]+: \+' | grep -v agrees | grep '=0\]'. The first pattern matched 144 of the 301 + lines (some tree/path shape broke it) and gave 12 targets instead of 27, with no error. Only the handoff's count caught it.
  2. --line costs a full diff and more. Measured 2026-11-26 on myxps (up-4c18e8ef-1126 vs nilarith-ea6fd33a-1126): --summary 6.6 s, --line=lualine.lua:127 12.7 s, --by-line --against --also (the whole listing with two tag runs) 12.5 s. Printing one line costs more than listing everything.

Want

  • Filters on the changed lines, applied before printing: --code=CODES (as probe --code), --added / --removed, --tag=agrees|differs (needs --against), --also-zero=LABEL (that run reports none of it). The 1472 read becomes --added --code=need-check-nil --tag=differs --also-zero=gate-b596edb6-1124.
  • --line reads only the named files from each run's JSON and skips pairing the rest of the corpus.

Notes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions