Skip to content

Fix agent should reconcile GitHub finding threads #2187

Done

Description

@ifireball

Parent

#478

What to build

Give the review and fix agents a shared understanding of the stable f_… finding ID stamped in review threads, including how it differs from a per-run display number. For GitHub fixes, pass the fix agent the current open bot-authored finding threads, their stable IDs, links, and full comment context so it can account for human replies. Tie each structured fix action to the exact finding and have the post-script explain and apply the resulting disposition to that thread.

Acceptance criteria

  • A shared skill explains how to read and use the stable thread ID and distinguish it from local finding ordinals; both review and fix agents use it.
  • The fix input includes all current open, bot-stamped GitHub finding threads with stable IDs, working links, and complete comment context, including human replies.
  • Structured fix actions for review findings include the stable ID and one disposition: fixed, declined, or needs_human. Standalone human instructions may omit the ID.
  • The post-script re-fetches live thread state and acts only on a unique, exact, bot-stamped match. It posts an explanatory, idempotent reply before resolving fixed and declined; needs_human receives an explanation and remains open.
  • The fix post-script also resolves eligible outdated GitHub review threads, using the same safety conditions as the review post-script.
  • Missing, ambiguous, changed-head, human-owned, or incomplete matches are left open. A comment or resolution failure does not fail the run.
  • The PR summary lists each thread that needs attention with a working link and a suggested next step, such as closing it manually or rerunning the fix with instructions. The human does not need to post a closing comment.
  • Tests cover exact matching, dispositions, human replies, outdated-thread cleanup, retries, and per-thread failure reporting.

Blocked by

None (can start immediately)

Activity

  1. added
    ready-to-code
    on Nov 26, 2026
  2. self-assigned this
    on Nov 26, 2026
  3. fullsend-ai-coder commented on Nov 26, 2026

    @fullsend-ai-coder
    Contributor

    🤖 Finished Code · ✅ Success · Started 1:56 PM UTC · Completed 1:58 PM UTC

    Commit: 95c8650 · View workflow run →

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

  4. fullsend-ai-triage commented on Nov 26, 2026

    @fullsend-ai-triage

    🤖 Finished Triage · ✅ Success · Started 1:56 PM UTC · Completed 1:59 PM UTC

    Commit: 95c8650 · View workflow run →

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

  5. removed
    ready-to-code
    on Nov 26, 2026
  6. fullsend-ai-coder commented on Nov 26, 2026

    @fullsend-ai-coder
    Contributor

    ℹ️ No PR created — agent determined no changes needed

    The code agent ran and evaluated issue #2187, 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 opened: issue #2187 does not have the ready-to-code label, which is the signal that triage is complete. It has no labels at all, and a triage run started at the same time as this code run, so triage had not finished when this run checked.

    To unblock: let triage finish (or have a maintainer review the issue), add the ready-to-code label, and re-dispatch the code agent.

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

    Retry with /fs-code if appropriate.

  7. fullsend-ai-triage commented on Nov 26, 2026

    @fullsend-ai-triage

    This is a well-scoped slice of #478 with explicit acceptance criteria, and no blocking dependencies were found.

    Findings from triage

    • No open PR currently addresses this issue.
    • Related, but not blocking: Review agent should resolve evidence-confirmed prior finding threads #2188 covers the review-side counterpart, and Fix agent should reconcile GitLab finding discussions #1946 covers the GitLab fix-side counterpart. The reply/disposition contract should stay consistent across all three.
    • The post-review script already has an outdated-thread sweep that the fix post-script can reuse with the same safety conditions.
    • The likely touchpoints all exist in this repo: the pre-fix and post-fix scripts, the GitHub fix-ops library, the fix-result schema and contract skill, and the review/fix agent definitions.
    • A code agent run appears to have already started on this issue. Maintainers may want to confirm that only one implementation is in flight.
    • No workflow files need to change.

    Proposed test case

    With GitHub GraphQL fixtures:
    - exact stable-ID match -> one reply, then resolve (fixed/declined)
    - needs_human -> explanatory reply, thread stays open
    - human replies in thread -> present in the fix manifest and considered
    - missing/ambiguous/human-owned/truncated/changed-head -> left open, listed in PR summary with link + next step
    - rerun -> no duplicate reply
    - reply or resolve API failure -> run does not fail; per-thread failure reported
    - all-bot outdated threads -> resolved by sweep; mixed-author or incomplete -> untouched
    

    Labels: This adds new fix-agent behavior rather than fixing a defect, and the repo uses the feature label for such issues alongside the fix-agent label for the affected agent.


    Next steps:

    • /fs-code — agent creates a PR to implement this issue
    • /fs-code <your instruction> — agent implements with your specific guidance
  8. ifireball commented on Nov 26, 2026

    @ifireball
    MemberAuthor

    /fs-code

  9. fullsend-ai-coder commented on Nov 26, 2026

    @fullsend-ai-coder
    Contributor

    🤖 Finished Code · ✅ Success · Started 2:07 PM UTC · Completed 2:33 PM UTC

    Commit: 95c8650 · View workflow run →

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

  10. added 5 commits that reference this issue on Nov 26, 2026
  11. added 2 commits that reference this issue on Nov 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions