Skip to content

claude-review lane: confirm /review:code-review loads on an ordinary PR under ci-workflows v0.29.1 #4306

Closed

Description

@kyle-sexton

Summary

In the org review lane (melodic-software/ci-workflows reusable claude-review.yml v0.24.0, plugin-command: /review:code-review, plugins: review@melodic-software), the model reported that invoking /review:code-review errored out on two attempts and fell back to reviewing the diff by hand. The lane concluded green. The fallback happened to post findings this time, so the evidence guard passed, but the skill the lane is built around did not run.

Evidence

Run https://github.com/melodic-software/dotfiles/actions/runs/35561439976 (job review / review, PR melodic-software/dotfiles#800, head 8c90b68).

The lane's own summary comment (https://github.com/melodic-software/dotfiles/pull/800#issuecomment-5755452286, posted by claude[bot]) reads:

Note on process: the review:code-review skill invocation errored out (returned Execute skill: review:code-review with no further content, on two attempts with different args shapes). I fell back to performing the review directly against the diff (git diff origin/main...HEAD), applying the same bar ... If review:code-review is expected to run standalone in this lane, its failure here may be worth a look separately.

The job log shows the lane took the dual path (ci-workflows#258): plugin_marketplaces: https://github.com/melodic-software/claude-code-plugins.git, REVIEW_BODY: Invoke /review:code-review now and follow its instructions exactly for this pull request.

Why it matters

The manual fallback is a different, weaker review than the skill (no fan-out, no adversarial verification), and nothing downstream distinguishes the two. #4124 and #4093 cover the case where the lane posts nothing; this is the adjacent case where the skill itself fails to load and the lane silently substitutes.

To check

  • Whether Skill returning only Execute skill: review:code-review means the plugin did not install in the lane (marketplace fetch, plugins resolution) or the skill body failed to render.
  • Whether the lane should fail, or at least post a distinct verdict, when the configured plugin command does not run.

Related

Activity

  1. added
    needs-triage
    needs-human
    and removed
    needs-triage
    on Sep 21, 2026
  2. kyle-sexton commented on Sep 23, 2026

    @kyle-sexton
    MemberAuthor

    This was generated by AI during triage.

    Human-gated. Open decision: whether to fix the shared melodic-software/ci-workflows reusable's Skill-tool grant (owned by a different repo) or migrate other consumer repos to ADR 0037's seat-based model instead

  3. added theissue type on Sep 23, 2026
  4. kyle-sexton commented on Sep 24, 2026

    @kyle-sexton
    MemberAuthor

    Heads-up: #4435 restores the code-review lane on every push, so this will recur on every reviewed head. The restored guard scripts/verify-claude-review-skill.sh reads only review bodies (pulls/{pr}/reviews) and matches "Skill invocation errored" or "errored out in this environment" paired with a fallback phrase. The confession quoted here was an issue comment with the wording "skill invocation errored out", so the guard would not catch it and the lane would stay green.

  5. kyle-sexton commented on Sep 25, 2026

    @kyle-sexton
    MemberAuthor

    Root cause found; it still reproduces on ci-workflows v0.29.0 (6567856). The fix belongs in melodic-software/ci-workflows, which is being changed tonight, so the patch is below and has not been applied.

    Root cause

    The reusable lanes never grant the Skill tool. claude-review.yml and claude-security-review.yml pass --allowedTools "Bash(gh pr diff:*)" by default and append only mcp__github_inline_comment__create_inline_comment. The action runs headless, so the model's Skill call for review:code-review gets a permission denial. The denial reaches the model as the tool result Execute skill: review:code-review with is_error: true, which is the "no further content" the lane reported. The model then reviews the diff by hand.

    The plugin and marketplace install work (✔ Successfully installed plugin: review@melodic-software). The skill's frontmatter is fine (disable-model-invocation: false, no context: fork).

    Evidence

    • v0.29.0 lane runs log permission_denials_count greater than zero, and their SDK allowedTools list has no Skill: dotfiles run 36096736792 (3), standards run 36093531859 (7), github-iac run 36097226463 (15).
    • Local reproduction with claude -p --setting-sources project --plugin-dir plugins/review and the lane's --allowedTools: the tool result is Execute skill: review:code-review (is_error: true), and permission_denials contains {"tool_name":"Skill","tool_input":{"skill":"review:code-review"}}.
    • The same run with --allowedTools "Skill(review:code-review)" added returns Launching skill: review:code-review, the skill body loads, and permission_denials is [].

    Patch for ci-workflows (apply to both claude-review.yml and claude-security-review.yml)

    The grant goes in the compose step, next to the inline-comment grant, so a caller that replaces claude-args cannot drop it. It is scoped to the configured command's skill and nothing else.

           - name: Compose Claude CLI arguments
             id: compose-args
             env:
               BASE_ARGS: ${{ inputs.claude-args }}
    +          PLUGIN_COMMAND: ${{ inputs.plugin-command }}
             run: |
    -          args="$BASE_ARGS --allowedTools mcp__github_inline_comment__create_inline_comment"
    +          skill="${PLUGIN_COMMAND#/}"
    +          skill="${skill%% *}"
    +          args="$BASE_ARGS --allowedTools mcp__github_inline_comment__create_inline_comment --allowedTools \"Skill($skill)\""

    Also update the comment above the step so it names both appended grants. Once a release carries this, bump the consumer pins. The issue stays open until then.

  6. kyle-sexton commented on Sep 25, 2026

    @kyle-sexton
    MemberAuthor

    Fix shipped in melodic-software/ci-workflows#625 (v0.29.1). Both lanes' compose step now appends --allowedTools "Skill(<plugin-command>)", built from the plugin-command input after the caller's claude-args, so a caller cannot drop it. I checked the quoting against claude-code-action's parseSdkOptions at the pinned cfc3eb2: the composed default parses to ["Bash(gh pr diff:*)", "mcp__github_inline_comment__create_inline_comment", "Skill(review:code-review)"]. Tests cover the default command and an overridden one.

    The new code has run on ci-workflows#625's own lanes, which call it through ./. Skill(review:code-review) and Skill(review:security-review) are in the args. The code-review lane ran under /review:code-review, and the security lane ticked "Invoke /review:security-review" and exited through the skill's skip gate. Denials were 8 and 3.

    The fleet is re-pinned (melodic-software/standards#624 and its sync cascade, plus #4492). I'm leaving this open until a released v0.29.1 run on an ordinary PR confirms the skill loads.

  7. kyle-sexton commented on Sep 29, 2026

    @kyle-sexton
    MemberAuthor

    An abandoned Cursor attempt branch cursor/4306-review-empty-skill-37e9 at commit 9f94d275d5d02b530e6fb899b4e4b11fac988dad is being deleted in a repository cleanup. It never opened a PR, and this issue stays open to be redone. Summary: 1 commit(s) beyond main, tip "9f94d275d docs: park the empty claude-review skill return"; 1 file changed, 31 insertions(+).

    To restore it: git push origin 9f94d275d5d02b530e6fb899b4e4b11fac988dad:refs/heads/cursor/4306-review-empty-skill-37e9

  8. kyle-sexton commented on Sep 29, 2026

    @kyle-sexton
    MemberAuthor

    This was generated by AI during triage.

    Health check: the fix shipped in ci-workflows v0.29.1 and the fleet is re-pinned. Title narrowed to the one remaining step: confirm on an ordinary-PR run under v0.29.1 that /review:code-review loads (the run log shows Skill(review:code-review) in the args and no Skill entry in permission_denials), then close.

  9. changed the title [-]claude-review lane: /review:code-review invocation returns no content, lane falls back to a manual pass[/-] [+]claude-review lane: confirm /review:code-review loads on an ordinary PR under ci-workflows v0.29.1[/+] on Sep 29, 2026
  10. kyle-sexton commented on Sep 29, 2026

    @kyle-sexton
    MemberAuthor

    Owner decision (2026-09-29): An agent checks one recent review-lane run's log on an ordinary PR under ci-workflows v0.29.1 or later, and closes this issue if the log is clean (Skill(review:code-review) in the args, no Skill entry in permission_denials, the skill body loads). Owner note: none.

    Next: this issue moves to agent-ready. The agent inspects the run's stream JSON, posts what it finds here, and closes as completed if clean. If a Skill denial or a manual-fallback statement shows up, it stays open with the evidence posted.

  11. added
    agent-ready
    and removed
    needs-human
    on Sep 29, 2026
  12. kyle-sexton commented on Sep 29, 2026

    @kyle-sexton
    MemberAuthor

    This was generated by an agent following the Owner decision (2026-09-29).

    Checked two recent successful review-lane runs on ordinary PRs under ci-workflows v0.30.1 (35880dcbb2f174aac90159e276dc7eddf1bc20b9, pinned at claude-review-hosted.yml:78). The log is not enough to close, so this issue stays open.

    Run Branch Conclusion permission_denials_count
    36607643248 fix/audit-planning success 1
    36608140584 fix/audit-work-items success 1

    Five other runs from the same window logged counts of 4, 8, 5, 6 and 11 (36608045771, 36607884700, 36607614580, 36607598231, 36607137517).

    Results per check:

    • Args (confirmed): both runs have --allowedTools Skill(review:code-review) in claude_args and in the init allowedTools list.
    • Launching skill: review:code-review line (not verifiable): the run logs hold only the init and result JSON, with no per-tool stream and no uploaded artifacts. A grep for Launching skill and Execute skill finds nothing.
    • permission_denials contents (not verifiable): only the count is logged, not the tool_name entries. Each run has a count of at least 1, so a Skill entry can be neither ruled in nor out.
    • Manual-fallback statement (none seen): neither posted review nor summary comment says the skill errored or that the review was done by hand. Both cite the skill's criteria, which is indirect evidence that it loaded, not proof.

    Nothing shows a Skill denial or a fallback, and nothing proves the skill body loaded or that the denials were not Skill entries. Closing on that would be closing without the evidence the Owner decision names.

    To settle it, one of these is needed: the lane uploads the stream JSON (or logs permission_denials entries) so a run can be inspected, or someone re-runs the lane on an ordinary PR with output capture. The lane lives in melodic-software/ci-workflows, so that change is outside this repo.

  13. kyle-sexton commented on Sep 30, 2026

    @kyle-sexton
    MemberAuthor

    Owner decision (2026-09-30): Settle it with a local reproduction, since the CI logs of runs 36607643248 and 36608140584 record only permission_denials_count (1 each), never the tool names.

    1. From an origin/main checkout, run claude -p --output-format stream-json --verbose --setting-sources project --plugin-dir plugins/review --allowedTools "Bash(gh pr diff:*)" --allowedTools mcp__github_inline_comment__create_inline_comment --allowedTools "Skill(review:code-review)" with the prompt "Invoke /review:code-review now and follow its instructions exactly for this pull request." Use the claude-code-action version pinned by ci-workflows v0.30.1 if easy to match. Run it against a small ordinary PR diff or a read-only stub.
    2. Confirm the stream shows the Skill tool_result "Launching skill: review:code-review" with is_error false, and no permission_denials entry with tool_name Skill. If denials appear, list their tool names.
    3. Read .github/workflows/claude-review-hosted.yml:78 on origin/main and confirm the pinned ci-workflows SHA is 35880dcb (v0.30.1) or newer. Read claude-review.yml:153 at that tag and confirm it still appends Skill($skill).
    4. If the stream is clean and the args are confirmed, close as completed. The closing comment must state that the evidence is a local reproduction with the lane's composed args plus the CI args check, not the CI stream, and that the CI log cannot show denial tool names.
    5. If a Skill denial or fallback appears, keep the issue open and post the evidence.

    Optional, not needed to close: file a ci-workflows issue asking claude-lane-outcome to log the tool_name of each permission_denials entry. No credentials, elevation or deletion are involved.

    Approved by the owner with all consensus recommendations on 2026-09-30 (three read-only researchers, majority or judge).

    Next: the issue is agent-ready. An agent runs steps 1-3, then posts the result here and closes or keeps it open per steps 4-5.

  14. kyle-sexton commented on Sep 30, 2026

    @kyle-sexton
    MemberAuthor

    Evidence per the Owner decision (2026-09-30). This is a local reproduction with the lane's composed args plus the CI args check. It is not the CI stream, and the CI log cannot show denial tool names (it records only permission_denials_count).

    CI pin and args check

    • .github/workflows/claude-review-hosted.yml:78 on origin/main: uses: melodic-software/ci-workflows/.github/workflows/claude-review.yml@35880dcbb2f174aac90159e276dc7eddf1bc20b9 # v0.30.1
    • claude-review.yml:153 at that SHA: args="$BASE_ARGS --allowedTools mcp__github_inline_comment__create_inline_comment --allowedTools \"Skill($skill)\""

    Local reproduction (claude -p --output-format stream-json --verbose --setting-sources project --plugin-dir plugins/review --allowedTools "Bash(gh pr diff:*)" --allowedTools mcp__github_inline_comment__create_inline_comment --allowedTools "Skill(review:code-review)", prompt "Invoke /review:code-review now and follow its instructions exactly for this pull request.", against PR 5557; nothing posted to any PR)

    • Skill tool_result: Launching skill: review:code-review, is_error null (no error; the result event has is_error: false).
    • permission_denials tool names: Bash, Bash. No Skill entry. The two denials were gh pr view 5557 ... and git -C ... log ..., neither covered by the composed args (only gh pr diff is granted).
    • No manual-fallback statement. PR 5557 was already merged, so the skill stopped at its skip gate after loading.
    • The CLI version was not matched to the claude-code-action pin.

    The Skill grant is present in the composed args and the skill loads without a Skill denial, so closing as completed. Optional and not needed to close: a ci-workflows issue asking claude-lane-outcome to log each denial's tool_name.

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

    agent-ready

    Type

    Fields

    No fields configured for Bug.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions