Repository navigation
Closed
Labels
agent/implementerAI implementer agentdocsDocumentation changesenhancementNew feature or requestphase/implementationImplementation phasetriage-requiredNeeds owner triage for priority decision
Milestone
Description
Machine-Readable Contract
contract_schema_version: v1
issue_kind: implementation
parent_issue: "none"
goal_ref: "M3 完了後に stale 化した milestone docs を現在の状態へ同期し、conceptual milestone と GitHub milestone object の対応を readback 付きで明示する"
change_kind: docs
changed_requirement_id: DOC-REQ-001,DOC-FOCUS-001,DOC-ROADMAP-001
diff_rationale: M3 実装完了後も current-focus/requirements/roadmap と入口文書に stale な milestone 記述が残っているため、M4 着手状態と conceptual milestone to GitHub milestone mapping を current repo reality に同期する
affected_sections: docs/product/requirements.md::Current Capability Gate|Milestone Scope;docs/product/playable-roadmap.md::Conceptual Milestones|Maintenance Policy;docs/dev/current-focus.md::Current Phase|Current MilestoneParent Issue
none(単独改善)
Parent Goal Ref
- Goal: M3 実装完了後の docs stale を解消し、milestone 境界の参照先を current repo / GitHub reality に同期する
- Desired Destination:
docs/dev/current-focus.md、docs/product/requirements.md、docs/product/playable-roadmap.md、CLAUDE.md、.claude/rules/project-constitution.mdが 2026-06-21 時点の current phase と GitHub milestone mapping を矛盾なく説明できる状態
Current Validated Scope
docs/dev/current-focus.mdを M4 着手状態へ更新し、M3 進行中の stale 記述を除去するdocs/product/requirements.mdのcapability_gate/ Current Capability Gate / Milestone Scope を M4 前提へ更新するdocs/product/playable-roadmap.mdに conceptual milestone と GitHub milestone object の mapping fields / mapping table を追加し、2026-06-21 readback を明記するCLAUDE.mdの Current Phase 記述を current repo reality に同期する.claude/rules/project-constitution.mdのスコープ管理に残る M1 前提の stale 記述を current milestone reality に同期する
Product Spec Context
- source_of_truth:
docs/product/requirements.mdが global scope / non-goals の正本、docs/product/playable-roadmap.mdが conceptual milestone boundary の正本 - diff_rationale: M3 実装完了後も
docs/product/requirements.mdとdocs/dev/current-focus.mdが M3 進行中のままで、docs/product/playable-roadmap.mdには GitHub milestone mapping の readback が未記録なため、M4 着手 reality と GitHub milestone object 対応を docs 側へ同期する必要がある - changed_requirement_id:
DOC-REQ-001,DOC-FOCUS-001,DOC-ROADMAP-001 - affected_sections:
docs/product/requirements.mdのCurrent Capability Gate/Milestone Scope: M3 Result Persistence (v0.3.x)、docs/product/playable-roadmap.mdのConceptual Milestones/Maintenance Policy、docs/dev/current-focus.mdのCurrent Phase/Current Milestone - mapping_readback_date:
2026-06-21 - product_spec_change_mode: docs_ssot_sync_only
Remaining Parent Gaps
- GitHub milestone object 自体の rename / close / state change は別スコープ
- M3 parent close/readback の最終判断は
#733側で扱う - Implementation Issue の milestone 直付け metadata 整理は本文更新だけでは完了しないため、必要なら別コメントまたは follow-up で扱う
Outcome
milestone 関連 SSOT と入口文書が 2026-06-21 時点の current phase / GitHub milestone readback に整合し、false-green にならない AC / VC で docs-only PR を実装投入できる。
In Scope
docs/dev/current-focus.mdの frontmatter / Current Phase / Priority Order / Do Now / Do Not Do を M4 前提へ更新するdocs/product/requirements.mdのcapability_gate、Current Capability Gate、Milestone Scope を M4 前提へ更新するdocs/product/playable-roadmap.mdの conceptual milestone block と対応表に GitHub milestone mapping を追加するCLAUDE.mdの Current Phase を current milestone reality に同期する.claude/rules/project-constitution.mdの milestone stale 記述を current milestone reality に同期する- touched docs の
last_updated_by_issueを1094へ更新する pnpm run lint:docsを含む docs-only quality gate を通すtests/fixtures/issue-body/vc_unlabeled_fence.mdの MD040 違反(fenced code block に言語指定なし)を修正しpnpm run lint:docsを pass させる
Out of Scope
- コード・テスト実装の変更
- GitHub milestone object の rename / create / close / state change
- M4 と M5 の conceptual scope 順序変更
- 新規 Issue の起票
- feature spec(
docs/product/features/)の追加・変更 - M3 parent close 判定の代行
Acceptance Criteria
- AC1:
docs/dev/current-focus.mdの frontmatter にmilestone: M4が存在する - AC2:
docs/dev/current-focus.mdの Current Phase / Current Milestone がM4: Upgrade Loop (v0.4.x)を指す - AC3:
docs/product/requirements.mdのcapability_gateがM4を指す - AC4:
docs/product/requirements.mdにM3.*進行中相当の stale 行が存在しない - AC5:
docs/product/playable-roadmap.mdの conceptual milestone block(M2 / M3 / M4 / M5)にgithub_milestone_numberとgithub_milestone_titleへの言及、または unmapped 状態が機械可読に記録されている - AC6:
docs/product/playable-roadmap.mdにconceptual_milestone_id,conceptual_title,github_milestone_number,github_milestone_title,mapping_status,decision_noteを列として持つ対応表がある - AC7:
docs/product/playable-roadmap.mdの対応表で conceptualM4が GitHub milestone number2/ titleM4: UX MVP Gate (v0.4.x)と readback され、mapping_status: mismatch_pending_renameで明示されている - AC8:
CLAUDE.mdの Current Phase がM4: Upgrade Loop (v0.4.x)を指し、M1: Foundation Gate (v0.1.x)を current phase として扱っていない - AC9:
.claude/rules/project-constitution.mdに current milestone reality と矛盾するM1固定のスコープ管理記述が残っていない - AC10:
last_updated_by_issueフィールドを持つ touched docs が1094に更新されている - AC11:
pnpm run lint:docsが pass する - AC12:
pnpm typecheckが pass する - AC13:
pnpm lintが pass する - AC14:
pnpm testが pass する - AC15:
pnpm buildが pass する
Verification Commands
# AC1
$ rg -n "^milestone: M4" docs/dev/current-focus.md# AC2
$ rg -n "M4: Upgrade Loop \(v0\.4\.x\)" docs/dev/current-focus.md# AC3
$ rg -n "^capability_gate: M4" docs/product/requirements.md# AC4
$ ! rg -n "M3.*進行中" docs/product/requirements.md# AC5
$ rg -nUP "(?s)milestone_id:\s*M2.*?github_milestone_number:.*?milestone_id:\s*M3.*?github_milestone_number:.*?milestone_id:\s*M4.*?github_milestone_number:.*?milestone_id:\s*M5.*?mapping_status:" docs/product/playable-roadmap.md# AC6
$ rg -n "conceptual_milestone_id.*conceptual_title.*github_milestone_number.*github_milestone_title.*mapping_status.*decision_note" docs/product/playable-roadmap.md# AC7
$ rg -n "M4: Upgrade Loop \(v0\.4\.x\).* 2 .*M4: UX MVP Gate \(v0\.4\.x\).*mismatch_pending_rename" docs/product/playable-roadmap.md# AC8
$ rg -n "M4: Upgrade Loop \(v0\.4\.x\)" CLAUDE.md# AC9
$ ! rg -n "M1: Foundation Gate \(v0\.1\.x\).*M1" .claude/rules/project-constitution.md# AC10
$ rg -n "^last_updated_by_issue: 1094$" docs/dev/current-focus.md docs/product/requirements.md docs/product/playable-roadmap.md# AC11
# preflight-scope: pr_review_only
$ pnpm run lint:docs# AC12
$ pnpm typecheck# AC13
$ pnpm lint# AC14
$ pnpm test# AC15
$ pnpm buildAllowed Paths
docs/dev/current-focus.mddocs/product/requirements.mddocs/product/playable-roadmap.mdCLAUDE.md.claude/rules/project-constitution.mdtests/fixtures/issue-body/vc_unlabeled_fence.md
Runtime Verification Applicability
- decision: not_applicable
- reason: docs-only issue であり、runtime surface や preview / manual play evidence を直接変更しない
Stop Conditions
- Allowed Paths 外の変更が必要と判明した場合
- In Scope の固定契約(キー集合・スキーマ・型定義)の変更が必要になった場合
- 新規 Issue の起票が必要と判断した場合(スコープ分割が発生する場合)
- 後続 Phase / 別スコープへの波及が判明した場合
- nested SubAgent delegation が必要になった場合
- 外部サービス利用・権限昇格・既存テスト大規模改変が必要になった場合
- GitHub milestone readback が 2026-06-21 時点の
M2=/milestone/4,M3=/milestone/3,M4=/milestone/2,M1=/milestone/1と一致せず、mapping 方針の再判断が必要になった場合 - conceptual milestone と GitHub milestone object の対応を記録するだけでは足りず、rename / create / close 判断が必要と判明した場合
Required Skills
なし
Scope Delta(任意)
tests/fixtures/issue-body/vc_unlabeled_fence.mdを Allowed Paths に追加(理由:pnpm run lint:docsが同ファイルの MD040 違反で失敗し AC11 未達のため。scope_signal_guard 対象につき人間承認済み)
Delivery Rule
1 Issue = 1 PR。worktree で作業する。Draft PR で開始し、AC 全件 PASS 後に ready for review にする。
Metadata
Metadata
Assignees
Labels
agent/implementerAI implementer agentdocsDocumentation changesenhancementNew feature or requestphase/implementationImplementation phasetriage-requiredNeeds owner triage for priority decision
Activity
squne121 commentedon Jun 21, 2026
判定
#1094 は目的自体は妥当です。現行 docs には
M3: Result Persistenceが進行中として残っており、current-focus.mdとrequirements.mdは実際に stale です。current-focus.mdは frontmatter でも本文でも M3 進行中、requirements.mdもcapability_gateと Current Capability Gate が M3 進行中です。ただし、敵対的に見ると この Issue はこのまま実装投入すると false green の PR になるリスクが高いです。特に AC4/AC5 の検証が既存文面だけで通ってしまう点と、Allowed Paths が不足している点が致命的です。
主要な指摘
重要度 | 指摘 | 理由 | 修正方針 -- | -- | -- | -- P0 | AC4 が既に通る | docs/product/playable-roadmap.md には現時点で prose として github_milestone_number が存在するため、rg "github_milestone_number" は YAML block へ追記しなくても成功します。 | M2〜M5 の各 YAML block に github_milestone_number: があることを block 単位で検証する P0 | AC5 が既に通る | roadmap には既に GitHub という語が複数存在します。対応表を追加しなくても rg "GitHub" は成功します。 | 対応表の見出し・列名・M4 mismatch 行まで検証する P0 | AC3 のコマンドが逆 | 「残っていない」ことを検証するのに rg "M3.*進行中" だけだと、正しい状態では exit 1 になり、検証失敗に見えます。 | ! rg "M3.*進行中" docs/product/requirements.md にする P0 | Allowed Paths が足りない | AI の読み順では CLAUDE.md と .claude/rules/project-constitution.md が requirements.md / current-focus.md より先です。 その CLAUDE.md にはまだ M1 進行中、project-constitution にも M1 前提のスコープ管理が残っています。 | CLAUDE.md と .claude/rules/project-constitution.md を Allowed Paths に入れるか、未更新リスクを follow-up Issue として明示する P1 | Implementation Issue の milestone 直付けが怪しい | #1094 は issue_kind: implementation / parent_issue: none なのに milestone が付いており、コメントは 0 件です。 しかし milestone-ops は GitHub Milestone 直付け対象を Parent Issue 原則とし、Implementation Issue の直付けは理由コメントが必要としています。 | milestone を外す、Parent Issue を作る、または例外理由コメントを明示する P1 | 「M3 完了」の言い切りが強い | M3 E2E は 5 passed で証跡がありますが、Load Game による snapshot 適用は本 E2E では未実行で、#733 が M3 parent close 判定として残っています。 | 「M3 実装・自動検証は完了、正式 close/readback は #733 側」と書き分ける P1 | docs-only なのに docs lint がない | package.json には lint:docs = markdownlint + textlint が定義されていますが、#1094 AC には入っていません。 | pnpm run lint:docs を AC に追加 P2 | last_updated_by_issue 更新が AC にない | 対象 docs は last_updated_by_issue を持っていますが、#1094 へ更新する AC がありません。 | touched docs の issue trace を #1094 に更新する外部仕様から見た高品質化
GitHub Milestone の readback は title ではなく number を正本識別子として扱うべきです。GitHub REST API は milestone の path parameter として
milestone_numberを使い、Issue 更新時のmilestoneも number または null です。また、権限不足時には milestone 変更が silent drop され得るため、readback が必須です。(GitHub Docs) (GitHub Docs)Milestone 一覧取得は
state=allと pagination を前提にしてください。GitHub の Milestones API はstatefilter とper_page/pagepagination を持つため、open だけ・1 page だけの readback は不完全です。(GitHub Docs)localStorage 周りは #1094 の直接実装対象ではありませんが、M3 完了表現の根拠として使うなら注意が必要です。MDN でも localStorage は origin ごとの保存で、private browsing の最後の private tab を閉じると消え、
file:URL の挙動は保証されません。repo 側の persistence spec が browser-local / best-effort / origin-scoped としているのは妥当です。(MDN Web Docs)#1094 に入れるべき修正版 AC / 検証
検証コマンドは最低限こう直すべきです。
実装者へ渡すならこう指示する
この修正を入れれば、#1094 は「M3/M4/M5 境界の docs stale 解消」Issue として実装投入可能です。現状のままだと、表面上 AC PASS でも milestone 対応表が実質追加されていない PR を通せてしまいます。
## 判定#1094 は目的自体は妥当です。現行 docs には
M3: Result Persistenceが進行中として残っており、current-focus.mdとrequirements.mdは実際に stale です。current-focus.mdは frontmatter でも本文でも M3 進行中、requirements.mdもcapability_gateと Current Capability Gate が M3 進行中です。ただし、敵対的に見ると この Issue はこのまま実装投入すると false green の PR になるリスクが高いです。特に AC4/AC5 の検証が既存文面だけで通ってしまう点と、Allowed Paths が不足している点が致命的です。
主要な指摘
docs/product/playable-roadmap.mdには現時点で prose としてgithub_milestone_numberが存在するため、rg "github_milestone_number"は YAML block へ追記しなくても成功します。github_milestone_number: <integer>があることを block 単位で検証するGitHubという語が複数存在します。対応表を追加しなくてもrg "GitHub"は成功します。rg "M3.*進行中"だけだと、正しい状態では exit 1 になり、検証失敗に見えます。! rg "M3.*進行中" docs/product/requirements.mdにするCLAUDE.mdと.claude/rules/project-constitution.mdがrequirements.md/current-focus.mdより先です。 そのCLAUDE.mdにはまだ M1 進行中、project-constitution にも M1 前提のスコープ管理が残っています。CLAUDE.mdと.claude/rules/project-constitution.mdを Allowed Paths に入れるか、未更新リスクを follow-up Issue として明示するissue_kind: implementation/parent_issue: noneなのに milestone が付いており、コメントは 0 件です。 しかし milestone-ops は GitHub Milestone 直付け対象を Parent Issue 原則とし、Implementation Issue の直付けは理由コメントが必要としています。package.jsonにはlint:docs = markdownlint + textlintが定義されていますが、#1094 AC には入っていません。pnpm run lint:docsを AC に追加last_updated_by_issue更新が AC にないlast_updated_by_issueを持っていますが、#1094 へ更新する AC がありません。外部仕様から見た高品質化
GitHub Milestone の readback は title ではなく number を正本識別子として扱うべきです。GitHub REST API は milestone の path parameter として
milestone_numberを使い、Issue 更新時のmilestoneも number または null です。また、権限不足時には milestone 変更が silent drop され得るため、readback が必須です。([GitHub Docs]1) ([GitHub Docs]2)Milestone 一覧取得は
state=allと pagination を前提にしてください。GitHub の Milestones API はstatefilter とper_page/pagepagination を持つため、open だけ・1 page だけの readback は不完全です。([GitHub Docs]3)localStorage 周りは #1094 の直接実装対象ではありませんが、M3 完了表現の根拠として使うなら注意が必要です。MDN でも localStorage は origin ごとの保存で、private browsing の最後の private tab を閉じると消え、
file:URL の挙動は保証されません。repo 側の persistence spec が browser-local / best-effort / origin-scoped としているのは妥当です。([MDN Web Docs]4)#1094 に入れるべき修正版 AC / 検証
検証コマンドは最低限こう直すべきです。
実装者へ渡すならこう指示する
この修正を入れれば、#1094 は「M3/M4/M5 境界の docs stale 解消」Issue として実装投入可能です。現状のままだと、表面上 AC PASS でも milestone 対応表が実質追加されていない PR を通せてしまいます。
squne121 commentedon Jun 21, 2026
Issue #1094 本文更新
tmp/issue_1094_refined.mdtmp/issue_1094_backup_1782031335.md実施結果
check_vc_scope.py: PASSguard-issue-body.py: PASSissue_contract_hygiene_autofix.py: no_changecontract_readiness_check.py --mode static: go変更要約
docs/dev/current-focus.md/docs/product/requirements.md/docs/product/playable-roadmap.mdを current state に同期する方針へ整理CLAUDE.mdと.claude/rules/project-constitution.mdを含めた stale milestone drift の扱いを明示squne121 commentedon Jun 21, 2026
Contract Review Result
squne121 commentedon Jun 21, 2026
implement-issue: 実装完了 (2026-06-21T09:10:07Z)
.claude/worktrees/issue-1094-milestone-doc-syncworktree-issue-1094-milestone-doc-syncpnpm run lint:docs: FAILtests/fixtures/issue-body/vc_unlabeled_fence.md:15(MD040/fenced-code-language) により失敗。Allowed Paths 外のため本 PR では未修正。pnpm typecheck: PASSpnpm lint: PASSpnpm test: PASS (69 files / 922 tests)pnpm build: PASSsqune121 commentedon Jun 22, 2026
敵対的レビュー結論
判定: REQUEST CHANGES。#1094 の Issue contract はかなり改善済みだが、実装 PR #1102 はまだ ready for review / merge にできません。
理由は主に、
pnpm run lint:docsが未解決で失敗していること、PR 本文が repo の必須 PR テンプレートを満たしていないこと、roadmap 内に M3/M4 の stale boundary 表現が残っていること、GitHub milestone readback の証跡が PR/Issue 上で再現可能になっていないことです。#1102 は draft のままなので、現状態で止まっていること自体は妥当です。PR 本文もlint:docs失敗を明記し、Actions 側はci等が success になっていますが、これは AC 全件 PASS とは別物です。良い点
前回レビューで指摘された「AC/VC が既存文面だけで false green になる」問題はかなり潰されています。#1094 の対象は docs-only で、Allowed Paths は 5 ファイルに限定され、#1102 の changed files も
.claude/rules/project-constitution.md、CLAUDE.md、docs/dev/current-focus.md、docs/product/playable-roadmap.md、docs/product/requirements.mdに収まっています。current-focus.mdとrequirements.mdは M4 現在地へ更新され、M3 は「実装と自動検証は完了、formal close / milestone readback は #733 側」と切り分けています。この書き分けは妥当です。playable-roadmap.mdには conceptual milestone と GitHub milestone object の対応表が入り、M2/M4 の title mismatch、M5 の unmapped 状態も明示されています。各 YAML block にもgithub_milestone_number/github_milestone_title/mapping_status/decision_noteが追加されています。P0:
lint:docs失敗を「既存 baseline」扱いで通すのは不可#1094 の AC には
pnpm run lint:docspass が含まれており、package.json上もlint:docsはlint:md && lint:proseです。#1102 はpnpm run lint:docsがtests/fixtures/issue-body/vc_unlabeled_fence.md:15のMD040/fenced-code-languageで失敗したと自己申告しています。これは「報告したから OK」ではなく、AC 未達です。これは実際に再現性のある failure です。
.markdownlint-cli2.yamlはdocs/**や.github/**を ignore していますがtests/**は ignore しておらず、MD040 は有効です。問題の fixture には unlabeled fence が存在します。markdownlint の MD040 は fenced code block に言語指定を要求するルールなので、```textまたは```bashのように明示する必要があります。 ([GitHub]1)修正方針は二択です。最も安全なのは #1094 を一度止め、baseline lint fix を別 Issue/PR で先に入れることです。#1094 内で直すなら、Allowed Paths に
tests/fixtures/issue-body/vc_unlabeled_fence.mdまたは markdownlint config を追加し、Issue contract / AC / Scope Delta を更新してから修正してください。Allowed Paths 外だから未修正、ただし AC は pass 扱い、という処理は false green です。P0: PR 本文が repo の必須 PR テンプレートを満たしていない
docs/dev/workflow.mdはimplement-issueが生成する PR 本文の必須セクションとして## Summary、## 受け入れ条件の達成状況、## 検証コマンド結果、## Allowed Paths 遵守を要求しています。#1102 の本文は## Summaryと## Checksはありますが、少なくとも後者 3 つの見出しが正規形ではありません。これは形式だけの問題ではありません。#1094 は AC が 15 個あり、
lint:docsが失敗しているため、PR 本文に ACごとの達成/未達/根拠 がないとレビュー不能になります。## Checksではなく、repo の要求どおり## 検証コマンド結果に分け、## 受け入れ条件の達成状況には AC1〜AC15 の表を置くべきです。P1: roadmap に M3/M4 stale boundary 表現が残っている
docs/product/playable-roadmap.mdの SSOT 境界に、まだ “M3 / M4 boundary authority” と “M3 / M4 の conceptual milestone boundary” という記述が残っています。今回の #1094 は M3/M4/M5 milestone-boundary SSOT の不整合解消が目的なので、ここは M5 を含めるか、より安全に “conceptual milestone boundary authority” と一般化すべきです。この残存は小さく見えますが、AI エージェントにとっては参照順の早い SSOT 文面です。新しく M5 mapping を表で追加しても、上部の authority 説明が M3/M4 のままだと、後続 Issue で「M5 は boundary authority 外」と誤読される余地があります。
修正例:
P1: GitHub milestone readback の証跡が不足している
#1102 は
readback_date: 2026-06-21と対応表を追加していますが、PR/Issue コメント上に実際のgh api --paginate ... milestones?state=allの出力が見当たりません。GitHub Milestone は title ではなく number を安定識別子として扱う必要があり、Issue 更新 API のmilestoneフィールドも milestone number またはnullです。また、GitHub の Issues API は権限不足時に milestone 更新を silent drop し得るため、readback が重要です。([GitHub Docs]2)GitHub Milestones 一覧 API は
stateの既定がopenで、all指定と pagination を使わないと closed milestone や 101 件目以降を取りこぼします。GitHub CLI も--paginateで全ページ取得する設計です。repo 側のmilestone-ops.mdもstate=all&per_page=100と--paginateを前提にしています。([GitHub Docs]3) ([GitHub CLI]4)PR か #1094 コメントに最低限これを貼ってください。
加えて、#1094 自体は implementation issue なのに milestone が付いています。repo の
milestone-ops.mdは、GitHub Milestone へ直接割り当てる対象は Parent Issue 原則で、Implementation Issue の直接割当は理由コメントが必要としています。#1094 の metadata には milestone があり、例外理由コメントは確認できませんでした。P1:
CLAUDE.md/ prompt layer に #733 caveat が薄いcurrent-focus.mdとrequirements.mdは #733 caveat を明記していますが、CLAUDE.mdは “M3 の実装と自動検証は完了済み” で止まり、formal close / readback が #733 側であることまでは書いていません。.claude/rules/project-constitution.mdも M4 current boundary は書けていますが、M3 close 未完了の caveat は持っていません。prompt layer は SSOT ではないので長文重複は不要です。ただし今回の事故点は「AI が M3 完了を milestone close 可能と誤読する」ことなので、
CLAUDE.mdに 1 行だけ足す価値があります。P2: M5
nullmapping の型規約を明文化した方がよいM5 は
github_milestone_number: null/mapping_status: unmappedとして記録されています。これは現状の表現としては妥当ですが、後続の validator がgithub_milestone_numberを integer 前提で読むと壊れます。mapping table の近くに以下を追加すると安全です。配布物・localStorage まわりの高品質化観点
#1094 自体は docs-only ですが、M4 は M3 persistence の上に upgrade loop を載せるフェーズです。ここで
localStorageを「信頼できる永続保存」と誤解すると、M4 の resource consumption / upgrade 実装で破綻します。repo の persistence spec はすでに、localStorage は best-effort / browser-local であり durable storage ではなく、getItem/setItem/JSON.parseを failure boundary とし、SecurityError、QuotaExceededError、corrupt JSON、invalid schema を crash させないと定義しています。これは MDN の localStorage 仕様、特に origin 単位・private browsing 後の消去・SecurityError の可能性とも整合します。 ([MDN Web Docs]5)また、GitHub Pages の PR preview と本番が同一 origin になる場合、path が違っても localStorage は共有され得ます。repo の quick-save / persistence spec は、production key
loop-protocol.mvp.saveを E2E や preview で clear しない方針まで書けています。M4 の upgrade spec を作るときは、resourcesを保存値から直接信用せず、validate / clamp 後の progression snapshot だけを消費対象にする、preview / E2E はloop-protocol.preview.pr-*やloop-protocol.e2e.*系 key を使う、という制約を先に AC 化してください。PR preview コメントも “asset-level live check 未検証” と明記しているため、#1102 で preview URL を runtime evidence として扱うべきではありません。docs-only issue なので runtime evidence は不要ですが、配布物の検証済み証跡としては使わない、という扱いが正しいです。
最低修正セット
pnpm run lint:docsを実際に pass させる。Allowed Paths 外なら 実装: M3 完了を docs に反映し M3/M4/M5 milestone-boundary SSOT の不整合を解消する #1094 を更新するか、baseline lint fix を先行 PR に分離する。docs/product/playable-roadmap.mdの “M3 / M4 boundary authority” を M5 まで含む表現に修正する。CLAUDE.mdに 導入: M3 Loop MVP Gate を報酬→resource→localStorage 永続化まで接続する #733 formal close caveat を 1 行追加するか、PR 本文に「prompt layer は current-focus を参照するため重複しない」と明記する。レビューコメント案
squne121 commentedon Jun 22, 2026
Refinement Loop: Human Escalation Required
The loop has terminated and requires human review. Cause: human judgment required
human_escalationhuman_judgment_requiredBlockers
squne121 commentedon Jun 22, 2026
refinement loop 続報: 人間判断の反映
先の termination report(human_escalation)に対し、オーナー判断で以下を反映しました。
P0 (lint:docs / Allowed Paths) — 対応方針 (A) を採用
tests/fixtures/issue-body/vc_unlabeled_fence.mdの MD040 違反を本 Issue 内で修正する方針を選択。本 Issue 本文を以下のとおり更新済み:## Allowed Pathsにtests/fixtures/issue-body/vc_unlabeled_fence.mdを追加## In Scopeに「同 fixture の MD040 違反を修正しpnpm run lint:docsを pass させる」を追加## Scope Deltaに追加理由(scope_signal_guard 対象につき人間承認済み)を記録これにより AC11(
pnpm run lint:docs)が Allowed Paths 内で正規に達成可能になりました。C12 checker 偽陽性 — follow-up Issue を起票
refinement loop の Step 2 で
check_issue_contract.pyの C12(check_c12_product_trace_fields_structure)が、change_kind: docsの docs-only issue でも## Product Spec Contextセクションの存在だけを根拠にproduct_spec_id/requirement_id/source_task_idの欠落を blocking fail として誤検出する偽陽性を確認しました(root cause:check_issue_contract.py:1202の applicability 判定がchange_kindを参照しない)。→ #1135 で修正を tracking します。本 Issue (#1094) の contract 自体はこの偽陽性の影響を受けないため、reviewer_claim_replay arbitration で non-blocking に downgrade 済みです。
実装側 (PR) で残る対応事項
以下は contract ブロッカーではなく、実装 PR 側で対応すべき項目です(anchor comment P1 由来):
docs/product/playable-roadmap.mdの "M3 / M4 boundary authority" 表現を M5 まで含む一般化表現へ修正gh api --paginate "repos/squne121/loop-protocol/milestones?state=all&per_page=100")を PR または本 Issue コメントへ記録docs/dev/workflow.mdの必須セクション(## 受け入れ条件の達成状況/## 検証コマンド結果/## Allowed Paths 遵守)に整形し、AC1〜AC15 の達成状況表を追加Issue contract は実装着手可能な状態になりました。
squne121 commentedon Jun 22, 2026
Contract Review Result (refreshed)
注: 以前の go コメント (body_sha256
sha256:3c491c5...) は Issue 本文の Allowed Paths / Scope Delta 拡張 (tests/fixtures/issue-body/vc_unlabeled_fence.md追加) により stale 化していたため、現行本文 sha256 で再計算した fresh go を投稿し supersede する。docs: sync milestone SSOT for M4 (#1094)
docs: rebase onto main and generalize milestone boundary authority to…
squne121 commentedon Jun 22, 2026
GitHub Milestone Readback 証跡 (2026-06-22)
PR #1102 の milestone mapping table の readback 根拠として、実際の GitHub Milestone object 一覧を記録する。
取得コマンド:
gh api "repos/squne121/loop-protocol/milestones?state=all"結果(関連フィールド抜粋):
conceptual milestone ↔ GitHub milestone object の対応確認
docs/product/playable-roadmap.mdの mapping table と上記 readback は完全に一致する:number 4/ titleM2: Combat MVP Gate (v0.2.x)→mismatch_pending_renamenumber 3/ titleM3: Result Persistence (v0.3.x)→alignednumber 2/ titleM4: UX MVP Gate (v0.4.x)→mismatch_pending_renameunmappedこれは Issue 本文の Stop Condition「
M2=/milestone/4,M3=/milestone/3,M4=/milestone/2,M1=/milestone/1」と一致しており、mapping 方針の再判断は不要(rename / create / close は Out of Scope のまま保持)。Implementation Issue への milestone 直付けについて(milestone-ops 例外理由)
docs/dev/milestone-ops.mdは GitHub Milestone への直接割当を Parent Issue 原則とし、Implementation Issue の直接割当には理由コメントを要求している。本 Issue (#1094) はissue_kind: implementation/parent_issue: noneでありながら milestoneM1: Foundation Gate (v0.1.x)(number 1) に直付けされているため、その理由を以下に記録する:squne121 commentedon Jun 22, 2026
レビュー指摘対応: milestone metadata / readback 証跡 / scope item の機械可読化
PR #1102 の追加レビュー(issuecomment-4767344024)の Blocker 1・2・High risk 5 に対応し、機械可読な証跡を以下に記録する。
1. #1094 milestone metadata の解決(exception_retained)
#1094 は
issue_kind: implementationでありながら milestone1(M1: Foundation Gate (v0.1.x))に直付けされている。本 Issue は新規 feature 実装ではなく docs / 最小仕様正本(SSOT)の整合性整備であり、milestone M1 の scope「Combat 実装を広げる前に docs / guardrail / workflow / 最小仕様正本を揃える」に substantively 合致する。よって metadata は削除せず、milestone-ops の例外として理由を明示したうえで保持する。2. GitHub milestone readback(機械可読)
GitHub Milestones API は
state既定が open のためstate=allを指定し、安定識別子は title ではなくmilestone_numberを用いる。将来の milestone 増加に備え--paginate/per_page=100を前提とする。5. fixture scope item の resolution(#1107 で解決済み)
#1094 の In Scope / Allowed Paths に含まれる
tests/fixtures/issue-body/vc_unlabeled_fence.mdの MD040 修正は、本 PR の最終 head 以前に main 側(#1107)で解決済みである。本 PR は rebase で取り込んでおり、diff には fixture を含まない。なお Blocker 3(
CLAUDE.mdへの #733 closure gate caveat 追加)と High risk 4(AC7 を M4 row exact check へ強化)は PR #1102 / Issue 本文側で対応する。docs: sync milestone SSOT for M4 (#1094)
docs: rebase onto main and generalize milestone boundary authority to…
docs: add #733 closure gate caveat to CLAUDE.md current phase (#1094)
squne121 commentedon Jun 22, 2026
Contract Review Result (refreshed)
注: 直前の go コメント (body_sha256
sha256:5cf0b3b6d5b07a7303aa2155e1ddc260128409b1a4725fccc315cf15b5833234) は VC7 が VC parser 非互換 (テーブル pipe|を含む形) で human_judgment 化していた本文に対するものだった。VC7 を pipe 非依存の正規表現 (M4: Upgrade Loop \(v0\.4\.x\).* 2 .*M4: UX MVP Gate \(v0\.4\.x\).*mismatch_pending_rename) へ決定論置換した結果、baseline_vc_preflightが AC7 をexpected_baseline_fail(decision=go) に分類するようになった。現行本文 sha256 (sha256:8d2ba547473f5c7d65789fd8e15fec0bea9a2ba409a659c3b8edf2e0f8c03815) でrun_contract_review_once.py --mode execute --skip-idempotency-checkを再計算し全 checks pass を確認したため、fresh go を投稿し supersede する。docs: sync milestone SSOT for M4 (#1094) (#1102)
fix(#1135): C12 applicability に change_kind を追加し docs-only 偽陽性を解消
fix(#1135): C12 docs-only 免除を section束縛 strict parser と path-policy で再設計
fix(#1135): C12 docs-only 免除を section束縛 strict parser と path-policy で…