Skip to content

with reduce: a with test predicate mode, and document that layout-dependent garbage drops do not reduce by line deletion #1015

Closed

Description

@ehartford

with reduce <file> -- <cmd> {file} deletes source lines while a predicate holds. Two gaps hit on 2026-09-03:

  1. There is no way to reduce a //! test-style fixture: the failure lives in the synthesized test main plus the runner's environment, and the predicate has to be with test {file} with the runner's filter — the reducer kept the whole file.
  2. For a layout-dependent bug (a drop of uninitialized stack garbage, Release-only invalid free in parallel workspace compile: dropped Vec slot holds the drop-origin tag's address (generation divergence) #729 class) deleting lines changes the garbage, so the predicate flips arbitrarily and the reducer converges on noise. The honest tool for that class is the ownership validator as a gate (now a real fixpoint since 1203310), not the reducer; the doc should say so.

Proposed: with reduce --test <name> that runs the candidate through the runner with WITH_TEST_FILTER, and a doc note routing garbage-drop bugs to --validate-ownership / the drop-state view first.

See docs/deep-debugging-tools.md review (2026-09-03).

Activity

  1. ehartford commented on Sep 4, 2026

    @ehartford
    ContributorAuthor

    Landed in 6557737 (main, reseeded at 1929004): with reduce --test <name> runs candidates through the test runner; docs/deep-debugging-tools.md states what line deletion cannot reduce (layout-dependent garbage drops). Spec inventory lists the flag as diagnostic surface (1929004).

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions