Skip to content

rust: a changed impl Arbitrary body (test-input generator) reads no_static_path / return_value as if it were product behavior #11545

Closed

Description

@EffortlessSteven

Parent: #10745. Related: #11293, #10758.

Observed

ripr 0.11.0 build 5adad7f, toy crate, ripr check --base HEAD~1 --format json: changing the body of impl quickcheck::Arbitrary for Pair in src/ (e.g. Pair(a, a.wrapping_add(2))) -> no_static_path, probe family return_value.

Expected

A generator change alters test stimulus, not product behavior. Report it as a test-support generator / stimulus change (static_unknown with a stated reason), not "no test reaches this". Needs a test-support role for impl Arbitrary subjects (domain role, not a renderer special case). derive(Arbitrary) in product src was not tried.

Proof

Static only. Corpus case: arbitrary_impl_change_stimulus_not_product.

Activity

  1. EffortlessSteven commented on Nov 4, 2026

    @EffortlessSteven
    MemberAuthor

    PR #12477 landed as e32323aabce8d2a467d1606412f442bf4779fd8a (tree 1ea540b8a606850472f5b3cbe9b76815126c8866). It introduces a domain source role for verified QuickCheck Arbitrary generator methods and reports supported changed interior lines as static_unknown with a stimulus explanation, without executable-test, reach, oracle or canonical product-gap credit. The landed tests include the generator controls and JSON/human pipeline controls documented in the PR.

    Acceptance remains partial: this slice intentionally admits only conventional single-package roots with a sole mandatory verified registry QuickCheck dependency and unambiguous source/configuration. Broader aliases, modules, derives and other unsupported identities retain their existing analysis. The specifically named corpus case arbitrary_impl_change_stimulus_not_product is not present on main; the landed unit and rendered tests are not that corpus row. Keep this issue open for the remaining scope and corpus disposition. The broader parent #10745 and release readiness are not completed by this merge.

  2. EffortlessSteven commented on Nov 8, 2026

    @EffortlessSteven
    MemberAuthor

    Status check on main at 2ac0c46: keeping this open.

    #12477 (e32323a) delivered the Arbitrary generator source role (RIPR-SPEC-0153 ~169-181). Two parts of the acceptance are still missing:

    1. The named corpus case arbitrary_impl_change_stimulus_not_product is absent from fixtures and metrics on main.
    2. derive(Arbitrary), aliases and modules are not covered.

    Item 1 is the small, next claimable slice.


    Generated by Claude Code

  3. EffortlessSteven commented on Nov 8, 2026

    @EffortlessSteven
    MemberAuthor

    Claiming slice 1 only: add the named verdict-corpus case arbitrary_impl_change_stimulus_not_product (authored subject with a sole verified registry quickcheck dependency, changed impl quickcheck::Arbitrary body). The row will pin what ripr check emits on current main (static_unknown with the stimulus explanation, per RIPR-SPEC-0153); if the observed output differs from the issue's expected outcome I will stop and report instead of pinning it. derive(Arbitrary), aliases and modules (slice 2) are not part of this claim. No other open or closed PR adds this case (searched PRs mentioning #11545).


    Generated by Claude Code

  4. EffortlessSteven commented on Nov 8, 2026

    @EffortlessSteven
    MemberAuthor

    Slice 1 landed in #13779 (squash 14d7fff). The corpus row arbitrary_impl_change_stimulus_not_product pins a change confined to a hand-written QuickCheck Arbitrary impl as stimulus, not product (limited / static_unknown / abstained). It uses the subject authored-quickcheck-arbitrary-stimulus.

    Still open on this issue: #[derive(Arbitrary)], re-exported and aliased generator types, and generators defined in other modules. The issue stays open for those.


    Generated by Claude Code

  5. EffortlessSteven commented on Nov 8, 2026

    @EffortlessSteven
    MemberAuthor

    Claiming the remaining slices:

    • generator impls spelled through an alias, re-export or path (quickcheck, proptest, arbitrary);
    • generators defined in other modules;
    • a documented decision for #[derive(Arbitrary)].

    Branch claude/rust-11545-arbitrary-shapes.


    Generated by Claude Code

  6. EffortlessSteven commented on Nov 11, 2026

    @EffortlessSteven
    MemberAuthor

    Claim of 2026-11-08T19:37Z (remaining slices, branch claude/rust-11545-arbitrary-shapes) is stale: the last commit on the branch is from 2026-11-08T22:58Z, its PR #13885 was last updated 2026-11-08T23:13Z, and nothing from it has merged to main (checked against cb95c5b0).

    The issue is free to take. Preserved work: PR #13885 ("Read imported, aliased, proptest, arbitrary and cross-module Arbitrary generators as test stimulus"), branch claude/rust-11545-arbitrary-shapes at 6034d60956255e61de41409b9fb7e608c78b7bf3. The PR is open and idle, so it is eligible to be joined and finished rather than restarted.

    Landed and residual are unchanged from the 2026-11-08 record above: #12477 (e32323aa) and #13779 (14d7fff8) are on main; aliased, re-exported and cross-module generators and the #[derive(Arbitrary)] decision remain open.


    Generated by Claude Code

  7. EffortlessSteven commented on Nov 13, 2026

    @EffortlessSteven
    MemberAuthor

    Correction after a discriminating single-case experiment for the earlier corpus observation (#14586): on source 2120cb0, the activation script's explicit RUSTC caused generator-role refusal. Same built analyzer, same materialized subject/diff, fresh separate caches: with RUSTC set, classification infection_unknown; removing only RUSTC restores static_unknown and the QuickCheck stimulus explanation. The plain-compiler guard intentionally refuses nonempty RUSTC. No product defect or golden repair is established by the original all-corpus failure; no golden was changed.

    The earlier full baseline evaluated all1711 cases and failed only this row's changed_since_labeling flag; its underlying verdict remained limited while the classification changed. Those logs are retained as environment-bound evidence, not a current production regression. Repeating full corpus comparison with the pinned1.95 toolchain selected through PATH/Rustup and no explicit RUSTC. Offline cargo metadata separately cannot find quickcheck in the selected home, but that alone did not prevent the no-RUSTC analyzer's expected output; its identity-resolution mechanism is not inferred from that metadata failure.

    Existing #11545/#13885 ownership and prior acceptance remain unchanged. This comment corrects the original observation rather than requesting reblessing or weakening identity checks.

  8. EffortlessSteven commented on Nov 15, 2026

    @EffortlessSteven
    MemberAuthor

    #13885 has merged as caec76e, which completes this issue. It builds on the qualified-path slice from #12477, which handled impl quickcheck::Arbitrary written out in full in src/lib.rs or src/main.rs.

    What now gets the stimulus reading (static_unknown, with "Arbitrary test-input generator changes test stimulus; static product exposure is not established"):

    • A trait name imported or aliased into scope: use quickcheck::Arbitrary; or use quickcheck::{Arbitrary as Arb};.
    • proptest's Arbitrary and the arbitrary crate's Arbitrary<'a>, chosen by the crate's single verified provider dependency.
    • Generators in modules reached through plain mod name; chains from either crate root.

    Decided and documented in RIPR-SPEC-0153:

    • #[derive(Arbitrary)] gets no role, because the derived type is product data. The corpus case arbitrary_derived_type_change_stays_product is credited.
    • #[cfg(test)] generator modules stay silent.
    • An impl that carries attributes keeps the ordinary product reading.

    Fails closed: any shape whose provider or namespace can't be established keeps the ordinary product reading. That covers globs, macros, #[path], multiple dependencies, and refused sibling roots. The role only ever demotes; it never promotes a class.

    Proof:

    • crates/ripr/tests/arbitrary_generator_shapes.rs
    • the trait-spelling lib test
    • 6 verdict-corpus cases across 3 provider subjects
    • two independent review rounds plus Devin, with every finding fixed by a discriminating test

    Generated by Claude Code

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions