fix(#2210): reconcile duplicate finding threads in the fix post-script #2212
All Vouch review confidence checks passed
Residual risk 0.25 = Change Risk (0.47) × (1 − Review Confidence (0.47)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.47 · 485 lines diff across 6 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.370
Shallow Review Depth
shallow_review_depth
0.344
Real PR Conversation Timeline
1 comments
"Review active on #2212"
general
weight: 0.35
fullsend-ai-coder[bot]
Summary
scripts/process-fix-result.pyno longer gives up when one stable finding ID has several open review-bot threads (one per review run). It now picks the current thread with the same rule the review post-script uses (_FINDING_THREAD_CLASSIFYinscripts/lib/review-ops.lib.sh): the owned thread, resolved or not, whose first comment is strictly newest. Every other open owned thread is treated as a stale copy.fixedanddeclinedget the explanatory reply and the thread is resolved.needs_humangets the reply and the thread stays open.<!-- fullsend:fix-stale ... -->marker), then it is resolved. This happens only after the current thread is settled: replied and resolved (or already resolved) forfixed/declined, or replied forneeds_human.- For
needs_human, the current thread is re-read (node(id:)query) before each copy. Once it is resolved, gone or unreadable, the remaining copies stay open, so the finding always keeps an open thread.- If the newest thread is already resolved and the disposition is
needs_human, the older copies are left open and listed.- Copies with a human reply the agent did not read, or with truncated comments, stay open.
- If the first-comment times tie or a time is missing, the listing is incomplete, or the PR head changed, every open thread stays untouched and is listed on its own line with its link and next step.
- Reply and resolve failures are reported per thread and never fail the run.
- The outdated sweep still skips every thread a finding action names.
docs/fix.md(Finding threads) andskills/finding-ids/SKILL.mdnow describe this behaviour, including what the manifest'sambiguous: trueflag now means for the agent.The pre-fix manifest's
ambiguousflag inscripts/lib/github-fix-ops.lib.shis unchanged. It still marks IDs with several open threads; only its documented meaning changed, so no bundled scripts needed rebuilding.Context
On fullsend-ai/fullsend#9891, fix iteration 3 left eight finding actions untouched because of the old ambiguous-match rule. #2204 (for #2197) added the same reconciliation on the review side.
Testing
python3 scripts/process-fix-result-test.py: 224 tests pass, 21 of them new. They cover:- several open threads for one ID across runs, for
fixed,declinedandneeds_human;- ordering by fractional seconds;
- the current thread being resolved or gone mid-run, or unreadable;
- the newest thread already resolved;
- ties and missing or invalid times;
- stale copies with unseen or seen human replies, and with truncated comments;
- incomplete listings and a changed head with duplicates;
- stale copies kept when the current thread was not settled;
- per-thread pointer and resolve failures;
- idempotent reruns, and the outdated sweep skipping stale copies.
skillsaw --strict(make lint) passes.pre-commitcould not fetch its hook repositories (TLS failure in the sandbox). The pre-commit-hooks v6.0.0 checks,lint-agent-docsandlint-release-caseswere run directly and pass, and gitleaks ran viascan-secrets.scripts/post-fix-test.sh: the finding-thread cases pass. Seven unrelated cases (harness YAML and git-identity checks) fail the same way onmainin this sandbox.🤖 Generated with Claude Code
---
Closes #2210
Post-script verification
agent/2210-reconcile-fix-duplicate-threads)ef1bb84698bf824d266c4538870dfb21995a4420..HEAD)