Skip to content

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

Closed

Description

@azagreev

Issue Type

Unclear / confusing explanation

Document Location

skills/open-code-review/SKILL.md and its bundled plugin copy. Step 4: Fix · Handling mispositioned comments · Plugin copy

Description

Step 4 requires user authorization before making changes in a review-only task. The section for findings with start_line: 0 and end_line: 0 then tells the agent to locate the issue and apply the fix without referring back to that requirement. An agent following the second section can interpret missing line numbers as permission to edit.

Environment and reproduction

  • OpenAI Codex on Windows x64, OCR v1.14.0 (d29ca204), native skill version 1.0.0 from the same tag.
  • Use a review-only request such as “Review the working tree and report your findings.” Give the agent a fixture finding with a file path and both line fields set to 0.
  • Follow the skill’s instructions for that finding. Step 4 requires authorization, while the more specific procedure ends with applying the fix. This reproduces the instruction conflict. It was checked against the skill text without running a live review or observing an unauthorized edit.

Suggested Change

In both copies of the skill, have the agent verify the location and report the finding. If the exact location remains uncertain, report it at file level. Apply a fix only when the user has authorized edits under Step 4.

AI disclosure

OpenAI Codex (GPT‑6 family) assisted with comparing the instructions and drafting this issue.

Activity

  1. added
    documentation
    on Nov 21, 2026
  2. Ethereal49 commented on Nov 22, 2026

    @Ethereal49

    I will take this. Plan: in both skills/open-code-review/SKILL.md and plugins/open-code-review/skills/open-code-review/SKILL.md, change the start_line/end_line = 0 step to verify the location and report it (file level when the position stays uncertain), and apply a fix only when Step 4 authorization exists. I will run the plugin contract check and the English check after the edit.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentation

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions