Skip to content

Spec Kit CLI main ブランチ導入: .specify/ 追加・speckit-* スキル登録・ADR 0002 確定 #303

Closed

Description

@squne121

Machine-Readable Contract

contract_schema_version: v1
issue_kind: implementation
parent_issue: "#298"
goal_ref: "#298 spec_kit_spike_acceptance 条件付き PASS を受け、Spec Kit CLI を main ブランチに正式導入する"
change_kind: feature

Parent Goal Ref

Parent Issue

#298(spike 完了済み)
#254(SDD adoption parent)

Background

Issue #298 の throwaway worktree spike が完了し、spec_kit_spike_acceptance 6 項目がすべて条件付き PASS 以上となった。
ADR 0002 の accepted-with-deferral 決定に基づく「throwaway worktree spike 後に別 Issue で確定する」条件を満たしたため、本 Issue で main ブランチへの正式導入を実施する。

Spike 結果サマリ(#298 より)

  • specify-cli v0.8.13 インストール済み
  • specify init --here --no-git --integration claude --force を throwaway worktree で実行
  • docs/ SSOT への書き込みなし(条件付き PASS)
  • .specify/ 生成物は docs/ssot-registry.md を上書きしない(PASS)
  • main worktree の .claude/skills/ / .claude/commands/ への書き込みなし(条件付き PASS)
  • /speckit.implement 静的確認のみ実施(干渉なし、条件付き PASS)
  • round-trip 検証実現可能性あり(条件付き PASS)

Outcome

Spec Kit CLI が main ブランチに正式導入され、ADR 0002 が accepted に更新される。

In Scope

  1. .specify/ ディレクトリを main ブランチに手動マージ(throwaway worktree の生成物を整理してコミット)
  2. speckit-* スキルを upstream 名(speckit-*)のまま .claude/skills/ に追加(upstream-compatible 優先)
  3. docs/dev/agent-skill-boundaries.md に各 speckit スキルの責務境界を記録(speckit-implement は direct use prohibited / impl-review-loop 経由必須として明記すること)
  4. ADR 0002 を accepted-with-deferral → accepted に更新
  5. docs/dev/ssot-registry.md に .specify/ を derived artifact として登録

Current Validated Scope

  • .specify/ ディレクトリを main ブランチにコミット
  • .claude/skills/speckit-*/ を upstream 名のまま追加
  • docs/adr/0002-sdd-tool-adoption.md を accepted に更新
  • docs/dev/ssot-registry.md に .specify/ を derived artifact として登録
  • docs/dev/agent-skill-boundaries.md に speckit スキル責務境界を記録

Remaining Parent Gaps

  • C254-2〜C254-8 の product docs 整備(別 child Issue 群の責務)
  • speckit-* スキルの spec-* namespace へのリネーム(upstream-compatible 優先のため非実施)

Out of Scope

  • throwaway worktree での追加 spike
  • /speckit.implement の実行(ADR 0002 implementation_execution_policy.direct_speckit_implement_on_main: prohibited より禁止)
  • C254-2〜C254-8 の product docs(別 child Issue の責務)
  • speckit-* スキルの spec-* namespace へのリネーム(upstream-compatible 優先のため)

Required Skills

  • specify-cli v0.8.13(specify init / .specify/ 生成物の取り扱い)
  • bash / git(worktree マージ・コミット操作)
  • Markdown ADR フォーマット(docs/adr/0002-sdd-tool-adoption.md 更新)

Acceptance Criteria

  • AC1: .specify/ ディレクトリが main ブランチにコミットされていること
  • AC2: docs/ への変更は ADR 0002、docs/dev/ssot-registry.md 等の許可ファイルに限定されており、Spec Kit 生成物による SSOT 上書きが発生していないこと
  • AC3: speckit-* スキル 9 本が exact set で .claude/skills/ に upstream 名のまま追加され、docs/dev/agent-skill-boundaries.md に責務境界が記録されていること
  • AC3b: docs/dev/agent-skill-boundaries.md に speckit-implement が "direct execution prohibited / impl-review-loop 経由必須" として明記されていること
  • AC4: ADR 0002 が以下の条件をすべて満たして更新されていること
    • status: accepted に更新されている
    • speckit-* upstream 名採用が spec- prefix 方針の明示的な後続決定として記録されている
    • .claude/skills/speckit-* は reviewed upstream snapshot / managed derived artifact として扱うと明記されている
    • direct_speckit_implement_on_main: prohibited が維持されている
    • docs/ SSOT wins / .specify/ derived workbench の境界が維持されている
  • AC5: pnpm typecheck && pnpm lint && pnpm test && pnpm build がすべて pass すること
  • AC6: 250 行超の speckit-* SKILL.md ファイルについて、docs/dev/agent-skill-boundaries.md に Tier 3 / 常時読込禁止として記録されていること。また CLAUDE.md / .claude/rules/ に speckit スキルの常時読込指示が含まれていないこと
  • AC7: .specify/ に provenance ファイルが存在し、specify-cli バージョン・upstream tag・生成コマンド・生成日時が記録されていること

Verification Commands

# AC1: .specify/ ディレクトリが main にコミットされていること
- test -d .specify && echo "PASS: AC1 .specify exists" || echo "FAIL: AC1 .specify missing"

# AC2: docs/ への変更が許可ファイルに限定されていること(生成物による上書きなし)
# ADR 0002 と ssot-registry.md の変更は許容。それ以外の docs/ 変更がないこと
- git diff main --name-only -- docs/ | grep -v "docs/adr/0002-sdd-tool-adoption.md" | grep -v "docs/dev/ssot-registry.md" | grep -v "docs/dev/agent-skill-boundaries.md" \
  && echo "FAIL: AC2 unexpected docs/ changes found" || echo "PASS: AC2 docs/ changes limited to allowed files"

# AC3: speckit-* スキル 9 本が exact set で存在すること
- expected=$(printf '%s\n' \
  speckit-analyze \
  speckit-checklist \
  speckit-clarify \
  speckit-constitution \
  speckit-implement \
  speckit-plan \
  speckit-specify \
  speckit-tasks \
  speckit-taskstoissues | sort)

- actual=$(find .claude/skills -mindepth 1 -maxdepth 1 -type d -name 'speckit-*' -exec basename {} \; | sort)

- diff -u <(printf '%s\n' "$expected") <(printf '%s\n' "$actual") \
  && echo "PASS: AC3 exact 9 speckit skills present" \
  || { echo "FAIL: AC3 speckit skill set mismatch"; exit 1; }

- for s in $expected; do
  test -f ".claude/skills/$s/SKILL.md" \
    || { echo "FAIL: missing .claude/skills/$s/SKILL.md"; exit 1; }
  done
- echo "PASS: AC3 all speckit SKILL.md files present"
# agent-skill-boundaries.md に記録されていること
- rg "speckit" docs/dev/agent-skill-boundaries.md && echo "PASS: AC3 agent-skill-boundaries.md updated" || echo "FAIL: AC3 agent-skill-boundaries.md not updated"

# AC4: ADR 0002 が accepted に更新されていること
- rg "status.*accepted" docs/adr/0002-sdd-tool-adoption.md | grep -v "accepted-with-deferral" && echo "PASS: AC4 ADR 0002 accepted" || echo "FAIL: AC4 ADR 0002 not updated"

# AC5: 品質ゲート
- pnpm typecheck && pnpm lint && pnpm test && pnpm build && echo "PASS: AC5 quality gates" || echo "FAIL: AC5 quality gates"

# AC6: 250行超 speckit SKILL.md の Tier 3 記録確認
- for f in .claude/skills/speckit-*/SKILL.md; do
  lines="$(wc -l < "$f" | tr -d ' ')"
  skill="$(basename "$(dirname "$f")")"
  if [ "$lines" -gt 250 ]; then
    rg -n "$skill" docs/dev/agent-skill-boundaries.md | grep -q "Tier 3\|常時読込禁止\|auto.load prohibited" \
      && echo "PASS: AC6 $skill ($lines lines) Tier 3 documented" \
      || { echo "FAIL: AC6 $skill is $lines lines but Tier 3 not documented"; exit 1; }
  fi
  done
# 常時読み込み導線がないこと
- ! rg -n "speckit-.*(always|常時|必ず読む|autoload|auto-load)" CLAUDE.md .claude/rules docs/dev 2>/dev/null \
  && echo "PASS: AC6 no always-load speckit policy" \
  || { echo "FAIL: AC6 speckit always-load policy found"; exit 1; }

# AC7: .specify/ provenance 確認
- test -f ".specify/provenance/spec-kit-main-introduction.yml" \
  && rg "specify_cli_version|upstream_tag|generation_command|generated_at" .specify/provenance/spec-kit-main-introduction.yml \
  && echo "PASS: AC7 provenance file exists" \
  || echo "FAIL: AC7 provenance file missing or incomplete"

Allowed Paths

  • .specify/ — 新規追加(Spec Kit CLI 生成物)
  • .claude/skills/speckit-*/ — 新規追加(upstream 名のまま)
  • docs/adr/0002-sdd-tool-adoption.md — ADR 更新
  • docs/dev/ssot-registry.md — derived artifact 登録
  • docs/dev/agent-skill-boundaries.md — speckit スキル責務境界記録
  • 上記以外の docs/ への書き込み禁止
  • src/ への書き込み禁止

Stop Conditions

  • Spec Kit 生成物が docs/ SSOT を上書きしようとした場合は即停止
  • main worktree で specify init を直接実行しようとした場合は即停止(throwaway 由来でない .claude/skills/speckit-* 変更を検出した場合も即停止)
  • /speckit.implement を実行しようとした場合は即停止
  • Allowed Paths 外のファイル(.claude/commands/**, CLAUDE.md, .github/**, src/** など)を変更しようとした場合は即停止
  • pnpm build が失敗した場合は修正してから次へ進む
  • 権限不足(permission denied)により操作が完了できない場合は即停止

Preconditions

Required Guardrails(ADR 0002 より)

  • .specify/memory/constitution.md を docs/ SSOT の上位に置かない
  • speckit-* スキルは .claude/skills/ に配置し、docs/dev/agent-skill-boundaries.md に責務境界を登録する(upstream 名 speckit-* のまま維持)
  • tasks.md は staging artifact として扱い、GitHub Issues materialize 後は archived に降格
  • SKILL.md のうち 250 行超(checklist/specify/analyze/clarify)は Tier 3 扱いで常時読込禁止

Runtime Verification Applicability

deferred — PR マージ後の CI 実行で確認。

  • destination_type: pr_ci
  • destination_ref: (本 Issue を Close する PR の CI ランURL、マージ後に記録)
  • deferred_verification_condition: >
    pnpm typecheck && pnpm lint && pnpm test && pnpm build が CI 上で全件 PASS し、
    AC1〜AC4 の bash VC コマンドが PASS 出力を返すこと

Source

source: impl-review-loop (issue #298)
dedupe_key: spec-kit-main-branch-introduction
anchor: https://github.com/squne121/loop-protocol/issues/298#issuecomment-4525168824

Activity

  1. added
    phase/implementation
    kind/implementation
    area/ai-ops
    on May 23, 2026
  2. squne121 commented on May 23, 2026

    @squne121
    OwnerAuthor

    判定

    REQUEST_CHANGES。
    #303 の導入方針自体は妥当ですが、現在の Issue 契約のまま実装させると、ADR 0002 の既存ガードレールを破ってから後追いで正当化する形になります。特に .claude/skills/speckit-* の正式追加は、現在の ADR が明記している spec- prefix 方針・.claude/skills/** 自動生成禁止と衝突します。これは単なる status: accepted への変更ではなく、ADR の policy delta として明示的に扱うべきです。

    関連 Issue / PR の読み取り

    #254 は、SDD ツール採用を既存 docs/SSOT・Skill/SubAgent・Issue/PR 運用と整合させ、不足 product SSOT を child Issue 化する親 Issue です。ここでは「実 SDD ツールの main 直接導入は Parent では行わない」「throwaway worktree spike 後に判断する」という前提が固定されています。

    #298 はその spike Issue で、main worktree への変更禁止、/speckit.implement 実行禁止、.claude/skills 書き込みは throwaway 内のみ許容、という分離が主眼でした。#303 はその結果を受けた本導入 Issue ですが、#298 の結果は「条件付き PASS」であり、無条件に ADR を fully accepted にできる証拠ではありません。

    PR #302 は現在 open draft で、ssot-catalog.md を削除し docs/dev/ssot-registry.md を唯一の正本にする変更です。#303 も docs/dev/ssot-registry.md を変更するため、#302 の前後関係を固定しないと registry 形式・責務説明・検証コマンドが stale になります。

    外部実装調査からの重要点

    Spec Kit 公式は specify-cli の導入元を GitHub release/tag に限定しており、同名 PyPI パッケージは公式ではないと明記しています。#303 は specify-cli v0.8.13 を前提にしていますが、PR では tag/commit・生成コマンド・生成ファイル manifest を証跡化すべきです。([GitHub]1)

    specify init --here --force は既存ディレクトリへの merge/overwrite を許すオプションです。#303 が「throwaway 生成物を整理して手動マージ」としているのは正しいですが、main worktree 上で specify init --force を実行していないことを検証条件に入れないと、事故を検出できません。([GitHub Pages]2)

    Claude integration は公式に .claude/skills へ skills を導入する方式です。したがって .claude/skills/speckit-* の追加は「異常な副作用」ではなく、Claude integration の期待動作です。#303 の Stop Condition にある「.specify/ 以外の hidden directory への自動生成書き込みが発生したら停止」は、In Scope / Allowed Paths と矛盾します。([GitHub Pages]3)

    Spec Kit upstream は core 6 + optional 3 の合計 9 個の speckit-* skills / commands を公開しています。#303 の AC3 も 9 本追加を要求していますが、Verification Command は >= 1 しか見ていないため、8 本欠けても PASS します。([GitHub]4)

    Token risk は消えていません。upstream #1401 は slash command / command 定義の context tax を open issue として報告しており、#1492 は closed ですが生成 artifact の肥大化・再生成・再読込による token 消費リスクを記録しています。#303 は Tier 3 / 常時読込禁止を Guardrail に書いていますが、検証コマンドで確認していません。([GitHub]5) ([GitHub]6)

    Blocker

    1. ADR 0002 の変更が「status 更新」だけでは足りない

    現在の ADR 0002 は、Spec Kit 関連 skill は spec- prefix、.claude/skills/** / .claude/commands/** への Spec Kit 自動生成 artifact 書き込みは禁止、という方針です。一方 #303 は upstream-compatible 優先として .claude/skills/speckit-* を追加します。これは ADR の本文上の方針変更です。

    AC4 は次のように強化すべきです。

    AC4:
      - ADR 0002 status が accepted に更新されている
      - `speckit-*` upstream 名採用が `spec-` prefix 方針の明示的な後続決定として記録されている
      - `.claude/skills/speckit-*` は自動生成の野放しではなく、reviewed upstream snapshot / managed derived artifact として扱うと明記されている
      - `direct_speckit_implement_on_main: prohibited` が維持されている
      - `docs/` SSOT wins / `.specify/` derived workbench の境界が維持されている

    2. Stop Condition が In Scope と矛盾している

    #303 は .claude/skills/speckit-*/ を Allowed Paths に入れていますが、Stop Conditions では「.specify/ 以外の hidden directory(.claude/ 等)への自動生成書き込みが発生した場合は即停止」としています。これは実装者にとって矛盾した契約です。

    修正案は次です。

    Stop Conditions:
      - main worktree で `specify init` を直接実行しようとした場合は即停止
      - throwaway 由来でない `.claude/skills/speckit-*` 変更を検出した場合は即停止
      - `.claude/commands/**`, `CLAUDE.md`, `.github/**`, `src/**` など Allowed Paths 外の変更が発生した場合は即停止
      - `speckit-implement` を実行経路として有効化しようとした場合は即停止

    3. AC3 の検証が壊れている

    現在の AC3 は「9 本」と言いながら、検証は test "$n" -ge 1 です。これは重大な false positive です。最低限、exact set を検証してください。

    expected=$(
      printf '%s\n' \
        speckit-analyze \
        speckit-checklist \
        speckit-clarify \
        speckit-constitution \
        speckit-implement \
        speckit-plan \
        speckit-specify \
        speckit-tasks \
        speckit-taskstoissues
    )
    
    actual=$(
      find .claude/skills -mindepth 1 -maxdepth 1 -type d -name 'speckit-*' -exec basename {} \; | sort
    )
    
    diff -u <(printf '%s\n' "$expected") <(printf '%s\n' "$actual") \
      && echo "PASS: AC3 exact 9 speckit skills present" \
      || { echo "FAIL: AC3 speckit skill set mismatch"; exit 1; }
    
    for s in $expected; do
      test -f ".claude/skills/$s/SKILL.md" \
        || { echo "FAIL: missing .claude/skills/$s/SKILL.md"; exit 1; }
    done

    4. AC2 の diff 検証が弱い

    git diff main --name-only -- docs/ は、実行ブランチ・ローカル main の鮮度・merge-base に依存します。さらに docs だけを見ているため、Allowed Paths 外の hidden/generated files を見逃します。

    #303 では docs だけではなく、変更ファイル全体を allowlist で検査してください。

    base="$(git merge-base origin/main HEAD)"
    
    git diff --name-only "$base"..HEAD | awk '
      /^\.specify\// { next }
      /^\.claude\/skills\/speckit-(analyze|checklist|clarify|constitution|implement|plan|specify|tasks|taskstoissues)\/SKILL\.md$/ { next }
      /^docs\/adr\/0002-sdd-tool-adoption\.md$/ { next }
      /^docs\/dev\/ssot-registry\.md$/ { next }
      /^docs\/dev\/agent-skill-boundaries\.md$/ { next }
      { print "UNEXPECTED_PATH: " $0; bad=1 }
      END { exit bad }
    ' \
      && echo "PASS: changed paths are within #303 allowlist" \
      || { echo "FAIL: unexpected changed paths"; exit 1; }

    追加で、明示的に禁止パスを確認してください。

    test -z "$(git diff --name-only "$base"..HEAD -- src .github .claude/commands CLAUDE.md)" \
      && echo "PASS: forbidden paths untouched" \
      || { echo "FAIL: forbidden paths changed"; git diff --name-only "$base"..HEAD -- src .github .claude/commands CLAUDE.md; exit 1; }

    5. speckit-implement を active skill として置くリスクが未処理

    ADR 0002 は /speckit.implement と tasks.md からの直接実装を禁止し、GitHub Issue → issue-contract-review → impl-review-loop → test-runner → pr-review-judge を必須経路にしています。

    しかし #303 は speckit-implement も 9 本の一部として active な .claude/skills/ に配置します。これは「禁止された導線を見える場所に置く」設計です。最低限、docs/dev/agent-skill-boundaries.md に speckit-implement は直接実行禁止・adapter/future-use-only と明記してください。同ドキュメントは既に Skill/SubAgent 責務境界の正本です。

    より安全な設計は次のどちらかです。

    option_a:
      active_skills: 8
      archived_only:
        - speckit-implement
      rationale: direct implementation path is prohibited until adapter issue is implemented
    
    option_b:
      active_skills: 9
      required_guard:
        - agent-skill-boundaries.md に direct use prohibited を明記
        - speckit-implement/SKILL.md または project-level policy に impl-review-loop 経由必須を明記
        - PR review で direct execution 導線が追加されていないことを確認

    6. Token / loading guard が検証されていない

    #303 の Guardrails には「250 行超 SKILL.md は Tier 3 扱いで常時読込禁止」とありますが、AC/VC で何も見ていません。upstream の token issue を踏まえると、これは acceptance criteria に昇格すべきです。

    # 250行超 skill を列挙し、agent-skill-boundaries.md に Tier 3 / 常時読込禁止の記載があることを要求
    for f in .claude/skills/speckit-*/SKILL.md; do
      lines="$(wc -l < "$f" | tr -d ' ')"
      skill="$(basename "$(dirname "$f")")"
      if [ "$lines" -gt 250 ]; then
        rg -n "$skill.*(Tier 3|常時読込禁止|auto.?load prohibited|scoped loading)" docs/dev/agent-skill-boundaries.md \
          || { echo "FAIL: $skill is $lines lines but Tier 3/loading boundary is not documented"; exit 1; }
      fi
    done
    
    # 常時読み込み導線がないこと
    ! rg -n "speckit-.*(always|常時|必ず読む|autoload|auto-load)" CLAUDE.md .claude/rules docs/dev 2>/dev/null \
      && echo "PASS: no always-load speckit policy found" \
      || { echo "FAIL: speckit always-load policy found"; exit 1; }

    7. .specify/ の provenance が不足している

    #303 は .specify/ を main に入れる Issue ですが、生成元の tag/commit、生成コマンド、生成ファイル一覧、hash が AC にありません。将来 upstream v0.8.14+ と混ざったときに差分の由来を追えません。

    .specify/ 内に provenance を残すことを推奨します。

    mkdir -p .specify/provenance
    
    {
      echo "specify_cli_version: $(specify version --json 2>/dev/null || specify version)"
      echo "upstream_tag: v0.8.13"
      echo "generation_command: specify init --here --no-git --integration claude --force"
      echo "generated_at: $(date -u +%Y-%m-%dT%H:%M:%SZ)"
    } > .specify/provenance/spec-kit-main-introduction.yml
    
    find .specify .claude/skills/speckit-* -type f -print0 \
      | sort -z \
      | xargs -0 sha256sum \
      > .specify/provenance/upstream-snapshot.sha256

    #303 を高品質化する最小修正

    Issue 本文に次を追加・修正すれば、実装 Issue としてかなり安定します。

    1. AC4 を ADR policy delta 検証に拡張する
      status: accepted だけでなく、speckit-* upstream 名採用、.claude/skills への managed snapshot 追加、direct implement 禁止維持、docs/SSOT wins 維持を検証する。

    2. AC3 を exact 9 skills 検証にする
      >=1 は削除。9 skill 名の完全一致を要求する。

    3. Allowed Paths / Stop Conditions の矛盾を解消する
      .claude/skills/speckit-* は allowed。ただし .claude/commands/**, CLAUDE.md, .github/**, src/** は禁止、という形に分ける。

    4. PR feat(#297): ssot-catalog.md を削除し、registry を唯一の正本とする #302 との順序を明記する
      feat(#297): ssot-catalog.md を削除し、registry を唯一の正本とする #302 が先に merge されるなら Spec Kit CLI main ブランチ導入: .specify/ 追加・speckit-* スキル登録・ADR 0002 確定 #303 は rebase 後に docs/dev/ssot-registry.md のみを更新し、ssot-catalog.md を復活させない。Spec Kit CLI main ブランチ導入: .specify/ 追加・speckit-* スキル登録・ADR 0002 確定 #303 が先なら feat(#297): ssot-catalog.md を削除し、registry を唯一の正本とする #302 側で rebase と競合確認を必須にする。

    5. speckit-implement を禁止導線として明示する
      active に置くなら agent-skill-boundaries.md に direct use prohibited を書く。より安全には archived/vendor snapshot 扱いにする。

    6. token/loading guard を AC に入れる
      250 行超 SKILL.md の Tier 3 記録、常時読込禁止、full regeneration 禁止、.specify/ artifact 自動読込禁止を検証する。

    修正版の中核 Acceptance Criteria 案

    acceptance_criteria:
      AC1:
        .specify/ exists and includes provenance for upstream tag/commit/generation command.
      AC2:
        changed paths are exactly within:
          - .specify/**
          - .claude/skills/speckit-*/SKILL.md
          - docs/adr/0002-sdd-tool-adoption.md
          - docs/dev/ssot-registry.md
          - docs/dev/agent-skill-boundaries.md
        forbidden paths remain unchanged:
          - src/**
          - .github/**
          - .claude/commands/**
          - CLAUDE.md
      AC3:
        exactly nine upstream speckit skills are present with expected names.
      AC4:
        ADR 0002 is accepted and records the policy delta from spec-* to speckit-* upstream-compatible managed snapshot.
      AC5:
        agent-skill-boundaries.md records each speckit skill, direct-use policy, loading tier, and relation to existing impl-review-loop / issue-contract-review.
      AC6:
        speckit-implement remains prohibited for direct main implementation.
      AC7:
        token/loading guard is documented and verified for >250-line skills.
      AC8:
        pnpm typecheck && pnpm lint && pnpm test && pnpm build all pass.

    最終コメント

    #303 は「Spec Kit を入れるかどうか」ではなく、Spec Kit upstream artifact を既存 LOOP_PROTOCOL governance の中へどう隔離・証跡化・非正本化するかの Issue です。現在の本文は導入対象の列挙はできていますが、ADR 0002 の方針変更、active skill 化リスク、token/loading guard、PR #302 との registry 競合を十分に閉じていません。ここを修正してから実装に回すべきです。

  3. squne121 commented on May 23, 2026

    @squne121
    OwnerAuthor

    issue-refinement-loop: 完了 (2026-05-23T12:04:54Z)

    改善履歴

    iteration 0 — anchor comment(OWNER REQUEST_CHANGES)の feedback を反映:

    • C9: ## Runtime Verification Applicability セクション追加(deferred / pr_ci)
    • C1: ## Parent Goal Ref / ## Current Validated Scope / ## Remaining Parent Gaps / ## Required Skills 追加
    • AC3 VC: exact 9 speckit skills 検証に変更(diff ベース・SKILL.md 存在確認)
    • AC4 拡張: ADR 0002 policy delta(speckit-* upstream 名採用・managed snapshot 化・direct implement 禁止・docs SSOT wins)5 条件を明示
    • Stop Conditions: Allowed Paths と矛盾していた「.claude/ 以外への自動生成書き込み禁止」を削除し、具体的な禁止導線(specify init 直接実行禁止・Allowed Paths 外ファイル明示)に差し替え
    • AC3b 追加: speckit-implement が direct use prohibited / impl-review-loop 経由必須として記録されていることを検証
    • AC6 追加: 250 行超 SKILL.md の Tier 3 記録確認・常時読込禁止確認
    • AC7 追加: .specify/ provenance ファイル確認
    • Preconditions: PR feat(#297): ssot-catalog.md を削除し、registry を唯一の正本とする #302 との前後関係明示

    iteration 1 — review-issue が approve を返したため終了

    次アクション

    issue-contract-review を実施してください。

    FOLLOW_UP_MATERIALIZATION_RESULT_V1:
      follow_up_issues: []
      note_only_observations:
        - dedupe_key: "issue-303-ac3b-numbering-cleanup"
          source_url: "https://github.com/squne121/loop-protocol/issues/303"
          source_note_id: "reviewer-non-blocking-1"
          summary: "AC3b は AC[0-9]+ パターン外のサフィックスのため、将来の機械チェックで orphan 検出の可能性あり。AC3 統合または AC8 への連番変更を推奨(non-blocking)"
        - dedupe_key: "issue-303-pr302-merge-order"
          source_url: "https://github.com/squne121/loop-protocol/issues/303"
          source_note_id: "codebase-investigator-R2"
          summary: "PR #302(open draft)が ssot-registry.md を変更しており、#303 との競合リスクあり。Preconditions に前後関係を明記済み(Issue 本文で対処済み、別 Issue 不要)"
  4. squne121 commented on May 23, 2026

    @squne121
    OwnerAuthor

    Contract Snapshot (2026-05-23T12:11:00Z)

    • Outcome: Spec Kit CLI が main ブランチに正式導入され、ADR 0002 が accepted に更新された状態
    • Acceptance Criteria:
      • AC1: .specify/ ディレクトリが main ブランチにコミットされていること
      • AC2: docs/ への変更は ADR 0002、docs/dev/ssot-registry.md、docs/dev/agent-skill-boundaries.md に限定されていること
      • AC3: speckit-* スキル 9 本(exact set)が .claude/skills/ に追加され、docs/dev/agent-skill-boundaries.md に責務境界が記録されていること
      • AC3b: docs/dev/agent-skill-boundaries.md に speckit-implement が "direct execution prohibited / impl-review-loop 経由必須" として明記されていること
      • AC4: ADR 0002 が accepted に更新され、policy delta(speckit-* upstream 名採用・managed snapshot 化・direct implement 禁止維持・docs SSOT wins)が記録されていること
      • AC5: pnpm typecheck && pnpm lint && pnpm test && pnpm build がすべて PASS
      • AC6: 250 行超 speckit-* SKILL.md の Tier 3 / 常時読込禁止が agent-skill-boundaries.md に記録され、常時読込導線がないこと
      • AC7: .specify/provenance/spec-kit-main-introduction.yml が存在し、specify-cli バージョン・upstream tag・生成コマンド・生成日時が記録されていること
    • Verification Commands: Issue 本文の ## Verification Commands セクション参照
    • Allowed Paths:
      • .specify/
      • .claude/skills/speckit-*/
      • docs/adr/0002-sdd-tool-adoption.md
      • docs/dev/ssot-registry.md
      • docs/dev/agent-skill-boundaries.md
    • Worktree: .claude/worktrees/issue-303-specify-speckit-adr-0002
    • Branch: worktree-issue-303-specify-speckit-adr-0002
    • VC preflight: baseline fail = 5 (AC1/AC3/AC3-boundaries/AC4/AC7), 想定通り pass = 3 (AC2/AC5/AC6), 想定外 pass = 0, 実行不可 = 0

    CONTRACT_REVIEW_RESULT_V1:
      status: go
      generated_at: "2026-05-23T12:11:00Z"
      generated_by: issue-contract-review
      issue_url: https://github.com/squne121/loop-protocol/issues/303
      checks:
        template_compliance: pass
        state_label: ok
        allowed_paths_present: pass
        vc_present: pass
        stop_conditions_complete: pass
        vc_preflight:
          passed: true
          vc_failed_as_expected: 5
          vc_passed_unexpectedly: 0
          vc_unrunnable: 0
          classifications:
            - ac: AC1
              command: "test -d .specify"
              exit_code: 1
              category: file_not_found_expected
              confidence: high
              decision: go
            - ac: AC2
              command: "git diff main --name-only -- docs/ | grep-v allowed"
              exit_code: 1
              category: expected_baseline_fail
              confidence: high
              decision: go
            - ac: AC3
              command: "diff -u expected actual (speckit-* skills)"
              exit_code: 1
              category: file_not_found_expected
              confidence: high
              decision: go
            - ac: AC4
              command: "rg 'status.*accepted' docs/adr/0002-sdd-tool-adoption.md"
              exit_code: 1
              category: expected_baseline_fail
              confidence: high
              decision: go
            - ac: AC5
              command: "pnpm typecheck && pnpm lint && pnpm test && pnpm build"
              exit_code: 0
              category: expected_baseline_fail
              confidence: high
              decision: go
            - ac: AC6
              command: "no speckit SKILL.md found (baseline skip) + no always-load policy"
              exit_code: 0
              category: expected_baseline_fail
              confidence: high
              decision: go
            - ac: AC7
              command: "test -f .specify/provenance/spec-kit-main-introduction.yml"
              exit_code: 1
              category: file_not_found_expected
              confidence: high
              decision: go
        ac_verifiability: pass
        worktree_branch_collision: clear
      next_action: implement_issue
      blocked_reasons: []
      warnings:
        - "AC3b は AC[0-9]+ パターン外のサフィックス。AC3 の VC がカバーする範囲で non-blocking(refinement-loop 記録済み)"
  5. squne121 commented on May 23, 2026

    @squne121
    OwnerAuthor

    implement-issue: 実装完了 (2026-05-23T21:18:00Z)

    検証結果サマリ

    AC 結果
    AC1: .specify/ コミット PASS
    AC2: docs/ 変更が許可ファイルに限定 PASS
    AC3: speckit-* 9本 exact set PASS
    AC3b: speckit-implement direct execution prohibited 明記 PASS
    AC4: ADR 0002 accepted 更新 PASS
    AC5: pnpm typecheck/lint/test/build PASS
    AC6: 250行超 Tier 3 記録 / always-load 導線なし PASS
    AC7: provenance ファイル存在 PASS
  6. squne121 commented on May 23, 2026

    @squne121
    OwnerAuthor

    impl-review-loop: 完了 (2026-05-23T12:22:00Z)

    FOLLOW_UP_MATERIALIZATION_RESULT_V1:
      follow_up_issues:
        - request_dedupe_key: "follow-up:squne121/loop-protocol:https://github.com/squne121/loop-protocol/pull/308:1"
          issue_number: 309
          issue_url: "https://github.com/squne121/loop-protocol/issues/309"
          status: created
          title: "実装: pr-review-judge SKILL.md の Safety Claim Gate に .claude/skills/** 追加 PR の not-applicable パターンを明示する"
          severity: optional_follow_up
    
      note_only_observations: []
  7. added a commit that references this issue on May 23, 2026
  8. squne121 commented on May 23, 2026

    @squne121
    OwnerAuthor

    impl-review-loop: 完了 (2026-05-23T12:35:00Z)

    イテレーション履歴

    iteration 修正内容 verdict
    0 初回実装(.specify/ / speckit-* / ADR 0002 / ssot-registry / agent-skill-boundaries) 人間 REQUEST_CHANGES
    1 B1: ADR decision block 更新 / B2: registry stale 解消 / B3: user-invocable guard 追加 / B4: provenance 修正 + Safety Claim Matrix 追加 pr-reviewer REQUEST_CHANGES
    2 Safety Claim Matrix を 5 列形式に更新 pr-reviewer REQUEST_CHANGES
    3 speckit-taskstoissues Follow-up 列に #309 を追加 APPROVE
    FOLLOW_UP_MATERIALIZATION_RESULT_V1:
      follow_up_issues:
        - request_dedupe_key: "follow-up:squne121/loop-protocol:https://github.com/squne121/loop-protocol/pull/308:1"
          issue_number: 309
          issue_url: "https://github.com/squne121/loop-protocol/issues/309"
          status: reused_open
          title: "実装: pr-review-judge SKILL.md の Safety Claim Gate に .claude/skills/** 追加 PR の not-applicable パターンを明示する"
          severity: optional_follow_up
    
      note_only_observations: []
  9. added a commit that references this issue on May 23, 2026
  10. squne121 commented on May 23, 2026

    @squne121
    OwnerAuthor

    post-merge-cleanup: 完了 (2026-05-23T14:00:00Z)

    FOLLOW_UP_MATERIALIZATION_RESULT_V1:
      follow_up_issues: []
      note_only_observations:
        - dedupe_key: "post-merge-cleanup:pr-308:throwaway-worktree"
          source_url: "https://github.com/squne121/loop-protocol/pull/308"
          source_note_id: "cleanup-1"
          summary: "/tmp/spec-kit-spike(#298 throwaway worktree)は OS の /tmp クリーンアップに委ねる。main への導入完了により不要になった。"
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

    area/ai-opskind/implementationphase/implementation

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions