Repository navigation
Open
Labels
agent/implementerAI implementer agentenhancementNew feature or requestphase/implementationImplementation phasetriage-requiredNeeds owner triage for priority decision
Description
Machine-Readable Contract
contract_schema_version: v1
issue_kind: implementation
parent_issue: none
goal_ref: outbound native_blocking を open-pr 停止理由と誤分類しない overlap route safety の修正
change_kind: codeParent Issue
なし(単独改善)
Parent Goal Ref
- Goal: 実装: scope-rollup-policy を停止系SSOTから実行優先順位を選ぶplanning SSOTへ再定義する #1675 の current overlap preflight が successor を示す outbound dependency を着手 blocker と誤認しない状態にする。
- Desired Destination: producer と最小限の producer 回帰テストだけを変更する実装 PR。
Current Validated Scope
.claude/skills/implement-issue/scripts/check_implementation_overlap.pyの route 分類で、current→successor のnative_blockingと current が predecessor に依存する関係を分離する。.claude/skills/implement-issue/tests/test_check_implementation_overlap_successor_dependency.pyに current→successor / predecessor→current / direction 欠落・未知値の fixture 回帰を追加する。
Remaining Parent Gaps
なし(#1675 / #1677 の本文・状態・GitHub dependency relationship は変更しない)。
Outcome
check_implementation_overlap.py と対応 pytest の成果物が完成し、candidate collision と open predecessor は従来どおり unsafe のまま、候補空・predecessor 無しで outbound native_blocking だけを持つ current は open-pr を不要に停止しない機械可読 route になり、direction 欠落・未知値は fail-closed で検出される状態。
In Scope
- producer の dependency/route classifier を、
blocking_predecessor・native_blocked_by・candidate collision を unsafe とする既存契約を維持したまま、outboundnative_blocking単独(candidates 空、predecessor 無し)を safe または同等に停止しない route として分類するよう修正する。 - direction の欠落・未知値を安全側に倒さず fail-closed の machine-readable route/error として出力する。
- current→successor、predecessor→current、candidate collision、direction 欠落・未知値を表す最小 fixture と producer 回帰テストを追加・更新する。
Out of Scope
.claude/skills/implement-issue/配下の producer と指定テスト以外の変更。open-prconsumer の route gate、waiver、依存解決ロジックの変更。- GitHub dependency relationship の作成・削除・変更。
- Issue 実装: scope-rollup-policy を停止系SSOTから実行優先順位を選ぶplanning SSOTへ再定義する #1675 / 実装: issue-refinement-loop planner に execution_priority と relation_summary を追加する #1677 の本文、状態、ラベル、コメントの変更。
- Issue 実装: overlap preflight の native_blocking 方向を機械可読に明示する #1697 の direction field 契約を置き換えること(本 Issue は route safety 分類のみを扱う)。
Acceptance Criteria
- AC1:
blocking_predecessorまたはnative_blocked_byが存在する current、もしくは candidate collision がある場合、route は従来どおり unsafe(wait_for_predecessor/human_review_required/duplicate等)であり、safe route へ誤分類しない。 - AC2: candidates が空で predecessor が無く、current の outbound
native_blockingだけが存在する場合、route は safe または open-pr を不要に停止しない機械可読値(proceed/proceed_with_evidence等)になる。 - AC3: direction field が欠落または未知値の場合、route は fail-closed の
human_review_required(または明示された runtime error)となり、safe route にならない。 - AC4: current→successor と predecessor→current の fixtures/tests、および candidate collision fixture が追加され、各方向の route 判定が pytest で再現される。
Verification Commands
# AC1
$ uv run --locked pytest .claude/skills/implement-issue/tests/test_check_implementation_overlap_successor_dependency.py -k "predecessor or collision"
# AC2
$ uv run --locked pytest .claude/skills/implement-issue/tests/test_check_implementation_overlap_successor_dependency.py -k "outbound or successor"
# AC3
$ uv run --locked pytest .claude/skills/implement-issue/tests/test_check_implementation_overlap_successor_dependency.py -k "direction or unknown or missing"
# AC4
$ uv run --locked pytest .claude/skills/implement-issue/tests/test_check_implementation_overlap_successor_dependency.pyAllowed Paths
.claude/skills/implement-issue/scripts/check_implementation_overlap.py.claude/skills/implement-issue/tests/test_check_implementation_overlap_successor_dependency.py
Stop Conditions
- Allowed Paths 外の変更が必要と判明した場合
- In Scope の固定契約(キー集合・スキーマ・型定義)の変更が必要になった場合
- 新規 Issue の起票が必要と判断した場合(スコープ分割が発生する場合)
- 後続 Phase / 別スコープへの波及が判明した場合
- nested SubAgent delegation が必要になった場合
- 外部サービス利用・権限昇格・既存テスト大規模改変が必要になった場合
- GitHub dependency relationship または open-pr consumer の変更が必要になった場合
Required Skills
- Python pytest
Required Design References
.claude/skills/implement-issue/scripts/check_implementation_overlap.py.claude/skills/implement-issue/tests/test_check_implementation_overlap_successor_dependency.pydocs/dev/workflow.md
Runtime Verification Applicability
- decision: not_applicable
- reason: producer の JSON route と pytest fixture で完結し、GitHub dependency relationship や外部 runtime を変更しない。
Delivery Rule
- 1 Issue = 1 PR。
- dedicated worktree を使用し、Draft PR を既定とする。
- Allowed Paths の差分と Verification Commands の結果を PR 本文および Issue comment に記録する。
Notes for Reviewer
- 実装: overlap preflight の native_blocking 方向を機械可読に明示する #1697 は native_blocking の direction field を機械可読化する Issue であり、route safety の分類変更を Out of Scope としているため本 Issue と Outcome は重複しない。
- Scope Collision (C1) の非重複理由: related_issue=実装: overlap preflight の native_blocking 方向を機械可読に明示する #1697, 実装: implement-issue / open-pr の production path から peer OPEN Issue overlap preflight を撤去する #1679, 実装: overlap preflight の共有スキーマ誤検知を防止する #1652, 改善: implement-issue SKILL に Allowed Paths 外 consistency 更新の明示ルールと Schema Consumer Inventory iteration 更新ガイドラインを追加 #239 は producer または同一テストパスを共有するが、実装: overlap preflight の native_blocking 方向を機械可読に明示する #1697 は direction field 契約、実装: implement-issue / open-pr の production path から peer OPEN Issue overlap preflight を撤去する #1679 は全件 overlap 検査撤去、実装: overlap preflight の共有スキーマ誤検知を防止する #1652 は共有スキーマ誤検知、改善: implement-issue SKILL に Allowed Paths 外 consistency 更新の明示ルールと Schema Consumer Inventory iteration 更新ガイドラインを追加 #239 は運用ガイドラインであり、本 Issue は outbound-only route safety の誤停止修正に限定する。実装は既存 Issue の merge 状態を確認して直列化する。
- 実装: scope-rollup-policy を停止系SSOTから実行優先順位を選ぶplanning SSOTへ再定義する #1675/実装: issue-refinement-loop planner に execution_priority と relation_summary を追加する #1677 の再現事例では、current が successor を止める outbound 情報だけで着手 blocker と誤認されていた。actual predecessor、native blocked-by、candidate collision は安全側へ緩和しない。
- producer と最小テストのみを変更し、GitHub dependency relationship は読み取り専用のまま維持する。
Metadata
Metadata
Assignees
Labels
agent/implementerAI implementer agentenhancementNew feature or requestphase/implementationImplementation phasetriage-requiredNeeds owner triage for priority decision
Activity
squne121 commentedon Jul 23, 2026
Contract Review Result