Repository navigation
Description
Problem Statement
After review and fix runs, humans still have to compare findings across review rounds, locate the matching inline threads, decide which threads are stale, and infer whether a fix agent handled each concern. A fix run can push changes without a later review run, leaving GitHub-outdated bot threads open. The review ledger already carries stable finding IDs, but the fix handoff does not carry those IDs into its structured results or map actions back to exact threads.
The goal is for a human to review the resulting PR and merge it, while any unresolved or uncertain concern remains clearly visible with enough context to decide the next action.
Solution
Use the stable finding ID as the link between a finding, its review thread, the fix agent's result, and post-script actions. The review and fix agents account for prior open findings and communicate their dispositions in the corresponding threads. Post-scripts add an explanatory reply before resolving a thread. They leave actionable or uncertain concerns open and report cleanup failures in the PR summary without failing the run.
The implementation stays in the agents repository and uses its existing direct forge API pattern. A Fullsend runner operation may be considered later for shared or batched operations, but it is not a prerequisite.
User Stories
- As a PR author, I want every open review finding from earlier runs reconsidered, so that a still-valid concern is not lost when the review changes.
- As a reviewer, I want stable finding IDs to remain associated with their finding across runs, so that I can follow the same concern through its thread and any fix.
- As a PR author, I want the review agent to close a prior finding thread only after the new review has evidence that the change resolves the original concern, so that a finding is not closed merely because it disappeared from the latest report.
- As a PR author, I want a reclassified finding that still applies to remain open, so that the revised concern remains visible for action.
- As a fix agent, I want the current open finding IDs, thread links, and thread comments supplied to me, so that I can account for earlier findings and human replies without guessing from descriptions or paths.
- As a reviewer, I want each fix action tied to its stable finding ID, so that the post-script can target the exact stamped thread.
- As a reviewer, I want a fixed finding to receive a reply explaining the change and linking to its commit before the thread is resolved, so that the outcome is understandable in context.
- As a reviewer, I want a reasoned finding that is invalid or no longer needs action to receive an explanation and be resolved, while a valid, actionable, or uncertain finding remains open for human judgment.
- As a PR author, I want human replies in a finding thread considered before that thread is resolved, so that an additional request is not hidden by an automated closure.
- As a PR author, I want the fix post-script to close eligible GitHub threads marked outdated even if no review run follows the fix, so that obsolete bot comments do not remain unresolved.
- As a PR author, I want GitHub and GitLab finding threads to receive the same fixed, declined, or needs-human treatment where the forge supports it, so that the workflow is consistent across supported repositories.
- As a PR author, I want API failures or ambiguous thread matches listed in the PR summary with working thread links and a suggested next step, so that I can close a resolved thread manually or rerun the fix agent with instructions without inspecting logs.
- As a maintainer, I want reruns not to duplicate evidence replies or resolve a different thread, so that thread updates are safe to retry.
- As a maintainer, I want a Fullsend CLI integration to remain optional, so that agents-side improvements can ship without waiting on another repository.
Implementation Decisions
- A shared, model-invoked skill defines the stable
f_…finding ID, how to read the stamp in a review thread, how to distinguish it from local summary ordinals, and how review and fix agents use it. - The fix pre-script supplies a host-generated manifest for all currently open bot finding IDs, including carried-forward findings, matching thread links, and complete thread context. The fix agent must account for each finding it handles and read any human replies.
- Each structured fix action on a review finding includes its stable finding ID and one disposition:
fixed,declined, orneeds_human.declinedmeans the finding is invalid, duplicate, or no longer requires action; a valid concern that the agent cannot or will not settle isneeds_human. Standalone human instructions may have no finding ID. - The post-fix script re-fetches current thread state before acting and matches only a unique, complete, bot-stamped finding thread. It posts an idempotent explanation before resolving
fixedanddeclinedfindings. It comments onneeds_humanfindings and leaves them open. If the explanation cannot be posted, the script does not resolve that thread. - The post-review script resolves a prior thread only when the review result marks that finding
resolved_by_changewith evidence.openandreclassifiedfindings remain open. Absence from a new report alone is not evidence for closure. - Both post-review and post-fix retain the existing safe GitHub outdated-thread sweep: only eligible unresolved threads whose comments are all outdated, authored by the trusted review bot, fully fetched, and resolvable are closed. The sweep is GitHub-only.
- GitHub and GitLab thread replies and resolution use direct APIs from the agents scripts. Missing, ambiguous, human-owned, incomplete, or changed-head matches are left open and reported.
- API failures do not fail the agent run. The PR summary lists each affected finding with a working thread link, what succeeded, and a next action such as closing manually or rerunning with further instructions. Humans should not need to post a closing comment themselves.
- No Fullsend change is required. A later Fullsend operation may centralize these calls or batch multiple thread actions; its performance benefit depends on the operation being batched.
Testing Decisions
Tests should exercise observable behavior at the script and result-contract seams, using forge API fixtures rather than asserting private helper structure. Cover prior-finding carry-forward and evidence-based resolution; exact stable-ID matching; fixed, declined, and needs-human outcomes; human replies; missing, ambiguous, already-resolved, outdated, truncated, and changed-head threads; idempotent reruns; comment or resolution failures; and the per-thread links and next actions in the PR summary. Exercise GitHub GraphQL and GitLab discussion behavior separately. Existing pre-review, post-review, post-fix, and fix-result contract tests provide prior art.
Out of Scope
- Automatically approving, merging, or dismissing human review decisions on a PR.
- Resolving a valid actionable finding that the fix agent did not address, or a finding the agent cannot confidently assess.
- Resolving human-owned or ambiguously matched threads.
- Adding a GitLab equivalent of GitHub's
isOutdatedsweep. - Requiring a Fullsend CLI change before agents-side behavior can ship.
Further Notes
- This updates the scope of the existing agents issue Review and fix agents should reconcile finding threads #478 rather than creating a duplicate.
- Agents issue Review agent should resolve open threads when its comments become outdated #1413 already covers GitHub outdated-thread cleanup in the review post-script. The fix post-script needs the equivalent path.
- Agents issue Fix agent should reconcile GitLab finding discussions #1946 covers GitLab evidence replies; align or fold it into this scope rather than implementing a competing reply contract.
- Fullsend issue fix-review can start step 7b too late to finish the STEP C direct-execution fallback #956 and PR #9446 cover review-side resolution in the Fullsend lifecycle. This specification keeps the agents implementation self-sufficient and should account for idempotent coexistence if that lifecycle is also active.
- Fullsend issue #9696 may be revisited later as an optional shared or batched runner operation.
Sub-issues
Collapse Sub-issuesSub-issues
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsTodo
Activity
fullsend-ai-triage commentedon Jul 27, 2026
🤖 Finished Triage · ✅ Success · Started 11:48 PM UTC · Completed 11:52 PM UTC
Commit:
d72d648· View workflow run →fullsend-ai-triage commentedon Jul 27, 2026
Triage update
The rewritten scope is specified well enough to implement, and it is treated as a single feature: stable finding IDs link a finding, its thread, the fix result, and the post-script actions.
Change from the earlier triage: the earlier note marked this as blocked on fullsend PR 9446 and a new fullsend entrypoint. The updated scope drops that dependency. The agents repo already calls GitHub's thread-resolve mutation and has forge helpers for outdated-thread resolution and finding-thread links in both the GitHub and GitLab libs, so they can be reused directly. The fullsend work (9446, 956, and the CLI issue 9696) is an optional later optimisation, but the implementation should stay idempotent so it coexists with it.
Findings kept from earlier triage: the fix result schema has no finding ID, disposition or evidence. The post-fix script currently only posts a top-level summary. The
agents#3514reference in the original text does not exist and is most likely a typo.Points for maintainers:
fixedanddeclinedthreads. The scope says to align or fold Fix agent should reconcile GitLab finding discussions #1946, so decide which contract wins before implementing the GitLab side.fix/disagreeoutput working, or migrate it deliberately.resolved_by_change, then GitLab), but it shares one ID contract, so it is not split here.Proposed test case:
No workflow-file changes are needed. This is a feature, so it is not auto-promoted to ready-to-code; a maintainer can promote it when they want it implemented.
Next steps:
/fs-code— agent creates a PR to implement this issue/fs-code <your instruction>— agent implements with your specific guidancePrevious run
Triage Summary
Category: Feature · Severity: Medium
Problem
When the fix agent addresses review findings,
process-fix-result.pyposts only a top-level summary comment. The individual inline review threads are left without replies, requiring reviewers to manually cross-reference the summary against each thread.Root Cause
process-fix-result.pycurrently only callsbuild_summary_body()andpost_summary(). There is no logic to fetch inline PR review comments from the GitHub API or reply to individual threads. The structured data needed for matching already exists infix-result.json— each action entry containsfinding,path,description/reason, andtype.Recommended Approach
Extend
process-fix-result.pyto:GET /repos/{owner}/{repo}/pulls/{pr}/commentsfix-result.jsonto inline comments by finding name (pattern like**[severity]** finding-namein comment body) and file pathfix) or reason (fordisagree)Edge cases to handle: unmatched findings (log warning, don't fail), multiple comments for the same finding (match on path), API rate limits.
Proposed Test
Note: The issue references
fullsend-ai/agents#3514as a related concern, but that issue number does not exist — this may be a typo. This does not block implementation since it was listed as a "relates to" reference, not a dependency.fullsend-ai-prioritize commentedon Aug 1, 2026
RICE Priority Score: 1.2
Score breakdown
Formula: (1.5 x 1 x 0.8) / 1 = 1.2
csoceanu commentedon Nov 19, 2026
/fs-triage Please evaluate expanding this issue beyond “reply only”
The fix-agent post-script should also be able to resolve the exact threads it reports as fixed. This should be an additional closure path—not a replacement for the review-side resolution in fullsend-ai/fullsend#9446—because a review-agent run does not always follow a fix-agent run and we need stronger guarantees for thread closure.
Suggested scope:
Relevant work:
Please also confirm the repository boundary: the structured fix output and post-fix behavior belong in agents, while the forge primitives belong in fullsend. If fullsend-ai/fullsend#9446 provides everything required, this may only need an agents PR after that dependency is available; otherwise, please identify the additional fullsend change needed.
fullsend-ai-triage commentedon Nov 19, 2026
🤖 Finished Triage · ✅ Success · Started 10:06 AM UTC · Completed 10:08 AM UTC
Commit:
f6907db· View workflow run →Runtime: claude · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $0.31
fullsend-ai-triage commentedon Nov 19, 2026
Re-triage with the expanded scope. The original reply-only work is unchanged and still well-defined: extend the fix post-script to post an in-thread reply for each fix (what changed, which commit) and disagree (reason) action, without resolving threads. The new resolve-on-fix scope has a cross-repo dependency, so this issue is now marked as having prerequisites.
Repository boundary (confirmed):
Suggested sequencing: the reply-only portion, ideally already keyed by the stamped finding id with a path fallback, does not need 9446 and could ship first. It could be carved out into its own issue if maintainers prefer to unblock it. Resolution would follow once 9446 and the fullsend entrypoint exist. The GitLab reply counterpart is tracked separately as agents#1946, and fullsend#8749 covers the GitLab thread lifecycle.
Other notes:
Proposed tests (conceptual): reruns do not double-reply; moved head or invalid evidence skips resolve; human-authored or ambiguous threads stay open; already-resolved threads are reported rather than failed; API failures on one thread do not abort others; disagree actions reply but never resolve.
Blocked by:
Could not create automatically (file manually or update
tracker.github.allowed_targetsin config.yaml):Prerequisite: fullsend-ai/fullsend — Expose review-thread resolution primitive to fix post-scripts (CLI entrypoint)
The shared
forge.Client.ResolvePullRequestReviewThreadprimitive (GitHub GraphQLresolveReviewThread, GitLab discussionresolved: true) is being added in #9446 and is currently wired only into thepost-reviewlifecycle.The fix agent's post-script (maintained in fullsend-ai/agents:
scripts/process-fix-result.py/post-fix.src.sh) needs to reply to and then resolve the exact review thread for each finding it reports as fixed, after the fix commit is pushed and the new head is verified. That script is not Go code and cannot callforge.Clientdirectly.Please provide a way for runner-side scripts to use the forge primitives, e.g. a CLI subcommand that, given a PR/MR, a stamped finding id (
<!-- finding:f_xxx -->) and an expected head SHA:--dry-run;If an existing command already covers this, document it. This depends on #9446 landing first.
1 remaining item
[-]Post-fix script should reply to review inline threads it addressed[/-][+]Review and fix agents should reconcile finding threads[/+]fullsend-ai-triage commentedon Nov 26, 2026
🤖 Finished Triage · ✅ Success · Started 1:11 PM UTC · Completed 1:14 PM UTC
Commit:
95c8650· View workflow run →Runtime: claude · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $0.37