Repository navigation
Description
Machine-Readable Contract
contract_schema_version: v1
issue_kind: implementation
parent_issue: "none"
goal_ref: "GitHub native issue dependencies を blocker SSOT とし、Depends On 本文欄を fallback/mirror に降格するポリシーを docs に記述する"
change_kind: docsParent Issue
none
Parent Goal Ref
- Goal: blocking dependency の SSOT を GitHub native issue dependency に統一し、Depends On 本文欄の役割を fallback/mirror/informative reference に限定する。加えて、hard dependency を採用した Issue に対して native
blockedByを実際に materialize する運用方針(判定ルール・materialize 方針・再利用する既存 controlled executor・readback 必須化・approve ゲート条件)を docs に明記する。 - Desired Destination: N/A(standalone improvement)
Current Validated Scope
docs/dev/github-ops.mdに、以下を追記する:- Issue authoring/refinement(issue-refinement-loop 等)が hard dependency の有無を判定するルール
- hard dependency 採用時に native
blockedByを materialize する phase を issue-refinement-loop 等の Step 4 rewrite に必須化する方向性(本 Issue のスコープは docs 記述のみであり、issue-refinement-loop 本体の実装配線は別 Issue の scope として明示的に Out of Scope とする。新規 Issue はこの時点では起票せず、将来必要になった時点で起票判断される旨のみ記述する) - native 化 mutation は既存の controlled/idempotent helper(
edit-issueskill のnative_relationships/issue_relationship.updatecontrolled executor)を再利用する方針。新しい独自の dependency graph・ledger・receipt・broker は作らない - mutation 後の live readback を必須とする方針
- readback が expected set と一致するまで、当該 Issue を
approved/ implementation-ready と扱わない旨(refinement loop 側のゲート方針として記述) - Issue 本文の
Depends Onセクションの prose は native dependency の mirror/fallback/informative reference であり、blocker 判定の SSOT ではないこと(実装: check_blockers.sh の条件付き依存記述による false positive を改善する #265 の改訂内容と整合) issue-contract-review(check_blockers.sh含む)は upstream relation の検証だけを行い、dependency materialization の mutation owner にはしないという責務分離(実装: check_blockers.sh の条件付き依存記述による false positive を改善する #265 の改訂内容と整合)- 新規の graph schema / ledger / mutation broker / receipt を作らない旨
Remaining Parent Gaps
なし
Required Design References
docs/dev/github-ops.md(本 Issue が追記対象とする既存 SSOT ドキュメント。「blocker / dependency の本文表現規約」「blocker 判定の優先順位」「native dependency とDepends on #Nが不一致の場合」「既存の Issue に対して native な parent・blockedBy・blocking の関係性を同期する仕組み(issue_relationship.update、Issue 実装: edit-issue transaction に GitHub native 親子・依存関係の同期と readback を追加する #1883)」の各節に、本 Issue が追記する新規セクションを整合させる)docs/dev/agent-skill-boundaries.md(issue_relationship.update/native_relationshipsの実行系統・スキーマの正本)- Issue 実装: check_blockers.sh の条件付き依存記述による false positive を改善する #265(
check_blockers.shの native-first・dedicated fallback 改訂。本 Issue が docs に記述する「Depends On本文欄は mirror/fallback/informative reference」「issue-contract-reviewは検証のみで mutation owner ではない」の 2 点は 実装: check_blockers.sh の条件付き依存記述による false positive を改善する #265 の改訂内容と整合させる)
Outcome
docs/dev/github-ops.md に、GitHub native issue dependency を blocker 判定の SSOT とする既存ポリシー(本 Issue 着手前から記述済み: native primary・Depends on #N fallback・native/body 不一致時 human escalation・issue_relationship.update による既存 native 関係性同期の仕組み)に加えて、以下の運用方針が明記されている状態:
- hard dependency 判定ルール: Issue authoring/refinement(issue-refinement-loop 等)が、ある依存関係を「着手可否に直接影響する hard dependency」として扱うか「単なる informative reference」として扱うかを判定するルールが明記されている。
- native materialize phase の必須化方向性: hard dependency を採用した場合、GitHub native dependency(
blockedBy)を materialize する phase を issue-refinement-loop 等の Step 4 rewrite に必須化する方向性が明記されている。ただし本 Issue のスコープはこの方向性を docs に記述することに限定され、issue-refinement-loop 本体への実装配線は別 Issue の scope として明示的に Out of Scope とする。新規 Issue は本 Issue の完了時点では起票せず、将来 issue-refinement-loop 側で実装着手が必要と判断された時点で起票判断される旨のみを記述する。 - 既存 controlled executor の再利用: native 化 mutation は、既存の
edit-issueskill のnative_relationships(ISSUE_EDIT_TXN_INPUT_V1.native_relationships→issue_relationship.updatecontrolled executor、Issue 実装: edit-issue transaction に GitHub native 親子・依存関係の同期と readback を追加する #1883)を再利用する方針が明記されている。新しい独自の dependency graph schema・ledger・receipt・mutation broker は作らないことが明記されている。 - mutation 後の live readback 必須化: native dependency mutation 後は、GitHub からの live readback を必須とする方針が明記されている。
- approve ゲート条件: readback が expected set と一致するまで、当該 Issue を refinement loop 上で
approved/ implementation-ready と扱わない旨が、refinement loop 側のゲート方針として明記されている。 - Depends On 本文欄の位置づけ:
Depends Onセクションの prose は native dependency の mirror / fallback / informative reference であり、blocker 判定の SSOT ではないことが明記されている(実装: check_blockers.sh の条件付き依存記述による false positive を改善する #265 のcheck_blockers.shnative-first 改訂と整合)。 issue-contract-reviewの責務分離:issue-contract-review(check_blockers.sh含む)は upstream relation の検証(validation)だけを行い、dependency materialization(mutation)の owner にはしないという責務分離が明記されている(実装: check_blockers.sh の条件付き依存記述による false positive を改善する #265 の改訂内容と整合)。- 新規 schema/ledger/broker/receipt の非採用: 上記いずれの方針も、新規の graph schema・ledger・mutation broker・receipt を作らないことを前提とする旨が明記されている。
In Scope
docs/dev/github-ops.mdへの追記(新規セクションとして、上記 Outcome の 1〜8 を記述する)- 既存の native dependency SSOT ポリシー記述(native primary・fallback・mismatch 時 human escalation・
issue_relationship.update同期の仕組み)との整合性確認・矛盾があれば軽微な文言調整
Out of Scope
- 既存 Issue の遡及修正(native
blockedByの実際の materialize 作業を含む。本 Issue の完了後、必要な Issue に対して別途 mutation を実行する) issue-refinement-loopskill 本体(Step 4 rewrite 等)への native materialize phase の実装配線。本 Issue は docs にその方向性を記述するのみであり、実装は将来必要と判断された時点で別 Issue として起票判断される(本 Issue の完了時点では新規 Issue を起票しない).github/ISSUE_TEMPLATE/*.ymlへのフィールド追加(native dependency が既に primary な機構として運用されているため、template への[blocking]/[informative]マーカーフィールド新設は不要と判断し取り下げる)- 新規ファイル
docs/dev/issue-dependency-policy.md/docs/dev/issue-contract.mdの作成(既存のdocs/dev/github-ops.mdに追記することで代替し、新規ファイルは作らない) check_blockers.shスクリプト実装の修正(実装: check_blockers.sh の条件付き依存記述による false positive を改善する #265 が担当・完了済み)- CI/CD での自動バリデーション実装
- 新規の dependency graph schema / ledger / mutation broker / receipt の実装(docs 記述のみ)
Depends On
- [blocking] 実装: check_blockers.sh の条件付き依存記述による false positive を改善する #265 — check_blockers.sh の false positive 修正(native-first・dedicated fallback への改訂。実装: check_blockers.sh の条件付き依存記述による false positive を改善する #265 の改訂内容と本 Issue の docs 記述を整合させるため、prerequisite として先に着手する)
Acceptance Criteria
- AC1:
docs/dev/github-ops.mdに、(a) Issue authoring/refinement が hard dependency の有無を判定するルール、(b) hard dependency 採用時に nativeblockedBymaterialize phase を issue-refinement-loop 等の Step 4 rewrite に必須化する方向性(実装配線は別 Issue の Out of Scope である旨と、新規 Issue はこの時点では起票しない旨を含む)が明記されている - AC2: 同ドキュメントに、(a) native 化 mutation は既存の
edit-issueskill のnative_relationships/issue_relationship.updatecontrolled executor を再利用し新規の dependency graph / ledger / mutation broker / receipt を作らない方針、(b) mutation 後の live readback を必須とする方針、(c) readback が expected set と一致するまで当該 Issue をapproved/ implementation-ready と扱わない旨(refinement loop 側のゲート方針)が明記されている - AC3: 同ドキュメントに、(a)
Depends On本文欄の prose が native dependency の mirror/fallback/informative reference であり blocker 判定の SSOT ではない旨、(b)issue-contract-review(check_blockers.sh含む)は upstream relation の検証のみを行い dependency materialization の mutation owner にはしないという責務分離、の 2 点が明記されている(いずれも 実装: check_blockers.sh の条件付き依存記述による false positive を改善する #265 の改訂内容と整合する記述であること)
Verification Commands
# AC1
$ rg -n -e "hard dependency" -e "blockedBy.*materialize" -e "materialize.*blockedBy" docs/dev/github-ops.md# AC2
$ rg -n -e "live readback" -e "implementation-ready" -e "mutation broker" docs/dev/github-ops.md# AC3
$ rg -n -e "informative reference" -e "mutation owner" -e "検証のみ" docs/dev/github-ops.mdAllowed Paths
docs/dev/github-ops.md
Runtime Verification Applicability
decision: not_applicable
reason: >
本 Issue の成果物は docs/dev/github-ops.md への Markdown 追記のみ。
実行可能なランタイム成果物がないため自動 VC 実行は不適用。Stop Conditions
- Allowed Paths 外の変更が必要と判明した場合
- In Scope の固定契約(キー集合・スキーマ・型定義)の変更が必要になった場合
- 新規 Issue の起票が必要と判断した場合(スコープ分割が発生する場合)
- 後続 Phase / 別スコープへの波及が判明した場合
- nested SubAgent delegation が必要になった場合
- 外部サービス利用・権限昇格・既存テスト大規模改変が必要になった場合
- native
blockedByの実際の materialize(mutation の実行そのもの)が必要と判明した場合(本 Issue は docs 記述のみが scope であり、mutation 実行は別途扱う)
Required Skills
- docs authoring
- GitHub native issue dependency の仕組みに関する知識(
issue_relationship.update、edit-issueskill)
Scope Delta(任意)
reframe_in_place: Outcome / In Scope / Out of Scope / AC / Verification Commands / Allowed Paths を実質的に変更。OWNER directive(本セッションでの直接指示)に基づき、単なる「native SSOT ポリシーを docs に書く」だけでなく、issue authoring/refinement 側の hard dependency 判定ルール・native materialize phase 必須化の方向性(実装配線は別 Issue として明示的に Out of Scope)・既存 controlled executor 再利用(新規 schema/ledger/broker/receipt 禁止)・mutation 後 readback 必須・readback が一致するまで approved 扱いしないゲート方針を追加した。あわせて .github/ISSUE_TEMPLATE/implementation.yml へのフィールド追加と新規ファイル作成(docs/dev/issue-dependency-policy.md / docs/dev/issue-contract.md)は、native dependency が既に primary な機構として運用されている現状(#265 改訂内容)と整合しないため Out of Scope へ移し、既存の docs/dev/github-ops.md への追記に統合した。VC は inline backtick 形式から canonical fenced code block($ prefix)形式へ修正した。
Source
- origin_skill: post-merge-cleanup
- origin_pr: docs: post-M1 playable outcome roadmap を docs/product/playable-roadmap.md に記録する (#148) #226
- dedupe_key:
depends-on-blocking-informative-split - extracted_from: PR docs: post-M1 playable outcome roadmap を docs/product/playable-roadmap.md に記録する (#148) #226 本文
## Process Observationsセクション
Activity
squne121 commentedon May 23, 2026
人間からの指摘です。
Issue本文に「Depends On」を埋め込むissueはよく見るけど、そもそも種はGithubのブロッカー機能の認識。しかし使われていないし、改善issueも見ていない。
squne121 commentedon May 23, 2026
レビュー判定: REQUEST CHANGES
人間指摘は妥当です。#233 は「Issue本文の
Depends On記法を機械判定しやすくする」改善としては意味がありますが、問題の根はそこではありません。GitHub には既に native issue dependencies があり、公式ドキュメント上もRelationshipsからMark as blocked by/Mark as blockingを設定して、blocked issue をUI上で可視化する機能として定義されています。つまり blocker の SSOT は本文内 Markdown ではなく GitHub native dependency に寄せるべきです。([GitHub Docs]1)#233 の現行スコープは
.github/ISSUE_TEMPLATE/implementation.ymlとdocs/dev/issue-contract.mdに[blocking]/[informative]を定義するものですが、これは fallback 記法の整備であって、native blocker を使わない運用を温存します。#233 自身も Outcome で「Issue template または docs に区分を定義し、AI Agent が依存関係を機械的に判定できる」としており、native dependency を SSOT 化する記述がありません。主な問題点
1. BLOCKER: “Depends On本文欄”を第一級に扱う設計が逆
既存の
check_blockers.shは、既に GitHub native dependency API らしきrepos/${REPO}/issues/${ISSUE_NUMBER}/dependencies/blocked_byを primary として読みに行き、本文中のDepends on #Nは fallback として扱う設計です。つまり既存実装の思想は「native dependency primary」です。一方で #233 は、本文側の
Depends On表記を[blocking]/[informative]で精緻化するだけです。これでは 本来 primary であるべき GitHub blocker 関係を使う運用改善になっていない。修正方針は「Markdown欄の強化」ではなく、「native dependency を SSOT、Markdown は mirror/fallback」と明記することです。2. 既に関連改善Issueはある。ただし、問題設定がズレている
「改善issueも見ていない」という指摘に対しては、関連Issueは存在します。ただし、どれも native blocker 利用の徹底ではなく、本文解析の誤検出対策に寄っています。
#223 は
milestone_rollup.shが Issue 本文全体から#NNNを拾ってしまう問題を扱い、## Depends Onセクション限定への絞り込みを提案しています。#265 は
check_blockers.shが条件文中のDepends on #14を fallback blocker と誤検出した問題を扱っています。PR #262 でも同じ false positive が実作業中に観測されています。native API は blocker 0 件だったのに、本文中の条件文を拾って native/fallback 不一致になった、という事象です。
したがって現状の改善群は「本文解析をどう安全にするか」に偏っており、「そもそも GitHub native blocker を運用SSOTにする」という改善Issueが不足しています。
3. 実装とドキュメントが既に不整合
issue-contract-review/SKILL.mdは、fallbackDepends on #Nparsing を「専用セクションの line-anchored 宣言文のみ」とし、Delivery Rule の条件文や歴史的注記は blocker と見なさない、と書いています。しかし実際の
check_blockers.shは最初に Issue 本文全体へgrep -oP '(?i)Depends on #\K[0-9]+'をかけています。これはSKILL.mdの規約と矛盾します。この状態で #233 だけを実装すると、テンプレート上は
[informative]と書いても、既存スクリプトが本文全体からDepends on #Nを拾う限り false positive は残ります。#233 は #265 と統合するか、少なくとも #265 を prerequisite にすべきです。4.
implementation.ymlに Depends On欄がまだ存在しない現在の
.github/ISSUE_TEMPLATE/implementation.ymlには、Machine-Readable Contract、Parent Issue、Parent Goal Ref、Current Validated Scope、Remaining Parent Gaps、Outcome、In Scope、Out of Scope、Acceptance Criteria、Verification Commands、Allowed Paths、Stop Conditions、Required Skills、Scope Delta が並んでいますが、Depends On専用欄は確認できません。つまり #233 の「Depends On 関連セクションにプレフィックス例を追加」は、既存欄への説明追記ではなく テンプレート構造の追加になり得ます。これは docs-only の軽微修正ではなく、Issue contract の producer/consumer 変更です。
review-issue/issue-contract-review/milestone-rollup/check_blockers.shがその欄をどう扱うかまで含めないと中途半端です。5.
docs/dev/issue-contract.mdが main 上で確認できなかった#233 の Allowed Paths には
docs/dev/issue-contract.mdが含まれていますが、今回mainから取得した限りでは存在を確認できませんでした。#233 は「既存文書への追記」なのか「新規SSOT作成」なのかを明示すべきです。現状のままだと、実装者が Stop Condition に当たる可能性があります。推奨する設計変更
#233 はこのまま実装せず、目的を次に差し替えるべきです。
新しい目的:
GitHub側では issue dependencies と sub-issues は別機能です。sub-issues は作業をタスク階層に分解するためのもので、依存関係は blocked by / blocking を表す別の Relationships 機能です。([GitHub Docs]2) ([GitHub Docs]1)
Issue分割案
A. #233 を置き換える policy Issue
タイトル案:
AC案:
docs/dev/github-ops.mdまたは新規docs/dev/issue-dependency-policy.mdに「blocking dependency の SSOT は GitHub native issue dependency」と明記されているDepends On本文欄は native dependency の mirror / fallback / informative reference であり、native と矛盾した場合は native を優先または human escalation とする、と定義されているimplementation.ymlにDepends On欄を追加する場合、blockingは native dependency 設定必須、informativeは blocker 判定対象外、と説明されているdocs/dev/issue-contract.mdを使うなら、新規作成であることが Allowed Paths / Outcome に明示されているB. #265 を blocker にして、実装不整合を先に直す
#265 は
check_blockers.shの false positive を直すIssueなので、#233より優先度が高いです。本文規約を増やす前に、スクリプトがSKILL.mdの規約どおり「line-anchored / dedicated section only」になっている必要があります。C. native dependency 運用の audit / migration Issue を新規に切る
既存Issueに Markdown
Depends Onが散在しているなら、次の作業が必要です。## Depends On/Depends on #Nを棚卸しblocked by/blockingに移すcheck_blockers.shが native/fallback 不一致を human escalation する方針を維持する#233 への具体的な差し戻しコメント案
最終判断
#233 は 単独ではマージ不適です。
正しい順序は次です。
check_blockers.shの本文全体 grep を修正するこの修正を入れないと、
[blocking]/[informative]を追加しても、根本的には「GitHubの blocker 機能を使わず、Markdown本文を擬似APIとしてパースする」運用が残ります。[-]process: Issue template の Depends On セクションに [blocking] / [informative] マーカーを導入する[/-][+]process: GitHub native issue dependencies を blocker SSOT とし Depends On 本文欄を fallback/mirror に降格するポリシーを docs に記述する[/+]squne121 commentedon May 23, 2026
Issue 本文 reframe_in_place 適用(issue-refinement-loop Step 4)
issue-reviewer からの blocking_issues (B1/B2/B3) および anchor_comment_feedback (final_classification: reframe_in_place) を受けて本文を書き換えました。
適用した変更
タイトル変更
process: Issue template の Depends On セクションに [blocking] / [informative] マーカーを導入するprocess: GitHub native issue dependencies を blocker SSOT とし Depends On 本文欄を fallback/mirror に降格するポリシーを docs に記述するOutcome の書き換え(B2 対応)
implementation.ymlへのDepends Onフィールド新規追加)に変更docs/dev/issue-contract.mdは新規作成である事実を明記implementation.ymlへのDepends On欄は新規フィールド追加である事実を明記In Scope の書き換え
docs/dev/github-ops.mdまたは新規docs/dev/issue-dependency-policy.mdと明示implementation.ymlへのDepends Onフィールドが新規追加であることを明記docs/dev/issue-contract.mdが新規作成であることを明記Out of Scope への追記
check_blockers.shスクリプト実装の修正(実装: check_blockers.sh の条件付き依存記述による false positive を改善する #265 が担当)を追記AC の書き換え(B1/B2 対応)
implementation.ymlへのDepends Onフィールド新規追加と説明VC の書き換え
Allowed Paths の更新
docs/dev/issue-dependency-policy.mdおよびdocs/dev/issue-contract.mdを追加Depends On セクションを新規追加(N1 対応)
Runtime Verification Applicability セクションを新規追加(B3 対応)
decision: not_applicable(docs/YAML 編集のみのため)変更区分
scope_impact: amend— Outcome / In Scope / AC / Allowed Paths を実質的に変更する reframe_in_placesqune121 commentedon May 23, 2026
issue-refinement-loop: 完了 (2026-05-23T15:28:13Z)
改善履歴
iteration 0 → 1 (reframe_in_place):
次アクション
issue-contract-reviewでのプリフライト確認を推奨。ただし [blocking] #265 がオープンのため、#265 クローズ後に着手すること。squne121 commentedon Aug 23, 2026
issue-refinement-loop: approved
OWNER directive(本セッションでの直接指示)に基づき、Issue #233 を
reframe_in_placeしました。変更点サマリ
blockedByを materialize する phase を issue-refinement-loop 等の Step 4 rewrite に必須化する方向性(実装配線自体は別 Issue の scope として明示的に Out of Scope とし、本 Issue の完了時点では新規 Issue を起票しない旨を明記)edit-issueskill のnative_relationships/issue_relationship.updatecontrolled executor を再利用し、新規の graph schema・ledger・receipt・mutation broker を作らない方針approved/ implementation-ready と扱わない、refinement loop 側のゲート方針Depends On本文欄は native dependency の mirror/fallback/informative reference であり SSOT ではない旨(実装: check_blockers.sh の条件付き依存記述による false positive を改善する #265 の改訂内容と整合)issue-contract-review(check_blockers.sh含む)は upstream relation の検証のみを行い、dependency materialization の mutation owner にはしないという責務分離(実装: check_blockers.sh の条件付き依存記述による false positive を改善する #265 の改訂内容と整合).github/ISSUE_TEMPLATE/implementation.ymlへのフィールド追加、および新規ファイルdocs/dev/issue-dependency-policy.md/docs/dev/issue-contract.mdの作成は Out of Scope へ移し、既存のdocs/dev/github-ops.mdへの追記に統合しました(native dependency が既に primary な機構として運用されている現状、および 実装: check_blockers.sh の条件付き依存記述による false positive を改善する #265 改訂内容との整合性のため)。## Required Design Referencesセクションを新規追加(implementation kind の必須セクション)。## Runtime Verification Applicabilityのrationale:をreason:に修正(kind-specific guard の必須フィールド)。$prefix)形式へ修正しました。既存セクションとの語彙衝突による baseline unexpected-pass(AC2 のnative_relationships/issue_relationship.updateが既存の 実装: edit-issue transaction に GitHub native 親子・依存関係の同期と readback を追加する #1883 節に既にヒットしていた)を検出・修正し、live readback/implementation-ready/mutation brokerへ差し替えました。Depends Onの[blocking] #265記述はそのまま維持しています(nativeblockedByの実際の materialize は別ステップで実行します)。最終 verdict
VERDICT: approve(NEXT_ACTION: proceed、blockers: 0、reviewed_body_sha256 一致)semantic_review_applicable: false(cross-contract change なし、checker gap なし、owner decision conflict なし)のためスキップbody_sha256
sha256:a5195deb11195333e04977b25f63b8db9bab09220553252437631ea885960c03Implementation handoff(
LOOP_HANDOFF_RESULT_V1)に関する注記issue-contract-review(現行実装)を本 Issue に対して実行すると、native dependency API 側に #233→#265 のblockedByが未登録であるため(本 Issue が扱う materialize phase 自体が未配線のため)、本文の[blocking] #265記述にもかかわらずstatus: goを返します。これは本 Issue の背景で確認された native/body 不一致そのものであり、docs/dev/github-ops.mdの既存ポリシー(「native dependency とDepends on #Nが不一致の場合」節)に従えば本来 human escalation 対象です。このため、本ループでは
LOOP_HANDOFF_RESULT_V1をimpl_readyとして出力せず、human_judgment_requiredとして記録します。nativeblockedBy(#233 → #265)の materialize が完了し、readback で native/body の一致が確認されるまで、impl-review-loopの自動起動を保留してください。残課題
blockedBy(process: GitHub native issue dependencies を blocker SSOT とし Depends On 本文欄を fallback/mirror に降格するポリシーを docs に記述する #233 → 実装: check_blockers.sh の条件付き依存記述による false positive を改善する #265)の実際の materialize(別ステップで control-plane が直接実行)。materialize 後は live readback で expected set({265})との一致を確認すること。issue-refinement-loopskill 本体への native materialize phase(Step 4 rewrite 必須化)の実装配線は、本 Issue の Out of Scope。将来必要と判断された時点で別 Issue として起票する。