Skip to content

実装: ADR — SDD ツール採否(Spec Kit / OpenSpec / 独自)を決定する (C254-1) #257

Closed

Description

@squne121

Machine-Readable Contract

contract_schema_version: v1
issue_kind: implementation
parent_issue: "#254"
goal_ref: "Spec Driven Development(SDD)駆動運用方針を ADR として確定し、Spec Kit upstream-based / OpenSpec 軽量補助 / 独自運用(EARS 取り込みのみ)/ 採用見送り のいずれかを選定する"
change_kind: docs

Parent Issue

#254

Parent Goal Ref

  • Goal: SDD 駆動運用を採用しつつ、既存 docs/SSOT・Skill/SubAgent・Issue/PR 運用と整合させ、AI が実装前に必ず参照すべきプロダクト SSOT を child Issue として段階起票する
  • Desired Destination: SDD ツール採否が ADR で確定し、不足 product SSOT 7 種が child Issue としてマージ済み、docs/dev/ssot-registry.md と ssot-discovery catalog に登録された状態

Current Validated Scope

  • docs/adr/000N-sdd-tool-adoption.md を新規追加し、SDD ツール採否と Decision Points 6 点を記録する
  • docs/dev/workflow.md に ADR への参照リンクを追加する
  • docs/dev/ssot-registry.md に ADR を登録する
  • .claude/skills/ssot-discovery/references/ssot-catalog.md に ADR を登録する(ssot-registry と同期)

Remaining Parent Gaps

  • C254-2: docs/dev/product-spec-lifecycle.md 追加(本 ADR の方針確定後に起票)
  • C254-3: docs/product/game-thesis.md 追加(本 ADR の方針確定後)
  • C254-4: docs/product/game-design.md 追加(GDD v0.1)
  • C254-5: docs/product/game-logic.md 追加
  • C254-6: docs/product/mvp-scope.md 追加
  • C254-7: docs/product/playtest-protocol.md + playtest-log.md template 追加
  • C254-8: docs/dev/release-distribution-policy.md 追加

Outcome

docs/adr/000N-sdd-tool-adoption.md が status: accepted(または accepted-with-deferral)で merge され、Decision Points 6 点(SDD ツール採否 / 正本境界 / Issue contract と tasks.md 責務分担 / .claude/ 既存 skill との共存 / token 対策 / playtest-driven 補正)がすべて記録されている。docs/dev/workflow.md と docs/dev/ssot-registry.md / .claude/skills/ssot-discovery/references/ssot-catalog.md から ADR が参照され、後続 child Issue(C254-2〜C254-8)の方針が一意に決定可能になる。

In Scope

Out of Scope

  • 実 SDD ツール(Spec Kit / OpenSpec)の main ブランチ直接導入(採用後の別 Issue で扱う)
  • 採用後の throwaway worktree spike の実施(別 Issue)
  • 各 doc(game-thesis / game-design / game-logic / mvp-scope / playtest / lifecycle / release-distribution)の本文作成(C254-2〜C254-8 の責務)
  • CLAUDE.md や .claude/rules/project-constitution.md の「読む順序」更新(C254-2 以降で実施)
  • 既存 13 skill / 9 SubAgent の改修

Acceptance Criteria

  • AC1: docs/adr/000N-sdd-tool-adoption.md が存在し、本文先頭の status が accepted または accepted-with-deferral のいずれか
  • AC2: ADR 本文に Decision Points 6 件すべてが記録されている(以下 AC2-a〜AC2-g を満たすこと)
  • AC2-a: ADR に decision: accepted-with-deferral と sdd_tool: spec-kit-upstream-compatible が明記されている
  • AC2-b: ADR に canonical_source: docs-ssot と generated_artifacts: derived-workbench が明記されている
  • AC2-c: ADR に conflict rule「docs/SSOT と generated artifact が矛盾した場合は docs/SSOT が勝つ」が明記されている
  • AC2-d: ADR に tasks.md は staging artifact、GitHub Issue が tracking 正本であると明記されている
  • AC2-e: ADR に .claude/skills namespace collision policy が明記されている
  • AC2-f: ADR に compact spec / scoped loading / no full regeneration / Serena の限定用途が明記されている
  • AC2-g: ADR に playtest-log → spec delta issue → implementation issue の feedback loop が明記されている
  • AC3: docs/dev/workflow.md から ADR への参照が追加されている(ファイル名へのリンクまたは見出し参照)
  • AC4: docs/dev/ssot-registry.md に ADR が登録されている
  • AC5: .claude/skills/ssot-discovery/references/ssot-catalog.md に ADR が登録され、registry と同期している
  • AC6: pnpm typecheck && pnpm lint && pnpm test && pnpm build が PASS(docs-only 変更だが既存 quality gate を維持)

Verification Commands

# AC1: ADR 存在と status 確認
ADR=$(ls docs/adr/ 2>/dev/null | grep -i sdd | head -1)
test -n "$ADR" && test -f "docs/adr/$ADR" \
  && echo "PASS: AC1-a ADR exists ($ADR)" \
  || { echo "FAIL: AC1-a ADR missing"; ADR=""; }
if [ -n "$ADR" ]; then
  rg -q "status:\s*(accepted|accepted-with-deferral)" "docs/adr/$ADR" \
    && echo "PASS: AC1-b status valid" \
    || echo "FAIL: AC1-b status invalid"
fi

# AC2: Decision Points 6 件(構造チェック)
if [ -n "$ADR" ]; then
  # AC2-a: decision block
  rg -q "sdd_tool:\s*spec-kit-upstream-compatible" "docs/adr/$ADR" \
    && echo "PASS: AC2-a sdd_tool" || echo "FAIL: AC2-a"
  # AC2-b: canonical_source
  rg -q "canonical_source:\s*docs-ssot" "docs/adr/$ADR" \
    && echo "PASS: AC2-b canonical_source" || echo "FAIL: AC2-b"
  # AC2-c: conflict rule
  rg -q "docs.*SSOT.*wins\|docs.*normative\|canonical_source.*docs-ssot" "docs/adr/$ADR" \
    && echo "PASS: AC2-c conflict rule" || echo "FAIL: AC2-c"
  # AC2-d: task materialization guard
  rg -q "tasks.md.*staging\|tasks_md_role.*staging\|tracking.*正本" "docs/adr/$ADR" \
    && echo "PASS: AC2-d tasks.md staging" || echo "FAIL: AC2-d"
  # AC2-e: namespace collision policy
  rg -q "namespace\|collision\|隔離" "docs/adr/$ADR" \
    && echo "PASS: AC2-e namespace" || echo "FAIL: AC2-e"
  # AC2-f: token policy
  rg -q "compact_spec\|scoped_loading\|full_regeneration" "docs/adr/$ADR" \
    && echo "PASS: AC2-f token policy" || echo "FAIL: AC2-f"
  # AC2-g: playtest feedback loop
  rg -q "playtest.*spec.*delta\|spec_delta_issue\|feedback_path" "docs/adr/$ADR" \
    && echo "PASS: AC2-g playtest loop" || echo "FAIL: AC2-g"
fi

# AC3: workflow.md からの参照
rg -q "sdd-tool-adoption|SDD ツール採否" docs/dev/workflow.md \
  && echo "PASS: AC3" \
  || echo "FAIL: AC3"

# AC4: ssot-registry 登録
rg -q "sdd-tool-adoption" docs/dev/ssot-registry.md \
  && echo "PASS: AC4" \
  || echo "FAIL: AC4"

# AC5: ssot-catalog 同期
rg -q "sdd-tool-adoption" .claude/skills/ssot-discovery/references/ssot-catalog.md \
  && echo "PASS: AC5" \
  || echo "FAIL: AC5"

# AC6: quality gate
pnpm typecheck && pnpm lint && pnpm test && pnpm build

Allowed Paths

  • docs/adr/000N-sdd-tool-adoption.md(新規。N は連番)
  • docs/dev/workflow.md(ADR への参照リンク追記のみ)
  • docs/dev/ssot-registry.md(ADR エントリ追加のみ)
  • .claude/skills/ssot-discovery/references/ssot-catalog.md(ADR エントリ追加、registry と同期)

Stop Conditions

  • Allowed Paths 外の変更が必要と判明した場合
  • In Scope の固定契約(Decision Points の 6 項目)の変更が必要になった場合
  • 新規 Issue の起票が必要と判断した場合(スコープ分割が発生する場合)
  • 後続 Phase / 別スコープへの波及が判明した場合
  • nested SubAgent delegation が必要になった場合
  • 外部サービス利用・権限昇格・既存テスト大規模改変が必要になった場合
  • Decision Points 6 点のいずれかについて事実確認が必要だが web 経由でも一次情報が取得できない場合(→ state/needs-human で人間判断)

Required Skills

なし

Runtime Verification Applicability

runtime_verification_applicability:
  decision: not_applicable
  rationale: >
    本 Issue は docs-only(ADR 新規作成 + workflow/registry/catalog への参照追加)であり、
    実行時挙動の変化を伴わない。pnpm test / pnpm build による既存 quality gate が
    AC6 で網羅されているため、追加の runtime verification は不要。

Scope Delta(任意)

N/A

Activity

  1. added
    phase/implementation
    agent/implementer
    triage-required
    on May 23, 2026
  2. squne121 commented on May 23, 2026

    @squne121
    OwnerAuthor

    人間からの指摘です。
    SDD ツール採否: Spec Kit upstream-based / OpenSpec 軽量補助 / 独自運用(EARS 表記のみ採用) / 採用見送り — のいずれか
    →Spec Kitを好意的にみている。
    正本/派生境界: 採用する場合、生成 artifacts(.specify/memory/constitution.md 等)と既存 docs/ SSOT のどちらが正本か
    →コストによるが、長期的な開発を考えると生成 artifactsへ移行したほうがいいか?でもSpec Kitにロックインされてよりより開発運用ができなくなるのは嫌だから既存 docs/ SSOTを優先したい、形を保ったままSpec Kitに寄せたい。
    Issue contract と tasks.md の責務分担: 既存 1 Issue = 1 PR を維持するか、tasks.md → GitHub Issue 変換層を挟むか
    →1スペックドキュメント作成=1 issue = 1 PR、1task = 1issue = 1PR, 1spec を親issueとして各スペックissueがSub-Issueのような形に落ち着けられないか?
    .claude/ 既存 skill 群との共存: 採用ツール提供の .claude/skills/ 自動生成と既存 13 skill(create-issue, edit-issue, impl-review-loop 等)の衝突回避策
    →衝突しないと考えている。issue-refinement-loop や impl-review-loopをメイン開発ルーティンとし、spec doc writer や spec imple(既存実装者がエージェントスキルをルーティングさせるほうがいいか?)のようにspec 関連作業はspecサブエージェントを作り、メイン開発ルーティンに新規サブエージェントへのルーティングを足せばよさそう。
    Token / コンテキスト消費: Spec Kit の token 消費問題(GitHub Spec Kit Issue #1492)への対策(Serena MCP / compact spec / scope 限定 等)
    →改善案を出してほしいよ?
    Playtest-driven 補正: ゲーム特有の「仕様通りだが面白くない」を spec に戻す経路の有無
    →有。

  3. squne121 commented on May 23, 2026

    @squne121
    OwnerAuthor

    結論

    Issue #257 は そのまま実装すると浅い ADR で通ってしまうリスクが高いです。判定は REQUEST_CHANGES 相当。

    採用方針は次が妥当です。

    decision: accepted-with-deferral
    sdd_tool: spec-kit-upstream-compatible
    canonical_source: docs-ssot
    generated_artifacts: derived-workbench
    openspec: not-primary; compare-or-spike-only
    ears: allowed-notation-in-docs-product
    task_materialization: tasks-md-to-github-issue-adapter-required
    

    つまり、Spec Kit は好意的に採用。ただし .specify/ 生成物を正本にしない。既存 docs/ SSOT を正本にしたまま、Spec Kit の command / template / task 分解思想へ寄せるのが安全です。

    Issue #257 自体は docs-only ADR child で、対象は ADR 作成、workflow 参照追加、SSOT registry / catalog 登録までに限定されています。実ツール導入・既存 skill 改修・product docs 作成は明示的にスコープ外です。 親 Issue #254 も「まず ADR で SDD 採否と正本境界を決めないと、後続 product SSOT が二重正本化する」という設計です。

    重大指摘

    1. 「Spec Kit 採用」と「Spec Kit artifacts 正本化」を混同してはいけない

    Spec Kit は /speckit.constitution、/speckit.specify、/speckit.plan、/speckit.tasks、/speckit.taskstoissues、/speckit.implement という流れを持ち、GitHub Issues 変換コマンドもあります。さらに project-local override や presets によるカスタマイズ機構もあります。(GitHub)

    ただし、現在の LOOP_PROTOCOL はすでに docs/dev/, docs/adr/, docs/product/ を SSOT、.claude/skills/ や SubAgent 定義をプロンプト層、Hooks/CI を決定論的ガードレール層として整理しています。 ここで .specify/memory/constitution.md を正本にすると、既存 workflow の根本ルールを上書きする設計変更になります。Issue #257 の Allowed Paths ではそこまで扱えません。

    ADR には明記すべきです:

    Until a future ADR explicitly changes the boundary, docs/ remains normative. .specify/ artifacts are generated workbench artifacts and must not override docs/ SSOT.

    2. OpenSpec 軽量補助は魅力があるが、正本には向かない

    OpenSpec は brownfield 向け・軽量・反復的な spec layer を志向し、openspec/changes/<change>/proposal.md, design.md, tasks.md, specs/ の構造を作ります。(GitHub) ただし Issue #666 で、spec format が hard-coded され custom schema / 既存独自 spec 形式に弱い問題が報告されています。これは「既存 docs/ の形を保ったまま寄せたい」という今回の人間判断と正面衝突します。(GitHub)

    よって ADR では、OpenSpec を primary SDD tool としては採用しない。使うなら「比較対象」「軽量 spike」「将来再評価対象」に留めるのが妥当です。

    3. tasks.md を tracking 正本にすると既存 1 Issue = 1 PR と衝突する

    現在の workflow は 1 Issue = 1 PR を明示しており、別問題を発見したら新規 Issue、複数 Issue を 1 PR にまとめるのは原則禁止です。 PR #230 でも、AI 着手可否は state/queued ではなく GitHub native dependency / Depends on #N fallback を source of truth に寄せています。

    したがって tasks.md は 作業分解の staging artifact に留めるべきです。正本は GitHub Issue + PR にする。

    推奨モデル:

    Parent Issue
      = 1 spec package / feature package の束ね
    

    Spec Doc Issue
    = 1 normative spec doc 作成・更新
    = 1 Issue = 1 PR

    Implementation Task Issue
    = 1 independently verifiable task
    = 1 Issue = 1 PR

    tasks.md
    = GitHub Issue へ materialize する前の一時的な作業分解
    = tracker 正本ではない

    「Sub-Issue のような形」は妥当ですが、実装上はまず Parent Issue + child checklist + dependency に寄せる方が安全です。GitHub native Sub-issues を正式利用するなら、それ自体を別 ADR / GitHub ops issue に分離すべきです。

    Decision Points 別レビュー

    Decision Point 推奨判定 敵対的レビュー
    SDD ツール採否 Spec Kit upstream-compatible / accepted-with-deferral Spec Kit を母体にするのは妥当。ただし CLI 導入・生成物正本化は別 Issue の throwaway worktree spike 後。
    正本/派生境界 docs/ SSOT 正本、.specify/ 派生 長期移行を今決めるのは危険。まず docs→Spec artifacts→Issue→PR→docs 更新の round-trip が破綻しないことを検証する。
    Issue contract / tasks.md GitHub Issue が正本、tasks.md は staging tasks.md から直接実装させると 1 Issue = 1 PR と衝突する。taskstoissues 相当の変換層を必須にする。
    .claude/skills 共存 衝突しない、ではなく namespace 隔離 Spec Kit は agent skill / command を生成できるため、.claude/skills/ / .claude/commands/ の衝突検査が必要。(GitHub)
    Token / context compact spec + scoped loading + semantic retrieval Serena MCP だけでは解決しない。spec artifact の肥大化、再読込、重複生成をプロセスで抑える必要がある。
    Playtest-driven 補正 必須。仕様変更 issue として戻す 「有」だけでは足りない。仕様通りだが面白くない問題は bug ではなく spec delta として扱う。

    .claude/ 共存設計

    既存設計では SubAgent = 役割、Skill = 作業手順 で、SubAgent 定義に詳細手順を埋め込むのはアンチパターンです。 したがって、Spec Kit 関連も既存 impl-review-loop を置換するのではなく、役割追加・ルーティング追加として扱うべきです。

    推奨ルーティング:

    issue-refinement-loop
      → spec-doc-writer SubAgent
          → Spec Kit compatible templates / EARS notation
          → docs/product/** or docs/adr/** を更新
    

    issue-author
    → tasks.md / plan.md 由来の task を GitHub Issue 化

    impl-review-loop
    → implementation-worker
    → test-runner
    → pr-reviewer

    ただし Issue #257 では既存 13 skill / 9 SubAgent の改修は Out of Scope です。ADR には「将来こう routing する」と書き、実装は C254 後続または別 Issue に分けるべきです。

    Token / context 消費対策

    Spec Kit Issue #1492 では、Claude Code 利用時に生成 artifact が大きく冗長で、繰り返し再生成・再読込され、短時間で usage limit に当たる問題が報告されています。提案として concise artifacts、compact/minimal mode、fragment caching などが挙がっています。(GitHub)

    LOOP_PROTOCOL 向け対策は次です。

    1. Compact Spec Profile

      • ADR で spec artifact の最大構成を制限する。

      • 必須項目は intent, requirement_id, acceptance_criteria, non_goals, trace_links, open_questions, playtest_hypotheses 程度に絞る。

      • 背景説明・重複 narrative・長い一般論は禁止。

    2. Tiered Loading

      • Tier 0: ssot-registry.md / catalog / ADR summary だけ常時読む。

      • Tier 1: 現在の feature spec compact のみ読む。

      • Tier 2: full design / playtest log は必要時だけ読む。

      • Tier 3: archived .specify/ artifacts は自動読込禁止。

    3. Diff-first 更新

      • spec 全体を毎回再生成しない。

      • REQ-xxx / TASK-xxx 単位で patch する。

      • 「再生成された tasks.md が既存 Issue とズレる」状態を禁止する。

    4. tasks.md の寿命を短くする

      • tasks.md は GitHub Issue 化前の一時成果物。

      • materialize 後は archived derived artifact に降格。

      • 以降の tracking 正本は Issue / PR。

    5. Serena MCP の使い所を限定する

      • Serena は LSP / symbol-level retrieval / semantic code editing に強い MCP toolkit で、大規模コードを全文読まずに symbol 単位で探索できます。(GitHub)

      • ただし Markdown spec の肥大化対策ではなく、実装時の code retrieval 対策です。spec memory には ssot-discovery と registry を使うべきです。

    6. 検証コマンドを追加する

      • ADR には token policy の存在だけでなく、最低限の静的検査を入れるべきです。

    例:

    # compact spec guard
    test "$(wc -l < docs/adr/000N-sdd-tool-adoption.md)" -le 250

    duplicate artifact guard

    ! rg -n "canonical_source: generated|generated_artifacts.*normative" docs/adr/000N-sdd-tool-adoption.md

    task materialization guard

    rg -n "tasks.md.staging|GitHub Issue.source of truth" docs/adr/000N-sdd-tool-adoption.md

    Playtest-driven 補正

    ゲームでは「仕様通りだが面白くない」が普通に起きます。Kiro Specs も requirements / design / tasks の段階化を持ち、複雑な planned work と exploratory work を分けます。(Kiro) LOOP_PROTOCOL ではさらに playtest feedback を spec に戻す経路が必須です。

    ADR に入れるべき最小ループ:

    playtest-log entry
    → classify
    bug
    balance/tuning
    design hypothesis invalidated
    unclear / needs more data
    → spec delta issue
    → docs/product/
    update PR
    → implementation task issue
    → impl-review-loop
    → next playtest

    playtest-log.md には最低限これを持たせるべきです。

    playtest_entry:
    hypothesis_id: HYP-001
    observed_behavior: "<何が起きたか>"
    fun_failure: "<退屈・混乱・テンポ悪化など>"
    affected_requirements:
    - REQ-012
    decision: accept_spec_delta | reject | defer
    proposed_spec_delta: "<仕様変更案>"
    linked_issue: "#..."
    validation_method: "<次回どう確認するか>"

    重要なのは、仕様通りだが面白くないを implementation bug にしないことです。これはまず spec-change issue です。

    EARS の扱い

    EARS は自然言語要求を軽量な定型に寄せる記法で、When, While, Where, If/Then などの patterns により曖昧さを減らします。(Jama Software) 今回は「独自運用(EARS 表記のみ採用)」を fallback として残すより、Spec Kit-compatible docs の中で EARS を requirement notation として部分採用するのがよいです。

    例:

    WHEN the player starts a sortie,
    THE system SHALL spawn the player at the configured start position.

    WHILE the sortie timer is active,
    THE system SHALL update combat simulation at fixed 60Hz.

    #257 の AC 改善案

    現状 AC2 は「Decision Points 6 件が記録されている」程度で、キーワードだけでも通ります。これは弱いです。Issue #257 は ADR の品質を担保する child なので、AC を次のように強化した方がよいです。

    - [ ] AC2-a: ADR に decision: accepted-with-deferral と sdd_tool: spec-kit-upstream-compatible が明記されている

    • AC2-b: ADR に canonical_source: docs-ssot と generated_artifacts: derived-workbench が明記されている
    • AC2-c: ADR に conflict rule「docs/SSOT と generated artifact が矛盾した場合は docs/SSOT が勝つ」がある
    • AC2-d: ADR に tasks.md は staging artifact、GitHub Issue が tracking 正本であると明記されている
    • AC2-e: ADR に .claude/skills namespace collision policy がある
    • AC2-f: ADR に compact spec / scoped loading / no full regeneration / Serena の限定用途がある
    • [ ] AC2-g: ADR に playtest-log → spec delta issue → implementation issue の feedback loop がある

    ADR に入れるべき最小本文

    status: accepted-with-deferral
    decision_date: 2026-05-23

    decision:
    sdd_tool: spec-kit-upstream-compatible
    canonical_source: docs-ssot
    generated_artifacts: derived-workbench
    openspec: compare-or-spike-only
    ears: allowed-notation
    task_tracking: github-issues
    tasks_md_role: staging-artifact

    conflict_rule:

    • If docs/ SSOT and generated artifacts disagree, docs/ SSOT wins.
    • Generated artifacts must not update project behavior unless reflected in docs/ through PR.

    issue_mapping:
    parent_spec_issue: one feature/spec package
    spec_doc_issue: one normative document update; one issue; one PR
    implementation_task_issue: one independently verifiable task; one issue; one PR
    tasks_md: materialization input only

    token_policy:
    compact_spec: required
    scoped_loading: required
    full_regeneration: prohibited unless explicitly requested
    serena_mcp: code retrieval only, not spec authority

    playtest_policy:
    spec_compliant_but_not_fun: spec_delta_issue
    feedback_path: playtest-log -> product spec -> task issue -> PR

    最終提案

    #257 は Spec Kit 採用 ADR として進めてよいです。ただし採用名は「Spec Kit upstream-based」ではなく、より正確に Spec Kit upstream-compatible / docs-SSOT-primary / generated-artifacts-derived と書くべきです。

    OpenSpec は軽量補助として魅力がありますが、既存 docs 形式を保つ要件とは未解決 issue が衝突するため、primary 採用は避けるべきです。EARS はツールではなく notation として採用。tasks.md は GitHub Issue へ変換されるまでの一時成果物。.claude 既存 skill 群は置換せず、spec 系 SubAgent / Skill を namespace 隔離して後続 Issue で追加するのが筋です。

    ## 結論

    Issue #257 は そのまま実装すると浅い ADR で通ってしまうリスクが高いです。判定は REQUEST_CHANGES 相当。

    採用方針は次が妥当です。

    decision: accepted-with-deferral
    sdd_tool: spec-kit-upstream-compatible
    canonical_source: docs-ssot
    generated_artifacts: derived-workbench
    openspec: not-primary; compare-or-spike-only
    ears: allowed-notation-in-docs-product
    task_materialization: tasks-md-to-github-issue-adapter-required

    つまり、Spec Kit は好意的に採用。ただし .specify/ 生成物を正本にしない。既存 docs/ SSOT を正本にしたまま、Spec Kit の command / template / task 分解思想へ寄せるのが安全です。

    Issue #257 自体は docs-only ADR child で、対象は ADR 作成、workflow 参照追加、SSOT registry / catalog 登録までに限定されています。実ツール導入・既存 skill 改修・product docs 作成は明示的にスコープ外です。 親 Issue #254 も「まず ADR で SDD 採否と正本境界を決めないと、後続 product SSOT が二重正本化する」という設計です。

    重大指摘

    1. 「Spec Kit 採用」と「Spec Kit artifacts 正本化」を混同してはいけない

    Spec Kit は /speckit.constitution、/speckit.specify、/speckit.plan、/speckit.tasks、/speckit.taskstoissues、/speckit.implement という流れを持ち、GitHub Issues 変換コマンドもあります。さらに project-local override や presets によるカスタマイズ機構もあります。(GitHub)

    ただし、現在の LOOP_PROTOCOL はすでに docs/dev/, docs/adr/, docs/product/ を SSOT、.claude/skills/ や SubAgent 定義をプロンプト層、Hooks/CI を決定論的ガードレール層として整理しています。 ここで .specify/memory/constitution.md を正本にすると、既存 workflow の根本ルールを上書きする設計変更になります。Issue #257 の Allowed Paths ではそこまで扱えません。

    ADR には明記すべきです:

    Until a future ADR explicitly changes the boundary, docs/ remains normative. .specify/ artifacts are generated workbench artifacts and must not override docs/ SSOT.

    2. OpenSpec 軽量補助は魅力があるが、正本には向かない

    OpenSpec は brownfield 向け・軽量・反復的な spec layer を志向し、openspec/changes/<change>/proposal.md, design.md, tasks.md, specs/ の構造を作ります。([GitHub]2) ただし Issue #666 で、spec format が hard-coded され custom schema / 既存独自 spec 形式に弱い問題が報告されています。これは「既存 docs/ の形を保ったまま寄せたい」という今回の人間判断と正面衝突します。([GitHub]3)

    よって ADR では、OpenSpec を primary SDD tool としては採用しない。使うなら「比較対象」「軽量 spike」「将来再評価対象」に留めるのが妥当です。

    3. tasks.md を tracking 正本にすると既存 1 Issue = 1 PR と衝突する

    現在の workflow は 1 Issue = 1 PR を明示しており、別問題を発見したら新規 Issue、複数 Issue を 1 PR にまとめるのは原則禁止です。 PR #230 でも、AI 着手可否は state/queued ではなく GitHub native dependency / Depends on #N fallback を source of truth に寄せています。

    したがって tasks.md は 作業分解の staging artifact に留めるべきです。正本は GitHub Issue + PR にする。

    推奨モデル:

    Parent Issue
      = 1 spec package / feature package の束ね
    
    Spec Doc Issue
      = 1 normative spec doc 作成・更新
      = 1 Issue = 1 PR
    
    Implementation Task Issue
      = 1 independently verifiable task
      = 1 Issue = 1 PR
    
    tasks.md
      = GitHub Issue へ materialize する前の一時的な作業分解
      = tracker 正本ではない
    

    「Sub-Issue のような形」は妥当ですが、実装上はまず Parent Issue + child checklist + dependency に寄せる方が安全です。GitHub native Sub-issues を正式利用するなら、それ自体を別 ADR / GitHub ops issue に分離すべきです。

    Decision Points 別レビュー

    Decision Point 推奨判定 敵対的レビュー
    SDD ツール採否 Spec Kit upstream-compatible / accepted-with-deferral Spec Kit を母体にするのは妥当。ただし CLI 導入・生成物正本化は別 Issue の throwaway worktree spike 後。
    正本/派生境界 docs/ SSOT 正本、.specify/ 派生 長期移行を今決めるのは危険。まず docs→Spec artifacts→Issue→PR→docs 更新の round-trip が破綻しないことを検証する。
    Issue contract / tasks.md GitHub Issue が正本、tasks.md は staging tasks.md から直接実装させると 1 Issue = 1 PR と衝突する。taskstoissues 相当の変換層を必須にする。
    .claude/skills 共存 衝突しない、ではなく namespace 隔離 Spec Kit は agent skill / command を生成できるため、.claude/skills/ / .claude/commands/ の衝突検査が必要。(GitHub)
    Token / context compact spec + scoped loading + semantic retrieval Serena MCP だけでは解決しない。spec artifact の肥大化、再読込、重複生成をプロセスで抑える必要がある。
    Playtest-driven 補正 必須。仕様変更 issue として戻す 「有」だけでは足りない。仕様通りだが面白くない問題は bug ではなく spec delta として扱う。

    .claude/ 共存設計

    既存設計では SubAgent = 役割、Skill = 作業手順 で、SubAgent 定義に詳細手順を埋め込むのはアンチパターンです。 したがって、Spec Kit 関連も既存 impl-review-loop を置換するのではなく、役割追加・ルーティング追加として扱うべきです。

    推奨ルーティング:

    issue-refinement-loop
      → spec-doc-writer SubAgent
          → Spec Kit compatible templates / EARS notation
          → docs/product/** or docs/adr/** を更新
    
    issue-author
      → tasks.md / plan.md 由来の task を [GitHub](https://github.com/github/spec-kit/issues/1492) Issue 化
    
    impl-review-loop
      → implementation-worker
      → test-runner
      → pr-reviewer
    

    ただし Issue #257 では既存 13 skill / 9 SubAgent の改修は Out of Scope です。ADR には「将来こう routing する」と書き、実装は C254 後続または別 Issue に分けるべきです。

    Token / context 消費対策

    Spec Kit Issue #1492 では、Claude Code 利用時に生成 artifact が大きく冗長で、繰り返し再生成・再読込され、短時間で usage limit に当たる問題が報告されています。提案として concise artifacts、compact/minimal mode、fragment caching などが挙がっています。(GitHub)

    LOOP_PROTOCOL 向け対策は次です。

    1. Compact Spec Profile

      • ADR で spec artifact の最大構成を制限する。
      • 必須項目は intent, requirement_id, acceptance_criteria, non_goals, trace_links, open_questions, playtest_hypotheses 程度に絞る。
      • 背景説明・重複 narrative・長い一般論は禁止。
    2. Tiered Loading

      • Tier 0: ssot-registry.md / catalog / ADR summary だけ常時読む。
      • Tier 1: 現在の feature spec compact のみ読む。
      • Tier 2: full design / playtest log は必要時だけ読む。
      • Tier 3: archived .specify/ artifacts は自動読込禁止。
    3. Diff-first 更新

      • spec 全体を毎回再生成しない。
      • REQ-xxx / TASK-xxx 単位で patch する。
      • 「再生成された tasks.md が既存 Issue とズレる」状態を禁止する。
    4. tasks.md の寿命を短くする

      • tasks.md は GitHub Issue 化前の一時成果物。
      • materialize 後は archived derived artifact に降格。
      • 以降の tracking 正本は Issue / PR。
    5. Serena MCP の使い所を限定する

      • Serena は LSP / symbol-level retrieval / semantic code editing に強い MCP toolkit で、大規模コードを全文読まずに symbol 単位で探索できます。(GitHub)
      • ただし Markdown spec の肥大化対策ではなく、実装時の code retrieval 対策です。spec memory には ssot-discovery と registry を使うべきです。
    6. 検証コマンドを追加する

      • ADR には token policy の存在だけでなく、最低限の静的検査を入れるべきです。

    例:

    # compact spec guard
    test "$(wc -l < docs/adr/000N-sdd-tool-adoption.md)" -le 250
    
    # duplicate artifact guard
    ! rg -n "canonical_source: generated|generated_artifacts.*normative" docs/adr/000N-sdd-tool-adoption.md
    
    # task materialization guard
    rg -n "tasks.md.*staging|GitHub Issue.*source of truth" docs/adr/000N-sdd-tool-adoption.md

    Playtest-driven 補正

    ゲームでは「仕様通りだが面白くない」が普通に起きます。Kiro Specs も requirements / design / tasks の段階化を持ち、複雑な planned work と exploratory work を分けます。(Kiro) LOOP_PROTOCOL ではさらに playtest feedback を spec に戻す経路が必須です。

    ADR に入れるべき最小ループ:

    playtest-log entry
      → classify
          bug
          balance/tuning
          design hypothesis invalidated
          unclear / needs more data
      → spec delta issue
      → docs/product/** update PR
      → implementation task issue
      → impl-review-loop
      → next playtest
    

    playtest-log.md には最低限これを持たせるべきです。

    playtest_entry:
      hypothesis_id: HYP-001
      observed_behavior: "<何が起きたか>"
      fun_failure: "<退屈・混乱・テンポ悪化など>"
      affected_requirements:
        - REQ-012
      decision: accept_spec_delta | reject | defer
      proposed_spec_delta: "<仕様変更案>"
      linked_issue: "#..."
      validation_method: "<次回どう確認するか>"

    重要なのは、仕様通りだが面白くないを implementation bug にしないことです。これはまず spec-change issue です。

    EARS の扱い

    EARS は自然言語要求を軽量な定型に寄せる記法で、When, While, Where, If/Then などの patterns により曖昧さを減らします。([Jama Software]7) 今回は「独自運用(EARS 表記のみ採用)」を fallback として残すより、Spec Kit-compatible docs の中で EARS を requirement notation として部分採用するのがよいです。

    例:

    WHEN the player starts a sortie,
    THE system SHALL spawn the player at the configured start position.
    
    WHILE the sortie timer is active,
    THE system SHALL update combat simulation at fixed 60Hz.
    

    #257 の AC 改善案

    現状 AC2 は「Decision Points 6 件が記録されている」程度で、キーワードだけでも通ります。これは弱いです。Issue #257 は ADR の品質を担保する child なので、AC を次のように強化した方がよいです。

    - [ ] AC2-a: ADR に `decision: accepted-with-deferral` と `sdd_tool: spec-kit-upstream-compatible` が明記されている
    - [ ] AC2-b: ADR に `canonical_source: docs-ssot` と `generated_artifacts: derived-workbench` が明記されている
    - [ ] AC2-c: ADR に conflict rule「docs/SSOT と generated artifact が矛盾した場合は docs/SSOT が勝つ」がある
    - [ ] AC2-d: ADR に `tasks.md` は staging artifact、GitHub Issue が tracking 正本であると明記されている
    - [ ] AC2-e: ADR に `.claude/skills` namespace collision policy がある
    - [ ] AC2-f: ADR に compact spec / scoped loading / no full regeneration / Serena の限定用途がある
    - [ ] AC2-g: ADR に playtest-log → spec delta issue → implementation issue の feedback loop がある

    ADR に入れるべき最小本文

    status: accepted-with-deferral
    decision_date: 2026-05-23
    
    decision:
      sdd_tool: spec-kit-upstream-compatible
      canonical_source: docs-ssot
      generated_artifacts: derived-workbench
      openspec: compare-or-spike-only
      ears: allowed-notation
      task_tracking: github-issues
      tasks_md_role: staging-artifact
    
    conflict_rule:
      - If `docs/` SSOT and generated artifacts disagree, `docs/` SSOT wins.
      - Generated artifacts must not update project behavior unless reflected in `docs/` through PR.
    
    issue_mapping:
      parent_spec_issue: one feature/spec package
      spec_doc_issue: one normative document update; one issue; one PR
      implementation_task_issue: one independently verifiable task; one issue; one PR
      tasks_md: materialization input only
    
    token_policy:
      compact_spec: required
      scoped_loading: required
      full_regeneration: prohibited unless explicitly requested
      serena_mcp: code retrieval only, not spec authority
    
    playtest_policy:
      spec_compliant_but_not_fun: spec_delta_issue
      feedback_path: playtest-log -> product spec -> task issue -> PR

    最終提案

    #257 は Spec Kit 採用 ADR として進めてよいです。ただし採用名は「Spec Kit upstream-based」ではなく、より正確に Spec Kit upstream-compatible / docs-SSOT-primary / generated-artifacts-derived と書くべきです。

    OpenSpec は軽量補助として魅力がありますが、既存 docs 形式を保つ要件とは未解決 issue が衝突するため、primary 採用は避けるべきです。EARS はツールではなく notation として採用。tasks.md は GitHub Issue へ変換されるまでの一時成果物。.claude 既存 skill 群は置換せず、spec 系 SubAgent / Skill を namespace 隔離して後続 Issue で追加するのが筋です。

  4. squne121 commented on May 23, 2026

    @squne121
    OwnerAuthor

    Issue 本文更新(edit-issue による reviewer_feedback 反映)

    変更概要

    reviewer_feedback(REVIEW_ISSUE_RESULT_V1)の指摘を反映し、以下の3点を更新しました。

    B1(blocking): Runtime Verification Applicability セクション追加

    ## Required Skills の直後に ## Runtime Verification Applicability セクションを追加。

    • decision: not_applicable
    • 根拠: docs-only(ADR 新規作成 + workflow/registry/catalog 参照追加)であり、実行時挙動の変化なし。AC6 の既存 quality gate で網羅済み。

    本 Issue は 2026-05-23 作成でスキーマ導入 Issue #77(2026-05-19)より後のため、legacy 猶予なし。C9 blocker を解消。

    N1(non-blocking): AC2 を AC2-a〜AC2-g に細分化

    コメント2(2026-05-23T05:32:49Z)提案の 7 サブ AC を Issue 本文に反映。

    • AC2-a: sdd_tool: spec-kit-upstream-compatible の明記
    • AC2-b: canonical_source: docs-ssot / generated_artifacts: derived-workbench の明記
    • AC2-c: conflict rule(docs/SSOT 優先)の明記
    • AC2-d: tasks.md が staging artifact、GitHub Issue が tracking 正本であることの明記
    • AC2-e: .claude/skills namespace collision policy の明記
    • AC2-f: compact spec / scoped loading / no full regeneration / Serena 限定用途の明記
    • AC2-g: playtest-log → spec delta issue → implementation issue の feedback loop の明記

    N2(non-blocking): VC の AC2 ブロックを構造的フィールドチェックに置き換え

    キーワードスキャンから構造的フィールドチェック(rg による YAML フィールドパターン照合)に変更。AC2-a〜AC2-g の各サブ AC に対応するチェックコマンドを追加。

    変更しなかった箇所

    • YAML frontmatter(contract_schema_version, issue_kind, parent_issue, goal_ref, change_kind)
    • Outcome / In Scope / Out of Scope / Allowed Paths / Stop Conditions
    • ラベル(triage-required を維持)
    • AC1 / AC3〜AC6
  5. squne121 commented on May 23, 2026

    @squne121
    OwnerAuthor

    issue-refinement-loop: 完了 (2026-05-23T06:03:44Z)

    • iteration: 1
    • verdict: approve
    • termination_reason: approved
    • 改善履歴:
      • iter 0-B1: ## Runtime Verification Applicability セクション追加(decision: not_applicable、rationale 記載)
      • iter 0-N1: AC2 を AC2-a〜AC2-g の 7 サブ AC に細分化(コメント #IC_kwDOSfQcDc8AAAABDasidA のフィードバック反映)
      • iter 0-N2: VC の AC2 ブロックをキーワードスキャンから構造的フィールドチェックに置き換え(rg -q でフィールド存在確認)

    次アクション

    issue-contract-review を実行して status: go を確認後、impl-review-loop 257 で実装を開始してください。

    FOLLOW_UP_MATERIALIZATION_RESULT_V1:
      follow_up_issues:
        - request_dedupe_key: "#257-refinement-derived-spec-doc-writer"
          status: skipped_closed_not_planned
          note: "spec-doc-writer SubAgent は #254 child-complete 管理下(C254-2〜C254-8)で ADR 確定後に起票予定。重複リスクあり、本ループでは起票せず。"
        - request_dedupe_key: "#257-refinement-derived-namespace-collision-policy"
          status: skipped_closed_not_planned
          note: "namespace collision policy の実装は ADR 本文(AC2-e)で記録対象となるため、ADR マージ後に後続 Issue(C254-3 以降)として扱う。"
      note_only_observations:
        - dedupe_key: "triage-required-label-cleanup"
          summary: "#257 に triage-required ラベルが付いているが、issue-refinement-loop の scope 外のため変更しない。issue-contract-review 実行前に人間が判断してください。"
  6. squne121 commented on May 23, 2026

    @squne121
    OwnerAuthor

    Contract Snapshot (2026-05-23T06:05:32Z)

    • Outcome: docs/adr/0002-sdd-tool-adoption.md が status: accepted-with-deferral で merge され、Decision Points 6 点(SDD ツール採否 / 正本境界 / Issue contract / .claude 共存 / token 対策 / playtest 補正)がすべて記録されている。docs/dev/workflow.md / docs/dev/ssot-registry.md / .claude/skills/ssot-discovery/references/ssot-catalog.md から ADR が参照されている。
    • Acceptance Criteria:
      • AC1: docs/adr/0002-sdd-tool-adoption.md が存在し status: accepted or accepted-with-deferral
      • AC2: Decision Points 6 件(AC2-a: sdd_tool / AC2-b: canonical_source / AC2-c: conflict rule / AC2-d: tasks.md staging / AC2-e: namespace policy / AC2-f: token policy / AC2-g: playtest loop)
      • AC3: docs/dev/workflow.md から ADR 参照あり
      • AC4: docs/dev/ssot-registry.md に ADR 登録
      • AC5: .claude/skills/ssot-discovery/references/ssot-catalog.md に ADR 登録
      • AC6: pnpm typecheck && pnpm lint && pnpm test && pnpm build PASS
    • Verification Commands: Issue 本文 VC セクション参照(AC1〜AC6 対応コマンド群)
    • Allowed Paths:
      • docs/adr/0002-sdd-tool-adoption.md(新規)
      • docs/dev/workflow.md(ADR 参照リンク追記のみ)
      • docs/dev/ssot-registry.md(ADR エントリ追加のみ)
      • .claude/skills/ssot-discovery/references/ssot-catalog.md(ADR エントリ追加)
    • Worktree: .claude/worktrees/issue-257-sdd-adr
    • Branch: worktree-issue-257-sdd-adr
    • VC preflight: baseline fail = 5(AC1〜AC5 全て ADR 未存在で期待通り FAIL)、想定外 pass = 0、実行不可 = 0
    CONTRACT_REVIEW_RESULT_V1:
      status: go
      generated_at: "2026-05-23T06:05:32Z"
      generated_by: issue-contract-review
      issue_url: https://github.com/squne121/loop-protocol/issues/257
      checks:
        template_compliance: pass
        state_label: ok
        allowed_paths_present: pass
        vc_present: pass
        stop_conditions_complete: pass
        runtime_verification_applicability: not_applicable
        vc_preflight:
          passed: true
          vc_failed_as_expected: 5
          vc_passed_unexpectedly: 0
          vc_unrunnable: 0
        ac_verifiability: pass
        worktree_branch_collision: clear
      next_action: implement_issue
      blocked_reasons: []
      warnings:
        - "triage-required ラベルが残存。実装着手前に人間が確認・削除してください。"

    次アクション

    impl-review-loop 257 で実装を開始できます。

  7. squne121 commented on May 23, 2026

    @squne121
    OwnerAuthor

    implement-issue: 実装完了 (2026-05-23T06:15:32Z)

    IMPLEMENT_RESULT_V1:
      status: ok
      generated_at: 2026-05-23T06:15:32Z
      generated_by: implement-issue
      issue_url: https://github.com/squne121/loop-protocol/issues/257
      pr_url: https://github.com/squne121/loop-protocol/pull/269
      worktree: .claude/worktrees/issue-257-sdd-adr
      branch: worktree-issue-257-sdd-adr
      verification:
        typecheck: pass
        lint: pass
        test:
          passed: 5
          failed: 0
          files: 4
        build: pass
      allowed_paths_compliance: true
      warnings: []
      errors: []
  8. squne121 commented on May 23, 2026

    @squne121
    OwnerAuthor

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

    FOLLOW_UP_MATERIALIZATION_RESULT_V1:
      follow_up_issues:
        - request_dedupe_key: "follow-up:squne121/loop-protocol:https://github.com/squne121/loop-protocol/pull/269:1"
          issue_number: 270
          issue_url: "https://github.com/squne121/loop-protocol/issues/270"
          title: "infra: typecheck CI の FAILURE(actions/checkout@v4 認証エラー)を修正する"
          severity: mandatory_follow_up
          status: created
        - request_dedupe_key: "follow-up:squne121/loop-protocol:https://github.com/squne121/loop-protocol/pull/269:2"
          issue_number: 273
          issue_url: "https://github.com/squne121/loop-protocol/issues/273"
          title: "docs: ssot-registry.md と ssot-catalog.md の同期ズレを解消する"
          severity: optional_follow_up
          status: created
        - request_dedupe_key: "follow-up:squne121/loop-protocol:https://github.com/squne121/loop-protocol/pull/269:3"
          issue_number: 271
          issue_url: "https://github.com/squne121/loop-protocol/issues/271"
          title: "docs: ssot-registry.md の directory_mappings に docs/adr/** パターンを追加する"
          severity: optional_follow_up
          status: created
        - request_dedupe_key: "follow-up:squne121/loop-protocol:https://github.com/squne121/loop-protocol/pull/269:4"
          issue_number: 272
          issue_url: "https://github.com/squne121/loop-protocol/issues/272"
          title: "docs: ADR テンプレート(docs/adr/TEMPLATE.md)を整備し ADR フォーマットを統一する"
          severity: optional_follow_up
          status: created
        - request_dedupe_key: "follow-up:squne121/loop-protocol:https://github.com/squne121/loop-protocol/pull/269:5"
          issue_number: 274
          issue_url: "https://github.com/squne121/loop-protocol/issues/274"
          title: "skill: implement-issue SKILL.md に worktree 内ファイルの Read-before-Edit 手順を明記する"
          severity: optional_follow_up
          status: created
    
      note_only_observations: []
  9. added a commit that references this issue on May 23, 2026
  10. squne121 commented on May 23, 2026

    @squne121
    OwnerAuthor

    impl-review-loop: 完了(iteration 1 APPROVE)(2026-05-23T07:10:00Z)

    iteration 0 → 1 の差分

    人間レビュー(REQUEST_CHANGES)の Blockers / Majors に対応:

    指摘 種別 対応
    typecheck CI が green でない Blocker 1 CI rerun で PASS 確認(merge_state_status: CLEAN)
    ssot-registry.md directory_mappings に docs/adr/** 未追加 Blocker 2 ssot-registry.md に追加(match_ssot.py が動的読み取りのため自動反映)
    Spec Kit spike 受け入れ条件 spec_kit_spike_acceptance が ADR に未記載 Major 1 ADR に YAML ブロックで追記
    OpenSpec 再評価条件が弱い Major 2 「#666 解決後かつ adapter 不要確認後」に強化
    token policy が機械的ガードなし Major 3 compact spec guard の bash 例を ADR に追記
    playtest spec_delta gate が弱い Major 4 design hypothesis invalidated → 必ず spec delta issue 起票の gate を ADR に明示
    PR 本文に Schema Change Applicability / Safety Claim Matrix セクションなし Blocker A/B PR 本文に両セクションを追記
    FOLLOW_UP_MATERIALIZATION_RESULT_V1:
      follow_up_issues:
        - request_dedupe_key: "follow-up:squne121/loop-protocol:https://github.com/squne121/loop-protocol/pull/269:1"
          issue_number: 270
          issue_url: "https://github.com/squne121/loop-protocol/issues/270"
          title: "infra: typecheck CI の FAILURE(actions/checkout@v4 認証エラー)を修正する"
          severity: mandatory_follow_up
          status: created
        - request_dedupe_key: "follow-up:squne121/loop-protocol:https://github.com/squne121/loop-protocol/pull/269:2"
          issue_number: 273
          issue_url: "https://github.com/squne121/loop-protocol/issues/273"
          title: "docs: ssot-registry.md と ssot-catalog.md の同期ズレを解消する"
          severity: optional_follow_up
          status: created
        - request_dedupe_key: "follow-up:squne121/loop-protocol:https://github.com/squne121/loop-protocol/pull/269:3"
          issue_number: 271
          issue_url: "https://github.com/squne121/loop-protocol/issues/271"
          title: "docs: ssot-registry.md の directory_mappings に docs/adr/** パターンを追加する"
          severity: optional_follow_up
          status: created_but_resolved_in_pr
          note: "directory_mappings への docs/adr/** 追加は PR #269 iteration 1 で対応済み。Issue #271 は Close 可"
        - request_dedupe_key: "follow-up:squne121/loop-protocol:https://github.com/squne121/loop-protocol/pull/269:4"
          issue_number: 272
          issue_url: "https://github.com/squne121/loop-protocol/issues/272"
          title: "docs: ADR テンプレート(docs/adr/TEMPLATE.md)を整備し ADR フォーマットを統一する"
          severity: optional_follow_up
          status: created
        - request_dedupe_key: "follow-up:squne121/loop-protocol:https://github.com/squne121/loop-protocol/pull/269:5"
          issue_number: 274
          issue_url: "https://github.com/squne121/loop-protocol/issues/274"
          title: "skill: implement-issue SKILL.md に worktree 内ファイルの Read-before-Edit 手順を明記する"
          severity: optional_follow_up
          status: created
    
      note_only_observations:
        - dedupe_key: "issue-271-resolved-in-pr"
          summary: "Issue #271(directory_mappings docs/adr/** 追加)は PR #269 iteration 1 で解消済み。マージ後に Close を推奨。"
  11. added a commit that references this issue on May 23, 2026
  12. squne121 commented on May 23, 2026

    @squne121
    OwnerAuthor

    impl-review-loop: 完了(iteration 2 APPROVE)(2026-05-23T07:20:00Z)

    iteration 1 → 2 の差分

    指摘 種別 対応
    directory_mappings 追加が契約外に見える Blocker 1 Schema Change Applicability を additive_data_contract_change に更新(consumer/compatibility/validation 明記)
    tasks.md → Issue 化で dependency preservation 未定義 Blocker 2 ADR に issue_materialization_policy YAML を追記
    /speckit.implement が impl-review-loop を迂回できる Blocker 3 ADR に implementation_execution_policy YAML を追記(required_path 明示)
    外部 Issue 状態が ADR に未記録 Blocker 4 ADR に external_evidence_audit YAML を追記
    AC5「同期」の意味が曖昧 High PR 本文で「ADR 0002 エントリ同期のみ、既存 drift は Issue #273」に限定明示

    CI 状態

    mergeStateStatus: UNSTABLE(python-test が actions/checkout@v4 認証エラー。コードの問題ではない。Issue #270 で追跡中)

    FOLLOW_UP_MATERIALIZATION_RESULT_V1:
      follow_up_issues:
        - request_dedupe_key: "follow-up:squne121/loop-protocol:https://github.com/squne121/loop-protocol/pull/269:1"
          issue_number: 270
          issue_url: "https://github.com/squne121/loop-protocol/issues/270"
          title: "infra: typecheck CI の FAILURE(actions/checkout@v4 認証エラー)を修正する"
          severity: mandatory_follow_up
          status: created(CI 問題は actions/checkout@v4 の認証エラーとして継続追跡中)
        - request_dedupe_key: "follow-up:squne121/loop-protocol:https://github.com/squne121/loop-protocol/pull/269:2"
          issue_number: 273
          issue_url: "https://github.com/squne121/loop-protocol/issues/273"
          title: "docs: ssot-registry.md と ssot-catalog.md の同期ズレを解消する(既存 drift full parity)"
          severity: optional_follow_up
          status: created
        - request_dedupe_key: "follow-up:squne121/loop-protocol:https://github.com/squne121/loop-protocol/pull/269:3"
          issue_number: 271
          issue_url: "https://github.com/squne121/loop-protocol/issues/271"
          severity: optional_follow_up
          status: closed(PR #269 iteration 1 で directory_mappings 追加済み)
        - request_dedupe_key: "follow-up:squne121/loop-protocol:https://github.com/squne121/loop-protocol/pull/269:4"
          issue_number: 272
          issue_url: "https://github.com/squne121/loop-protocol/issues/272"
          severity: optional_follow_up
          status: created
        - request_dedupe_key: "follow-up:squne121/loop-protocol:https://github.com/squne121/loop-protocol/pull/269:5"
          issue_number: 274
          issue_url: "https://github.com/squne121/loop-protocol/issues/274"
          severity: optional_follow_up
          status: created
    
      note_only_observations:
        - dedupe_key: "ci-unstable-actions-checkout"
          summary: "mergeStateStatus: UNSTABLE は python-test の actions/checkout@v4 認証エラー(コード問題なし)。Issue #270 で追跡中。マージ前に CI が CLEAN/PASS になることを確認推奨。"
  13. added a commit that references this issue on May 23, 2026
  14. squne121 commented on May 23, 2026

    @squne121
    OwnerAuthor

    post-merge-cleanup: 完了 (2026-05-23T07:22:35Z)

    FOLLOW_UP_MATERIALIZATION_RESULT_V1:
      follow_up_issues:
        - request_dedupe_key: "follow-up:squne121/loop-protocol:issue/257:worktree-cleanup:1"
          status: resolved_in_cleanup
          note: "worktree .claude/worktrees/issue-257-sdd-adr および branch worktree-issue-257-sdd-adr を直接削除済み。Issue 起票不要。"
    
      note_only_observations:
        - dedupe_key: "parent-254-keep-open"
          summary: "親 Issue #254 は closure_mode: child-complete。C254-1(本 Issue #257)のみクローズ済み。C254-2〜C254-8 の起票後にクローズ予定。"
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

    agent/implementerphase/implementationtriage-required

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions