Skip to content

fix: AC-guard VC のスコープを Allowed Paths に限定する #142

Open

Description

@squne121

Outcome

PR #139 のレビューで指摘された AC-guard VC のスコープ問題を修正する。
現状の AC-guard VC は .claude/skills(再帰)と docs/ 全体をスキャンするため、Allowed Paths 外のファイルに pre-existing なヒットが生じ、CI で偽陽性として検出される。

AC-guard VC がスキャン対象を Allowed Paths に含まれるファイルのみ に限定するよう修正する。

In Scope

  • docs/dev/runtime-verification-policy.md(AC-guard の VC 記述修正)
  • AC-guard スキャン範囲を Allowed Paths 列挙ファイルのみに絞る実装

Out of Scope

  • Allowed Paths 外の pre-existing ヒット自体の修正(別 Issue が必要なため)

Acceptance Criteria

  • AC1: AC-guard VC が Allowed Paths 外のファイルをスキャンしない
  • AC2: Allowed Paths 内のファイルに対してのみパターン検出を実行する
  • AC3: 修正後に pnpm typecheck / lint / test / build が全件 PASS

Verification Commands

# AC1: AC-guard VC が Allowed Paths 外ファイルをスキャンしていないことを確認
# AC2: Allowed Paths 内のみスキャンすることを確認
# AC3: 標準検証
pnpm typecheck && pnpm lint && pnpm test && pnpm build

Allowed Paths

  • docs/dev/runtime-verification-policy.md

Stop Conditions

  • Allowed Paths 外の既存ファイルの修正が必要になった場合(別 Issue で扱う)
  • スコープ変更が必要な場合
  • 仕様判断が必要な場合
  • 技術的ブロッカーが発生した場合
  • pnpm typecheck / lint / test / build に新規エラーが発生した場合
  • 作業開始から 2 時間以上経過した場合

Runtime Verification Applicability

  • decision: not_applicable
  • reason: 静的検証(typecheck / lint / test / build)のみで完結する変更

Background

PR #139 の AC-guard VC 問題:

  • docs/dev/github-ops.md:165: 必ず \uv run python3 ...`` — Allowed Paths 外のため修正不可
  • .claude/skills/post-merge-cleanup/SKILL.md:178: 必ず.*rg パターンが post-merge-cleanup パス内の文字列にマッチ

根本原因は VC が Allowed Paths に限定されていないこと。

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

    phase/implementation

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions