Repository navigation
Description
What happened
On #1792, re-reviews exposed two finding-ID integrity bugs.
1. The same finding received a new ID
The score_field wiring finding in docs/prioritize.md was initially recorded as:
f_522c6032780cda57
It was incorrectly marked resolved_by_change using unrelated evidence (“Token example updated”). When the same underlying finding appeared again after its line shifted, it received a new ID:
f_63302131e40e81c0
This caused an unchanged finding to be posted again as new.
2. An existing ID was reused for a different finding
f_2034ca010b83e889 initially referred to the unnecessary actions: write permission on GITHUB_TOKEN.
A later review reused that ID for a different token-permission finding concerning the project-reading token.
A finding ID must identify one finding for the lifetime of the PR. Reusing it for a different concern can attach dispositions and human resolutions to the wrong finding.
Relevant review runs:
- https://github.com/fullsend-ai/agents/actions/runs/40332311927
- https://github.com/fullsend-ai/agents/actions/runs/40473221164
- https://github.com/fullsend-ai/agents/actions/runs/40479923866
Expected behavior
- A finding represented by an existing stamped GitHub review thread keeps that thread’s finding ID when its line moves.
- A finding ID is never transferred to a different finding.
- If an existing thread cannot be mapped reliably, mint a new ID instead of guessing.
- Do not match an old ID merely because it is the only finding with the same category in the same file.
Proposed change
Implement this in the agents post-review path, building on #1608.
For GitHub, reuse the review-thread fetch that post-review already performs. Treat the <!-- finding:f_… --> stamp on the existing inline thread as the authoritative mapping between the thread and its finding ID.
When reconciling current findings:
- Preserve the stamped ID when GitHub maps the finding to the existing thread, including after line movement or a force-push.
- Do not reuse an ID based only on file and category.
- If no existing stamped thread can be mapped, mint a new ID.
- Start with GitHub support.
- For GitLab, if the existing thread’s line cannot be mapped reliably, fail closed by minting a new ID.
This should be an agents-only change; no fullsend change is required.
Validation
Add post-review tests covering:
- A stamped GitHub thread whose line shifts retains its ID.
- The old and new locations are not both emitted as active findings.
- A different finding in the same file and category does not inherit the old ID.
- An unmappable GitLab thread results in a new ID.
- Existing
dismissed_by_human,resolved_by_change, andreclassifieddispositions remain attached to the correct finding.
Related
Metadata
Metadata
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
Benkapner commentedon Oct 28, 2026
/fs-triage This is one bug in the finding-id ledger from #1608. Motivating example: #1792.
check:
fullsend-ai-triage commentedon Oct 28, 2026
🤖 Triage ·⚠️ Cancelled · Ended 9:47 AM UTC
Commit:
16657d5· View workflow run →fullsend-ai-triage commentedon Oct 28, 2026
🤖 Finished Triage · ✅ Success · Started 9:49 AM UTC · Completed 9:51 AM UTC
Commit:
16657d5· View workflow run →Runtime: claude · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $0.23
fullsend-ai-triage commentedon Oct 28, 2026
Triage found this actionable as a single issue: it is not a duplicate and has no blocking dependency.
Related work (checked):
Where the fix lives (verified in this repo): the id assignment and reconciliation logic is in
scripts/post-review.src.sh, which generatesscripts/post-review.sh. The thread fetch and stamp parsing are inscripts/lib/github-review-ops.lib.sh, with the GitLab counterpart inscripts/lib/gitlab-review-ops.lib.sh. Tests belong inscripts/post-review-test.sh.Scope: as requested, items listed as out of scope (#1760, dismissed_by_human/#1710, re-review low gate, hide-ids, any fullsend change) are excluded.
Proposed test case:
Note: the request asked that this not be auto-promoted to ready-to-code. This triage run is in the harness's mechanical auto-promote mode, which the triage output cannot override, so a maintainer may want to check the labels afterward.
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 Oct 28, 2026
🤖 Code ·⚠️ Cancelled · Started 9:53 AM UTC · Ended 9:55 AM UTC
Commit:
16657d5· View workflow run →Benkapner commentedon Oct 28, 2026
/fs-code Implement this issue only. Motivating example is #1792; do not edit that PR.
Do this in fullsend-ai/agents:
<!-- finding:f_… -->). Refresh file/line from that map before id copy or mint.make scripts/post-review.sh).Tests in scripts/post-review-test.sh:
Do not:
If a coder PR from ready-to-code is already open for this issue, update that branch. Do not open a second PR.
fullsend-ai-coder commentedon Oct 28, 2026
🤖 Finished Code ·⚠️ Cancelled · Started 9:53 AM UTC · Completed 9:55 AM UTC
Commit:
16657d5· View workflow run →Runtime: claude · Model: opus → claude-opus-5-5 · Effort: high
fullsend-ai-coder commentedon Oct 28, 2026
🤖 Finished Code · ✅ Success · Started 9:57 AM UTC · Completed 10:11 AM UTC
Commit:
16657d5· View workflow run →Runtime: claude · Model: opus → claude-opus-5-5 · Effort: high · Cost: $2.64
fix(#1818): keep finding ids on their stamped review threads
fix(#1818): keep finding ids on their stamped review threads
Merge pull request fullsend-ai#1819 from fullsend-ai/agent/1818-prese…