Skip to content

Review agent should reconcile duplicate finding threads across runs #2197

Done

Description

@ifireball

Parent

#478

What to build

Teach the review lifecycle to reconcile multiple open GitHub threads carrying the same stable finding ID across review runs. On fullsend #9891, the review/fix summaries reported finding IDs as ambiguous when more than one open thread carried the ID, leaving duplicate stale threads open. A finding ID identifies the concern, but by itself does not identify which of several stamped threads is current.

Use prior review-run data and the thread history to distinguish the active thread from stale duplicates. Resolve only threads shown to be stale or outdated, with an explanatory reply. If the evidence does not distinguish them safely, leave them open and list each direct thread link with the next action for the PR author.

Acceptance criteria

  • When multiple open threads carry one stable finding ID, the review post-script consults prior-run finding state and thread history instead of immediately treating every match as unresolvable ambiguity.
  • A thread is resolved only when the prior-run and current-review evidence establishes that it is stale or outdated; the current actionable finding thread remains open.
  • Each stale thread receives an idempotent explanation before resolution.
  • If history does not safely identify the stale thread, no thread is guessed at or closed; the PR summary lists each affected thread with a working link and a suggested next step.
  • Per-thread API failures do not fail the review run.
  • Regression coverage includes repeated review runs that create multiple open threads with one stable finding ID, a stale prior thread, a current active thread, and an inconclusive history case.

Activity

  1. added
    bug
    ready-to-code
    on Nov 28, 2026
  2. fullsend-ai-triage commented on Nov 28, 2026

    @fullsend-ai-triage

    🤖 Finished Triage · ✅ Success · Started 12:56 PM UTC · Completed 12:58 PM UTC

    Commit: 0e5514e · View workflow run →

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

  3. removed
    ready-to-code
    on Nov 28, 2026
  4. fullsend-ai-coder commented on Nov 28, 2026

    @fullsend-ai-coder
    Contributor

    🤖 Finished Code · ⚠️ Cancelled · Started 12:56 PM UTC · Completed 12:58 PM UTC

    Commit: 0e5514e · View workflow run →

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

  5. added
    ready-to-code
    on Nov 28, 2026
  6. fullsend-ai-triage commented on Nov 28, 2026

    @fullsend-ai-triage

    Triage found this actionable as written, so no clarifying questions are needed.

    Where the change lands: the review post-script scripts/post-review.src.sh. It already has an ambiguous disposition for IDs with more than one open thread, which is the behavior this issue replaces with evidence-based reconciliation. The bundled scripts/post-review.sh must be regenerated with make script-build and checked with make check-bundle.

    Related work: this is a sub-issue of #478. No open PR addresses it. #2111 (GitLab finding-ID preservation across line shifts) is adjacent but separate. #2002 (GitLab outdated-thread resolution) is also adjacent.

    Suggested design guardrails:

    • Resolve only on positive evidence of staleness. Default to leaving threads open.
    • Use an idempotency marker on the explanation reply so reruns are safe.
    • Treat per-thread API failures as non-fatal and report them in the summary.

    Proposed test case:

    Given one finding ID with several open stamped threads:
    - stale prior thread + current thread -> reply to and resolve only the stale one; rerun posts no second reply
    - inconclusive history -> resolve nothing; summary lists each thread link with a next step
    - a thread API call fails -> run still succeeds; failure noted in summary
    

    Next steps:

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

    @fullsend-ai-coder
    Contributor

    ℹ️ No PR created — agent determined no changes needed

    The code agent ran and evaluated issue #2197, but did not produce changes to submit as a pull request.

    Reason: Agent did not create a feature branch (current: 'main')

    Agent context:
    No PR was opened: issue #2197 does not have the ready-to-code label yet. The code agent was dispatched while triage was still running (triage started 12:56 UTC, about 15 seconds before this run). Labels at check time were only bug and review-agent. No branch was created and nothing was committed.

    To unblock: let triage finish. Once it confirms the scope and applies ready-to-code, re-dispatch the code agent. The scope is the review post-script reconciling duplicate open threads that share a stable finding ID across runs.

    Workflow run: https://github.com/fullsend-ai/agents/actions/runs/46146936366

    Retry with /fs-code if appropriate.

  8. fullsend-ai-coder commented on Nov 28, 2026

    @fullsend-ai-coder
    Contributor

    🤖 Finished Code · ⚠️ Cancelled · Started 1:00 PM UTC · Completed 1:02 PM UTC

    Commit: 0e5514e · View workflow run →

    Runtime: claude · Model: opus → claude-opus-5-5 · Effort: high

  9. added and removed
    ready-to-code
    on Nov 28, 2026
  10. self-assigned this
    on Nov 28, 2026
  11. ifireball commented on Nov 28, 2026

    @ifireball
    MemberAuthor

    /fs-code

  12. fullsend-ai-coder commented on Nov 28, 2026

    @fullsend-ai-coder
    Contributor

    🤖 Finished Code · ✅ Success · Started 10:37 PM UTC · Completed 10:57 PM UTC

    Commit: df521fd · View workflow run →

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

  13. added 4 commits that reference this issue on Nov 28, 2026
  14. added 2 commits that reference this issue on Nov 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

blockedbugreview-agent

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions