Skip to content

実装: overlap_preflight producer に repository binding と native dependency (blockedBy/blocking) 取得を追加する #1462

Closed

Description

@squne121

Machine-Readable Contract

contract_schema_version: v1
issue_kind: implementation
parent_issue: "none"
goal_ref: "check_implementation_overlap.py が生成する overlap_preflight evidence に repository binding(canonicalize 済み、必須)を追加し、GitHub native issue dependency(blockedBy / blocking)を公式 API 経路(既定: REST issue-dependencies、必要なら GraphQL 併用)で完全ページ取得する"
change_kind: code

Parent Issue

なし(単独 follow-up。起点は #1458 の OWNER レビュー指摘)

Parent Goal Ref

  • Goal: なし(単独 follow-up issue)
  • Desired Destination: なし

Current Validated Scope

  • .claude/skills/implement-issue/scripts/check_implementation_overlap.py の evidence 構築ロジック(repository field 追加・canonicalize・hash 計算への統合)
  • 同スクリプトの issue fetch 経路(fetch_current_issue / fetch_implementation_candidates / fetch_predecessor_issue)に、native issue dependency(blockedBy / blocking)を repository identity 付きで完全取得する経路を追加する。既定実装は GitHub REST issue-dependencies endpoint(GET /repos/{owner}/{repo}/issues/{issue_number}/dependencies/blocked_by 等)とし、GraphQL を用いる場合は blockedBy/blocking フィールドと pageInfo による全ページ取得を必須とする
  • .claude/skills/implement-issue/tests/test_check_implementation_overlap.py / tests/agent_ops/test_implement_issue_overlap_policy.py への既存テスト整合(後方互換)
  • .claude/skills/implement-issue/tests/test_check_implementation_overlap_repository_binding.py(新規)/ .claude/skills/implement-issue/tests/test_check_implementation_overlap_native_dependencies.py(新規)への新規テスト追加

Remaining Parent Gaps

Outcome

.claude/skills/implement-issue/scripts/check_implementation_overlap.py が生成する IMPLEMENT_SCOPE_COLLISION_PREFLIGHT_V1 evidence payload について、次の状態が成立している。

  • online / dry-run の両経路で canonical な repository: owner/name field が必須で存在し、decision_inputs_sha256 / evidence_sha256 の計算対象に組み込まれている(欠落時は evidence を出力せず runtime_error に倒す)。
  • 大文字小文字や記法揺れのある --repo 入力が canonical value(gh api repos/{owner}/{repo} の full_name 相当)へ正規化されてから evidence に書き込まれる。
  • GitHub native issue dependency(blockedBy / blocking)を、完全性を検証できる公式 API 経路(既定は REST issue-dependencies endpoint、GraphQL を使う場合は pageInfo による全ページ取得必須)で取得し、repository を含む {repository, number, state} の typed record として保持し、blockedBy と blocking を混同せず別々に扱う。
  • 新規・更新 pytest が全て PASS している。

本 Issue のスコープ外(Out of Scope 参照): consumer 側(open_pr.py 等)が repository field を実際に強制検証する cross-repo gate は本 Issue には含まれない。producer evidence が repository-bound になる状態までが本 Issue の完了条件であり、consumer enforcement は別 Issue が完了するまで未解消のまま残る。

Background

Issue #1458(実装: open-pr の validator に overlap_preflight evidence の hard gate を追加する)に対する OWNER レビュー(REQUEST_CHANGES, squne121, https://github.com/squne121/loop-protocol/issues/1458#issuecomment-4945284437)で 5 件の Blocker が指摘され、codebase-investigator SubAgent による fact-check で全件が現状コードに対して正確であることを確認した。うち Blocker 4 と Blocker 5 は .claude/skills/implement-issue/scripts/check_implementation_overlap.py(evidence producer script)の修正を要求しており、これは #1458 の Allowed Paths(.claude/skills/open-pr/**)の外側にある別 skill ディレクトリである。issue-refinement-loop の運用ポリシー上、レビュー中に Issue の Allowed Paths を別 skill / アーキテクチャ層へ拡張することは scope-change signal として扱い、同一 Issue に黙って畳み込まず別 Issue に分離する必要がある。そのため本 Issue として切り出し、#1458 側は本 Issue を dependency として参照した上で、#1458 自身の scope 内で可能な修正のみを進める。

本 Issue は初稿後、OWNER による REQUEST_CHANGES レビュー(#1462 (comment) )を受けて issue-refinement-loop で改訂されている。 改訂の主な理由は次の 4 点(原文 Blocker 1〜4)。

  1. 初稿は native dependency 取得手段を gh api graphql 必須としていたが、GitHub は専用のバージョン付き REST API(GET /repos/{owner}/{repo}/issues/{issue_number}/dependencies/blocked_by 等)を提供しており、GraphQL 必須という技術選定は不適切だった。REST を既定、GraphQL は併用選択肢とする。
  2. 初稿は offline(dry-run)経路で repository が必須になっておらず、AC1(repository 必須)と AC6(既存テスト後方互換)が同時に満たせない矛盾があった。online / dry-run 両方で --repo owner/name を必須化し、欠落時は runtime_error に倒す。
  3. 初稿の AC5 は「非空の dependency number が返る」ことしか要求しておらず、先頭ページのみ取得する実装でも PASS してしまう。全ページ取得の完全性を検証する pagination boundary test を追加する。
  4. 初稿の _extract_native_dependency_numbers は依存先を単なる issue number に潰しており、repository identity と blockedBy/blocking の向きを区別していなかった。{repository, number, state} の typed record として保持し、同一 repository 制約を検証してから既存 resolver へ渡す設計に変更する。

Problem 1(Blocker 4): evidence に repository binding が存在しない

IMPLEMENT_SCOPE_COLLISION_PREFLIGHT_V1 evidence schema の payload(check_implementation_overlap.py のおおよそ 697〜735 行目、evidence 構築コード。実装時に正確な行番号を再確認すること)には repository: owner/name field がどこにも存在しない。このため、evidence の消費側(例えば #1458 で計画されている open-pr の overlap_preflight gate)は、ある repo/issue-number 向けに生成された evidence が別 repo の同一 issue-number に誤って再利用されていないかを検出できない。

現在の dry-run(offline)経路は --repo を必須にしておらず、repo = args.repo として None を許容する。既存テストの CLI 呼び出しヘルパーも --repo を一度も渡していない。このため「online / dry-run の両方で repository を必須にする」契約と「既存テストが後方互換のまま PASS する」契約は、既存テストヘルパー自体に --repo squne121/loop-protocol 相当の引数を追加しない限り両立しない。

修正方針: online / dry-run の両方の呼び出し経路で --repo owner/name を必須引数にする。repository 値は gh api repos/{owner}/{repo} の full_name(または同等の正規化規則)で canonicalize してから evidence payload(body dict)のトップレベルと decision_payload(decision_inputs_sha256 の計算対象)の両方に組み込む。repository が取得不能な場合は evidence を出力せず runtime_error に倒す。既存 evidence file の consumer が存在する場合は後方互換性を保つか、schema バージョン調整を明記する(Out of Scope / Notes for Reviewer の migration 方針を参照)。

Problem 2(Blocker 1・Blocker 3・Blocker 5、改訂済み — 初稿の GraphQL 必須方針を撤回): native GitHub dependency(blockedBy/blocking)が実際には取得されていない

スクリプトには fetch した issue データから blockedBy / blocking を読み取るパースコード(_extract_native_dependency_numbers、約 266 行目、_resolve_dependencies 内での呼び出し約 309 行目)が存在するが、実際に issue データを取得している gh issue view / gh issue list --json <fields> の呼び出し(fetch_current_issue 約 447 行目、fetch_implementation_candidates 約 469 行目、fetch_predecessor_issue 約 491 行目)はいずれも number,title,body,labels,updatedAt,url[,state] のみを要求しており、blockedBy / blocking は field list に一度も含まれていない。結果として、この dependency-parsing コードは現状常に空・欠落データしか見ておらず、native issue dependency は preflight の判定に一切反映されていない。

初稿からの訂正(OWNER レビューを反映): 初稿は取得手段を gh api graphql(trackedIssues / trackedInIssues 等の未確定フィールド名)に限定していたが、これは技術選定として不適切である。GitHub は native issue dependency 用に専用のバージョン付き REST API を提供している。

GET /repos/{owner}/{repo}/issues/{issue_number}/dependencies/blocked_by
GET /repos/{owner}/{repo}/issues/{issue_number}/dependencies/blocking

このため、既定の実装方針は REST issue-dependencies endpoint(gh api --paginate --slurp "repos/{owner}/{repo}/issues/{issue_number}/dependencies/blocked_by?per_page=100" 相当)を使うハイブリッド構成とする。既存の gh issue view / gh issue list --json は本文・ラベル・候補一覧取得に残し、native dependency だけ REST(または blockedBy/blocking/pageInfo を持つ GraphQL クエリ)で補完する。取得は 1 ページに限定せず、全ページを取得し、API 失敗・ページ欠落・レスポンス形状不正を「依存なし」として黙って握りつぶさない(完全性を証明できない場合は fail-closed にする)。

取得した dependency は、依存先を単なる issue number に潰さず、{repository, number, state} の typed record として保持する。同一 repository 制約を検証してから既存の number-based resolver / classifier へ接続する。blockedBy(current issue の停止理由になり得る)と blocking(current issue が後続を止めているだけで、current issue 自身の停止理由にはならない)は別々に扱い、混同しない。

両問題は同じ fetch 関数群・同じ evidence schema version に触れるため、まとめて修正するのが妥当と考えられる。

In Scope

  • .claude/skills/implement-issue/scripts/check_implementation_overlap.py の evidence 構築コード(_build_evidence 相当の関数)に、canonicalize 済み repository: owner/name field を追加し、decision_inputs_sha256 / evidence_sha256 の計算対象に含める
  • online / dry-run 両方の呼び出し経路で --repo owner/name を必須引数にし、欠落時は runtime_error に倒す
  • repository の canonicalization ロジック(gh api repos/{owner}/{repo} の full_name 参照、または固定の正規化規則)を追加する
  • 同スクリプトの fetch_current_issue / fetch_implementation_candidates / fetch_predecessor_issue(または同等の fetch 経路)に、native issue dependency(blockedBy / blocking)を repository identity 付きで取得する経路を追加する。既定は REST issue-dependencies endpoint(gh api --paginate によるハイブリッド構成)とし、GraphQL を使う場合は blockedBy/blocking と pageInfo による全ページ取得を必須とする
  • 取得した dependency を全ページ取得し、API 失敗・ページ欠落・レスポンス形状不正を「依存なし」として扱わない(完全性を証明できなければ fail-closed にする)
  • _extract_native_dependency_numbers / _resolve_dependencies を、{repository, number, state} の typed record を受け取り、同一 repository 制約を検証してから既存ロジックへ接続する形に調整する。blockedBy と blocking を別々に扱う
  • .claude/skills/implement-issue/tests/test_check_implementation_overlap.py に、repository field の必須化・canonicalization・hash 計算への統合を検証する更新テストを追加する
  • .claude/skills/implement-issue/tests/test_check_implementation_overlap_repository_binding.py(新規ファイル)に、repository tamper 検出・canonicalization・offline/online 必須化のテストを追加する
  • .claude/skills/implement-issue/tests/test_check_implementation_overlap_native_dependencies.py(新規ファイル)に、REST/GraphQL fixture をモックした native dependency 取得・pagination 境界(50/51件、100/101件)・blockedBy/blocking 方向検証・repository 不一致時の fail-closed 挙動のテストを追加する
  • tests/agent_ops/test_implement_issue_overlap_policy.py の既存テストとの後方互換性を維持する
  • 既存 evidence consumer との後方互換性、または schema バージョン調整の方針を明記する(Notes for Reviewer 参照)
  • native dependency 取得の read-only smoke 検証(Runtime Verification Applicability 参照)

Out of Scope

  • .claude/skills/open-pr/scripts/open_pr.py(実装: open-pr の validator に overlap_preflight evidence の hard gate を追加する #1458 側、Allowed Paths が異なるため本 Issue では変更しない)。fresh["repository"] == repo を強制する consumer 側 cross-repo gate は本 Issue に含まれず、別 Issue(本 Issue 完了後に issue-refinement-loop の follow-up materialization gate で起票判断)の scope とする
  • check_implementation_overlap.py の Allowed Paths collision scoring ロジック自体の再設計(本 Issue は evidence schema 拡張と fetch 経路修正のみ)
  • check_issue_overlap.py(create-issue skill 側の別スクリプト)への同種変更
  • native dependency 取得結果を preflight の route 判定(_classify)へ新たに組み込むロジック変更(データを正しく取得できる状態にすることが本 Issue の範囲であり、取得結果を判定ロジックへどう反映するかの設計変更は別途判断・別 Issue の可能性がある。ただし _resolve_dependencies が既存の空データ処理から実データ処理へ移行するために必要な最小限の調整は In Scope に含む)

Acceptance Criteria

  • AC1: online に加え dry-run(offline)経路でも --repo owner/name が必須引数になっており、欠落時に check_implementation_overlap.py が OverlapRuntimeError("--repo is required for dry-run" 相当のメッセージ)で終了する
  • AC2: check_implementation_overlap.py が生成する evidence payload(body dict)のトップレベルに、canonicalize 済み repository field が含まれる
  • AC3: repository field の値が decision_payload(decision_inputs_sha256 の計算対象)にも含まれ、repository を変更すると decision_inputs_sha256 が変化する
  • AC4: repository field を改ざんした fixture に対し、evidence_sha256 の再計算結果が元の evidence_sha256 と一致しない(tamper 検出)ことを検証する新規 pytest が PASS する
  • AC5: 大文字小文字や記法揺れのある --repo 入力(例: squne121/LOOP-PROTOCOL)が canonical value へ正規化されて evidence に書き込まれることを検証する新規 pytest が PASS する
  • AC6: native issue dependency(blockedBy / blocking)取得が GitHub の公式 API 経路(既定: REST issue-dependencies endpoint。GraphQL を使う場合は blockedBy/blocking/pageInfo を含むクエリ)で行われ、gh issue view --json / gh issue list --json に存在しないフィールド名を指定する既知失敗パターンを使用しない
  • AC7: REST/GraphQL レスポンス fixture をモックした pytest で、native dependency 取得処理が {repository, number, state} の typed record を含む非空の dependency リストを実際に返すことを検証する新規 pytest が PASS する
  • AC8: 50件/51件・100件/101件の pagination 境界を持つ fixture に対し、全ページ取得(欠落なし)が行われることを検証する新規 pytest が PASS する
  • AC9: blockedBy の OPEN predecessor / CLOSED predecessor、blocking のみのケース、両方向が存在するケース、repository 不一致ケース、duplicate dependency ケース、API レスポンスに number/repository/state が欠けるケースをそれぞれ検証する新規 pytest が PASS する(blocking は current issue の停止理由として扱わない)
  • AC10: 既存の .claude/skills/implement-issue/tests/test_check_implementation_overlap.py および tests/agent_ops/test_implement_issue_overlap_policy.py の既存テストが全て PASS する(後方互換性の維持。既存テストヘルパーへの --repo squne121/loop-protocol 相当の引数追加を含む)
  • AC11: 実際の squne121/loop-protocol リポジトリに対し、native dependency 取得の read-only smoke 検証を行う。gh auth status が利用できない環境では SKIP(exit 77)とし、fallback として fixture ベースの検証(AC7)で代替する

Runtime Verification Applicability

decision: immediate
reason: >-
  初稿は fixture-only の unit test で検証が完結するとしていたが、OWNER レビュー(Major finding 2)の
  指摘どおり、既存 native dependency テストはすべて offline fixture で `blockedBy` を直接埋め込んでおり、
  実際の online fetch がそのフィールドを取得していなかった不具合を検出できなかった前例がある(mock は
  通るが live 経路が壊れている典型例)。本 Issue で再び mock のみを受け入れると同じ再発条件が残るため、
  実リポジトリに対する read-only API smoke test を必須とする。
applicable_acs:
  - AC11
execution_environment:
  cli_tools:
    - gh
    - uv
  auth_required: true
  network_required: true
skip_conditions:
  - "`gh auth status` が失敗する環境では SKIP(exit 77)とし、fixture ベースの AC7 検証で代替する"
fallback_policy:
  fallback_success_is_pass: false
  notes: "fixture fallback(AC7)の成功を AC11 の PASS に変換しない。AC11 は live smoke test 自体の成否のみを PASS/FAIL とする"
artifact_requirements:
  - "live smoke test の pytest output(stdout/stderr)"
  - "取得した dependency 件数・pagination 完全性のログ"

Verification Commands

# AC1
$ rg -n '"--repo is required for dry-run"' .claude/skills/implement-issue/scripts/check_implementation_overlap.py

# AC2
$ rg -n '"repository"' .claude/skills/implement-issue/scripts/check_implementation_overlap.py

# AC3
# baseline-expect: pass
$ rg -n "decision_payload" .claude/skills/implement-issue/scripts/check_implementation_overlap.py

# AC4
$ uv run pytest .claude/skills/implement-issue/tests/test_check_implementation_overlap_repository_binding.py -k tamper -q

# AC5
$ uv run pytest .claude/skills/implement-issue/tests/test_check_implementation_overlap_repository_binding.py -k canonicaliz -q

# AC6
$ rg -n '"--json", "number,title,body,labels,updatedAt,url,blockedBy,blocking"' .claude/skills/implement-issue/scripts/check_implementation_overlap.py

# AC7
$ uv run pytest .claude/skills/implement-issue/tests/test_check_implementation_overlap_native_dependencies.py -k typed_record -q

# AC8
$ uv run pytest .claude/skills/implement-issue/tests/test_check_implementation_overlap_native_dependencies.py -k pagination_boundary -q

# AC9
$ uv run pytest .claude/skills/implement-issue/tests/test_check_implementation_overlap_native_dependencies.py -k direction_and_repository -q

# AC10
$ uv run pytest .claude/skills/implement-issue/tests/test_check_implementation_overlap.py tests/agent_ops/test_implement_issue_overlap_policy.py -q

# AC11
$ uv run pytest .claude/skills/implement-issue/tests/test_check_implementation_overlap_native_dependencies.py -k live_smoke_read_only -q

Allowed Paths

  • .claude/skills/implement-issue/scripts/check_implementation_overlap.py
  • .claude/skills/implement-issue/tests/test_check_implementation_overlap.py
  • .claude/skills/implement-issue/tests/test_check_implementation_overlap_repository_binding.py
  • .claude/skills/implement-issue/tests/test_check_implementation_overlap_native_dependencies.py
  • tests/agent_ops/test_implement_issue_overlap_policy.py

Stop Conditions

  • Allowed Paths 外の変更が必要と判明した場合
  • In Scope の固定契約(キー集合・スキーマ・型定義)の変更が必要になった場合
  • 新規 Issue の起票が必要と判断した場合(スコープ分割が発生する場合)
  • 後続 Phase / 別スコープへの波及が判明した場合
  • nested SubAgent delegation が必要になった場合
  • 外部サービス利用・権限昇格・既存テスト大規模改変が必要になった場合
  • 正しい REST / GraphQL レスポンス形状の調査が完了せず、実装方針が確定できない場合

Required Skills

  • Python 3
  • Bash
  • GitHub REST API / GraphQL API(gh api の利用に必要な知識のみ。ワークフロー skill は記載しない)

Required Design References

Scope Delta(任意)

初稿からの Allowed Paths 拡張: .claude/skills/implement-issue/tests/test_check_implementation_overlap_repository_binding.py と .claude/skills/implement-issue/tests/test_check_implementation_overlap_native_dependencies.py(いずれも新規ファイル)を追加した。理由: docs/dev/dor.md の pytest exit code semantics(既存ファイルへの新規 node-id 追加は existing_file_missing_node_id_noncanonical として block されるため、baseline で expected_baseline_fail 判定を得るには「未作成の specific test file」を参照する必要がある)に従うため。追加先は既存 Allowed Paths と同一ディレクトリ(.claude/skills/implement-issue/tests/)内であり、アーキテクチャ層の変更は伴わない。

Delivery Rule(配信ルール)

  • 1 Issue = 1 PR で完結する
  • worktree: .claude/worktrees/issue-<N>-overlap-preflight-producer-repo-binding-native-deps
  • Draft PR を既定とする

Notes for Reviewer(レビュアー向け補足)

Activity

  1. squne121 commented on Jul 11, 2026

    @squne121
    OwnerAuthor

    判定

    REQUEST_CHANGES — 現状の Issue 契約では実装着手不可です。

    問題の切り出し自体は妥当です。#1458/PR #1467 が残した producer 側の欠陥を正しく対象にしています。ただし、現在の仕様には 4件の Blocker があり、このまま実装すると「テストは通るが、依存関係を欠落・切り詰め・逆向き解釈する」実装になり得ます。

    現時点で #1462 にコメントはなく、直接対応する実装 PR も見つかりません。マージ済み PR #1467 が follow-up として参照している段階です。

    Blocker 1: gh api graphql を必須にする技術選定が不適切

    Issue は AC5 で GraphQL 呼び出しを必須化し、フィールド候補として trackedIssues / trackedInIssues を挙げています。しかし、現在の GitHub CLI 実装が issue dependency 用に生成している GraphQL フィールドは、明確に次です。

    blockedBy(first: 50) {
      nodes { id number title url state repository { nameWithOwner } }
      totalCount
    }
    
    blocking(first: 50) {
      nodes { id number title url state repository { nameWithOwner } }
      totalCount
    }

    現在の公式 CLI マニュアルも blockedBy / blocking を JSON フィールドとして掲載しています。#1462 に記載されたローカルの gh v2.88.1 が未対応なのは、GitHub のデータモデルではなく CLI バージョンの互換性問題です。([GitHub CLI]1)

    さらに、GitHub は現在、専用のバージョン付き REST API を提供しています。

    GET /repos/{owner}/{repo}/issues/{issue_number}/dependencies/blocked_by
    GET /repos/{owner}/{repo}/issues/{issue_number}/dependencies/blocking
    

    このため「旧 CLI の --json が未対応 → GraphQL 必須」という結論は成立しません。REST の方が関係の意味、API バージョン、ページング契約が明示されています。([GitHub Docs]2)

    必須修正

    AC5 を「GraphQL 必須」から次へ変更すべきです。

    GitHub native issue dependency を、完全性を検証できる公式 API 経路で取得する。既定実装は REST issue-dependencies endpoint とし、GraphQL を使う場合は blockedBy / blocking、pageInfo、全ページ取得を必須とする。

    既存の gh issue view/list は issue 本文・ラベル・候補一覧取得に残し、native dependency だけ REST で補完するハイブリッド構成が最小変更です。


    Blocker 2: offline 経路では repository を生成できない

    現在の dry-run 経路は --repo を必須にしておらず、そのまま repo = args.repo として None を許容します。

    既存テストの _run_cli() も --repo を一度も渡していません。

    したがって、次の2条件は同時に満たせません。

    • AC1: evidence に必ず repository: owner/name がある
    • AC6: 既存テストが後方互換のまま PASS する

    repository: null や空文字を許せば repository binding になりません。fixture 名やカレントディレクトリから暗黙推定するのも非決定的です。

    必須修正

    次のいずれかを契約として固定してください。

    1. online / dry-run の両方で --repo owner/name を必須にする
    2. offline JSON に repository を必須フィールドとして持たせ、CLI 引数との一致を検証する

    推奨は 1 です。全テストヘルパーに次を追加すれば済みます。

    --repo squne121/loop-protocol

    repository が取得不能な場合は evidence を出力せず runtime_error に倒すべきです。


    Blocker 3: dependency の完全取得を証明できない

    Issue の AC5 は「非空の dependency number を返す fixture」が通ることしか要求していません。これでは先頭ページだけ取得する実装も PASS します。

    GitHub CLI の現在の GraphQL 実装は first:50 ですが、pageInfo を取得していません。これをそのまま模倣すると51件目以降を黙って欠落させます。

    REST endpoint もデフォルト30件、最大100件のページング方式です。([GitHub Docs]2) gh api には全ページ取得用の --paginate と、ページを配列として返す --slurp があります。GraphQL のページングではクエリ内に pageInfo { hasNextPage endCursor } が必要です。([GitHub CLI]3)

    必須修正

    • 全ページを取得する
    • API 失敗、ページ欠落、レスポンス形状不正を「依存なし」と扱わない
    • evidence に dependency source の完全性を記録する
    • 完全性を証明できなければ fail-closed にする

    例えば REST なら次の構成です。

    gh api --paginate --slurp \
      -H "Accept: application/vnd.github+json" \
      -H "X-GitHub-Api-Version: 2026-03-10" \
      "repos/${OWNER}/${REPO}/issues/${ISSUE_NUMBER}/dependencies/blocked_by?per_page=100" \
      | jq 'add'

    50件、51件、100件、101件の境界テストが必要です。


    Blocker 4: repository identity と関係の向きを捨てている

    現在の _extract_native_dependency_numbers() は、依存先を単なる issue number に潰しています。

    しかし、GitHub CLI が返す linked issue には repository.nameWithOwner が含まれ、REST レスポンスにも repository_url が含まれます。 ([GitHub Docs]2)

    同一 repository の依存だけを許す設計であっても、repository identity を捨ててから同一 repository と仮定するのは順序が逆です。まず {repository, number} として保持し、その後に同一 repository 制約を検証する必要があります。

    また、現在のロジックが blocking 判定へ統合しているのは blockedBy だけです。blocking は取得・解析しても current issue の停止理由にはなりません。

    AC5 の「非空になった」という検証だけでは、次の誤実装も通ります。

    • blocking を blockedBy として扱う
    • current issue が後続を block しているだけなのに停止する
    • 別 repository の同一 issue number を同一 predecessor とみなす

    必須テスト

    • blockedBy の OPEN predecessor → wait_for_predecessor
    • blockedBy の CLOSED predecessor → C2a
    • blocking のみ → current issue を停止しない
    • 両方向が存在 → 混同しない
    • repository 不一致 → fail-closed または明示的な cross-repo 処理
    • duplicate dependency → canonical dedupe
    • API レスポンスに number / repository / state が欠ける → fail-closed

    Major findings

    1. #1462 単体では cross-repo gate は閉じない

    マージ済み consumer の open_pr.py が安全条件として確認している binding は current_issue.number == linked_issue までです。repository は検証していません。

    #1462 が producer にフィールドを追加しても、consumer が読まなければ cross-repo 誤用は阻止されません。PR #1467 自身も repository field を #1462 の follow-up として明記しています。

    Issue の Outcome は次のように限定すべきです。

    producer evidence が repository-bound になる。consumer enforcement は別 Issue が完了するまで未解消。

    併せて、open_pr.py で fresh["repository"] == repo を強制する follow-up Issue を #1462 の完了条件として起票・リンクすべきです。

    2. Runtime Verification を not_applicable にしてはいけない

    既存 native dependency テストはすべて offline fixture で、fixture 自体に blockedBy を直接埋め込んでいます。

    一方、実際の online fetch はそのフィールドを取得していませんでした。

    つまり今回のバグは、mock が通って live integration が壊れていた典型例です。この Issue で再び mock のみを受け入れるのは再発条件をそのまま残します。

    Runtime Verification は次へ変更すべきです。

    decision: applicable
    mode: read_only

    PR作成や dependency 作成は不要ですが、実リポジトリに対する read-only API smoke test は必須です。

    3. schema migration の結論がない

    repository を decision_inputs_sha256 に加えると、producer 更新前の evidence と更新後の fresh evidence は必ず drift します。これは妥当な挙動ですが、「後方互換性を保つか schema bump を判断する」では実装者ごとに結論が変わります。

    このスコープなら、次を明記するのが妥当です。

    • schema 名は V1 のまま
    • repository は additive required field
    • producer 更新前に生成された evidence は再生成必須
    • consumer は unknown field を受容するが、次の follow-up で repository equality を強制する
    • migration allowlist は設けない

    4. repository 名の canonicalization が未定義

    REST の owner / repo は大文字小文字を区別しません。([GitHub Docs]2) 一方、SHA-256 の入力文字列は区別します。

    そのため、入力された生の --repo をそのまま hash すると、同じ repository に対する次の入力が別 digest になります。

    squne121/loop-protocol
    squne121/LOOP-PROTOCOL
    

    gh api repos/{owner}/{repo} の full_name を正本にするか、少なくとも正規化規則を固定すべきです。可能なら node_id も evidence に保持すると rename 監査が容易です。


    推奨実装

    既存コードへの影響を抑えるなら、次の構成が適切です。

    gh issue view/list
      └─ 本文、ラベル、候補一覧を取得(既存経路を維持)
    
    gh api REST issue-dependencies
      ├─ current issue の blocked_by を全ページ取得
      └─ blocking は診断 evidence が必要な場合のみ取得
    
    dependency normalizer
      └─ {repository, number, state, url, body} の typed record に正規化
    
    existing resolver/classifier
      └─ same-repository 検証後に既存の number-based ロジックへ接続
    

    Evidence は既存フィールドを壊さず、追加情報を保持します。

    {
      "schema": "IMPLEMENT_SCOPE_COLLISION_PREFLIGHT_V1",
      "repository": "squne121/loop-protocol",
      "dependency_resolution": {
        "blocked_by_refs": ["1450"],
        "blocking_predecessor": {
          "repository": "squne121/loop-protocol",
          "issue_number": 1450,
          "state": "OPEN"
        },
        "native_dependencies": {
          "blocked_by": [
            {
              "repository": "squne121/loop-protocol",
              "number": 1450,
              "state": "OPEN"
            }
          ],
          "blocking": [],
          "complete": true,
          "transport": "rest"
        },
        "closed_predecessors": [],
        "unresolved_refs": []
      }
    }

    修正版 Acceptance Criteria

    1. online / dry-run の両経路で canonical な repository が必須であり、欠落時は runtime_error。
    2. repository が両 SHA の計算対象に含まれる。
    3. repository の大文字小文字・alias 入力が canonical value へ正規化される。
    4. API transport は GraphQL に固定せず、公式 dependency API から完全なデータを取得する。
    5. 全ページ取得を行い、途中失敗や形状不正を空配列として扱わない。
    6. dependency は {repository, number, state} として保持し、同一 repository 制約を検証してから既存 resolver へ渡す。
    7. blockedBy と blocking の向きを別々に検証する。
    8. 50/51件または100/101件の pagination boundary test が PASS する。
    9. read-only live API smoke verification が PASS する。
    10. consumer が repository を強制検証する後続 Issue がリンクされる。
    11. 更新前 evidence は再生成が必要であることを migration 契約に明記する。
    12. AC4 の rg による否定確認ではなく、mock subprocess の実引数を直接 assertion する。

    現状の #1462 は、問題認識は正しいものの、API transport・offline contract・完全性・identity の4点が未確定です。特に「GraphQL fixture が非空になった」だけでは、本番で dependency を欠落させる false green を再び作ります。

  2. squne121 commented on Jul 11, 2026

    @squne121
    OwnerAuthor

    Refinement Loop: Approved

    The issue has been approved and is ready for implementation.

  3. squne121 commented on Jul 11, 2026

    @squne121
    OwnerAuthor

    Contract Review Result

    CONTRACT_REVIEW_RESULT_V1:
      status: go
      generated_at: "2026-07-11T15:08:27Z"
      generated_by: issue-contract-review
      issue_url: https://github.com/squne121/loop-protocol/issues/1462
      body_sha256: "sha256:5578647a0328c9496085bf9932aa1d31c1710a6edcd3e1f8516f29cf4dcb7233"
      checks:
        readiness: go
        blockers: pass
        product_spec: pass
        vc_preflight:
          decision: pass
          classifications: [{"ac":"AC1","line":2,"raw_command":"rg -n '\"--repo is required for dry-run\"' .claude/skills/implement-issue/scripts/check_implementation_overlap.py","command_hash":"sha256:78643c1d14fae75f632f499f49f50359080b280dbd0d2c92142ef75dbed86b2e","runner":"exec","exit_code":1,"classification":"expected_fail","category":"expected_baseline_fail","decision":"go","scope_class":"baseline_fail_expected","confidence":"high","stdout_head":[],"stdout_truncated":false,"stdout_original_line_count":1,"stderr_head":[],"stderr_truncated":false,"stderr_original_line_count":1,"runner_env_delta":{},"duration_ms":3,"fix_hint":null,"annotations":{"baseline_expect":null,"vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":null,"raw":null},"strict":null,"repair":null},{"ac":"AC2","line":5,"raw_command":"rg -n '\"repository\"' .claude/skills/implement-issue/scripts/check_implementation_overlap.py","command_hash":"sha256:c3257871ec5946acf48195167864f66ec510701cb5301bce4dc67b26ce84b0c4","runner":"exec","exit_code":1,"classification":"expected_fail","category":"expected_baseline_fail","decision":"go","scope_class":"baseline_fail_expected","confidence":"high","stdout_head":[],"stdout_truncated":false,"stdout_original_line_count":1,"stderr_head":[],"stderr_truncated":false,"stderr_original_line_count":1,"runner_env_delta":{},"duration_ms":2,"fix_hint":null,"annotations":{"baseline_expect":null,"vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":null,"raw":null},"strict":null,"repair":null},{"ac":"AC3","line":9,"raw_command":"rg -n \"decision_payload\" .claude/skills/implement-issue/scripts/check_implementation_overlap.py","command_hash":"sha256:dad18f235f2f350f158d4abd4332c845f7c6bb0a38f362fb1d891396fbbabf45","runner":"exec","exit_code":0,"classification":"expected_pass","category":"baseline_expect_pass","decision":"go","scope_class":"regression_gate","confidence":"low","stdout_head":["697:    decision_payload: Dict[str, Any] = {","713:    decision_inputs_sha256 = f\"sha256:{_sha256(_canonical_json(decision_payload))}\""],"stdout_truncated":false,"stdout_original_line_count":3,"stderr_head":[],"stderr_truncated":false,"stderr_original_line_count":1,"runner_env_delta":{},"duration_ms":2,"fix_hint":null,"annotations":{"baseline_expect":"pass","vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":8,"raw":"# baseline-expect: pass"},"strict":null,"repair":null},{"ac":"AC4","line":12,"raw_command":"uv run pytest .claude/skills/implement-issue/tests/test_check_implementation_overlap_repository_binding.py -k tamper -q","command_hash":"sha256:3c39b6b86a8ca756076310e9ef7748ff3220a0a8bcd916ee1deff47c0f3a24ca","runner":"exec","exit_code":4,"classification":"expected_fail","category":"expected_baseline_fail","decision":"go","scope_class":"baseline_fail_expected","confidence":"high","stdout_head":["no tests ran in 0.01s"],"stdout_truncated":false,"stdout_original_line_count":3,"stderr_head":["ERROR: file or directory not found: .claude/skills/implement-issue/tests/test_check_implementation_overlap_repository_binding.py"],"stderr_truncated":false,"stderr_original_line_count":3,"runner_env_delta":{},"duration_ms":247,"fix_hint":null,"annotations":{"baseline_expect":null,"vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":null,"raw":null},"strict":null,"repair":null},{"ac":"AC5","line":15,"raw_command":"uv run pytest .claude/skills/implement-issue/tests/test_check_implementation_overlap_repository_binding.py -k canonicaliz -q","command_hash":"sha256:40901f1b6593bd8fde1c63d14722c6ca4080356faeadd5cb31a68fc17df4fb48","runner":"exec","exit_code":4,"classification":"expected_fail","category":"expected_baseline_fail","decision":"go","scope_class":"baseline_fail_expected","confidence":"high","stdout_head":["no tests ran in 0.01s"],"stdout_truncated":false,"stdout_original_line_count":3,"stderr_head":["ERROR: file or directory not found: .claude/skills/implement-issue/tests/test_check_implementation_overlap_repository_binding.py"],"stderr_truncated":false,"stderr_original_line_count":3,"runner_env_delta":{},"duration_ms":161,"fix_hint":null,"annotations":{"baseline_expect":null,"vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":null,"raw":null},"strict":null,"repair":null},{"ac":"AC6","line":18,"raw_command":"rg -n '\"--json\", \"number,title,body,labels,updatedAt,url,blockedBy,blocking\"' .claude/skills/implement-issue/scripts/check_implementation_overlap.py","command_hash":"sha256:1849f97a2afb2d9149248360089ad2f9d72792e5cb87b5d4ca81c77d6d2e4727","runner":"exec","exit_code":1,"classification":"expected_fail","category":"expected_baseline_fail","decision":"go","scope_class":"baseline_fail_expected","confidence":"high","stdout_head":[],"stdout_truncated":false,"stdout_original_line_count":1,"stderr_head":[],"stderr_truncated":false,"stderr_original_line_count":1,"runner_env_delta":{},"duration_ms":2,"fix_hint":null,"annotations":{"baseline_expect":null,"vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":null,"raw":null},"strict":null,"repair":null},{"ac":"AC7","line":21,"raw_command":"uv run pytest .claude/skills/implement-issue/tests/test_check_implementation_overlap_native_dependencies.py -k typed_record -q","command_hash":"sha256:e49884c45143cac15e08c48c89ffcf97e9b851aa385abdcaaa55c575728cbfea","runner":"exec","exit_code":4,"classification":"expected_fail","category":"expected_baseline_fail","decision":"go","scope_class":"baseline_fail_expected","confidence":"high","stdout_head":["no tests ran in 0.01s"],"stdout_truncated":false,"stdout_original_line_count":3,"stderr_head":["ERROR: file or directory not found: .claude/skills/implement-issue/tests/test_check_implementation_overlap_native_dependencies.py"],"stderr_truncated":false,"stderr_original_line_count":3,"runner_env_delta":{},"duration_ms":160,"fix_hint":null,"annotations":{"baseline_expect":null,"vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":null,"raw":null},"strict":null,"repair":null},{"ac":"AC8","line":24,"raw_command":"uv run pytest .claude/skills/implement-issue/tests/test_check_implementation_overlap_native_dependencies.py -k pagination_boundary -q","command_hash":"sha256:20e5ae32abbdfe0426c85bc9ddbe66e8fa1a3598b2f4fc76b929922ee176df47","runner":"exec","exit_code":4,"classification":"expected_fail","category":"expected_baseline_fail","decision":"go","scope_class":"baseline_fail_expected","confidence":"high","stdout_head":["no tests ran in 0.01s"],"stdout_truncated":false,"stdout_original_line_count":3,"stderr_head":["ERROR: file or directory not found: .claude/skills/implement-issue/tests/test_check_implementation_overlap_native_dependencies.py"],"stderr_truncated":false,"stderr_original_line_count":3,"runner_env_delta":{},"duration_ms":151,"fix_hint":null,"annotations":{"baseline_expect":null,"vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":null,"raw":null},"strict":null,"repair":null},{"ac":"AC9","line":27,"raw_command":"uv run pytest .claude/skills/implement-issue/tests/test_check_implementation_overlap_native_dependencies.py -k direction_and_repository -q","command_hash":"sha256:9d8d24365a987b464de91eec849600ab5c953d2ce94bbb82f21577ea7e1618e9","runner":"exec","exit_code":4,"classification":"expected_fail","category":"expected_baseline_fail","decision":"go","scope_class":"baseline_fail_expected","confidence":"high","stdout_head":["no tests ran in 0.01s"],"stdout_truncated":false,"stdout_original_line_count":3,"stderr_head":["ERROR: file or directory not found: .claude/skills/implement-issue/tests/test_check_implementation_overlap_native_dependencies.py"],"stderr_truncated":false,"stderr_original_line_count":3,"runner_env_delta":{},"duration_ms":158,"fix_hint":null,"annotations":{"baseline_expect":null,"vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":null,"raw":null},"strict":null,"repair":null},{"ac":"AC10","line":30,"raw_command":"uv run pytest .claude/skills/implement-issue/tests/test_check_implementation_overlap.py tests/agent_ops/test_implement_issue_overlap_policy.py -q","command_hash":"sha256:e16cc1c1e2828213ab6e53c1f99e7670acd98ebab8934bb350dd287ae74962b6","runner":"exec","exit_code":0,"classification":"expected_pass","category":"regression_gate","decision":"go","scope_class":"regression_gate","confidence":"low","stdout_head":["......................................                                   [100%]","38 passed in 1.77s"],"stdout_truncated":false,"stdout_original_line_count":3,"stderr_head":[],"stderr_truncated":false,"stderr_original_line_count":1,"runner_env_delta":{},"duration_ms":1927,"fix_hint":null,"annotations":{"baseline_expect":null,"vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":null,"raw":null},"strict":null,"repair":null},{"ac":"AC11","line":33,"raw_command":"uv run pytest .claude/skills/implement-issue/tests/test_check_implementation_overlap_native_dependencies.py -k live_smoke_read_only -q","command_hash":"sha256:ab520a9b88d236159bb1ecc9c00d1b063e5700963803a830a62598fb700c7084","runner":"exec","exit_code":4,"classification":"expected_fail","category":"expected_baseline_fail","decision":"go","scope_class":"baseline_fail_expected","confidence":"high","stdout_head":["no tests ran in 0.01s"],"stdout_truncated":false,"stdout_original_line_count":3,"stderr_head":["ERROR: file or directory not found: .claude/skills/implement-issue/tests/test_check_implementation_overlap_native_dependencies.py"],"stderr_truncated":false,"stderr_original_line_count":3,"runner_env_delta":{},"duration_ms":178,"fix_hint":null,"annotations":{"baseline_expect":null,"vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":null,"raw":null},"strict":null,"repair":null}]
      source: ensure_contract_snapshot_auto
  4. squne121 commented on Jul 11, 2026

    @squne121
    OwnerAuthor

    implement-issue: 実装完了・PR 起票は overlap preflight gate で保留(人間判断待ち)

    実装状況

    • Allowed Paths 内の 5 ファイルすべて実装完了・push 済み
      • .claude/skills/implement-issue/scripts/check_implementation_overlap.py
      • .claude/skills/implement-issue/tests/test_check_implementation_overlap.py(既存テストヘルパーに --repo 追加、後方互換維持)
      • .claude/skills/implement-issue/tests/test_check_implementation_overlap_repository_binding.py(新規)
      • .claude/skills/implement-issue/tests/test_check_implementation_overlap_native_dependencies.py(新規)
      • tests/agent_ops/test_implement_issue_overlap_policy.py(既存テストヘルパーに --repo 追加)
    • Worktree: .claude/worktrees/issue-1462-overlap-preflight-producer-repository-bi
    • Branch: worktree-issue-1462-overlap-preflight-producer-repository-bi(push 済み)
    • Verification: pytest 64/64 PASS(AC4/AC5/AC7/AC8/AC9/AC10/AC11 の -k フィルタも個別に確認済み)、ruff check PASS
    • AC1(--repo is required for dry-run)・AC2(repository field)・AC3(decision_payload 統合)の VC 文字列も rg で確認済み

    PR 起票を保留した理由(Major 1 deterministic drift gate)

    implement-issue/SKILL.md の PR 作成直前 drift gate に従い check_implementation_overlap.py --issue-number 1462 --repo squne121/loop-protocol を再実行したところ、route: human_review_required が返った。

    原因は #1462 自体の内容とは無関係で、候補プールに含まれる 既存 OPEN phase/implementation Issue のうち 8 件(#150, #152, #154, #173, #481, #666, #667, #901)が ## Allowed Paths セクションを欠いているため、Major 5 の fail-closed 検証(missing_allowed_paths)が発火し、validation_errors が非空になっていることによる(_classify の route 決定順序では、この検証エラーが構造的衝突判定より優先される)。

    参考までに、Allowed Paths が部分的に重なる候補として #420(playtest-log JSON Schema)・#1390(visual diff AI/VLM triage 非ブロッキング化)も検出されたが、いずれも #1462 とは goal_ref・Outcome・In Scope が完全に disjoint な別ドメインの Issue であり、shared_ac_ids(AC1/AC2/AC3 のような汎用番号の一致)に起因する false positive の可能性が高い。

    この状態は repo 全体の backlog データ品質(古い Issue の contract 未整備)に起因する systemic な条件であり、#1462 の Allowed Paths / Out of Scope(check_implementation_overlap.py の scoring ロジック再設計は対象外)には含まれない。SKILL.md の contract に従い、route: human_review_required の状態では gh pr create を呼ばず人間判断へ停止する。

    依頼事項

    以下のいずれかの人間判断をお願いします。

    1. このまま PR 起票を進めてよいか(実装: overlap_preflight producer に repository binding と native dependency (blockedBy/blocking) 取得を追加する #1462 自体は該当候補と意味的に衝突しないことを確認済み)
    2. 該当 legacy Issue(実装: post-merge-cleanup に parent body materialization guard を追加する #150 等)の Allowed Paths 補完を先行させるか
    3. 他の対応方針

    evidence(再実行結果 JSON)は worktree 内に保持しており、必要であれば追加で共有します。

  5. squne121 commented on Jul 11, 2026

    @squne121
    OwnerAuthor

    実装 PR を作成した: #1474 (Draft, Closes #1462)

    Overlap Preflight Gate Override の要約

    open_pr.py の PR 作成直前 overlap preflight hard gate が route: human_review_required を返したため、open_pr.py を経由せず gh pr create を直接実行して本 PR を作成した(人間承認済み)。

  6. squne121 commented on Jul 11, 2026

    @squne121
    OwnerAuthor

    PR #1474 REQUEST_CHANGES 対応完了

    pr-review-judge の REQUEST_CHANGES 判定(reviewed_head_sha 25fa61f)に対応し、以下を実施した。

    修正内容

    1. E501 lint違反解消: .claude/skills/implement-issue/tests/test_check_implementation_overlap_native_dependencies.py:185 の test 関数名(125文字、120文字制限超過)を意味を保ったまま短縮。
      • 旧: test_given_blocked_by_open_predecessor_when_direction_and_repository_resolved_then_wait_for_predecessor_signal
      • 新: test_given_blocked_by_open_predecessor_when_direction_repo_resolved_then_wait_for_signal
    2. BEHIND解消: git merge origin/main でbranchをmainに追従(コンフリクトなし。issue-reviewer関連の変更を取り込み)。

    検証結果

    • uv run pytest .claude/skills/implement-issue/tests/test_check_implementation_overlap.py .claude/skills/implement-issue/tests/test_check_implementation_overlap_repository_binding.py .claude/skills/implement-issue/tests/test_check_implementation_overlap_native_dependencies.py tests/agent_ops/test_implement_issue_overlap_policy.py -q → 64 passed
    • uv run ruff check .claude/skills/implement-issue/ → All checks passed

    push後のhead SHA

    7297629697bd1c4275ed8d19ccb726cd60cc9551

    PR #1474 へ push済み。CI 再実行結果とdeploy-pr flakeの再確認を待つ。

  7. squne121 commented on Jul 11, 2026

    @squne121
    OwnerAuthor

    PR #1474 の AC11 live smoke test を修正しました。

    修正内容

    .claude/skills/implement-issue/tests/test_check_implementation_overlap_native_dependencies.py の test_live_smoke_read_only_native_dependency_fetch(AC11)で、gh auth status 失敗時の SKIP 処理を pytest.exit(..., returncode=77) から pytest.skip(...) に変更しました。

    pytest.exit() は pytest-xdist worker 内で呼ぶと worker process ごと落ちてしまい、controller 側で INTERNALERROR: assert not crashitem を引き起こしていました(CI run 29172464382, job 86595777094 で確認済みの実障害)。pytest.skip() に切り替えることで xdist 環境下でも安全に SKIP できるようにしています。SKIP: prefix のメッセージ内容は維持しています。

    検証結果

    • uv run pytest .claude/skills/implement-issue/tests/test_check_implementation_overlap_native_dependencies.py -p xdist -n 4 -q → 18 passed(xdist環境下でクラッシュなし)
    • uv run pytest .claude/skills/implement-issue/tests/test_check_implementation_overlap.py .claude/skills/implement-issue/tests/test_check_implementation_overlap_repository_binding.py .claude/skills/implement-issue/tests/test_check_implementation_overlap_native_dependencies.py tests/agent_ops/test_implement_issue_overlap_policy.py -q → 64 passed
    • uv run ruff check .claude/skills/implement-issue/ → PASS(exit 0)

    push 結果

    • branch: worktree-issue-1462-overlap-preflight-producer-repository-bi
    • 修正前 head SHA: 7297629697bd1c4275ed8d19ccb726cd60cc9551
    • 修正後 head SHA: be3de2a8ce1879deeb7da28136f786c734c05cad
  8. squne121 commented on Jul 12, 2026

    @squne121
    OwnerAuthor

    PR #1474 に対する OWNER レビュー(REQUEST_CHANGES、#1474 (comment) )対応を完了し、head b6af00fd を push しました。

    • Blocker 1: 実 API 疎通で repository_url が公式応答形であることを実証確認(nested repository.full_name は架空)。パース処理と fixture を修正。
    • Blocker 2: Issue 本文の In Scope に candidate 側 native dependency 取得が明記されていることを再確認し、readback 対象 candidate に限定した二段階取得を追加。
    • Major 1-4(evidence auditability / repository canonicalization / state・number 型検証 / API version 固定)も対応。

    詳細は #1474 (comment) を参照してください。uv run pytest .claude/skills/implement-issue/ 139 件 PASS、ruff check clean。

  9. added a commit that references this issue on Jul 12, 2026
    ddd1a22
  10. squne121 commented on Jul 12, 2026

    @squne121
    OwnerAuthor

    PR #1474 の CI python-test E501 失敗(test_check_implementation_overlap_native_dependencies.py:423, 124>120文字)を修正しました。

    冗長な _raw_with_ / _typed_record_ を除去し、テスト関数名を意味を保ったまま短縮:

    test_given_candidate_raw_with_native_blocked_by_typed_record_when_scope_built_then_successor_relation_visible
    → test_given_candidate_native_blocked_by_when_scope_built_then_successor_relation_visible

    • ruff check --select E,F --ignore E402 .claude/scripts scripts schemas .claude/skills: PASS
    • pytest .claude/skills/implement-issue/ -q: 139 passed

    push 済み head SHA: ddd1a228822e878ac442ba3b0e80b0f363bf9477(branch: worktree-issue-1462-overlap-preflight-producer-repository-bi)

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    phase/implementation

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions