Skip to content

docs: add DoR baseline to docs/dev/dor.md (#72) - #80

Merged
squne121 merged 1 commit into
mainfrom
worktree-issue-72-dor-spec
May 19, 2026
Merged

squne121 merged 1 commit into
mainfrom
worktree-issue-72-dor-spec

Conversation

@squne121

@squne121 squne121 commented May 19, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • docs/dev/dor.md を新規作成し、Implementation Issue の Definition of Ready (DoR) 基準を明文化
  • 6 つの必須項目(Outcome / AC / VC / Allowed Paths / Stop Conditions / Required Skills)について機械判定可能な条件と人間判断が必要な条件を分離記述
  • .claude/skills/issue-contract-review/SKILL.md に docs/dev/dor.md への参照リンクを追加

Closes / Refs

Closes #72
Refs #40

Verification Commands 結果

コマンド 結果
AC1: test -f docs/dev/dor.md PASS
AC1: grep -E '^## ...' (6 sections) PASS — Outcome / AC / VC / Allowed Paths / Stop Conditions / Required Skills 全揃い
AC2: grep -E '機械判定|人間判断' PASS — 各セクションに分離記述あり
AC3: grep -E 'docs/dev/dor\.md' PASS — SKILL.md Related セクションに追加済み
AC4: grep -E 'https?://' PASS — 4 URL 明記(GitHub Docs x2, Anthropic Engineering Blog x1, Issue #40 コメント x1)
pnpm typecheck PASS
pnpm lint PASS
pnpm test PASS — 4 files / 5 tests
pnpm build PASS
uv run pytest test_model_routing.py PASS — 21 tests

Allowed Paths Compliance

変更ファイル:

  • docs/dev/dor.md (新規) — Allowed Paths に含まれる
  • .claude/skills/issue-contract-review/SKILL.md — Allowed Paths に含まれる

Allowed Paths 外の変更: なし

Human Review Points

  • docs/dev/dor.md の DoR 項目定義が issue-contract-review C1-C8 と矛盾していないか
  • 「人間判断が必要な条件」の列挙が運用実態に即しているか
  • 引用元の信頼性評価(Qiita / 知乎 は不採用、GitHub Docs / Anthropic Engineering Blog のみ採用)

impl-review-loop 観察メモ(agent/skill/workflow 改善候補)

本 PR の impl-review-loop iteration 0 で pr-review-judge が APPROVE 判定。その過程で観察した改善候補を以下に記録する(本 PR スコープ外、follow-up Issue 化の候補)。

NOTE-1: dor.md 対応表への state_label 注記追加(dor.md 軽微 fix 候補)

  • 観察: docs/dev/dor.md の「issue-contract-review との対応」表に state_label チェックが含まれていない
  • 解釈: state_label (state/queued / state/in-progress) は DoR 条件ではなく preflight 前提条件であり、A2 (実装: state ラベル体系再定義 (state/queued vs state/ready 役割分担) (A2) #76) のスコープで整備予定
  • 推奨 fix: 対応表の下に「注: state ラベル確認は DoR 条件ではなく issue-contract-review 実行前提 — A2 のスコープで整備予定」の一文を追加
  • 本 PR で適用するか: 軽微なので人間判断(マージ前 fix もマージ後 follow-up PR も可)

NOTE-2: dor.md frontmatter に last_updated を追加(dor.md 軽微 fix 候補)

  • 観察: docs/dev/dor.md の YAML frontmatter に last_updated フィールドがない
  • 推奨 fix: last_updated: 2026-05-20 をフロントマターに追加
  • 本 PR で適用するか: 軽微なので人間判断

NOTE-3: pr-review-judge SKILL.md に「CI pass を VC 代替証跡とみなす」明記(別 Issue 候補)

  • 観察: pr-review-judge skill は PR 本文の self-reported VC 結果と CI checks を組み合わせて検証するが、「ブランチ上で VC を再実行する手順」が skill 内に明示されていない
  • 解釈: 現状は CI pass によって代替されているが、skill の手順として「CI pass を VC 代替証跡とみなす」旨を明記すると審査の透明性が上がる
  • 対象: .claude/skills/pr-review-judge/SKILL.md
  • 本 PR で適用するか: 別 skill のスコープなので本 PR 外(follow-up Issue 起票候補)

NOTE-4: impl-review-loop orchestrator が test-runner 実行有無を明示すべき(別 Issue 候補)

  • 観察: impl-review-loop の Step 4 は TEST_VERDICT_MACHINE コメントが PR にあれば優先利用するが、未投稿時は CI checks にフォールバックする
  • 問題: 「TEST_VERDICT_MACHINE が未投稿 = test-runner 未実行」と「CI pass」の区別が曖昧
  • 推奨 fix: orchestrator 側で「Step 2 (test-runner) 実行完了を前提とする」ことを明示するか、PR コメントに TEST_VERDICT_MACHINE 自動投稿を test-runner SubAgent の責務に組み込む
  • 対象: .claude/skills/impl-review-loop/SKILL.md, .claude/agents/test-runner.md
  • 本 PR で適用するか: 別 skill のスコープなので本 PR 外

NOTE-5: dor.md AC4 ガイドライン化(implementation-worker からの観察)

  • 観察: 本 PR 実装中、Qiita / 知乎 を引用元から除外し GitHub Docs / Anthropic Engineering Blog のみ採用した
  • 推奨: この「一次情報源優先」基準を AC4 のガイドラインとして dor.md または create-issue / review-issue skill に明文化することを検討
  • 本 PR で適用するか: dor.md の Related 周辺に短く追記するか、follow-up Issue 起票

NOTE-6: create_issue_txn.py の sub-issue-readback 信頼性(Issue #79 で既に追跡中)

NOTE-7: Issue #43 と Allowed Paths 重複(マージ順序考慮)


impl-review-loop メタ

🤖 Generated with Claude Code

Implementation Issue の「AI 着手可能」判定基準(Definition of Ready)を
docs/dev/dor.md に新規作成。Outcome / AC / VC / Allowed Paths /
Stop Conditions / Required Skills の 6 項目について、機械判定可能な条件と
人間判断が必要な条件を分離記述。issue-contract-review SKILL.md からの
参照リンクを追加し、各 DoR 項目と C1-C8 チェックの対応表を明示。
引用元 URL と引用日を明記 (Refs #40)。

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>

@squne121 squne121 left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: APPROVE

Mergeability

  • mergeable=MERGEABLE, mergeStateStatus=CLEAN

Evidence Check

  • AC coverage: ○ (AC1-4 全検証済み、根拠あり)
    • AC1: test -f docs/dev/dor.md PASS、6 セクション (Outcome/AC/VC/Allowed Paths/Stop Conditions/Required Skills) 全揃い確認
    • AC2: 各セクションに ### 機械判定可能な条件 / ### 人間判断が必要な条件 が分離記述されている
    • AC3: .claude/skills/issue-contract-review/SKILL.md Related セクションに docs/dev/dor.md 参照リンク追加済み
    • AC4: 4 URL 明記済み(GitHub Docs x2, Anthropic Engineering Blog x1, Issue #40 コメント x1)。Qiita/知乎は不採用(AC4 判断の妥当性: 後述 Non-blockers 参照)
  • Allowed Paths: 遵守。変更ファイル 2 件 (docs/dev/dor.md, .claude/skills/issue-contract-review/SKILL.md) とも Allowed Paths 内
  • CI Verification: build/lint/python-test/test/typecheck — 全 5 チェック pass
  • 検証コマンド結果: PR 本文の ## Verification Commands 結果 に全コマンド結果記録あり(PASS 明記)。標準ゲート (pnpm typecheck/lint/test/build, uv run pytest) も全 PASS

DoR vs issue-contract-review 整合性チェック

  • issue-contract-review SKILL.md の Step 2 確認項目 (template_compliance / state_label / allowed_paths_present / vc_present / stop_conditions_complete) と dor.md 対応表の照合:
    • state_label チェック(state/queued または state/in-progress であること)が dor.md の対応表に明示されていない
    • ただし dor.md は「DoR 必須項目の定義」であり、state_label は issue-contract-review 実行時の workflow prerequisite(着手可否の運用判断)であって DoR 項目の定義とは層が異なるため矛盾ではない
    • DoR の目的(「AI Agent が着手可能と判定するための基準」)と issue-contract-review の責務(preflight)の分担は一貫している

引用元信頼性判断の妥当性

  • GitHub Docs (docs.github.com) および Anthropic Engineering Blog (anthropic.com/engineering) は一次情報源として採用: 適切
  • Issue #40 コメントは内部 ChatGPT 回答の参照(二次情報だが内部文書として追跡可能): 許容範囲
  • Qiita / 知乎の不採用: コミュニティ投稿プラットフォームであり一次ソースとして不適切。除外判断は妥当

Required Skills 規約準拠

  • Issue #72 の Required Skills: 「なし」。implementation worker normalization に従い標準スキル (issue-contract-review / implement-issue) は暗黙適用扱い。規約準拠

Blockers

なし

Non-blockers(任意改善)

  1. dor.md の issue-contract-review との対応 表に state_label チェックへの言及がない。state_label は DoR 基準ではなく実行時 preflight 前提条件だが、読者が「この表で全チェックをカバーしている」と誤解する可能性があるため、表の下に「注: state ラベル確認は DoR 条件ではなく issue-contract-review 実行前提(A2 のスコープで整備予定)」の一文を追加すると明確になる
  2. dor.md のフロントマターに last_updated フィールドがない。将来の改訂時に追跡が容易になる

LOOP_VERDICT

verdict: APPROVE
blockers: []
mergeable: MERGEABLE
mergeStateStatus: CLEAN
reviewed_head_sha: a8c0efaf859892648928ae669f5669d1e18ff4b3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

実装: DoR (Definition of Ready) 基準を docs/dev/dor.md に明文化する (A1)

1 participant