Repository navigation
Description
Machine-Readable Contract
contract_schema_version: v1
issue_kind: implementation
parent_issue: "#283"
goal_ref: "issue-refinement-loop に Product/Spec Kit signal detection と routing gate のみを追加し、gate は signal detection / LOOP_STATE.product_spec_context 更新 / worker routing のみを行い、成果物手順を含まない"
change_kind: workflowParent Issue
Parent Goal Ref
- Goal: SDD ライフサイクル定義(docs/dev/product-spec-lifecycle.md)を整備し、Spec Kit / product spec の運用境界を明確化する
- Desired Destination: issue-refinement-loop を含む AI ワークフローが product spec phase を認識し、適切な routing gate を経由して worker skill へ処理を委譲できる状態
Current Validated Scope
.claude/skills/issue-refinement-loop/SKILL.mdに Product/Spec Kit signal detection と routing gate のみを追加する- gate は signal detection / LOOP_STATE.product_spec_context 更新 / worker routing のみを行い、成果物手順を含まない
LOOP_STATE.product_spec_contextフィールドを追加する(signal detected flag + work_kind metadata)docs/product/**/.specify/**/spec.md/plan.md/tasks.md/speckit/Spec Kit検知時に、後続 worker へ opaque context を渡すtasks.md直接実装要求を検知した場合は implementation へ進めず、Issue materialization 経路へ route する(fail-closed)- 成果物作成・更新・archive・trace fields 具体手順は issue-refinement-loop へ書かない
Remaining Parent Gaps
review-issue/SKILL.md側への Product Spec 対応(必要と判明した場合は別 Issue)- docs/dev/product-spec-lifecycle.md 本体の実装(実装: docs/dev/product-spec-lifecycle.md を追加する — SDD ライフサイクル定義(C254-2) #283 本体)
- follow-up Issue:
review-issue/issue-contract-review/impl-review-loop/speckit-taskstoissuesへの成果物手順・preflight の分割
Background
PR #322(https://github.com/squne121/loop-protocol/pull/322#issuecomment-4527033128)の人間レビューで「後続 Issue A」として提案された。当初は全 preflight を issue-refinement-loop に統合する設計だったが、ORCHESTRATOR_IO_BOUNDARY_V1(control-plane/data-plane 分離原則)に反するとして OWNER より REQUEST_CHANGES 相当の設計変更要求を受けた。正しいアプローチは「薄い routing gate のみ issue-refinement-loop に追加、詳細手順は SubAgent/worker skill に分割」。親 Issue は #283(SDD ライフサイクル定義)および #254(SDD 駆動運用方針)。
Outcome
.claude/skills/issue-refinement-loop/SKILL.md に Product/Spec Kit signal detection と routing gate が追加された状態で、gate は signal detection / LOOP_STATE.product_spec_context 更新 / worker routing のみを行い、成果物手順を含まない。pnpm typecheck && pnpm lint && pnpm test && pnpm build が PASS している。
In Scope
.claude/skills/issue-refinement-loop/SKILL.mdに Product/Spec Kit signal detection と routing gate のみ追加するLOOP_STATE.product_spec_contextフィールドを追加する(signal detected flag + work_kind metadata)docs/product/**/.specify/**/spec.md/plan.md/tasks.md/speckit/Spec Kit検知時に、後続 worker へ opaque context を渡すtasks.md直接実装要求を検知した場合は implementation route に進まず、Issue materialization 経路へ route する(fail-closed)- 成果物作成・更新・archive・trace fields 具体手順は issue-refinement-loop へ書かない
- 必要な follow-up Issue を記録する(起票または既存 Issue 参照):
review-issue/issue-reviewer: product trace fields の構造チェック追加issue-contract-review: product/spec-kit implementation preflightimpl-review-loop/implementation-worker: tasks.md / speckit-implement direct execution guardspeckit-taskstoissues: LOOP_PROTOCOL adapter alignment
Out of Scope
- Product spec 本文の作成手順
- docs/product/** の frontmatter / EARS / archive 手順の詳細
- tasks.md → GitHub Issue 変換アルゴリズム
- speckit-* upstream 手順の再定義
- trace fields(product_spec_id / requirement_id / source_task_id)の詳細要求手順
- phase 分類の詳細作業手順(routing enum としての記述は可)
issue-refinement-loopから worker skill を直接実行する設計- 新規 skill ファイルの作成
review-issue/SKILL.mdの変更(必要な場合は別 Issue)docs/product/**配下のファイル自体の変更.specify/workbench ファイルの変更- UI / src / tests の変更
Acceptance Criteria
- AC1:
issue-refinement-loop/SKILL.mdに Product/Spec Kit routing gate セクションが追加されている - AC2: gate は signal detection / LOOP_STATE.product_spec_context 更新 / worker routing のみを行い、成果物手順を含まない(grep で「phase 分類の詳細手順」「trace fields の要求手順」「tasks.md → GitHub Issue 化」に相当するテキストが存在しないこと)
- AC3:
tasks.md直接実装要求を検知した場合は implementation route に進まず、Issue materialization route へ振り分けられる記述がある - AC4:
review-issue/issue-contract-review/impl-review-loop/speckit-taskstoissuesへの follow-up Issue が起票または既存 Issue として本文に参照されている - AC5:
issue-refinement-loop/SKILL.mdにdocs/product/**frontmatter、EARS、registry template、Spec Kit command の詳細手順が追加されていない - AC6: 改善: issue-refinement-loop の web-researcher Step 1b に transient auth failure への 1-retry 機構を追加する #203 / perf(claude): issue-refinement-loop を軽量化する(max_iterations=1 デフォルト / SubAgent 条件付き) #295 との同一ファイル競合リスクが
## Delivery Ruleに明示されている
Verification Commands
# AC1: routing gate セクションの存在確認
grep -n "routing gate\|routing_gate\|product_spec_context\|Product.*Spec.*Routing\|Spec Kit.*routing" .claude/skills/issue-refinement-loop/SKILL.md && echo "PASS: routing gate section found" || echo "FAIL: routing gate section not found"
# AC2: 成果物手順が含まれないことの確認
! grep -n "phase 分類の詳細\|trace field.*要求\|tasks.md.*GitHub Issue 化\|docs\/product.*frontmatter\|EARS\|registry template" .claude/skills/issue-refinement-loop/SKILL.md && echo "PASS: no data-plane procedures" || echo "FAIL: data-plane procedures found"
# AC3: tasks.md fail-closed の記述確認
grep -n "tasks.md.*direct\|tasks.md.*禁止\|tasks.md.*materialization\|fail.closed.*tasks" .claude/skills/issue-refinement-loop/SKILL.md && echo "PASS: tasks.md guard found" || echo "FAIL: tasks.md guard missing"
# AC4: follow-up Issue 参照の確認
grep -n "issue-contract-review\|impl-review-loop\|speckit-taskstoissues" .claude/skills/issue-refinement-loop/SKILL.md && echo "PASS: follow-up references found" || echo "FAIL: follow-up references missing"
# AC5: 詳細手順が追加されていないことの確認
! grep -n "specify init\|speckit.tasks generates\|/speckit\.implement" .claude/skills/issue-refinement-loop/SKILL.md && echo "PASS: no speckit upstream procedures" || echo "FAIL: speckit upstream procedures found"
# AC6: 品質ゲート
pnpm typecheck && pnpm lint && pnpm test && pnpm buildAllowed Paths
.claude/skills/issue-refinement-loop/SKILL.md
Stop Conditions
- Allowed Paths 外の変更が必要と判明した場合
- In Scope の固定契約(キー集合・スキーマ・型定義)の変更が必要になった場合
- 新規 Issue の起票が必要と判断した場合(スコープ分割が発生する場合)
- 後続 Phase / 別スコープへの波及が判明した場合
- nested SubAgent delegation が必要になった場合
- 外部サービス利用・権限昇格・既存テスト大規模改変が必要になった場合
- tasks.md の直接実装が必要と思われる場合(tasks.md materialization 規約: 直接実装禁止、必ず sub-issue 経由)
Required Skills
なし
Runtime Verification Applicability
runtime_verification_applicability:
decision: immediate
rationale: >
SKILL.md へのテキスト追加であり、grep ベースの VC が即時実行可能。
pnpm typecheck / lint / test / build は CI で常時実行される。
AC2/AC3/AC5 は否定的 grep(存在しないこと)で baseline FAIL が確認可能。
verification_commands_ref: AC1-AC6Scope Delta(任意)
reframe: 設計変更要求(OWNER REQUEST_CHANGES 相当)により、全 preflight 統合から薄い routing gate のみへ縮小。詳細手順は worker skill へ分割。
Delivery Rule
1 Issue = 1 PR- 同一ファイル(
issue-refinement-loop/SKILL.md)を変更する 改善: issue-refinement-loop の web-researcher Step 1b に transient auth failure への 1-retry 機構を追加する #203 / perf(claude): issue-refinement-loop を軽量化する(max_iterations=1 デフォルト / SubAgent 条件付き) #295 が OPEN のため、それらとマージコンフリクトが生じないよう直列で処理することを推奨する
Source
- dedupe_key: spec-kit-loop-integration:A
- source_pr: docs(#283): docs/dev/product-spec-lifecycle.md を追加 — SDD ライフサイクル定義(C254-2) #322 (comment)
- proposed_as: 後続 Issue A(PR docs(#283): docs/dev/product-spec-lifecycle.md を追加 — SDD ライフサイクル定義(C254-2) #322 人間レビュー)
Activity
squne121 commentedon May 24, 2026
人間からの指摘です。
「.claude/skills/issue-refinement-loop/SKILL.md に「Product Spec / Spec Kit Preflight」セクション」ってどうなん?
issue-refinement-loop はオーケストラレータなんだからオーケストラレーションに責務を集中するべきでは?作業指示や成果物への関与ってサブエージェントやサブエージェントが実行するエージェントスキルに記載するべきではないだろうか?
squne121 commentedon May 24, 2026
判定
#332 は現状のまま実装すべきではありません。REQUEST_CHANGES 相当です。
人間指摘は妥当です。
.claude/skills/issue-refinement-loop/SKILL.mdに「Product Spec / Spec Kit Preflight」を足すとしても、置いてよいのは routing / state / delegation の薄い preflight だけです。phase 分類の詳細手順、trace fields の要求手順、tasks.md → GitHub Issue 化の実作業、docs/product/** の成果物品質判定までissue-refinement-loopに書くのは、既存設計の control-plane / data-plane 分離に反します。#332 は、
issue-refinement-loopに phase 分類、docs canonical boundary、trace fields、tasks.md 直接実装禁止 Stop Condition を追加する契約になっています。さらに「新規 skill は作らない」「変更先は基本的に issue-refinement-loop/SKILL.md」としており、成果物・手順・実装ゲートをオーケストレータへ寄せすぎています。 人間コメントも同じ懸念、つまり「オーケストレータはオーケストレーション責務に集中し、作業指示や成果物関与は SubAgent / 実行 Skill に置くべきではないか」という指摘です。なぜ問題か
1. リポジトリ内の既存責務境界と矛盾する
docs/dev/agent-skill-boundaries.mdは、SubAgent = 役割、Skill = 作業手順と定義し、詳細手順を SubAgent 定義に埋めることや、概念・共有説明を独立 Skill 化することをアンチパターンとして扱っています。さらにissue-refinement-loopは Issue 改善ループのオーケストレータであり、review-issue、edit-issue、create-issue、issue-contract-reviewなどと分担する前提です。より直接的には、ORCHESTRATOR_IO_BOUNDARY_V1 が「オーケストレータは state tracking + routing の control-plane のみ」「data-plane 操作は SubAgent に委譲」と定義しています。オーケストレータが raw issue body、review details、code content などを保持・解釈することを禁じる理由として、context rot、責務汚染、冪等性破壊が明記されています。
#332 の
Product Spec / Spec Kit Preflightは、routing を超えてdocs/product/**や.specify/**由来 artifact の作業判断に踏み込んでいます。これは オーケストレータが成果物領域の domain judgment を持つ設計です。2. #283 / PR #322 の反省を逆方向に解釈している
#283 は product-spec-lifecycle を policy/reference として追加し、具体的手順は既存ループに従う設計に着地しています。専用
product-spec-lifecyclerule / skill は一度追加された後、人間レビューを受けて PR #322 iteration 2 で削除され、docs/product/CLAUDE.mdも最小ルールに縮小されました。ただし、ここから導くべき結論は「全部
issue-refinement-loopに入れる」ではありません。正しくは、policy は docs、routing は orchestrator、作業手順は worker skill、実装着手前の契約審査は issue-contract-review、実装ループの禁止事項は impl-review-loop へ分割することです。PR #322 のコメントでも、「
CLAUDE.mdに長い文書を読めと書くだけでは作業導線として弱い」「product-spec-lifecycle.mdはルール文書であり作業手順ではない」「Spec Kit / speckit-* へ接続していない」と指摘されています。3. Spec Kit の実装モデル上、
tasks.mdは本来/speckit.implementの入力であるSpec Kit 公式 README では、
specify initにより/speckit.constitution、/speckit.specify、/speckit.plan、/speckit.tasks、/speckit.implementが利用可能になると説明されています。(GitHub) また/speckit.tasksはtasks.mdを生成し、そのtasks.mdが/speckit.implementの roadmap になると説明されています。(GitHub)つまり LOOP_PROTOCOL の「
tasks.md直接実装禁止、GitHub Issue 化してから作業」は、Spec Kit upstream の標準挙動に対する プロジェクト固有 adapter / guard です。これはissue-refinement-loopに自然に属する責務ではありません。置き場所は、少なくとも次のどれかです。speckit-taskstoissuesの LOOP_PROTOCOL adapter guardissue-contract-reviewの implementation preflightimpl-review-loopの direct implementation 禁止 gatecreate-issue/issue-authorの task materialization 手順必要なら薄い
product-spec-ops/speckit-adapterskillPR #308 では、すでに
.specify/と 9 本のspeckit-*skills が main に導入され、speckit-implementは直接実行禁止、speckit-taskstoissuesは既存 Issue 起票フローを迂回しない、という安全境界が記録されています。 #332 はこの既存境界へ接続すべきであって、issue-refinement-loop内で再定義すべきではありません。4. Claude Code の公式設計ともズレる
Claude Code 公式 docs では、
CLAUDE.mdは context であり強制設定ではなく、複数ステップ手順や一部領域だけに関係する指示は skill または path-scoped rule に移すべきとされています。(Claude API Docs) また、.claude/rules/は path scope を持て、該当ファイル作業時だけ読み込ませられます。(Claude API Docs)Skills についても、
SKILL.mdは project-level に置け、supporting files に詳細 reference / scripts を分離でき、descriptionは自動適用判定に使われ、pathsfrontmatter で対象ファイルを限定できます。(Claude API Docs) (Claude API Docs) (Claude API Docs)したがって、Product Spec / Spec Kit の詳細手順を巨大化しがちな
issue-refinement-loop/SKILL.mdに追加するのは、外部 docs の推奨にも反します。特にissue-refinement-loopは既に長大で、#295 が usage コスト削減のためmax_iterations=1化や SubAgent 条件付き化を提案している最中です。 さらに #203 も同じファイルへweb-researcherretry 追加を予定しており、競合リスクもあります。どこまでなら
issue-refinement-loopに置いてよいか置いてよいのは、次の程度です。
つまり、
phase 分類は残すとしても 作業 phase ではなく routing enum に格下げすべきです。たとえばspecify / clarify / checklist / plan / tasks / analyze / implementation-taskをそのままissue-refinement-loopに持たせるのは危険です。spec_kit_step_candidateやproduct_spec_work_kindのような名前で、後続 worker へ渡す metadata に留めるべきです。現在の
issue-refinement-loopは既にweb-researcherを外部仕様・CLI/API・公開 docs の事実確認へ条件付き起動する構造を持っています。 したがって #332 で追加すべきなのは「Product Spec / Spec Kit を検知したらどの worker に渡すか」であり、Spec Kit 手順そのものではありません。推奨する責務分割
責務 | 置き場所 | 理由 -- | -- | -- docs/product/** / .specify/** / tasks.md の検知 | issue-refinement-loop | routing のための薄い signal detection は control-plane Issue 本文に product trace fields があるか | review-issue または issue-reviewer | Issue 構造品質レビューの責務 実装着手前に tasks.md 直接実装でないことを確認 | issue-contract-review | implementation preflight の責務 /speckit.implement や tasks.md 直実装を拒否 | impl-review-loop / implementation-worker | 実装ループの入口 gate tasks.md → GitHub Issue 化 | speckit-taskstoissues adapter + issue-author / create-issue | materialization は作業手順 product doc 作成・更新・archive の詳細 | product-spec-ops 的な skill、または既存 create-issue / edit-issue references | 成果物操作の data-plane docs/product/** の最小局所ルール | docs/product/CLAUDE.md または path-scoped rule | path-local で十分 policy / lifecycle 正本 | docs/dev/product-spec-lifecycle.md | reference SSOT#332 の高品質化方針
#332 は close して新 Issue に作り直すか、少なくとも本文を大きく reframe すべきです。現在の
Allowed PathsとOut of Scopeは、正しい修正を禁じています。推奨タイトル:
推奨 In Scope:
推奨 Out of Scope:
推奨 AC:
最終結論
人間指摘を採用すべきです。
issue-refinement-loopに「Product Spec / Spec Kit Preflight」という名前の大きなセクションを足すのは、今の設計文脈では危険です。薄い routing gate なら可。成果物・作業手順・実装禁止の実 enforcement は、SubAgent と各 worker skill に分割すべきです。敵対的に言うと、#332 の現行案は「#322 で専用 skill/rule を撤回した反省」を「全部オーケストレータへ押し込む」という別種の過剰設計に変換しています。これは #254 の「SDD / Spec Kit / 既存 Skill・SubAgent / Issue・PR 運用の整合」という目的には届きません。
## 判定#332 は現状のまま実装すべきではありません。REQUEST_CHANGES 相当です。
人間指摘は妥当です。
.claude/skills/issue-refinement-loop/SKILL.mdに「Product Spec / Spec Kit Preflight」を足すとしても、置いてよいのは routing / state / delegation の薄い preflight だけです。phase 分類の詳細手順、trace fields の要求手順、tasks.md → GitHub Issue 化の実作業、docs/product/** の成果物品質判定までissue-refinement-loopに書くのは、既存設計の control-plane / data-plane 分離に反します。#332 は、
issue-refinement-loopに phase 分類、docs canonical boundary、trace fields、tasks.md 直接実装禁止 Stop Condition を追加する契約になっています。さらに「新規 skill は作らない」「変更先は基本的に issue-refinement-loop/SKILL.md」としており、成果物・手順・実装ゲートをオーケストレータへ寄せすぎています。 人間コメントも同じ懸念、つまり「オーケストレータはオーケストレーション責務に集中し、作業指示や成果物関与は SubAgent / 実行 Skill に置くべきではないか」という指摘です。なぜ問題か
1. リポジトリ内の既存責務境界と矛盾する
docs/dev/agent-skill-boundaries.mdは、SubAgent = 役割、Skill = 作業手順と定義し、詳細手順を SubAgent 定義に埋めることや、概念・共有説明を独立 Skill 化することをアンチパターンとして扱っています。さらにissue-refinement-loopは Issue 改善ループのオーケストレータであり、review-issue、edit-issue、create-issue、issue-contract-reviewなどと分担する前提です。より直接的には、ORCHESTRATOR_IO_BOUNDARY_V1 が「オーケストレータは state tracking + routing の control-plane のみ」「data-plane 操作は SubAgent に委譲」と定義しています。オーケストレータが raw issue body、review details、code content などを保持・解釈することを禁じる理由として、context rot、責務汚染、冪等性破壊が明記されています。
#332 の
Product Spec / Spec Kit Preflightは、routing を超えてdocs/product/**や.specify/**由来 artifact の作業判断に踏み込んでいます。これは オーケストレータが成果物領域の domain judgment を持つ設計です。2. #283 / PR #322 の反省を逆方向に解釈している
#283 は product-spec-lifecycle を policy/reference として追加し、具体的手順は既存ループに従う設計に着地しています。専用
product-spec-lifecyclerule / skill は一度追加された後、人間レビューを受けて PR #322 iteration 2 で削除され、docs/product/CLAUDE.mdも最小ルールに縮小されました。ただし、ここから導くべき結論は「全部
issue-refinement-loopに入れる」ではありません。正しくは、policy は docs、routing は orchestrator、作業手順は worker skill、実装着手前の契約審査は issue-contract-review、実装ループの禁止事項は impl-review-loop へ分割することです。PR #322 のコメントでも、「
CLAUDE.mdに長い文書を読めと書くだけでは作業導線として弱い」「product-spec-lifecycle.mdはルール文書であり作業手順ではない」「Spec Kit / speckit-* へ接続していない」と指摘されています。3. Spec Kit の実装モデル上、
tasks.mdは本来/speckit.implementの入力であるSpec Kit 公式 README では、
specify initにより/speckit.constitution、/speckit.specify、/speckit.plan、/speckit.tasks、/speckit.implementが利用可能になると説明されています。([GitHub]1) また/speckit.tasksはtasks.mdを生成し、そのtasks.mdが/speckit.implementの roadmap になると説明されています。([GitHub]1)つまり LOOP_PROTOCOL の「
tasks.md直接実装禁止、GitHub Issue 化してから作業」は、Spec Kit upstream の標準挙動に対する プロジェクト固有 adapter / guard です。これはissue-refinement-loopに自然に属する責務ではありません。置き場所は、少なくとも次のどれかです。speckit-taskstoissuesの LOOP_PROTOCOL adapter guardissue-contract-reviewの implementation preflightimpl-review-loopの direct implementation 禁止 gatecreate-issue/issue-authorの task materialization 手順product-spec-ops/speckit-adapterskillPR #308 では、すでに
.specify/と 9 本のspeckit-*skills が main に導入され、speckit-implementは直接実行禁止、speckit-taskstoissuesは既存 Issue 起票フローを迂回しない、という安全境界が記録されています。 #332 はこの既存境界へ接続すべきであって、issue-refinement-loop内で再定義すべきではありません。4. Claude Code の公式設計ともズレる
Claude Code 公式 docs では、
CLAUDE.mdは context であり強制設定ではなく、複数ステップ手順や一部領域だけに関係する指示は skill または path-scoped rule に移すべきとされています。([Claude API Docs]2) また、.claude/rules/は path scope を持て、該当ファイル作業時だけ読み込ませられます。([Claude API Docs]2)Skills についても、
SKILL.mdは project-level に置け、supporting files に詳細 reference / scripts を分離でき、descriptionは自動適用判定に使われ、pathsfrontmatter で対象ファイルを限定できます。([Claude API Docs]3) ([Claude API Docs]3) ([Claude API Docs]3)したがって、Product Spec / Spec Kit の詳細手順を巨大化しがちな
issue-refinement-loop/SKILL.mdに追加するのは、外部 docs の推奨にも反します。特にissue-refinement-loopは既に長大で、#295 が usage コスト削減のためmax_iterations=1化や SubAgent 条件付き化を提案している最中です。 さらに #203 も同じファイルへweb-researcherretry 追加を予定しており、競合リスクもあります。どこまでなら
issue-refinement-loopに置いてよいか置いてよいのは、次の程度です。
つまり、
phase 分類は残すとしても 作業 phase ではなく routing enum に格下げすべきです。たとえばspecify / clarify / checklist / plan / tasks / analyze / implementation-taskをそのままissue-refinement-loopに持たせるのは危険です。spec_kit_step_candidateやproduct_spec_work_kindのような名前で、後続 worker へ渡す metadata に留めるべきです。現在の
issue-refinement-loopは既にweb-researcherを外部仕様・CLI/API・公開 docs の事実確認へ条件付き起動する構造を持っています。 したがって #332 で追加すべきなのは「Product Spec / Spec Kit を検知したらどの worker に渡すか」であり、Spec Kit 手順そのものではありません。推奨する責務分割
docs/product/**/.specify/**/tasks.mdの検知issue-refinement-loopreview-issueまたはissue-reviewertasks.md直接実装でないことを確認issue-contract-review/speckit.implementやtasks.md直実装を拒否impl-review-loop/implementation-workertasks.md→ GitHub Issue 化speckit-taskstoissuesadapter +issue-author/create-issueproduct-spec-ops的な skill、または既存create-issue/edit-issuereferencesdocs/product/**の最小局所ルールdocs/product/CLAUDE.mdまたは path-scoped ruledocs/dev/product-spec-lifecycle.md#332 の高品質化方針
#332 は close して新 Issue に作り直すか、少なくとも本文を大きく reframe すべきです。現在の
Allowed PathsとOut of Scopeは、正しい修正を禁じています。推奨タイトル:
推奨 In Scope:
推奨 Out of Scope:
推奨 AC:
最終結論
人間指摘を採用すべきです。
issue-refinement-loopに「Product Spec / Spec Kit Preflight」という名前の大きなセクションを足すのは、今の設計文脈では危険です。薄い routing gate なら可。成果物・作業手順・実装禁止の実 enforcement は、SubAgent と各 worker skill に分割すべきです。敵対的に言うと、#332 の現行案は「#322 で専用 skill/rule を撤回した反省」を「全部オーケストレータへ押し込む」という別種の過剰設計に変換しています。これは #254 の「SDD / Spec Kit / 既存 Skill・SubAgent / Issue・PR 運用の整合」という目的には届きません。
[-]実装: issue-refinement-loop に Product Spec / Spec Kit preflight を統合する(後続 Issue A)[/-][+]設計変更: issue-refinement-loop に Product/Spec Kit routing gate のみ追加し、成果物 preflight は review / contract / impl / speckit adapter に分割する[/+]squne121 commentedon May 24, 2026
Issue Reframe 完了
OWNER による REQUEST_CHANGES 相当のレビューを受け、本 Issue の設計を全面 reframe しました。
変更概要
issue-refinement-loop/SKILL.md+review-issue/SKILL.md(矛盾あり)issue-refinement-loop/SKILL.mdのみ(矛盾解消)decision: immediateで追加Blocking Issues 対応
## Required Skills直後に## Runtime Verification Applicabilityセクションを追加。decision: immediate。review-issue/SKILL.mdを削除。設計変更の根拠
ORCHESTRATOR_IO_BOUNDARY_V1(control-plane/data-plane 分離原則)に基づき、issue-refinement-loop は routing gate(control-plane)のみを担当し、成果物手順(data-plane)は worker skill に分割する設計に変更。
バックアップ:
/tmp/issue-332-backup.md(変更前本文)squne121 commentedon May 24, 2026
issue-refinement-loop: 完了 (2026-05-24T02:10:02Z)
改善履歴
iteration 0 → 1: OWNER コメント(REQUEST_CHANGES 相当)+ review-issue 判定に基づく大幅 reframe
次アクション
issue-contract-review を実行して着手前 preflight を確認してください。
squne121 commentedon May 24, 2026
Contract Snapshot (2026-05-24T03:30:00Z)
issue-refinement-loop/SKILL.mdに Product/Spec Kit signal detection と routing gate が追加された状態で、gate は signal detection / LOOP_STATE.product_spec_context 更新 / worker routing のみを行い、成果物手順を含まない。.claude/skills/issue-refinement-loop/SKILL.md.claude/worktrees/issue-332-issue-refinement-loop-product-spec-kit-rworktree-issue-332-issue-refinement-loop-product-spec-kit-rsqune121 commentedon May 24, 2026
implement-issue: 実装完了 (2026-05-24T02:26:50Z)
.claude/worktrees/issue-332-issue-refinement-loop-product-spec-kit-rworktree-issue-332-issue-refinement-loop-product-spec-kit-rsqune121 commentedon May 24, 2026
impl-review-loop: 完了 (2026-05-24T02:36:00Z)
経緯
fix(#332): B1-B4 修正 — signal regex 化 / tasks_md fail-closed 強化 / foll…
squne121 commentedon May 24, 2026
impl-review-loop: 完了 (2026-05-24T03:50:00Z)
経緯
修正内容(iteration 2)
signal_matchingregex パターンに置き換えtasks_fileシグナル存在時点でtasks_materializationに fall-throughrouting_targets.tasks_materialization_routeで worker chain + mutation_boundary 明記起票した follow-up Issues
review-issue/issue-reviewer: product trace fields 構造チェック(新規)speckit-taskstoissues: LOOP_PROTOCOL adapter alignment(新規)feat(#332): issue-refinement-loop に Product/Spec Kit routing gate を追加…
squne121 commentedon May 24, 2026
post-merge-cleanup: 完了 (2026-05-24T03:55:00Z)
実行内容
.claude/worktrees/issue-332-issue-refinement-loop-product-spec-kit-r→ 削除済みworktree-issue-332-issue-refinement-loop-product-spec-kit-r→ 削除済みgit pull origin main --ff-only→ 最新化完了docs(#352): add Spec Kit override/preset/extension investigation (#353)