Skip to content

実装: overlap preflight の native dependency 方向を区別する #1512

Closed

Description

@squne121

Machine-Readable Contract

contract_schema_version: v1
issue_kind: implementation
parent_issue: "none"
goal_ref: "implementation overlap preflight が native dependency の方向を区別し、current Issue を block している Issue だけを predecessor として扱う"
change_kind: code

Parent Issue

なし(#1470 の overlap preflight で検出された単独修正)

Parent Goal Ref

  • Goal: C2b の依存待ちを正しい方向だけに限定する
  • Desired Destination: current Issue に依存する後続 Issue が OPEN でも、current Issue の preflight が human_review_required にならない

Current Validated Scope

Remaining Parent Gaps

Outcome

check_implementation_overlap.py が native dependency の方向を正しく扱い、current Issue を block する OPEN predecessor だけで C2b / wait routing を決め、dependent は route を悪化させない回帰テスト付き実装になる。

In Scope

  • native blockedBy / blocking の current Issue に対する方向を明示して dependency resolution を修正する
  • OPEN dependent が存在しても C1 evidence の route が fail-closed にならない pytest を追加する

Out of Scope

Acceptance Criteria

  • AC1: current Issue を block する OPEN native predecessor は従来どおり wait / fail-closed routing になる
  • AC2: current Issue に依存する OPEN native dependent だけでは route を wait / human_review_required に悪化させない
  • AC3: native dependency direction の回帰 pytest が pass する

Runtime Verification Applicability

decision: not_applicable
applicable_acs: []
reason: "native dependency API payload を fixture 化した pytest で決定論的に検証する"

Verification Commands

# AC1
$ uv run --locked pytest .claude/skills/implement-issue/tests/test_check_implementation_overlap_native_dependencies.py -q

# AC2
$ uv run --locked pytest .claude/skills/implement-issue/tests/test_check_implementation_overlap_native_dependencies.py -q

# AC3
$ uv run --locked pytest .claude/skills/implement-issue/tests/test_check_implementation_overlap_native_dependencies.py -q

Allowed Paths

  • .claude/skills/implement-issue/scripts/check_implementation_overlap.py
  • .claude/skills/implement-issue/tests/test_check_implementation_overlap_native_dependencies.py

Stop Conditions

  • Allowed Paths 外の変更が必要と判明した場合
  • In Scope の固定契約(キー集合・スキーマ・型定義)の変更が必要になった場合
  • 新規 Issue の起票が必要と判断した場合(スコープ分割が発生する場合)
  • 後続 Phase / 別スコープへの波及が判明した場合
  • nested SubAgent delegation が必要になった場合
  • 外部サービス利用・権限昇格・既存テスト大規模改変が必要になった場合

Required Skills

  • Python 3
  • pytest

Required Design References

  • docs/dev/workflow.md#Scope Collision Preflight
  • .claude/skills/implement-issue/SKILL.md

Scope Delta(任意)

N/A

Delivery Rule(配信ルール)

  • 1 Issue = 1 PR で完結する
  • worktree: .claude/worktrees/issue-NNN-native-dependency-direction
  • Draft PR を既定とする

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

Activity

  1. added
    phase/implementation
    agent/implementer
    enhancement
    on Jul 13, 2026
  2. squne121 commented on Jul 13, 2026

    @squne121
    OwnerAuthor

    Contract Review Result

    CONTRACT_REVIEW_RESULT_V1:
      status: go
      generated_at: "2026-07-13T23:13:40Z"
      generated_by: issue-contract-review
      issue_url: https://github.com/squne121/loop-protocol/issues/1512
      body_sha256: "sha256:b7d4cdc8cd12c265a552d3ee13e6ad3e4c0e4614401cb77d2bebe0b9a310f846"
      checks:
        readiness: go
        blockers: pass
        product_spec: pass
        product_spec_check: {"schema":"product_spec_check/v1","applicability":"applicable","decision":"pass","triggers":{"docs_product_allowed_paths":false,"tasks_md_mentioned":false,"specify_artifact_mentioned":false,"generated_task_mentioned":false,"product_spec_context_present":false,"machine_readable_contract_present":true},"conditions":{"docs_product_requires_spec_evidence":{"status":"pass","evidence":[]},"tasks_md_not_direct_source":{"status":"pass","evidence":[]},"specify_not_canonical":{"status":"pass","evidence":[]},"diff_first_rationale_present":{"status":"pass","evidence":[]},"generated_task_trace_present":{"status":"pass","evidence":[]},"task_dependencies_materialized":{"status":"pass","evidence":[]}},"blocked_reasons":[],"body_sha256":"sha256:b7d4cdc8cd12c265a552d3ee13e6ad3e4c0e4614401cb77d2bebe0b9a310f846","source_provenance":{"source_type":"github_api","body_file":null}}
        vc_preflight:
          decision: pass
          classifications: [{"ac":"AC1","line":2,"raw_command":"uv run --locked pytest .claude/skills/implement-issue/tests/test_check_implementation_overlap_native_dependencies.py -q","command_hash":"sha256:e6bda61e188ee94989e1f6e4d01fe08aee64e88055c8a204ec4f0ca4e1cf12e4","runner":"exec","exit_code":0,"classification":"expected_pass","category":"regression_gate","decision":"go","scope_class":"regression_gate","confidence":"low","stdout_head":["..........................................                               [100%]","42 passed in 3.86s"],"stdout_truncated":false,"stdout_original_line_count":3,"stderr_head":[],"stderr_truncated":false,"stderr_original_line_count":1,"runner_env_delta":{},"duration_ms":4225,"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":"uv run --locked pytest .claude/skills/implement-issue/tests/test_check_implementation_overlap_native_dependencies.py -q","command_hash":"sha256:e6bda61e188ee94989e1f6e4d01fe08aee64e88055c8a204ec4f0ca4e1cf12e4","runner":"exec","exit_code":0,"classification":"expected_pass","category":"regression_gate","decision":"go","scope_class":"regression_gate","confidence":"low","stdout_head":["..........................................                               [100%]","42 passed in 3.33s"],"stdout_truncated":false,"stdout_original_line_count":3,"stderr_head":[],"stderr_truncated":false,"stderr_original_line_count":1,"runner_env_delta":{},"duration_ms":3487,"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":8,"raw_command":"uv run --locked pytest .claude/skills/implement-issue/tests/test_check_implementation_overlap_native_dependencies.py -q","command_hash":"sha256:e6bda61e188ee94989e1f6e4d01fe08aee64e88055c8a204ec4f0ca4e1cf12e4","runner":"exec","exit_code":0,"classification":"expected_pass","category":"regression_gate","decision":"go","scope_class":"regression_gate","confidence":"low","stdout_head":["..........................................                               [100%]","42 passed in 3.12s"],"stdout_truncated":false,"stdout_original_line_count":3,"stderr_head":[],"stderr_truncated":false,"stderr_original_line_count":1,"runner_env_delta":{},"duration_ms":3283,"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
  3. squne121 commented on Jul 14, 2026

    @squne121
    OwnerAuthor

    scope-rollup capture 限定 waiver

    ユーザー承認により、#1512 の scope-rollup runner で発生した SubagentStop capture sidecar 欠損(scope_rollup_marker_missing)に限り、実装着手を許可する。

    この waiver は scope-rollup の raw plan を正本として採用するものではない。

  4. squne121 commented on Jul 14, 2026

    @squne121
    OwnerAuthor

    #1493 overlap C1 限定 waiver

    ユーザー承認により、#1512 の implementation overlap preflight が検出した #1493 との C1 structural/textual collision に限り、#1512 の実装着手を許可する。

    この waiver は #1493 と #1512 の統合を意味しない。

  5. squne121 commented on Jul 14, 2026

    @squne121
    OwnerAuthor

    #1493 open-pr overlap C1 限定 waiver

    ユーザー承認により、#1512 の既存 commit 434e26f3a57d30f21d8783db432eca2e71e8abbf について、#1493 との C1 structural/textual collision を理由とする open-pr 直前 gate に限り、push と Draft PR 作成を許可する。

    この waiver は Draft PR 作成だけを許可し、merge の承認・実行を許可しない。

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

    agent/implementerenhancementphase/implementation

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions