Skip to content

Lab: corpus run of a +dirty build skips the blowup trees instead of refusing the whole run #87

Done

Description

@mareklangiewicz

Lab issue (neospector lua/myemmylabcli.lua, corpus_run / unsafe_at). Part of #17.

What happened

AGENTS.md "Measuring": judge an engine experiment with gndx emmylua build . (uncommitted changes included) → corpus run LABEL <its emmylua_check> → corpus diff BASE LABEL. A +dirty build has no commit (stamp_commit reads +dirty as none, #55), so unsafe_at treats every lab.BLOWUPS tree as unsafe, and corpus run stops before the first tree with exit 2 because mason.nvim is in the corpus. The documented path fails every time; the hint says to add --skip=mason.nvim by hand (2026-11-24, #86).

Why

corpus run fails early for an unknown commit on purpose (2026-11-21 retro 1): a blowup refused only at its turn ends an hour's run with exit 1. Failing early fixed that, but a +dirty build always lands in the failure.

Proposed (unprobed)

When the commit is unknown, drop the unsafe trees as --skip would and say so in the run's first lines. The run is then a subset run, and corpus diff counts mason as skipped, not as a refusal. Recording mason as refused instead would make corpus diff against a base where mason finished exit 2 (refused vs finished). That is the step this path exists for. A known commit without the fix (0.25.1 over mason) still records the tree as refused, which the bases need.

Activity

  1. mareklangiewicz commented on Nov 24, 2026

    @mareklangiewicz
    OwnerAuthor

    Fixed: neospector myvi 15f6589, fork docs ce4156a (both unpushed).

    • lab.blowup_plan(names, unsafe, known) replaces lab.refusals. A known commit without the fix records the tree as refused, as before (0.25.1 over mason, which the bases need). An unknown commit leaves its unsafe trees out as --skip would and prints the skip before the first tree. If that leaves no tree, it fails with exit 2.
    • --skip now builds its kept list through pick, the same path the plan uses.
    • The corpus diff SUBSET line no longer says "outside --trees" (a skipped blowup makes a subset too).
    • Driven on the real +dirty build in worktrees/main (7f7ae3a+dirty): corpus run scratch87-1124 … --trees=mason.nvim,nui.nvim printed skipping mason.nvim (OOM: …) for unknown commit: a +dirty build on 7f7ae3aa45 …, ran nui (2613 hits) and exited 0. corpus diff fix86-1124 scratch87-1124 exited 0 with 0 changed lines, the rest counted as SUBSET. --trees=mason.nvim alone exited 2 with no tree to run. The scratch label was dropped.
    • Tests: blowups/theRefusalsOfARunAreKnownUpFront (rewritten) and anUnknownCommitSkipsTheUnsafeTreesAndRunsTheRest (new; red before the change). gndx gate PASS (1276 nodes).

    Not done (option): a +dirty stamp could record at build time which blowup markers the worktree had, so a dirty build that carries the fix could run mason. That adds to the stamp format, so it waits for a need.

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