Files
gadfly/cmd
steve 4ea80cad1f
Build & push image / build-and-push (pull_request) Successful in 8s
fix: address swarm review of the inline PR review (PR #18)
From PR #18's own review — the FIRST run with consensus consolidation live (it
posted one ranked consensus comment across 7 models instead of 7 walls).

- Anchor inline comments to ADDED lines only (parseDiffNewLines no longer
  records context lines): Gitea reliably accepts comments on added lines, so the
  all-or-nothing review POST won't be rejected for an off-change anchor.
- Span-scan anchoring (anchorLine): a cluster whose min line is just outside the
  diff still anchors if any line in its [line,maxLine] span is an added line.
- Path normalization (normPath) on both diff and finding paths, so "./pkg/x.go"
  vs "pkg/x.go" vs a "b/"-prefixed diff path all match (and the comment Path is
  the normalized repo-relative one).
- deletePriorReviews: paginate (cap 10 pages) and bail on a non-2xx GET, so a
  stale marked review past page 1 is still removed and the "replace not stack"
  guarantee holds better under failure.
- mergeIntoCluster backfills an empty title/detail from any report (not only a
  strictly-higher-severity one).
- Rename inlineReviewHTTPTime -> inlineReviewHTTPTimeout (emit.go convention).

Graded the run's 36 findings in gadfly-reports (notably a 7/7-consensus
deletePriorReviews error-handling finding — the consensus signal working as
intended). XSS-framed findings marked false (Gitea sanitizes review markdown);
trusted-input and gofmt-clean ones likewise. Tests updated for added-only
anchoring + span scan. gofmt/vet/bash -n clean.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-28 21:59:27 -04:00
..