Skip to content

調査: Spec Kit の project-local overrides / preset / extension で docs/ を canonical context として参照させる方法を調査する #334

Closed as not planned

Description

@squne121

Machine-Readable Contract

contract_schema_version: v1
issue_kind: research
parent_issue: "#283"
goal_ref: "Spec Kit の docs/ canonical 参照機構を調査し、ADR 追補または follow-up Implementation Issue を起票可能にする"
change_kind: docs

Parent Issue

#283

Outcome

Spec Kit の project-local overrides / preset / extension の調査結果が docs/dev/spec-kit-override-investigation.md に文書化され、docs/ を canonical context として参照させる推奨アプローチと next step(ADR 追補案または follow-up Implementation Issue 案)が提示された状態。

In Scope

  • Spec Kit の project-local overrides 機構の存在・使用方法調査
  • Spec Kit の preset 機構の存在・使用方法調査
  • Spec Kit の extension 機構の存在・使用方法調査
  • .specify/memory/constitution.md ではなく docs/ を canonical context として参照させる実装可能性と推奨アプローチの調査
  • 調査結果文書 docs/dev/spec-kit-override-investigation.md の作成
  • 結論として ADR 追補案または follow-up Implementation Issue 案の提示

Out of Scope

  • Spec Kit の実際の設定変更・実装
  • ADR の新規追加・更新
  • docs/ 以外の構造変更
  • CI / ビルド設定の変更

Acceptance Criteria

  • AC1: 調査結果文書 docs/dev/spec-kit-override-investigation.md が作成されている
  • AC2: 上記 4 項目(overrides / preset / extension / docs 参照方法)が調査結果文書に記載されている
  • AC3: 推奨アプローチと next step(ADR 追補または follow-up Issue 案)が記載されている
  • AC4: 引用元(Spec Kit 公式ドキュメント・README)への参照が記載されている

Verification Commands

# AC1: 調査結果文書の存在確認
test -f docs/dev/spec-kit-override-investigation.md && echo "PASS: 文書存在" || echo "FAIL: 文書なし"

# AC2: 必須セクション(overrides / preset / extension / docs参照)の記載確認
grep -n "override\|preset\|extension" docs/dev/spec-kit-override-investigation.md && echo "PASS: 必須項目記載あり" || echo "FAIL: 必須項目なし"

# AC3: 推奨アプローチ・next step の記載確認
grep -n "推奨\|next step\|ADR\|follow-up" docs/dev/spec-kit-override-investigation.md && echo "PASS: 推奨アプローチ記載あり" || echo "FAIL: 記載なし"

# AC4: 引用元参照の記載確認
grep -n "http\|README\|公式\|ref\|source\|参照" docs/dev/spec-kit-override-investigation.md && echo "PASS: 引用元参照あり" || echo "FAIL: 引用元なし"

Allowed Paths

  • docs/dev/spec-kit-override-investigation.md(新規作成)
  • 読み取り専用: .specify/、Spec Kit 公式ドキュメント、リポジトリ全体

Stop Conditions

  • Outcome / Scope / AC が検索可能な形で記載されていない場合は即停止
  • Allowed Paths 外への書き込みを試みた場合は即停止
  • 権限不足(permission denied)により操作が完了できない場合は即停止
  • 成果物の書き込みに失敗した場合(I/O エラー等)は即停止
  • Spec Kit 公式ドキュメントが取得できず調査が完遂できない場合は即停止(調査不能を明記して停止)
  • 調査結果から推奨アプローチが確定できない場合は、不確実性を明記して停止(推測で ADR 追補 Issue を起票しない)

Handoff Contract

Required Skills

  • Spec Kit(.specify/ 設定機構)
  • Markdown ドキュメント作成

Source

Activity

  1. added
    phase/research
    agent/research
    on May 24, 2026
  2. squne121 commented on May 24, 2026

    @squne121
    OwnerAuthor

    結論

    Issue #334 は 研究Issueとしては妥当 ですが、このまま実行すると「公式READMEを読んだ要約文書を1枚追加して終わる」危険が高いです。特に弱いのは、Spec Kit の override / preset / extension を同列に扱っていること、.specify/memory/constitution.md を避けたいのに Spec Kit の実コマンドがどこで constitution を読むかを検証条件にしていないこと、AC が grep だけで成立することです。現時点で #334 は Open で、Development に branch / PR は紐づいていません。(GitHub)

    背景整理

    #334 の目的は、Spec Kit の project-local overrides / preset / extension を調査し、.specify/memory/constitution.md ではなく docs/ を canonical context として扱わせる方法を文書化することです。成果物は docs/dev/spec-kit-override-investigation.md のみで、実設定変更・ADR更新・CI変更は Out of Scope です。(GitHub)

    親文脈では、ADR 0002 が docs/ を normative / 正本、.specify/ を derived workbench と定義し、.specify/memory/constitution.md を正本化することを禁止しています。加えて tasks.md は staging artifact であり、GitHub Issue に materialize してから実装する方針です。(GitHub)

    PR #322 の人間レビューでは、専用 product-spec-lifecycle skill / rule を残さず、既存の issue-refinement-loop / issue-contract-review / impl-review-loop に接続する方針へ縮小されました。その後続 Issue D として #334 が提案されています。(GitHub)

    敵対的レビュー

    BLOCKER 1: 「docs/ を canonical context にする」が未定義

    #334 は「.specify/memory/constitution.md ではなく docs/ を canonical context として参照」と書いていますが、これは実装レベルでは少なくとも3通りに分かれます。

    1. .specify/memory/constitution.md を docs への短い pointer にする

    2. Spec Kit template / command を override して docs を読むように変える

    3. Spec Kit 自体には手を入れず、LOOP 側の issue-* / impl-* ループで docs を上位 authority として検査する

    この3つは保守コストも破壊範囲も違います。現行 Issue は「推奨アプローチ」としか書いていないため、成果物が抽象論で終わる余地があります。Spec Kit の constitution command は .specify/memory/constitution.md を更新対象として明示しており、plan command も /memory/constitution.md を読む流れを持っています。つまり、単なる template override だけで「constitution を存在しないものにする」設計は危険です。(GitHub)

    修正案: #334 の Outcome に、次を明記するべきです。

    調査結果は、少なくとも以下の3案を比較する:
    A. `.specify/memory/constitution.md` を docs/SSOT への derived pointer として維持する
    B. `.specify/templates/overrides/` で template を project-local override する
    C. preset / extension / command override で Spec Kit command behavior を変更する
    

    各案について、authority boundary / upgrade risk / generated artifact drift / agent namespace impact /検証方法を比較する。

    BLOCKER 2: Spec Kit の3機構を同列比較している

    公式ドキュメント上、project-local overrides は .specify/templates/overrides/ が最上位の template 解決層です。preset は template / command / terminology を上書きする仕組みで、複数 preset は priority 順に解決されます。一方 extension は domain-specific command、外部ツール連携、quality gate などの「新機能追加」が主目的です。(GitHub)

    したがって、#334 の調査結論はおそらくこうなるべきです。

    用途 推奨
    LOOP_PROTOCOL 1リポジトリ内だけで Spec Kit template を変えたい project-local overrides
    複数リポジトリへ LOOP 方針を配布したい preset
    新しい Spec Kit command / hook / adapter を配布したい extension
    docs/ を正本にする authority policy Spec Kit側ではなく ADR / workflow / issue-contract-review 側で維持

    特に extension は「docs を canonical にする」だけなら過剰です。extension は新コマンドや quality gate を追加する用途であり、単一repoの template 差し替えには不要です。(GitHub)

    BLOCKER 3: 現行ACが弱すぎる

    #334 の AC は、文書が存在し、override|preset|extension、推奨|next step|ADR|follow-up、http|README|公式|ref|source|参照 が grep で見つかれば通ります。これは内容品質を保証しません。(GitHub)

    このACだと、以下のような低品質文書でも PASS します。

    Spec Kit には override / preset / extension がある。
    公式 README を参照した。
    推奨は今後 ADR で決める。
    

    修正案: AC を「検証可能な調査証跡」に寄せるべきです。

    AC5: 調査文書に `tested_spec_kit_version` と `checked_at` が記載されている
    AC6: `project-local overrides / presets / extensions / command overrides` の解決順序表がある
    AC7: `spec-template / plan-template / tasks-template / constitution-template / command files` ごとの override 可否マトリクスがある
    AC8: `specify preset resolve <name>` または同等の公式解決確認コマンドの結果が記録されている
    AC9: `.specify/memory/constitution.md` を完全排除できるか、derived pointer として維持すべきかの結論がある
    AC10: ADR 0002 への追補要否と follow-up Implementation Issue 案が、具体的な Allowed Paths 付きで提示されている
    

    BLOCKER 4: バージョン固定がない

    Spec Kit は 2026年5月時点でも releases が頻繁で、v0.8.13 が 2026-05-21 に出ています。preset / extension / template resolution 周辺は最近の変更領域なので、#334 の成果物に specify-cli のバージョン、参照した commit/tag、検証日を入れないと、1週間後に stale findings になります。(GitHub)

    さらに、過去には tasks command が template override / preset resolution を honor せず、tasks-template.md のパスが hardcoded されていた問題が報告されています。この Issue は Closed ですが、「全コマンドで override が同じように効く」と仮定してはいけない実例です。(GitHub)

    修正案: #334 の成果物に以下を必須化するべきです。

    tested_spec_kit:
      specify_cli_version: "<output of specify --version>"
      source_tag_or_commit: "v0.8.13 or <sha>"
      checked_at: "2026-05-24"
      integration: "codex --skills / claude / etc."
      commands_checked:
        - specify preset resolve spec-template
        - specify preset resolve plan-template
        - specify preset resolve tasks-template
        - specify preset resolve constitution-template
    

    MAJOR 1: Allowed Paths は文書だけだが、実験用 scratch 作業が必要

    #334 は書き込み Allowed Paths を docs/dev/spec-kit-override-investigation.md のみにしています。一方、project-local override / preset / extension を実際に確認するには、少なくとも throwaway directory または一時 worktree で specify init や .specify/templates/overrides/ の挙動確認が必要です。現状でも「読み取り専用: .specify/、公式ドキュメント、リポジトリ全体」とありますが、scratch project での一時生成を許すのかが曖昧です。(GitHub)

    修正案: Stop Conditions / Allowed Operations に追加。

    Allowed Operations:
    - repo 内の永続変更は `docs/dev/spec-kit-override-investigation.md` のみ
    - 挙動確認は `/tmp/loop-speckit-override-investigation-*` または throwaway worktree で実施可
    - `.specify/`, `.claude/skills/`, `.claude/commands/` への永続変更は禁止
    - 調査ログは文書に要約し、scratch 成果物は commit しない
    

    MAJOR 2: command override は install-time であり、LOOP の managed snapshot 方針と衝突しやすい

    Spec Kit の preset docs は、template は runtime resolution される一方、commands は install time に agent directories へ登録されると説明しています。これは LOOP_PROTOCOL の ADR 0002 が .claude/skills/speckit-* を reviewed upstream snapshot / managed derived artifact として扱い、直接再生成を禁止している方針と緊張します。(GitHub)

    したがって #334 の推奨結論では、template override は比較的安全、command override は高リスク と明確に分けるべきです。command override を使うなら「どの generated command/skill snapshot をどう review して main に入れるか」まで follow-up Issue 化が必要です。

    MAJOR 3: #332 / #335 / #338 との責務分離が成果物条件にない

    #332 は issue-refinement-loop に「薄い routing gate のみ」を追加し、成果物 preflight は review / contract / impl / adapter に分割する設計です。#335 は issue-contract-review に Product Spec Preflight を追加し、#338 は review-issue / issue-reviewer に trace fields 構造チェックを追加する follow-up です。(GitHub)

    #334 はこの分割設計上、Spec Kit adapter / override 調査の位置づけに限定すべきです。issue-refinement-loop や issue-contract-review に再び詳細手順を戻す提案を出すと、#322 の人間レビューで撤回した方向に逆戻りします。(GitHub)

    修正案: #334 の成果物に「既存 follow-up との非重複」セクションを必須化。

    ## Non-overlap with existing follow-ups
    - #332: routing signal only; this investigation must not add data-plane procedures there
    - #335/#348: contract gate; this investigation must not duplicate PS001-PS006
    - #338: trace field structure check; this investigation only references required trace fields
    - future adapter issue: only if Spec Kit override/preset/extension requires implementation
    

    推奨する #334 の高品質化パッチ

    Issue 本文を大きく変えずに品質を上げるなら、以下を追加するのが最小です。

    ## Required Investigation Matrix
    

    docs/dev/spec-kit-override-investigation.md MUST include:

    1. Version / environment

      • specify-cli version or git tag / commit
      • checked_at date
      • integration mode checked: codex skills / claude commands / other
    2. Mechanism comparison

      • project-local overrides
      • presets
      • extensions
      • command overrides / hooks
      • for each: purpose, resolution timing, write targets, upgrade risk, LOOP compatibility
    3. Template / command behavior matrix

      • spec-template
      • plan-template
      • tasks-template
      • constitution-template
      • commands: constitution / specify / plan / tasks / taskstoissues / implement
      • whether project-local override, preset, or extension can affect it
      • evidence source or command transcript
    4. Docs canonical boundary analysis

      • Can .specify/memory/constitution.md be eliminated? yes/no
      • If no, recommended derived-pointer content
      • How conflict with docs/ is resolved
      • Why docs/ remains normative under ADR 0002
    5. Recommended approach

      • short-term: project-local overrides + derived constitution pointer
      • medium-term: local preset only if multiple repos need same policy
      • avoid extension unless adding new command / adapter / quality gate
      • no direct .claude/skills regeneration on main
    6. Follow-up decision

      • ADR 0002追補案, or
      • follow-up Implementation Issue案 with Allowed Paths and Stop Conditions

    Verification Commands も grep ではなく、最低限こうした方がよいです。

    # AC1
    test -f docs/dev/spec-kit-override-investigation.md

    AC2: version / checked_at / source evidence

    rg -n "tested_spec_kit|specify.*version|checked_at|v0.|commit|source" docs/dev/spec-kit-override-investigation.md

    AC3: mechanism matrix

    rg -n "project-local overrides|\.specify/templates/overrides|preset|extension|command override|runtime|install time" docs/dev/spec-kit-override-investigation.md

    AC4: template/command matrix

    rg -n "spec-template|plan-template|tasks-template|constitution-template|speckit\.constitution|speckit\.plan|speckit\.tasks" docs/dev/spec-kit-override-investigation.md

    AC5: docs canonical conclusion

    rg -n "docs/.*canonical|derived pointer|\.specify/memory/constitution.md|docs.*wins|ADR 0002" docs/dev/spec-kit-override-investigation.md

    AC6: concrete next step

    rg -n "Recommended approach|ADR 追補|follow-up Implementation Issue|Allowed Paths|Stop Conditions" docs/dev/spec-kit-override-investigation.md

    推奨される調査結論の方向性

    現時点の一次情報から見る限り、最も安全な結論はこれです。

    Recommended approach:

    • docs/ remains canonical SSOT.
    • .specify/memory/constitution.md SHOULD NOT be treated as canonical.
    • Keep .specify/memory/constitution.md as a generated/derived pointer that tells Spec Kit commands to consult ADR 0002, product-spec-lifecycle, and relevant docs/product files.
    • Use .specify/templates/overrides/ for project-local template changes.
    • Use preset only if LOOP policy must be distributed to multiple repositories.
    • Use extension only for new commands/hooks/adapters, not for merely changing canonical source policy.
    • Do not run specify init --force or extension/preset install in a way that rewrites .claude/skills / .claude/commands on main without a reviewed snapshot PR.

    この方向性は、ADR 0002 の docs/ 正本・.specify/ derived workbench・tasks.md staging artifact 方針、および product-spec-lifecycle の scoped loading / diff-first / tasks.md adapter 方針と整合します。(GitHub)

    マージ前チェックリスト

    #334 をこのまま実装に流す前に、Issue 本文へ最低限これを追加してください。

    この修正後なら、#334 は「抽象調査」ではなく、ADR追補または Spec Kit adapter 実装Issueへ接続できる研究Issueになります。

    ## 結論

    Issue #334 は 研究Issueとしては妥当 ですが、このまま実行すると「公式READMEを読んだ要約文書を1枚追加して終わる」危険が高いです。特に弱いのは、Spec Kit の override / preset / extension を同列に扱っていること、.specify/memory/constitution.md を避けたいのに Spec Kit の実コマンドがどこで constitution を読むかを検証条件にしていないこと、AC が grep だけで成立することです。現時点で #334 は Open で、Development に branch / PR は紐づいていません。([GitHub]1)

    背景整理

    #334 の目的は、Spec Kit の project-local overrides / preset / extension を調査し、.specify/memory/constitution.md ではなく docs/ を canonical context として扱わせる方法を文書化することです。成果物は docs/dev/spec-kit-override-investigation.md のみで、実設定変更・ADR更新・CI変更は Out of Scope です。([GitHub]1)

    親文脈では、ADR 0002 が docs/ を normative / 正本、.specify/ を derived workbench と定義し、.specify/memory/constitution.md を正本化することを禁止しています。加えて tasks.md は staging artifact であり、GitHub Issue に materialize してから実装する方針です。([GitHub]2)

    PR #322 の人間レビューでは、専用 product-spec-lifecycle skill / rule を残さず、既存の issue-refinement-loop / issue-contract-review / impl-review-loop に接続する方針へ縮小されました。その後続 Issue D として #334 が提案されています。([GitHub]3)

    敵対的レビュー

    BLOCKER 1: 「docs/ を canonical context にする」が未定義

    #334 は「.specify/memory/constitution.md ではなく docs/ を canonical context として参照」と書いていますが、これは実装レベルでは少なくとも3通りに分かれます。

    1. .specify/memory/constitution.md を docs への短い pointer にする
    2. Spec Kit template / command を override して docs を読むように変える
    3. Spec Kit 自体には手を入れず、LOOP 側の issue-* / impl-* ループで docs を上位 authority として検査する

    この3つは保守コストも破壊範囲も違います。現行 Issue は「推奨アプローチ」としか書いていないため、成果物が抽象論で終わる余地があります。Spec Kit の constitution command は .specify/memory/constitution.md を更新対象として明示しており、plan command も /memory/constitution.md を読む流れを持っています。つまり、単なる template override だけで「constitution を存在しないものにする」設計は危険です。([GitHub]4)

    修正案: #334 の Outcome に、次を明記するべきです。

    調査結果は、少なくとも以下の3案を比較する:
    A. `.specify/memory/constitution.md` を docs/SSOT への derived pointer として維持する
    B. `.specify/templates/overrides/` で template を project-local override する
    C. preset / extension / command override で Spec Kit command behavior を変更する
    
    各案について、authority boundary / upgrade risk / generated artifact drift / agent namespace impact /検証方法を比較する。

    BLOCKER 2: Spec Kit の3機構を同列比較している

    公式ドキュメント上、project-local overrides は .specify/templates/overrides/ が最上位の template 解決層です。preset は template / command / terminology を上書きする仕組みで、複数 preset は priority 順に解決されます。一方 extension は domain-specific command、外部ツール連携、quality gate などの「新機能追加」が主目的です。([GitHub]5)

    したがって、#334 の調査結論はおそらくこうなるべきです。

    用途 推奨
    LOOP_PROTOCOL 1リポジトリ内だけで Spec Kit template を変えたい project-local overrides
    複数リポジトリへ LOOP 方針を配布したい preset
    新しい Spec Kit command / hook / adapter を配布したい extension
    docs/ を正本にする authority policy Spec Kit側ではなく ADR / workflow / issue-contract-review 側で維持

    特に extension は「docs を canonical にする」だけなら過剰です。extension は新コマンドや quality gate を追加する用途であり、単一repoの template 差し替えには不要です。([GitHub]6)

    BLOCKER 3: 現行ACが弱すぎる

    #334 の AC は、文書が存在し、override|preset|extension、推奨|next step|ADR|follow-up、http|README|公式|ref|source|参照 が grep で見つかれば通ります。これは内容品質を保証しません。([GitHub]1)

    このACだと、以下のような低品質文書でも PASS します。

    Spec Kit には override / preset / extension がある。
    公式 README を参照した。
    推奨は今後 ADR で決める。

    修正案: AC を「検証可能な調査証跡」に寄せるべきです。

    AC5: 調査文書に `tested_spec_kit_version` と `checked_at` が記載されている
    AC6: `project-local overrides / presets / extensions / command overrides` の解決順序表がある
    AC7: `spec-template / plan-template / tasks-template / constitution-template / command files` ごとの override 可否マトリクスがある
    AC8: `specify preset resolve <name>` または同等の公式解決確認コマンドの結果が記録されている
    AC9: `.specify/memory/constitution.md` を完全排除できるか、derived pointer として維持すべきかの結論がある
    AC10: ADR 0002 への追補要否と follow-up Implementation Issue 案が、具体的な Allowed Paths 付きで提示されている

    BLOCKER 4: バージョン固定がない

    Spec Kit は 2026年5月時点でも releases が頻繁で、v0.8.13 が 2026-05-21 に出ています。preset / extension / template resolution 周辺は最近の変更領域なので、#334 の成果物に specify-cli のバージョン、参照した commit/tag、検証日を入れないと、1週間後に stale findings になります。([GitHub]7)

    さらに、過去には tasks command が template override / preset resolution を honor せず、tasks-template.md のパスが hardcoded されていた問題が報告されています。この Issue は Closed ですが、「全コマンドで override が同じように効く」と仮定してはいけない実例です。([GitHub]8)

    修正案: #334 の成果物に以下を必須化するべきです。

    tested_spec_kit:
      specify_cli_version: "<output of specify --version>"
      source_tag_or_commit: "v0.8.13 or <sha>"
      checked_at: "2026-05-24"
      integration: "codex --skills / claude / etc."
      commands_checked:
        - specify preset resolve spec-template
        - specify preset resolve plan-template
        - specify preset resolve tasks-template
        - specify preset resolve constitution-template

    MAJOR 1: Allowed Paths は文書だけだが、実験用 scratch 作業が必要

    #334 は書き込み Allowed Paths を docs/dev/spec-kit-override-investigation.md のみにしています。一方、project-local override / preset / extension を実際に確認するには、少なくとも throwaway directory または一時 worktree で specify init や .specify/templates/overrides/ の挙動確認が必要です。現状でも「読み取り専用: .specify/、公式ドキュメント、リポジトリ全体」とありますが、scratch project での一時生成を許すのかが曖昧です。([GitHub]1)

    修正案: Stop Conditions / Allowed Operations に追加。

    Allowed Operations:
    - repo 内の永続変更は `docs/dev/spec-kit-override-investigation.md` のみ
    - 挙動確認は `/tmp/loop-speckit-override-investigation-*` または throwaway worktree で実施可
    - `.specify/`, `.claude/skills/`, `.claude/commands/` への永続変更は禁止
    - 調査ログは文書に要約し、scratch 成果物は commit しない

    MAJOR 2: command override は install-time であり、LOOP の managed snapshot 方針と衝突しやすい

    Spec Kit の preset docs は、template は runtime resolution される一方、commands は install time に agent directories へ登録されると説明しています。これは LOOP_PROTOCOL の ADR 0002 が .claude/skills/speckit-* を reviewed upstream snapshot / managed derived artifact として扱い、直接再生成を禁止している方針と緊張します。([GitHub]5)

    したがって #334 の推奨結論では、template override は比較的安全、command override は高リスク と明確に分けるべきです。command override を使うなら「どの generated command/skill snapshot をどう review して main に入れるか」まで follow-up Issue 化が必要です。

    MAJOR 3: #332 / #335 / #338 との責務分離が成果物条件にない

    #332 は issue-refinement-loop に「薄い routing gate のみ」を追加し、成果物 preflight は review / contract / impl / adapter に分割する設計です。#335 は issue-contract-review に Product Spec Preflight を追加し、#338 は review-issue / issue-reviewer に trace fields 構造チェックを追加する follow-up です。([GitHub]9)

    #334 はこの分割設計上、Spec Kit adapter / override 調査の位置づけに限定すべきです。issue-refinement-loop や issue-contract-review に再び詳細手順を戻す提案を出すと、#322 の人間レビューで撤回した方向に逆戻りします。([GitHub]3)

    修正案: #334 の成果物に「既存 follow-up との非重複」セクションを必須化。

    ## Non-overlap with existing follow-ups
    - #332: routing signal only; this investigation must not add data-plane procedures there
    - #335/#348: contract gate; this investigation must not duplicate PS001-PS006
    - #338: trace field structure check; this investigation only references required trace fields
    - future adapter issue: only if Spec Kit override/preset/extension requires implementation

    推奨する #334 の高品質化パッチ

    Issue 本文を大きく変えずに品質を上げるなら、以下を追加するのが最小です。

    ## Required Investigation Matrix
    
    `docs/dev/spec-kit-override-investigation.md` MUST include:
    
    1. Version / environment
       - `specify-cli` version or git tag / commit
       - checked_at date
       - integration mode checked: codex skills / claude commands / other
    
    2. Mechanism comparison
       - project-local overrides
       - presets
       - extensions
       - command overrides / hooks
       - for each: purpose, resolution timing, write targets, upgrade risk, LOOP compatibility
    
    3. Template / command behavior matrix
       - spec-template
       - plan-template
       - tasks-template
       - constitution-template
       - commands: constitution / specify / plan / tasks / taskstoissues / implement
       - whether project-local override, preset, or extension can affect it
       - evidence source or command transcript
    
    4. Docs canonical boundary analysis
       - Can `.specify/memory/constitution.md` be eliminated? yes/no
       - If no, recommended derived-pointer content
       - How conflict with `docs/` is resolved
       - Why `docs/` remains normative under ADR 0002
    
    5. Recommended approach
       - short-term: project-local overrides + derived constitution pointer
       - medium-term: local preset only if multiple repos need same policy
       - avoid extension unless adding new command / adapter / quality gate
       - no direct `.claude/skills` regeneration on main
    
    6. Follow-up decision
       - ADR 0002追補案, or
       - follow-up Implementation Issue案 with Allowed Paths and Stop Conditions

    Verification Commands も grep ではなく、最低限こうした方がよいです。

    # AC1
    test -f docs/dev/spec-kit-override-investigation.md
    
    # AC2: version / checked_at / source evidence
    rg -n "tested_spec_kit|specify.*version|checked_at|v0\.|commit|source" docs/dev/spec-kit-override-investigation.md
    
    # AC3: mechanism matrix
    rg -n "project-local overrides|\\.specify/templates/overrides|preset|extension|command override|runtime|install time" docs/dev/spec-kit-override-investigation.md
    
    # AC4: template/command matrix
    rg -n "spec-template|plan-template|tasks-template|constitution-template|speckit\\.constitution|speckit\\.plan|speckit\\.tasks" docs/dev/spec-kit-override-investigation.md
    
    # AC5: docs canonical conclusion
    rg -n "docs/.*canonical|derived pointer|\\.specify/memory/constitution.md|docs.*wins|ADR 0002" docs/dev/spec-kit-override-investigation.md
    
    # AC6: concrete next step
    rg -n "Recommended approach|ADR 追補|follow-up Implementation Issue|Allowed Paths|Stop Conditions" docs/dev/spec-kit-override-investigation.md

    推奨される調査結論の方向性

    現時点の一次情報から見る限り、最も安全な結論はこれです。

    Recommended approach:
    - `docs/` remains canonical SSOT.
    - `.specify/memory/constitution.md` SHOULD NOT be treated as canonical.
    - Keep `.specify/memory/constitution.md` as a generated/derived pointer that tells Spec Kit commands to consult ADR 0002, product-spec-lifecycle, and relevant docs/product files.
    - Use `.specify/templates/overrides/` for project-local template changes.
    - Use preset only if LOOP policy must be distributed to multiple repositories.
    - Use extension only for new commands/hooks/adapters, not for merely changing canonical source policy.
    - Do not run `specify init --force` or extension/preset install in a way that rewrites `.claude/skills` / `.claude/commands` on main without a reviewed snapshot PR.

    この方向性は、ADR 0002 の docs/ 正本・.specify/ derived workbench・tasks.md staging artifact 方針、および product-spec-lifecycle の scoped loading / diff-first / tasks.md adapter 方針と整合します。([GitHub]2)

    マージ前チェックリスト

    #334 をこのまま実装に流す前に、Issue 本文へ最低限これを追加してください。

    この修正後なら、#334 は「抽象調査」ではなく、ADR追補または Spec Kit adapter 実装Issueへ接続できる研究Issueになります。

  3. squne121 commented on May 24, 2026

    @squne121
    OwnerAuthor

    人間レビューコメントの BLOCKER 1–4 / MAJOR 1–3 を反映した後継 research Issue #352 を起票したため、本 Issue は close します。

    後継: #352

    #352 で取り込んだ主な修正:

    クローズ理由

    本 Issue 本文のままでは「公式 README を引用して機構名を grep に通すだけの要約文書」で AC が PASS してしまうため、replace 方式で #352 に差し替えるのが最小コスト。本 Issue 本文を破壊的に書き換える方式は、人間レビューコメントとの対応関係が壊れるため避けました。

    次アクション(human → impl-review-loop)

    #352 に対して issue-contract-review → 承認後 impl-review-loop を回す。

  4. added a commit that references this issue on May 24, 2026
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/researchphase/research

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions