Repository navigation
Closed
Labels
enhancementNew feature or requestphase/implementationImplementation phasestate/queuedQueued for implementation
Description
Machine-Readable Contract
contract_schema_version: v1
issue_kind: implementation
parent_issue: 40
goal_ref: "AI Agent が着手可能と判定するための Definition of Ready (DoR) 基準を docs/dev/dor.md に明文化し、issue-contract-review からの参照を可能にする"
change_kind: docs
allowed_paths:
- docs/dev/dor.md
- .claude/skills/issue-contract-review/SKILL.md
acceptance_criteria_count: 4
verification_kind: deterministicParent Issue
Parent Goal Ref
- Goal: GitHub マイルストーン運用(DoR 基準 / state ラベル体系 / Plan Mode スキップルール)をエージェントスキルへ統合し、AI が自律的にマイルストーン進捗を判定・操作できる基盤を整備する
- Desired Destination:
docs/dev/dor.mdに DoR 基準が明文化され、issue-contract-reviewskill がそれを参照している
Current Validated Scope
docs/dev/dor.mdの新規作成(Implementation Issue の DoR 必須項目定義).claude/skills/issue-contract-review/SKILL.mdへのdocs/dev/dor.md参照リンク追加
Remaining Parent Gaps
- A2: state ラベル体系再定義(
state/queuedvsstate/ready役割分担) - A3: Plan Mode スキップルール策定(
.claude/rules/project-constitution.md更新) - B 系(playable outcome milestone, MVP 実装 Issue)は別 parent issue として管理
Outcome
docs/dev/dor.md が新規作成され、Implementation Issue の「AI 着手可能」判定基準(Outcome / AC / VC / Allowed Paths / Stop Conditions / Required Skills の完備条件)が機械可読な形で明文化されている。issue-contract-review SKILL.md から docs/dev/dor.md への参照リンクが追加され、将来 DoR チェック logic を組み込む差し込み口が明示されている。
In Scope
docs/dev/dor.mdの新規作成.claude/skills/issue-contract-review/SKILL.mdへのdocs/dev/dor.md参照リンク追加(チェック項目への対応関係を明記)
Out of Scope
issue-contract-reviewの判定 logic 実装(A1 完了後の follow-up Issue で扱う)- state ラベル運用との連携(A2 のスコープ)
- Plan Mode スキップ条件(A3 のスコープ)
Acceptance Criteria
- AC1:
docs/dev/dor.mdが新規作成され、Implementation Issue の DoR 必須項目(Outcome / Acceptance Criteria / Verification Commands / Allowed Paths / Stop Conditions / Required Skills)が定義されている - AC2: 各 DoR 項目に「機械判定可能な条件」と「人間判断が必要な条件」が分離記述されている
- AC3:
.claude/skills/issue-contract-review/SKILL.mdにdocs/dev/dor.mdへの参照リンクが追加されている - AC4: ChatGPT 回答 (導入: Issue contract / DoR / dependency 判定による AI 実装前提基盤の整備 (parent) #40 issuecomment-4489127733) の引用元(GitHub Docs / Anthropic engineering blog / Qiita / 知乎)のうち、
docs/dev/dor.mdで根拠として引用するものは URL と引用日を明記している
Verification Commands
# AC1
test -f docs/dev/dor.md
grep -E '^##\s+(Outcome|Acceptance Criteria|Verification Commands|Allowed Paths|Stop Conditions|Required Skills)' docs/dev/dor.md
# AC2
grep -E '機械判定|人間判断' docs/dev/dor.md
# AC3
grep -E 'docs/dev/dor\.md' .claude/skills/issue-contract-review/SKILL.md
# AC4
grep -E 'https?://' docs/dev/dor.md
# Standard gates
pnpm typecheck
pnpm lint
pnpm test
pnpm buildAllowed Paths
docs/dev/dor.md.claude/skills/issue-contract-review/SKILL.md
Stop Conditions
- Allowed Paths 外の変更が必要と判明した場合
- In Scope の固定契約(キー集合・スキーマ・型定義)の変更が必要になった場合
- 新規 Issue の起票が必要と判断した場合(スコープ分割が発生する場合)
- 後続 Phase / 別スコープへの波及が判明した場合
- nested SubAgent delegation が必要になった場合
- 外部サービス利用・権限昇格・既存テスト大規模改変が必要になった場合
docs/dev/dor.md内容が既存issue-contract-reviewSKILL.md の C1-C8 と矛盾する記述になりそうな場合は停止し、ADR を起こす- DoR 項目を増やしすぎて「実装着手の摩擦」になりそうな場合は人間判断へエスカレート
state/readyラベル運用への参照を追加する必要が出た場合は A2 完了待ち(本 Issue では言及のみ)- Plan Mode スキップ条件への言及が必要になった場合は A3 完了待ち
issue-contract-reviewの判定 logic を本 PR で変更しそうになった場合は停止(Out of Scope)- AC が
docs/dev/dor.mdの存在確認以外の機能テストを要求し始めた場合は仕様分離が崩れているので人間判断へ
Required Skills
なし
Scope Delta(任意)
N/A
Delivery Rule
1 Issue = 1 PR- Draft PR で開始し、AC 全通過後に Ready for Review へ切り替える
.claude/skills/issue-contract-review/SKILL.mdは 実装: issue-contract-review に VC failure root cause 分類ステップを追加する #43 も Allowed Paths に含んでいるため、本 Issue と 実装: issue-contract-review に VC failure root cause 分類ステップを追加する #43 の並行実装時はマージコンフリクト回避のため直列化を推奨(実装: issue-contract-review に VC failure root cause 分類ステップを追加する #43 のマージ状態を確認してから着手)
Refs #40
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestphase/implementationImplementation phasestate/queuedQueued for implementation
Activity
squne121 commentedon May 19, 2026
create-issue transaction partial-failure
Issue: #72
Failure stage: label-apply
Message: label-apply failed
Requested:
Completed steps: create
Failure context: command=gh issue edit --repo squne121/loop-protocol 72 --add-label enhancement,phase/docs,state/queued
output=failed to update #72: 'phase/docs' not found
failed to update 1 issue
matching_issue_numbers=[72]
issue_number=72
Recovery hint: stage 'label-apply' encountered an unexpected failure.
Generic guidance: verify the issue state manually and re-run the transaction if safe.
gh issue view 72 --repo squne121/loop-protocol --json number,title,labels,state
idempotent re-run: depends on the specific failure
Please recover deterministically before re-running the create issue transaction.
squne121 commentedon May 19, 2026
Contract Snapshot (2026-05-20T00:00:00Z)
docs/dev/dor.md新規作成 +issue-contract-reviewSKILL.md からの参照リンク追加docs/dev/dor.md参照リンクtest -f/grep -E× 4 + 標準ゲート (pnpm typecheck/lint/test/build)docs/dev/dor.md.claude/skills/issue-contract-review/SKILL.md.claude/worktrees/issue-72-dor-specworktree-issue-72-dor-specCONTRACT_REVIEW_RESULT_V1
squne121 commentedon May 19, 2026
implement-issue: 実装完了 (2026-05-20T07:16:45Z)
.claude/worktrees/issue-72-dor-specworktree-issue-72-dor-specAC 検証結果
test -f docs/dev/dor.md+ 6 section grepgrep -E '機械判定|人間判断'grep -E 'docs/dev/dor\.md' SKILL.mdgrep -E 'https?://'(4 URL)後続
PR レビュー(pr-review-judge)→ マージ → post-merge-cleanup
squne121 commentedon May 19, 2026
impl-review-loop: 完了 (2026-05-20)
工程
観察された改善候補(PR 本文に詳細記載)
Next Action
post-merge-cleanupskill で worktree / branch 削除docs: add DoR baseline to docs/dev/dor.md (#72) (#80)