Repository navigation
Description
Parent
Review and fix agents should reconcile finding threads #478
What to build
Teach the fix-agent lifecycle to reconcile multiple open GitHub review threads that carry the same stable finding ID across review runs. Today, a structured fix action identifies a finding ID and disposition, but when more than one open bot-authored thread has that stamp, the post-script reports an ambiguous match and changes none of them.
On fullsend #9891, fix iteration 3 left eight finding actions untouched for this reason. The review-side duplicate handling in agents #2197 / PR #2204 does not handle the fix-agent path.
Use the matching thread history to identify the current thread and any stale copies. For fixed or declined, explain and resolve the current thread, and post an idempotent pointer to the current thread before resolving each proven stale copy. For needs_human, leave the current thread open with the explanation and resolve only stale copies that can be identified safely. If the history is inconclusive, leave the affected thread open and report each direct thread link with the next action.
Acceptance criteria
- A single action for a stable finding ID can reconcile multiple matching open bot-authored threads; multiple matches are not automatically abandoned as ambiguous.
- The fix lifecycle identifies the current thread and stale copies from cross-run thread history, consistent with the review agent's duplicate-thread handling.
-
fixedanddeclinedactions receive explanatory, idempotent replies and resolve the current thread and any proven stale copies. -
needs_humanleaves the current thread open while allowing proven stale copies to be explained and resolved. - Existing safeguards remain: threads with unseen human replies, incomplete history, changed PR head, or uncertain ownership are left open and individually listed with working links and next steps; thread API failures do not fail the run.
- Regression coverage includes multiple open threads with one ID across runs, fixed/declined/needs-human dispositions, safe stale-copy identification, inconclusive history, idempotent reruns, and per-thread failure reporting.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
fullsend-ai-triage commentedon Nov 30, 2026
🤖 Finished Triage · ✅ Success · Started 11:40 AM UTC · Completed 11:42 AM UTC
Commit:
ef1bb84· View workflow run →Runtime: claude · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $0.26
fullsend-ai-triage commentedon Nov 30, 2026
Triage
The cause is in the fix post-script,
scripts/process-fix-result.py. When more than one unresolved owned thread matches a finding ID, it reports the action as ambiguous and returns without changing any thread. It has no concept of a current thread versus stale copies.The review side already has a model to follow. PR #2204 (merged, for #2197) added a classifier in
scripts/pre-review.sh. It treats the newest owned thread as current and the other open ones as stale. When no single newest thread can be determined, it reports every open thread as ambiguous. The fix path can reuse that design and keep its existing per-thread safeguards.Scope notes
scripts/pre-fix.shandscripts/post-fix.shalso compute anambiguousflag for duplicate IDs, so they likely need a matching update.docs/fix.mdandagents/fix.mdshould be checked for text describing the old ambiguous behavior.Proposed test case
This is ready for implementation.
Next steps:
/fs-code— agent creates a PR to implement this issue/fs-code <your instruction>— agent implements with your specific guidancefullsend-ai-coder commentedon Nov 30, 2026
🤖 Finished Code · ✅ Success · Started 11:44 AM UTC · Completed 11:55 AM UTC
Commit:
ef1bb84· View workflow run →Runtime: claude · Model: opus → claude-opus-5-5 · Effort: high · Cost: $2.72
fix(#2210): bind stale-pointer marker to the current thread
fix(#2210): reconcile duplicate finding threads in the fix post-script
fix(#2210): bind stale-pointer marker to the current thread
fix(#2210): reconcile duplicate finding threads in the fix post-script
fix(#2210): bind stale-pointer marker to the current thread
Merge pull request fullsend-ai#2212 from fullsend-ai/agent/2210-recon…