Repository navigation
feat(#332): issue-refinement-loop に Product/Spec Kit routing gate を追加する - #336
Conversation
LOOP_STATE に product_spec_context フィールドを追加し、Step 0e として Product/Spec Kit Signal Detection と Routing Gate を追加した。 - docs/product/** / .specify/** / spec.md / plan.md / tasks.md / speckit 等の シグナルを Issue title/body/labels から検知して LOOP_STATE.product_spec_context を更新する - tasks.md 直接実装要求を検知した場合は implementation route に進まず Issue materialization route へ fail-closed で振り分ける記述を追加 - Routing Gate は signal detection / LOOP_STATE 更新 / worker routing のみを行い、 成果物の詳細手順は含まない - Related セクションに speckit-taskstoissues skill の参照を追加 - Delivery Rule セクションを追加し、#203 / #295 との同一ファイル競合リスクを明示 Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
検証結果レポートIssue #332: issue-refinement-loop に Product/Spec Kit routing gate を追加する
総合判定
```yaml |
squne121
left a comment
There was a problem hiding this comment.
Verdict: REQUEST_CHANGES
Mergeability
- mergeable=MERGEABLE, mergeStateStatus=CLEAN
Evidence Check
AC Coverage (Issue #332 contract):
- AC1 (routing gate section): PASS — grep confirms lines 124, 238, 275, 278, 279, 287
- AC2 (no data-plane procedures): PASS — no forbidden patterns found
- AC3 (tasks.md fail-closed guard): PASS — materialization guard at line 272
- AC4 (follow-up references): PASS — issue-contract-review (lines 882, 1102), speckit-taskstoissues (lines 291, 295, 1183)
- AC5 (no speckit upstream procedures): PASS — no forbidden patterns found
- AC6 (pnpm quality gate): PASS — all CI checks passed
Allowed Paths: 遵守 — 変更ファイルは .claude/skills/issue-refinement-loop/SKILL.md のみ(Allowed Paths と一致)
CI Verification: 全 5 チェック PASS(build / lint / python-test / test / typecheck)
TEST_VERDICT_MACHINE: verification_commands_pass: 6 / verification_commands_fail: 0 / verification_skipped_count: 0
検証コマンド結果: PR 本文の ## Verification Commands 結果 に AC1-AC6 全 PASS が記録されている。TEST_VERDICT_MACHINE によるローカル実行確認とも一致。
Scope 混入: なし
Runtime Verification Applicability: Issue #332 は decision: immediate。TEST_VERDICT_MACHINE で runtime_ac_results: [](immediate AC なし)と verification_skipped_count: 0 を確認。fallback なし。
Blockers
-
Safety Claim Matrix 欠落:
.claude/skills/**は pr-review-judge SKILL Step 4.6 で safety-sensitive パスとして明示されている。PR は.claude/skills/issue-refinement-loop/SKILL.mdを変更しているが、PR 本文に## Safety Claim Matrixセクションが存在しない(APPROVE 禁止条件)。対処: PR 本文に
## Safety Claim Matrixを追加するか、schema_change_applicability: not_schema_changeに相当する形でsafety_claim_applicability: not_safety_changeの根拠(agent routing control-plane のみ変更、permission/auth/sandbox/transport 境界に変更なし)を明示する。ただし pr-review-judge は fail-closed 判定のためパス一致のみで safety-sensitive と判定する。OWNER の waiver 判断を要請する。
Non-blockers(任意改善)
- Issue AC4 の文言(
review-issue / issue-contract-review / impl-review-loop / speckit-taskstoissues)と VC コマンド(grep -n "issue-contract-review\|impl-review-loop\|speckit-taskstoissues")の間にreview-issueが VC に含まれていない軽微な不整合がある。impl-review-loopも SKILL.md 内に存在しない。ただし VC コマンドが OR 条件でissue-contract-reviewにヒットするため AC4 は PASS と判定した。次の Issue refinement で VC を AC 文言と同期させることを推奨する。
LOOP_VERDICT
verdict: REQUEST_CHANGES
blockers:
- "Safety Claim Matrix 欠落: .claude/skills/** パス一致により safety-sensitive 判定(fail-closed)。PR 本文に Safety Claim Matrix または not_safety_change 根拠の明示が必要。OWNER waiver を要請する。"
mergeable: MERGEABLE
mergeStateStatus: CLEAN
reviewed_head_sha: bbd1f8930e891e2ca12ffdce48dd637cff759d71
follow_up_issue_requests: []
squne121
left a comment
There was a problem hiding this comment.
Verdict: APPROVE
Mergeability
- mergeable=MERGEABLE, mergeStateStatus=CLEAN
Evidence Check
- AC coverage: 6/6 PASS — AC1(routing gate section), AC2(no data-plane procedures), AC3(tasks.md fail-closed guard), AC4(speckit-taskstoissues + follow-up refs), AC5(no speckit upstream procedures), AC6(pnpm quality gate + Delivery Rule section) — all confirmed by TEST_VERDICT_MACHINE with verification_commands_pass: 6, verification_skipped_count: 0
- Allowed Paths: 遵守 —
.claude/skills/issue-refinement-loop/SKILL.mdのみ変更(Allowed Paths と完全一致) - CI Verification: build/lint/python-test/test/typecheck 全 5 チェック PASS
- 検証コマンド結果: TEST_VERDICT_MACHINE が全 AC1-AC6 を実際のコマンド出力付きで PASS 確認済み(verification_commands_fail: 0)
- Schema Consumer Inventory:
.claude/skills/**への文書変更のみ、schema_change_applicability: not_schema_change — 不要 - Safety Claim Matrix: 存在確認済み。3 claims 全て Implemented=Yes, Not controlled=空(-)、Evidence が AC2/AC3 VC および IMPLEMENT_RESULT_V1 と対応、無限定安全主張なし — PASS
- Runtime Verification (decision: immediate): verification_skipped_count: 0, human_review_required: NO, fallback_detected なし — PASS
Blockers
なし
Non-blockers(任意改善)
なし
LOOP_VERDICT
verdict: APPROVE
blockers: []
mergeable: MERGEABLE
mergeStateStatus: CLEAN
reviewed_head_sha: bbd1f8930e891e2ca12ffdce48dd637cff759d71
follow_up_issue_requests: []
Verdict: REQUEST_CHANGESPR #336 の方向性は概ね正しいです。#332 の再設計方針どおり、 ただし、このまま merge すると routing gate の肝である検知・分類・fail-closed が曖昧で、実運用では false negative を起こす可能性が高いです。ローカルで 良い点PR #336 は、#322 で撤回された「専用 product-spec-lifecycle skill/rule 追加」路線を繰り返していません。#322 は iteration 2 で専用 skill/rule を削除し、 また、#308 で導入済みの Claude Code 公式docs上も、複雑なskillは BlockersB1.
|
…ow-up Issue 番号追加 / routing worker chain 明記 - B1: product_spec_signal_patterns の literal contains を signal_matching regex/glob 形式に置き換え - B2: work_kind 分類を precedence-based テーブルに変更し tasks_file シグナル単独で tasks_materialization へ fall-closed - B3: Follow-up Issues セクションを追加(#333/#335/#338/#339) - B4: routing_targets に worker_chain_hint と mutation_boundary を明記し orchestrator の直接 skill 実行を禁止 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: 6
verification_commands_fail: 0
verification_skipped_count: 0
runtime_ac_results: []検証結果レポートIssue #332: Issue Refinement Loop / Product Spec Kit Routing Gate
総合判定
実行環境:
品質ゲート結果:
検証完了。PR #336 はマージ可能です。 🤖 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: 6/6 PASS
- AC1: Step 0e / product_spec_context / routing gate セクションが SKILL.md に追加されている(diff 確認)
- AC2: 成果物手順(phase 分類詳細・trace fields・EARS・registry template)がないことを grep VC で確認(test runner PASS)
- AC3: tasks_file シグナルを検知した場合
tasks_materializationとして扱い、implementation route に進まない記述が存在する(diff 確認) - AC4: #333/#335/#338/#339 が "Product/Spec Kit Routing Gate — Follow-up Issues" セクションに明示(diff 確認、test runner PASS)
- AC5:
specify init/speckit.implement等の upstream 手順が含まれないことを grep VC で確認(test runner PASS) - AC6:
## Delivery Ruleセクションが追加され #203/#295 との同一ファイル競合リスクが明示されている(diff 確認)
- Allowed Paths: 遵守(変更ファイルは
.claude/skills/issue-refinement-loop/SKILL.mdのみ) - CI Verification: build/lint/python-test/test/typecheck 全 PASS(GitHub Actions 確認)
- 検証コマンド結果: verification_commands_pass=6, verification_commands_fail=0, verification_skipped_count=0(TEST_VERDICT_MACHINE PASS)
- Safety Claim Matrix:
.claude/skills/**変更のため safety-sensitive として検査。Safety Claim Matrix セクション存在、全行Not controlled: -(空)、Evidence はすべて AC/VC に対応。無限定の safe/read-only/sandboxed/isolated 主張なし。APPROVE 禁止条件に該当なし。 - Schema Consumer Inventory: 変更はすべて SKILL.md の内部ロジック・手順テキストのみ。consumer 境界をまたぐ contract 変更なし。
schema_change_applicability: not_schema_change相当と判定。Schema Consumer Inventory 提出不要。
Blockers
なし
Non-blockers(任意改善)
なし
LOOP_VERDICT
verdict: APPROVE
blockers: []
mergeable: MERGEABLE
mergeStateStatus: CLEAN
reviewed_head_sha: b0707a370f6299655064b42970d9a291e28409bf
follow_up_issue_requests: []
Summary
LOOP_STATEにproduct_spec_contextフィールドを追加(detected / work_kind / signals)tasks.md直接実装要求を検知した場合は fail-closed で Issue materialization route へ振り分ける記述を追加speckit-taskstoissuesskill の参照を追加(新規追加)## Delivery Ruleセクションを追加し、改善: issue-refinement-loop の web-researcher Step 1b に transient auth failure への 1-retry 機構を追加する #203 / perf(claude): issue-refinement-loop を軽量化する(max_iterations=1 デフォルト / SubAgent 条件付き) #295 との同一ファイル競合リスクを明示Closes #332
Verification Commands 結果
Contract Snapshot
#332 (comment)
変更ファイル
.claude/skills/issue-refinement-loop/SKILL.mdのみ(Allowed Paths 準拠)Safety Claim Matrix
.claude/skills/issue-refinement-loop/SKILL.mdの Allowed Paths 内に限定される🤖 Generated with Claude Code