Skip to content

改善: milestone-ops 系 Issue の AC2/AC3 VC 検索パターンを厳密化する #209

Open

Description

@squne121

概要

Issue #146 (M-A3) の Verification Commands で、AC2/AC3 の contains() パターンが refinement review コメントのテンプレート記述にも誤マッチする問題が確認された。

問題

AC2 の VC

gh issue view 146 --comments --jq '[.comments[] | select(.body | contains("| # | type |"))] | length'

refinement review コメントが「AC2 の推奨フォーマット: | # | type |」という形で記述を含むため、実装前から count >= 1 になる。

AC3 の VC

gh issue view 146 --comments --jq '[.comments[] | select(.body | contains("parent issue") or contains("Parent Issue"))] | length'

refinement review コメントが "Parent Issue" という語を多数含むため、実装前から count >= 1 になる。

影響

  • issue-contract-review の VC preflight で「想定外 pass」を誤検出する
  • AC が実際には実装されていなくても合格してしまう(VC 精度が低い)

改善案

より具体的なセクション見出しや固有マーカーを使う:

# AC2: 棚卸し記録確認(実装コメントの特定マーカーで識別)
gh issue view 146 --comments --json comments \
  --jq '[.comments[] | select(.body | contains("## M-A3 棚卸し記録"))] | length'
# → 1 以上であること
# AC3: 分類記録確認
gh issue view 146 --comments --json comments \
  --jq '[.comments[] | select(.body | contains("## M-A3 割当分類"))] | length'
# → 1 以上であること

Source

Activity

  1. added
    enhancement
    triage-required
    on May 22, 2026
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

    enhancementtriage-required

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions