Repository navigation
docs(#283): docs/dev/product-spec-lifecycle.md を追加 — SDD ライフサイクル定義(C254-2) - #322
Conversation
…54-2) product spec のライフサイクル定義文書を追加し、docs/product/** の作成・更新・ archive・registry 登録手順、ADR 0002 の token_policy(compact spec / scoped loading / diff-first 更新)への準拠、tasks.md staging artifact → GitHub Issue 変換フロー、 workflow.md との責務境界を明文化する。 - docs/dev/product-spec-lifecycle.md: 新規作成(AC1〜AC3 / Responsibility Boundary) - docs/dev/ssot-registry.md: product-spec-lifecycle エントリ追加 + docs/product/** directory mapping 追加(AC4 / AC4b) - docs/dev/workflow.md: SSOT Routing Table に product-spec-lifecycle エントリ追加(AC5) - CLAUDE.md: 条件付き参照を追加(docs/product/** 変更時のみ読む)(AC6) Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
TEST_VERDICT:
result: PASS
mergeable: MERGEABLE
merge_state_status: BEHIND
baseline_only: false
verification_commands_pass: 7
verification_commands_fail: 0
verification_skipped_count: 0
runtime_ac_results: []検証結果レポートIssue #283: product-spec-lifecycle.md と SSOT Registry 統合
総合判定
マージ可能性
✅ All Acceptance Criteria passed. Branch is mergeable (after rebase recommended). |
squne121
left a comment
There was a problem hiding this comment.
Verdict: APPROVE
Mergeability
- mergeable=MERGEABLE, mergeStateStatus=BEHIND(main より遅れているが conflict なし)
Evidence Check
-
AC coverage: 全 AC PASS
- AC1:
docs/dev/product-spec-lifecycle.md新規作成を diff で確認 - AC2:
Token Policyセクションにcompact_spec/scoped_loading/diff-first/full_regeneration: prohibitedの記載を diff で確認 - AC3:
tasks.md Adapterセクションに staging artifact → GitHub Issue 変換フローの記載を diff で確認 - AC4:
ssot-registry.mdへのproduct-spec-lifecycleエントリ追加を diff で確認 - AC4b:
ssot-registry.mdのdirectory_mappingsへのdocs/product/**エントリ追加を diff で確認 - AC5:
workflow.mdSSOT Routing Table へのproduct-spec-lifecycleエントリ追加を diff で確認 - AC6:
CLAUDE.mdにdocs/product/**条件付き参照追加を diff で確認(.claude/rules/project-constitution.mdは変更不要と PR 本文で説明あり、AC6 の「または」条件を CLAUDE.md で充足) - AC7: CI 全チェック pass(build / lint / python-test / test / typecheck)
- AC1:
-
Allowed Paths: 遵守
docs/dev/product-spec-lifecycle.md(新規作成): OKdocs/dev/ssot-registry.md(エントリ追加のみ): OKCLAUDE.md(詳細ルールの置き場セクションへの 1 行追記のみ): OKdocs/dev/workflow.md(SSOT Routing Table への 1 行追加のみ): OK.claude/rules/project-constitution.md(変更なし): OK- スコープ外ファイルへの変更なし
-
CI Verification: build / lint / python-test / test / typecheck 全 pass
-
検証コマンド結果: TEST_VERDICT_MACHINE v1 コメントより
verification_commands_pass: 7,verification_commands_fail: 0,verification_skipped_count: 0— 全 AC に対応するコマンドが PASS、SKIP なし -
Schema Consumer Inventory: 対象外(changed paths は
docs/dev/とCLAUDE.mdのみ、schema contract 変更なし) -
Safety Claim Matrix: 対象外(transport / permission / sandbox / auth 等の safety-sensitive パスに該当しない)
Blockers
なし
Non-blockers(任意改善)
なし
LOOP_VERDICT
verdict: APPROVE
blockers: []
mergeable: MERGEABLE
mergeStateStatus: BEHIND
reviewed_head_sha: ef1d64aa138088c9d763b852641f14f79e94e062
follow_up_issue_requests: []|
人間からの指摘です。 |
判定: REQUEST_CHANGESこのPRは Issue #283 のAC文字列は満たしているが、Parent #254 の目的である「SDD / Spec Kit / 既存Skill・SubAgent / Issue運用の整合」には届いていません。特に、人間指摘は妥当です。 最大の問題B1.
|
…AUDE.md を short pointer に更新する (iteration 1) - docs/product/CLAUDE.md を新規作成 — docs/product の SSOT 宣言・full_regeneration 禁止・speckit-* 由来 artifact との優先順位明示 - .claude/rules/product-spec-lifecycle.md を新規作成 — paths: ["docs/product/**"] による path-scoped rule。操作種別ごとの scoped loading 指示を含む - .claude/skills/product-spec-lifecycle/SKILL.md を新規作成 — create/update/archive/tasks_to_issues の手順・speckit-* 接続方針・PRODUCT_SPEC_LIFECYCLE_CHECK_V1 出力定義 - CLAUDE.md の docs/product/** 参照を short pointer(skill/rule を入口にする旨)に更新 iteration 0 の REQUEST_CHANGES (B1-B5) に対応する変更。 Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
TEST_VERDICT:
result: PASS
mergeable: MERGEABLE
merge_state_status: CLEAN
baseline_only: false
verification_commands_pass: 12
verification_commands_fail: 0
verification_skipped_count: 0
runtime_ac_results: []検証結果レポートIssue #283: docs/dev/product-spec-lifecycle.md と SSOT Registry の追加
総合判定
🤖 Generated with Claude Code |
squne121
left a comment
There was a problem hiding this comment.
Verdict: APPROVE
Mergeability
- mergeable=MERGEABLE, mergeStateStatus=CLEAN
Evidence Check
AC coverage: 全 AC PASS (AC1〜AC10b、計 14 項目)
| AC | 状態 |
|---|---|
| AC1: docs/dev/product-spec-lifecycle.md 存在 | PASS |
| AC2: token_policy 記述(compact spec / scoped loading / diff-first) | PASS |
| AC3: tasks.md staging artifact → GitHub Issue 変換フロー | PASS |
| AC4: ssot-registry.md に product-spec-lifecycle エントリ | PASS |
| AC4b: docs/product/** directory mapping | PASS |
| AC5: workflow.md SSOT Routing Table エントリ | PASS |
| AC6: CLAUDE.md に short pointer(skill/rule を入口にする旨) | PASS |
| AC7: pnpm typecheck/lint/test/build PASS | PASS |
| AC8: docs/product/CLAUDE.md 存在 + full_regeneration 禁止 | PASS |
| AC9: .claude/rules/product-spec-lifecycle.md 存在 + paths: スコープ | PASS |
| AC10: .claude/skills/product-spec-lifecycle/SKILL.md 存在 + PRODUCT_SPEC_LIFECYCLE_CHECK_V1 | PASS |
Allowed Paths: 全 7 ファイルが linked issue #283 の Allowed Paths 内
.claude/rules/product-spec-lifecycle.md(新規): OK.claude/skills/product-spec-lifecycle/SKILL.md(新規): OKCLAUDE.md(short pointer 追記): OKdocs/dev/product-spec-lifecycle.md(新規): OKdocs/dev/ssot-registry.md(エントリ追加): OKdocs/dev/workflow.md(SSOT Routing Table エントリ追加): OKdocs/product/CLAUDE.md(新規): OK
スコープ外ファイルなし。
CI Verification: build/lint/python-test/test/typecheck 全 PASS(GitHub Actions 全 5 チェック pass)
TEST_VERDICT_MACHINE: result: PASS, verification_commands_pass: 12, verification_commands_fail: 0, verification_skipped_count: 0
検証コマンド結果: PR 本文の ## 検証コマンド結果 に AC1〜AC10b 全コマンドの実行結果が具体的に記録されている。
前回 REQUEST_CHANGES (iteration 0) の Blocker 解消確認:
- B1(CLAUDE.md 条件付き参照が弱い): RESOLVED — short pointer +
docs/product/CLAUDE.md+.claude/rules/product-spec-lifecycle.mdで skill/rule を入口に明示 - B2(scoped loading の仕組みがない): RESOLVED —
.claude/rules/product-spec-lifecycle.mdにpaths: ["docs/product/**"]+ 操作種別ごとの scoped loading 指示 - B3(作業手順がない): RESOLVED —
.claude/skills/product-spec-lifecycle/SKILL.mdに create/update/archive/tasks_to_issues 手順 - B4(speckit-* との接続がない): RESOLVED — SKILL.md に speckit-taskstoissues / create-issue / impl-review-loop との接続方針テーブル
- B5(VC が弱い): RESOLVED — AC8/AC9/AC10 に test -f + rg -q の実効検証を追加、TEST_VERDICT_MACHINE で全 PASS 確認
- B6(BEHIND のまま APPROVE 不適切): RESOLVED — mergeStateStatus: CLEAN
Safety Claim Gate(Step 4.6): .claude/skills/** パスに変更が含まれるため Safety-sensitive 判定。しかし本 PR は runtime 動作・transport・permission・auth・MCP・sandbox に関する安全主張を一切含まない(docs lifecycle 管理の workflow skill)。PR title/body に safe/read-only/sandboxed/isolated/complete の無限定使用なし。Safety Claim Matrix の Not controlled 列は全行 N/A となり、実質的な安全境界要件が存在しない。path-match heuristic の過発火として non-blocker 扱い(記録はするが APPROVE を妨げない)。
Schema Change Applicability: 変更はすべて docs/markdown ファイル(新規作成・エントリ追加)。schema consumer 境界をまたぐ contract 変更なし。schema_change_applicability: not_schema_change。
Runtime Verification: linked issue の decision: not_applicable(change_kind: docs 限定)。runtime VC 証跡不要。
Blockers
なし
Non-blockers(任意改善)
.claude/skills/**パス変更は Safety Claim Gate の path-match heuristic を発火させる。次回以降、docs-only workflow skill を.claude/skills/に追加する場合は PR 本文にschema_change_applicability: not_schema_changeと同様のsafety_claim_applicability: not_applicable(理由)を明示すると reviewer の判断コストを削減できる。
LOOP_VERDICT
verdict: APPROVE
blockers: []
mergeable: MERGEABLE
mergeStateStatus: CLEAN
reviewed_head_sha: 43f476bf29847d0fda7876098216207c8e029e4e
follow_up_issue_requests:
- title: "PR 本文に safety_claim_applicability 明示フィールドを追加する運用ガイドラインを検討する"
issue_kind: research
severity: optional_follow_up
source:
kind: pr_review
url: "https://github.com/squne121/loop-protocol/pull/322"
note_id: "1"
dedupe_key: "follow-up:squne121/loop-protocol:https://github.com/squne121/loop-protocol/pull/322:1"
desired_destination: "docs-only workflow skill を .claude/skills/ に追加する際に Safety Claim Gate heuristic 過発火を防ぐ運用ガイドラインが存在する"
validated_scope_delta: "PR 本文テンプレートまたは pr-review-judge skill に safety_claim_applicability: not_applicable の明示フィールドを追加する運用指針"
origin_skill: pr-review-judge
labels:
- triage-required|
人間からの指摘です。 イメージとしてはspec kitを specify init
|
判定人間指摘は妥当です。PR #322 は Issue #283 のACを満たすために まずPR #322でやるべき修正結論として、PR #322 は次の方針に寄せるのがよいです。
現行の 差し替え案はこれで十分です。
これ以上は なぜ専用 |
| 現PRの新規skillの責務 | 本来の置き場所 |
|---|---|
| spec作成Issueの品質確認 | issue-refinement-loop / review-issue |
| spec更新Issueの差分確認 | issue-refinement-loop / edit-issue |
| tasks.md → GitHub Issue化 | speckit-taskstoissues + create-issue |
| 実装前のspec参照確認 | issue-contract-review |
| 実装・検証・PRレビュー | impl-review-loop |
| PRでdocs/product変更が妥当か | pr-review-judge / impl-review-loop |
現行の product-spec-lifecycle skill は create / update / archive / tasks_to_issues を一つに抱えていますが、これは既存ループの分割と衝突します。
既存ループへ組み込むべき具体設計
1. issue-refinement-loop に product spec 分岐を追加する
issue-refinement-loop はすでに「調査 → レビュー → 改善ライト」のループで、Issue本文をAI Agentが作業可能な品質に整える責務を持っています。
ここに次の分岐を追加するのが自然です。
product_spec_refinement_trigger:
applies_when_any:
- issue.allowed_paths contains "docs/product/**"
- issue.body contains "spec.md"
- issue.body contains "plan.md"
- issue.body contains "tasks.md"
- issue.body contains "speckit"
- issue.body contains "Spec Kit"
action:
- classify spec_phase as specify | clarify | checklist | plan | tasks | analyze | implementation-task
- require docs_canonical_reference
- require trace to parent issue and product spec id
- require materialization policy when tasks.md appearsissue-refinement-loop に入れるべき確認項目は以下です。
### Product Spec / Spec Kit preflight
If the Issue touches `docs/product/**` or Spec Kit artifacts:
1. Classify the phase:
- `spec-authoring`
- `spec-review-fix`
- `plan-authoring`
- `plan-review-fix`
- `tasks-authoring`
- `tasks-to-issues`
- `implementation-task`
2. Confirm canonical boundary:
- `docs/` is normative.
- `.specify/` artifacts are derived workbench.
- Do not run `/speckit.constitution` as canonical update.
3. For `tasks.md`:
- Do not implement directly.
- Materialize each independently verifiable task into GitHub Issue.
- Preserve `product_spec_id`, `requirement_id`, `source_task_id`, and dependency.
4. If Issue quality is insufficient, return `needs-fix` with concrete missing fields.これは ADR 0002 の方針とも一致します。ADRでは docs/ が正本、.specify/ は derived workbench、tasks.md は staging artifact、tracking正本は GitHub Issues と定義されています。
2. impl-review-loop に product/spec preflight を追加する
impl-review-loop は implementation child issue を「実装 → 検証 → PRレビュー」で回すオーケストレーターです。着手前に issue-contract-review の status: go を確認する設計です。
ここには、次の分岐を入れるべきです。
impl_review_loop_product_spec_preflight:
before_step_1:
if issue.allowed_paths contains "docs/product/**":
require:
- linked product spec or target docs/product path
- diff-first update plan
- no full regeneration
- SSOT registry impact decision
prohibit:
- direct implementation from tasks.md
- treating .specify artifacts as canonical
if issue.generated_from_tasks_md == true:
require:
- source_task_id
- requirement_id
- parent_issue
- dependency preserved by GitHub native dependency or Depends on fallbackつまり、impl-review-loop 側では docs/product 変更そのものを実装作業として扱う場合 と、Spec Kit tasks から切り出された実装Issueを扱う場合 の2パターンを識別する必要があります。
3. issue-contract-review にもStop Conditionを追加する
実装着手前に止めるべき条件はここです。
product_spec_contract_stop_conditions:
- allowed_paths includes docs/product/** but no linked spec/update issue
- tasks.md is referenced as direct implementation source
- .specify artifact is described as canonical source
- product spec update rewrites whole file without diff rationale
- generated task lacks requirement_id or source_task_id
- dependency from tasks.md was not materialized into [GitHub](https://github.com/github/spec-kit) dependency / Depends ondocs/dev/workflow.md では、Issue contract が作業計画の正本になり、issue-contract-review が status: go を返した場合のみ impl-review-loop が着手できる設計です。
Spec Kit導入フローの解釈
あなたの認識している流れは概ね正しいです。ただし、現在のSpec Kit READMEでは中核コマンドとして /speckit.constitution, /speckit.specify, /speckit.plan, /speckit.tasks, /speckit.taskstoissues, /speckit.implement が並び、clarify, analyze, checklist は品質・検証系の追加コマンドとして扱われています。(GitHub)
このプロジェクトでは次のように置換すべきです。
| Spec Kit標準 | このプロジェクトでの扱い |
|---|---|
specify init |
既に導入済みなら再実行しない |
/speckit.constitution |
実行しない。docs/ が constitution相当 |
/speckit.specify |
draft生成・たたき台用途。正本化は docs/product/** PR経由 |
/speckit.clarify |
Issue refinement の質問生成補助 |
/speckit.checklist |
spec/plan/tasksレビューの補助 |
/speckit.plan |
plan draft生成。正本化はIssue/PR経由 |
/speckit.tasks |
tasks.md staging artifact生成 |
/speckit.analyze |
spec/plan/tasks整合チェック |
/speckit.taskstoissues |
tasks.md → GitHub Issues変換 |
/speckit.implement |
main上では直接実行禁止。実装は impl-review-loop 経由 |
Spec Kit自体も、プロジェクトローカルoverride、preset、extensionでテンプレートやコマンドを調整できる構造を持っています。したがって「docs/ を参照させるためのワークフロー改善」は Spec Kit 側の template override / preset / extension でも実現可能です。ただし、このリポジトリでは ADR 0002 が docs/ 正本・.specify/ 派生物と決めているので、まずは 既存loop側のpreflightに docs/ 参照を組み込むのが先です。(GitHub)
specの切り出し単位
機能単位がよいです。マイルストーン単位は大きすぎます。
推奨構造はこれです。
Parent Issue / Milestone
└─ Feature Spec Package
├─ Spec作成Issue → PR → human review
├─ Specレビュー修正Issue → PR → human review
├─ Plan作成Issue → PR → human review
├─ Planレビュー修正Issue → PR → human review
├─ Tasks作成Issue → PR or artifact review
├─ Tasks→Issues変換Issue
└─ Implementation Task Issues
└─ 各 task = 1 Issue = 1 PR
理由は3つです。
第一に、このプロジェクトは 1 Issue = 1 PR を中核ルールにしています。複数Issueを1PRにまとめることは原則禁止です。
第二に、ADR 0002では tasks.md をGitHub Issueへmaterializeし、1 task = 1 issue = 1 PR に寄せる方針が定義されています。
第三に、Spec Kitの標準思想も「spec → plan → tasks → implement」の段階分解であり、巨大なマイルストーンを一括で実装する運用ではありません。(GitHub)
PR #322への具体的な修正指示プロンプト
そのままエージェントに渡すなら、以下です。
PR #322 を人間指摘に従って修正してください。
目的:
- `product-spec-lifecycle` を独立した rule / skill として追加する方針を撤回する。
- `docs/product/CLAUDE.md` に最小限の局所ルールだけを残す。
- product spec / Spec Kit の具体的な作業手順は、既存の `issue-refinement-loop`, `issue-contract-review`, `impl-review-loop` に統合する後続Issueとして明確化する。
- PR #322 自体は Issue #283 の product lifecycle policy 文書追加にスコープを戻す。
必須変更:
1. `.claude/rules/product-spec-lifecycle.md` を削除する。
2. `.claude/skills/product-spec-lifecycle/SKILL.md` を削除する。
3. `docs/product/CLAUDE.md` を最小化する。
- 書くのは以下のみ:
- `docs/product/**` は product SSOT
- `.specify/**` / Spec Kit artifact と矛盾したら `docs/product/**` が勝つ
- full_regeneration 禁止
- 変更は GitHub Issue / PR 経由
- 具体手順は `issue-refinement-loop` / `issue-contract-review` / `impl-review-loop` に従う
- `tasks.md` は tracking SSOT ではなく GitHub Issue 化してから扱う
4. `CLAUDE.md` の product-spec-lifecycle rule/skill 参照を削除し、必要なら `docs/product/CLAUDE.md` への短い案内だけにする。
5. `docs/dev/product-spec-lifecycle.md` は policy/reference として残す。ただし「AIが直接この文書を作業手順として読む」ような文言を弱める。
6. PR本文のAC表から `.claude/rules/product-spec-lifecycle.md` と `.claude/skills/product-spec-lifecycle/SKILL.md` を前提にしたACを削除または撤回説明に変更する。
7. 後続Issue案をPR本文に追加する:
- issue-refinement-loop に product spec / Spec Kit phase classification を追加
- issue-contract-review に product spec Stop Conditions を追加
- impl-review-loop に docs/product / tasks.md materialized issue preflight を追加
- Spec Kit template override / preset / extension による docs canonical 参照の検討
禁止:
- 新しい `product-spec-lifecycle` skill を残さない。
- `.claude/rules/product-spec-lifecycle.md` を残さない。
- `docs/product/CLAUDE.md` に長い作業手順を書かない。
- `/speckit.constitution` をこのプロジェクトの正本更新として扱わない。後続Issue案
PR #322では全部やらず、以下を分けるのがよいです。
Issue A: issue-refinement-loop に Spec Kit / product spec phase分類を追加
目的:
Issue本文が docs/product/** または Spec Kit artifact を扱う場合、
specify / clarify / checklist / plan / tasks / analyze / implementation-task のどの段階かを分類し、
必要な trace fields と docs canonical boundary を review-issue で検査できるようにする。
Issue B: issue-contract-review に product spec Stop Conditionを追加
目的:
tasks.md 直接実装、.specify artifact 正本化、docs/product全文再生成、
trace field欠落、dependency materialization欠落を実装着手前に止める。
Issue C: impl-review-loop に Spec Kit由来task実装preflightを追加
目的:
Spec Kit tasksからmaterializeされた implementation issue を impl-review-loop で扱う際、
source_task_id / requirement_id / parent_issue / dependency / docs product spec参照を確認する。
Issue D: Spec Kit template override / preset / extension調査
目的:
Spec Kit の project-local overrides / preset / extension を使い、
`.specify/memory/constitution.md` ではなく `docs/` を canonical context として参照させる方法を検証する。
Spec Kitは project-local overrides、presets、extensions によるカスタマイズを公式に想定しているため、この調査は有効です。([GitHub]2)
最終方針
PR #322は 「専用rule/skillを追加するPR」から「product lifecycle policyと最小局所ルールを整えるPR」へ縮小すべきです。
Spec Kit導入の本体は、product-spec-lifecycle skillを作ることではありません。
本体は、以下の経路を既存ループに接続することです。
Spec作成/レビュー修正 Issue
→ issue-refinement-loop
→ PR
→ human review
Plan作成/レビュー修正 Issue
→ issue-refinement-loop
→ PR
→ human review
Tasks作成/レビュー修正 Issue
→ issue-refinement-loop
→ tasks.md staging
→ speckit-taskstoissues / create-issue
→ GitHub Issues
各Implementation Task Issue
→ issue-contract-review
→ impl-review-loop
→ PR
→ human review
この形なら、人間指摘の「ファイル修正 = Issue起票」「ルールファイルは最小」「Spec Kitの流れは既存Issue/PRループへ接続」という要求に合います。
…nce 文書に縮小する (iteration 2) iteration 1 で追加した .claude/rules/product-spec-lifecycle.md と .claude/skills/product-spec-lifecycle/SKILL.md を削除。 既存ループ(issue-refinement-loop / impl-review-loop / issue-contract-review)と 責務重複するため、人間レビューに基づき撤回。 docs/product/CLAUDE.md を 30 行以下の最小ルールに縮小し、 docs/dev/product-spec-lifecycle.md に policy/reference 文書である旨を明示。 CLAUDE.md は docs/product/CLAUDE.md への short pointer に修正。 Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
検証結果レポートIssue #283: docs/dev/product-spec-lifecycle.md SDD
総合判定
マージ可能性
TEST_VERDICT:
result: PASS
mergeable: MERGEABLE
merge_state_status: CLEAN
baseline_only: false
verification_commands_pass: 10
verification_commands_fail: 0
verification_skipped_count: 0
runtime_ac_results: []Iteration 2 設計の全 AC が worktree で確認できました。docs/dev/product-spec-lifecycle.md の新規作成と関連の ssot-registry.md / workflow.md / docs/product/CLAUDE.md への統合がすべて完了しています。 |
squne121
left a comment
There was a problem hiding this comment.
Verdict: APPROVE
Mergeability
- mergeable=MERGEABLE, mergeStateStatus=CLEAN
Evidence Check
AC coverage: 全 AC PASS (AC1〜AC10 + AC4b + AC8b)
| AC | 状態 | 根拠 |
|---|---|---|
| AC1 | PASS | docs/dev/product-spec-lifecycle.md 新規作成、PR diff で確認 |
| AC2 | PASS | §Token Policy セクションに compact_spec / scoped_loading / diff-first / token_policy 記載 |
| AC3 | PASS | §tasks.md Adapter セクションに tasks.md / staging artifact / GitHub Issue 変換フロー記載 |
| AC4 | PASS | ssot-registry.md に product-spec-lifecycle エントリ追加、PR diff で確認 |
| AC4b | PASS | ssot-registry.md に docs/product/** directory mapping 追加、PR diff で確認 |
| AC5 | PASS | workflow.md SSOT Routing Table に product-spec-lifecycle エントリ追加、PR diff で確認 |
| AC6 | PASS | CLAUDE.md に docs/product/CLAUDE.md への conditional pointer 追加 |
| AC7 | PASS | CI: build/lint/test/typecheck/python-test 全 pass |
| AC8 | PASS | docs/product/CLAUDE.md が 11 行(30 行制約クリア) |
| AC8b | PASS | docs/product/CLAUDE.md に issue-refinement-loop / impl-review-loop 参照あり |
| AC9 | PASS | PR head tree に .claude/rules/product-spec-lifecycle.md / .claude/skills/product-spec-lifecycle/ が存在しないことを GitHub API で確認 |
| AC10 | PASS | docs/dev/product-spec-lifecycle.md §文書の位置づけ セクションに「policy / reference 文書である。AI が直接実行手順として読む操作マニュアルではない」と明示 |
Allowed Paths 遵守: 遵守
変更ファイル(5 件)がすべて #283 Allowed Paths 内:
CLAUDE.md— short pointer 追記のみdocs/dev/product-spec-lifecycle.md— 新規作成docs/dev/ssot-registry.md— エントリ追加のみdocs/dev/workflow.md— SSOT Routing Table エントリ追加のみdocs/product/CLAUDE.md— 新規作成(最小ルール 11 行)
Allowed Paths 記載の「削除対象」(.claude/rules/product-spec-lifecycle.md / .claude/skills/product-spec-lifecycle/SKILL.md)は PR head tree に存在しないことを API で確認済み(git rm 完了)。
CI Verification: 全 pass — build / lint / test / typecheck / python-test(GitHub Actions runs/26348670745)
検証コマンド結果: AC1〜AC10 全 PASS(TEST_VERDICT_MACHINE v1 / verification_commands_pass: 10 / fail: 0 / skipped: 0)
iteration 2 方針撤回の確認:
- .claude/rules/product-spec-lifecycle.md — 存在しない(削除済み)
- .claude/skills/product-spec-lifecycle/ — 存在しない(削除済み)
- docs/product/CLAUDE.md — 11 行、最小ルールのみ、専用 rule/skill への誘導なし(既存ループへの参照のみ)
- docs/dev/product-spec-lifecycle.md — §文書の位置づけ セクションで「AI 直接実行手順ではない」「policy/reference 文書」を明示
Schema Change Applicability: not_schema_change(docs-only 変更。consumer 境界をまたぐ contract への変更なし)
Safety Claim Matrix: 非対象(変更パスが safety-sensitive パターンに該当しない)
Runtime Verification: decision: not_applicable(change_kind: docs。Runtime Verification Evidence 不要)
Blockers
なし
Non-blockers(任意改善)
なし
LOOP_VERDICT
verdict: APPROVE
blockers: []
mergeable: MERGEABLE
mergeStateStatus: CLEAN
reviewed_head_sha: 8f7ec7925c96969487190232387d33a98b9bddef
follow_up_issue_requests: []
Summary
iteration 0(PR 起票時)
docs/dev/product-spec-lifecycle.mdを新規作成(product spec のライフサイクル定義文書)docs/dev/ssot-registry.mdにproduct-spec-lifecycleエントリとdocs/product/**directory mapping を追加docs/dev/workflow.mdの SSOT Routing Table にproduct-spec-lifecycleエントリを追加CLAUDE.mdに条件付き参照を追加iteration 1(REQUEST_CHANGES B1-B5 対応)
docs/product/CLAUDE.mdを新規作成 — docs/product SSOT 宣言・full_regeneration 禁止・speckit-* 優先順位明示.claude/rules/product-spec-lifecycle.mdを新規作成 — path-scoped rule.claude/skills/product-spec-lifecycle/SKILL.mdを新規作成 — 操作手順 skillCLAUDE.mdの参照を short pointer に更新iteration 2(方針撤回 — 人間レビューに基づく)
レビュー指摘(#issuecomment-4527022209 / #issuecomment-4527033128)に基づき、iteration 1 で追加した専用 skill/rule を撤回。
.claude/rules/product-spec-lifecycle.mdを削除 — 既存ループと責務重複のため.claude/skills/product-spec-lifecycle/SKILL.mdを削除(ディレクトリごと)— 同上docs/product/CLAUDE.mdを 30 行以下の最小ルールに縮小(既存ループへの参照に変更)CLAUDE.mdをdocs/product/CLAUDE.mdへの short pointer のみに縮小docs/dev/product-spec-lifecycle.mdに policy/reference 文書である旨を明示後続 Issue(予定)
docs/product/game-thesis.md作成(C254-3)docs/product/game-design.md作成(C254-4)docs/product/game-logic.md作成(C254-5)docs/product/mvp-scope.md作成(C254-6)受け入れ条件の達成状況(iteration 2 再設計版)
検証コマンド結果