Skip to content

A Registration Test Asserts Two Defects Are Not Misreported Without Asserting They Are Reported #1640

Closed

Description

@ptr727

test_an_entry_with_a_defect_is_not_also_reported_absent plants a SessionEnd type: "prompt" and a PreToolUse matcher: "Edit", then asserts only that no problem contains "is not registered" and none contains "never runs". It never asserts the two planted defects are reported at all, so it passes unchanged if registration_problems stops reporting them entirely, which is the strictly worse regression.

Its sibling three tests above states the standard it misses: "Each shape asserts the problem it should raise rather than that it raised one, since a second and false 'not registered' line satisfied a bare truthiness check by itself."

The fix is to assert both planted defects appear alongside the existing absence assertions. Found by a local strict review pass on #1632.

Activity

  1. added
    bug
    introduced
    script
    on Sep 15, 2026
  2. ptr727 commented on Oct 23, 2026

    @ptr727
    OwnerAuthor

    Closed under the maintainer's decision (ptr727, 2026-10-23) on #3391: the backlog keeps real bugs with a stated failure, features the maintainer wants, and open decisions. A finding the review loop filed on code or text a change did not touch, a refactor or consolidation chore, a tracker, a wording item, or a guard shape no session has produced is closed rather than worked. Reopen with the input and the wrong result if this issue states one.

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

    bugintroducedscript

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions