Skip to content

docs(skill): require fix authorization for unpositioned findings - #2036

Closed
Ethereal49 wants to merge 1 commit into
alibaba:mainfrom
Ethereal49:docs/review-only-mispositioned-2034
Closed

Ethereal49 wants to merge 1 commit into
alibaba:mainfrom
Ethereal49:docs/review-only-mispositioned-2034

Conversation

@Ethereal49

Copy link
Copy Markdown

Description

Step 4 of the skill requires user authorization before any code change. The Handling mispositioned comments procedure ends with "Apply the fix or suggestion to the correct location", so an agent that receives a finding with start_line and end_line both 0 can read that step as permission to edit during a review-only request.

This change makes the procedure end at reporting: locate the relevant code, verify the location, and apply a fix only when the user has authorized edits under Step 4. When the position stays uncertain, the finding is reported at file level instead of guessed.

Both copies of the skill are updated with the same text:

  • skills/open-code-review/SKILL.md
  • plugins/open-code-review/skills/open-code-review/SKILL.md

No other section, code, or skill text is touched.

Type of Change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Refactoring (no functional changes)
  • Documentation update
  • CI / Build / Tooling

How Has This Been Tested?

Documentation-only change; no Go code or behavior changed.

  • make test passes locally — not run: no code change, and the change is limited to Markdown.
  • Manual testing (describe below)

Manual checks:

  • grep -n "Apply the fix or suggestion" skills/open-code-review/SKILL.md plugins/open-code-review/skills/open-code-review/SKILL.md — no match after the change (previously skills/...:134 and plugins/...:139).
  • make check — passed (license-check, english-check, go mod tidy, gofmt, go vet). An earlier run failed on a Go module download (unexpected EOF from proxy.golang.org); the retry passed.
  • node scripts/github-actions/check-plugin-contract.test.js — passed.
  • node scripts/github-actions/check-translation-sync.test.js — passed.
  • git diff contains only the two SKILL.md files; their body text stays identical apart from the existing plugin note.

Checklist

  • My code follows the project's coding style (go fmt, go vet) — make check passes.
  • I have performed a self-review of my code
  • I have added tests that prove my fix is effective or my feature works — not applicable to a Markdown-only wording change.
  • New and existing unit tests pass locally with my changes — make test not run because no code changed.
  • I have updated the documentation accordingly (if applicable)
  • I have signed the CLA — the repository has no CLA.
  • I did not use AI/LLM to create this PR, or I disclosed the tool/model below and reviewed its output; I did not attribute commits to AI and will answer maintainer questions and review comments myself without AI/LLM.

AI disclosure: prepared with an AI coding agent (DeepSeek V4.1 Flash) that drafted the wording and ran the checks. I reviewed the final diff and can explain it.

Related Issues

Closes #2034

@github-actions

Copy link
Copy Markdown
Contributor

✅ OpenCodeReview: Review skipped: no items were selected.

@CLAassistant

CLAassistant commented Nov 22, 2026 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@Qiyuanqiii

Copy link
Copy Markdown
Contributor

Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.

prascli added a commit to prascli/open-code-review that referenced this pull request Nov 22, 2026
…libaba#2034)

- Update both skill copies (core + plugin) with PR alibaba#2036 wording
- Step 4: verify location and report finding; report at file level if uncertain
- Step 5: apply fix only when user authorized edits under Step 4
@lizhengfeng101

Copy link
Copy Markdown
Contributor

Thank you for the fix, @Ethereal49, and for completing the CLA. While the CLA check on this PR was still pending, #2037 was opened with the same change. I merged #2037, so I’m closing this PR as a duplicate. I appreciate the time you put into the patch and its verification, and I’d welcome your help with any other open issue that interests you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Respect review-only intent when a finding has no line numbers

4 participants