Skip to content

実装: pr-review-judge SKILL.md の Safety Claim Gate に .claude/skills/** 追加 PR の not-applicable パターンを明示する #309

Closed as not planned

Description

@squne121

Machine-Readable Contract

contract_schema_version: v1
issue_kind: implementation
parent_issue: none
goal_ref: "pr-review-judge/SKILL.md の Safety Claim Gate セクションに、.claude/skills/** への新規スキル追加 PR(permission/auth/sandbox に関わらないもの)を not_applicable パターンとして明示し、判定基準の曖昧さを解消する"
change_kind: workflow

Parent Issue

なし(単独改善)

Parent Goal Ref

  • Goal: pr-review-judge/SKILL.md の Safety Claim Gate の Safety-sensitive PR 判定条件に、.claude/skills/** 追加 PR のうち permission/auth/sandbox に関わらないものを not_applicable パターンとして明示する
  • Desired Destination: N/A(単独改善 Issue のため)

Current Validated Scope

  • .claude/skills/pr-review-judge/SKILL.md の Step 4.6(Safety Claim Gate セクション)の Safety-sensitive PR 判定ブロックに、.claude/skills/** 追加 PR の not_applicable パターン(判定基準と例示)を追記する

Remaining Parent Gaps

なし(単独改善 Issue のため)

Outcome

.claude/skills/pr-review-judge/SKILL.md の Step 4.6 に、.claude/skills/** への新規スキル追加 PR(permission/auth/sandbox に関わらないもの)を Safety Claim Matrix 要求の not_applicable ケースとして明示する記述が追加され、rg "not_applicable" .claude/skills/pr-review-judge/SKILL.md がヒットする状態になる。かつ pnpm typecheck && pnpm lint && pnpm test && pnpm build が PASS する。

Background

PR #308(feat(#303): Spec Kit CLI main ブランチ導入)のレビュー中に、pr-review-judge SKILL.md の Safety Claim Gate の判定条件が曖昧であることが検出された。

現在の SKILL.md には「changed path が .claude/skills/** に一致する場合は safety-sensitive と判定する」という条件が存在する。しかし「permission/auth/sandbox に関わらない新規スキル追加(例: Spec Kit CLI スキルの追加)」が実際に safety-sensitive かどうかの判定基準が記述されていない。

根本原因: .claude/skills/** という path-based 判定が一律に適用されており、スキル本体のセマンティクス(permission/auth/sandbox を操作するかどうか)に基づいた除外パターンが存在しない。結果として、新規スキル追加 PR が誤って Safety Claim Matrix を要求される判定になりうる。

決定論的修正方針: Safety-sensitive PR 判定ブロックに not_applicable 条件サブセクションを追加し、.claude/skills/** 追加 PR のうち「permission/auth/sandbox に関わらないもの」を明示的に not_applicable パターンとして列挙する。これにより、判定者(AI Agent・人間双方)が一貫した判断を行えるようになる。

Source:

source:
  kind: pr_review
  url: https://github.com/squne121/loop-protocol/pull/308
  note_id: "1"
dedupe_key: "follow-up:squne121/loop-protocol:https://github.com/squne121/loop-protocol/pull/308:1"

In Scope

  • .claude/skills/pr-review-judge/SKILL.md の Step 4.6「Safety Claim Gate」セクション内に、.claude/skills/** 追加 PR の not_applicable パターン(判定基準と具体例)の追記

Out of Scope

Acceptance Criteria

  • AC1: pr-review-judge/SKILL.md の Step 4.6 に、.claude/skills/** への新規スキル追加 PR のうち permission/auth/sandbox に関わらないものを Safety Claim Matrix 要求の not_applicable ケースとする記述が追加されている
  • AC2: not_applicable 判定の基準(例: 「MCP tool registry / permission / auth / sandbox を操作しない新規スキル追加」)が明示されている
  • AC3: rg "not_applicable" .claude/skills/pr-review-judge/SKILL.md がヒットする
  • AC4: pnpm typecheck && pnpm lint && pnpm test && pnpm build が PASS する

Verification Commands

  • rg "not_applicable" .claude/skills/pr-review-judge/SKILL.md && echo "PASS: not_applicable pattern found" || echo "FAIL: not_applicable pattern missing" — AC1/AC3 確認
  • grep -n "permission\|auth\|sandbox" .claude/skills/pr-review-judge/SKILL.md | grep -i "not_applicable\|除外\|除外パターン\|skip" && echo "PASS: not_applicable criteria found" || echo "FAIL: criteria missing" — AC2 確認
  • pnpm typecheck — TypeScript 型エラーなし
  • pnpm lint — ESLint エラーなし
  • pnpm test — Vitest 全件 PASS
  • pnpm build — vite build 成功

Allowed Paths

  • .claude/skills/pr-review-judge/SKILL.md

Stop Conditions

Required Skills

なし

Scope Delta(任意)

N/A

Delivery Rule

Activity

  1. added
    phase/implementation
    agent/implementer
    enhancement
    triage-required
    on May 23, 2026
  2. squne121 commented on May 24, 2026

    @squne121
    OwnerAuthor

    Superseded by #371 / #330 / #144 (2026-05-24T11:40:58Z)

    本 Issue は pr-review-judge / open-pr / implement-issue の SKILL.md に Safety Claim Matrix の prose/template 雛形を追記する設計として起票されたが、Issue #244 の validator-script-centric 方針と #295 の SKILL.md 行数中立性制約に従い、同一フォーマットの雛形を複数 SKILL.md に重複記述する方針を採用しない。

    機械検証への一元化により本 Issue は standalone 実装せず close する。

    吸収先(責務分界):

    関連根拠:

    termination_reason: superseded_by_decision
    closed via: issue-refinement-loop (#371 iter 完了後の follow-up cleanup)

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/implementerenhancementphase/implementationtriage-required

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions