Skip to content

review: keep dismissed_by_human when only the category changes at the same file:line #1709

Closed

Description

@Benkapner

Problem

Id assignment in post-review copies a prior id only when file + category + line match. A human dismissal (dismissed_by_human) is stored on that id.

If the next review raises the same file:line under a different category and the line did not change, the old id is treated as foreign and a new id is minted. The dismissal does not apply. If the new finding is low/info, the re-review severity gate (#1636) can also make it non-blocking.

So a human resolve can be bypassed by a category rename with no code change.

This came up after AISDLC-118/122: Dharit asked what happens if a dismissed finding comes back under another category with no code change.

Expected

When a prior finding is dismissed_by_human and the current row is the same file and line (or PR-level with no line) and the diff did not change that line:

If the line (or the PR-level hunk) actually changed, mint / re-open as today. A real new bug at that place must not inherit the old dismissal.

Not this issue

Related

Test

In scripts/post-review-test.sh:

  1. Prior ledger has f_old dismissed_by_human at a.go:10 category logic-error.
  2. Current finding is a.go:10 category code-organization (or any other allowed category), no line change.
  3. Assert the posted/ledger result does not introduce a new open id for that line; dismissal still holds.
  4. Same setup but the line content changed: a new id (or re-open) is allowed.

I Do not want fold this into #1653 which is currently still open.

Activity

  1. Benkapner commented on Oct 19, 2026

    @Benkapner
    MemberAuthor

    /fs-triage This is one slice of the finding ledger, not a dup of #1634 and not part of #1653.

    check:

  2. fullsend-ai-triage commented on Oct 19, 2026

    @fullsend-ai-triage

    🤖 Finished Triage · ✅ Success · Started 2:24 PM UTC · Completed 2:26 PM UTC

    Commit: 2da538b · View workflow run →

    Runtime: claude · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $0.21

  3. added
    bug
    ready-to-code
    on Oct 19, 2026
  4. fullsend-ai-triage commented on Oct 19, 2026

    @fullsend-ai-triage

    Triage found this actionable as written.

    Where the bug lives: id assignment in scripts/post-review.src.sh only considers open prior findings, and requires file and category to match. Dismissed findings are never inherit candidates, so a category rename at an unchanged file:line mints a fresh open id with no dismissal. (scripts/post-review.sh is generated from the .src.sh file, so the fix goes in the source followed by make script-build.)

    Checks done: no open or in-flight PR addresses this; #1635 and #1636 are merged; #1653 is open but covers a different concern, so this is not blocked on it. This is one concern and not a duplicate of #1634, so it stays as a single issue.

    Open point for the implementer (not for the reporter): the rule "the diff did not change that line" needs a way to establish line/hunk change from data the post-script has. If that requires new plumbing, call it out in the PR and keep it minimal.

    Proposed test (in scripts/post-review-test.sh):

    case 1: prior f_old dismissed_by_human @ a.go:10 (logic-error);
            current a.go:10 (code-organization), line unchanged
            -> no new open id for a.go:10; dismissal holds
    case 2: same, but line content changed
            -> new id / re-open allowed
    edge:   PR-level (no line) dismissed finding; different file same line still mints
    

    Next steps:

    • /fs-code — agent creates a PR to implement this issue
    • /fs-code <your instruction> — agent implements with your specific guidance
  5. fullsend-ai-coder commented on Oct 19, 2026

    @fullsend-ai-coder
    Contributor

    🤖 Finished Code · ✅ Success · Started 2:28 PM UTC · Completed 2:40 PM UTC

    Commit: 2da538b · View workflow run →

    Runtime: claude · Model: opus → claude-opus-5-5 · Effort: high · Cost: $3.16

  6. self-assigned this
    on Oct 19, 2026
  7. added 7 commits that reference this issue on Oct 19, 2026
  8. added a commit that references this issue on Oct 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugready-to-code

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions