Skip to content

One-click suggested-change blocks on inline review comments #1956

Description

@JSONbored

Phase 1 — Review output, noise & trust

Context

Inline review comments ship (src/review/inline-comments.ts) but InlineFinding has no suggestion field, so we never emit GitHub native suggested-change blocks (```suggestion) that a contributor can commit in one click. The unified-comment renderer already supports the shape.

Goal

Let the AI reviewer attach a concrete, committable fix to a line-anchored finding.

Requirements

  • Add optional suggestion (replacement text) to InlineFinding (src/services/ai-review.ts) and thread it through composeInlineFindings/selectInlineComments (src/review/inline-comments.ts) into a GitHub ```suggestion block.
  • Validate the suggestion targets a commentable RIGHT-side line/range; drop it if the range can't be anchored (no 422). Public-safe.
  • Default-OFF via review.suggestions plus the existing three-gate for inline comments. Never changes the gate verdict.

Deliverables

  • Schema + rendering + line/range validation + tests; manifest toggle + docs.

Expected outcome

  • Contributors apply precise fixes in one click; higher finding action-rate.

Effort

S/M.

Metadata

Metadata

Assignees

No one assigned

    Labels

    gittensor:featureGittensor-scored feature linked to a feature issue — scores a 0.25x multiplier.orbGittensory Orb related - maintainer self-hosting analytics.

    Projects

    Status
    Done

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions