Skip to content

実装: ensure_contract_snapshot.py・open-pr・impl-review-loop に PAIRWISE_MERGE_OBSERVATION_V1 の再利用禁止 consumer 契約を配線する #1793

Closed as not planned

Description

@squne121

Part of #1674

Machine-Readable Contract

contract_schema_version: v1
issue_kind: implementation
parent_issue: "#1674"
goal_ref: "#1792 の PAIRWISE_MERGE_OBSERVATION_V1 を mutation 直前に再観測する consumer wiring"
change_kind: workflow
depends_on: ["#1792"]

Parent Issue

#1674

Parent Goal Ref

  • 揮発性の merge 観測を長寿命 snapshot に混ぜず、PR mutation 直前に fresh な producer 結果だけを消費する。

Current Validated Scope

Remaining Parent Gaps

Outcome

open-pr mutation 直前および impl-review-loop current-head 検証で #1792 producer を毎回再観測し、target/inventory/peer の freshness、complete、decision/reasons を消費する。stale、incomplete、tool_error、not_evaluated、indeterminate の場合は PR mutation を呼ばず re-observe/stop とする。schema producer/callback wiring は本 Issue の守備範囲外。

In Scope

Out of Scope

Acceptance Criteria

  • AC1: test_open_pr_reobserves_and_gates_mutation が mutation 直前の再観測と不許可判定を検証する。 # baseline-expect: fail
  • AC2: test_impl_review_loop_consumes_current_observation が current-head 検証で同じ input を消費することを検証する。 # baseline-expect: fail
  • AC3: test_stale_incomplete_tool_error_not_evaluated_indeterminate_stop が各状態で mutation 非呼出しと re-observe/stop を検証する。 # baseline-expect: fail
  • AC4: test_observation_is_never_reused_from_cache が呼出しごとの再実行を検証する。 # baseline-expect: fail
  • AC5: test_contract_snapshot_excludes_volatile_observation が揮発性結果の混入なしを検証する。 # baseline-expect: fail

Verification Commands

# AC1
# baseline-expect: fail
$ uv run --locked pytest .claude/skills/open-pr/tests/test_pairwise_merge_consumer.py -q -k open_pr_reobserves_and_gates_mutation
# AC2
# baseline-expect: fail
$ uv run --locked pytest .claude/skills/impl-review-loop/tests/test_pairwise_merge_consumer.py -q -k impl_review_loop_consumes_current_observation
# AC3
# baseline-expect: fail
$ uv run --locked pytest .claude/skills/open-pr/tests/test_pairwise_merge_consumer.py .claude/skills/impl-review-loop/tests/test_pairwise_merge_consumer.py -q -k stale_incomplete_tool_error_not_evaluated_indeterminate_stop
# AC4
# baseline-expect: fail
$ uv run --locked pytest .claude/skills/open-pr/tests/test_pairwise_merge_consumer.py -q -k observation_is_never_reused_from_cache
# AC5
# baseline-expect: fail
$ uv run --locked pytest .claude/skills/impl-review-loop/tests/test_pairwise_merge_consumer.py -q -k contract_snapshot_excludes_volatile_observation
# Ruff
# baseline-expect: fail
$ uv run --locked ruff check .claude/skills/open-pr .claude/skills/impl-review-loop/scripts/ensure_contract_snapshot.py
# baseline-expect: fail
$ uv run --locked ruff check .claude/skills/open-pr .claude/skills/impl-review-loop/scripts/ensure_contract_snapshot.py

Allowed Paths

  • .claude/skills/open-pr/SKILL.md
  • .claude/skills/open-pr/scripts/*
  • .claude/skills/open-pr/tests/*
  • .claude/skills/impl-review-loop/SKILL.md
  • .claude/skills/impl-review-loop/scripts/ensure_contract_snapshot.py
  • .claude/skills/impl-review-loop/tests/*

Stop Conditions

Required Skills

なし

Required Design References

Scope Delta(任意)

Runtime Verification Applicability

本 Issue の変更対象はワークフロー文書・スクリプトのみです。ゲームの実行時動作には影響しません。

decision: not_applicable
reason: "Workflow documentation and script changes only. No runtime game behavior changed."

Delivery Rule

Notes for Reviewer

Scope Collision (C1): related_issue=#1792,#1674; overlapping_paths=.claude/skills/open-pr/,.claude/skills/impl-review-loop/。

non_conflict_reason: #1792 は producer/schema、#1793 は既存 consumer runtime/test/doc のみを所有し、schema files/catalog/governance は Allowed Paths に含めない。

edit_intent: consumer contract の同期修正のみ。#1792 を依存元として保持する。

Activity

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

    @squne121
    OwnerAuthor

    #1860 の owner decision(2026-07-30)により、新しい代替artifact authorityを追加しない方針が確定しました。本Issueは #1792 の PAIRWISE_MERGE_OBSERVATION_V1 を前提としたconsumer配線であり、#1792と同様に本方針と逆行するため、実装child #1869完了後に #1792 とあわせてclose可否を判断します。

    Part of #1860 / see also #1869

  3. squne121 commented on Jul 30, 2026

    @squne121
    OwnerAuthor

    実装child #1869 の PR #1871 が merge-ready になりました。#1792 と同様、新規schema追加を伴わない方針のため、本Issueのclose可否は #1871 マージ後に #1792 とあわせて判断します。

    Part of #1860 / see #1871

  4. squne121 commented on Jul 30, 2026

    @squne121
    OwnerAuthor

    実装child #1869 のPR #1871(Closes #1869)の状態を更新します。

    現状(2026-07-30 時点): head fa1fe901f405520c92331e2dce65b8b8624b7f7c、CI 16/16 pass、mergeable: MERGEABLE、mergeStateStatus: CLEAN、独立レビュー APPROVE・merge_ready: true(Draft のまま、人間マージ待ち)。

    過去のコメントで参照していた head cc756328 は初回実装時点のものです。その後、人間レビューで REQUEST_CHANGES(production router の mergeable/merge_state_status 分離不足等)を受けて fix_delta を適用し、途中で main 進行による実 Git conflict(route_loop_verdict_v2.py、Issue #1856 由来)を通常のマージで解消した上で、現在の head に至ります。

    本 Issue の scope 判定は PR #1871 の「Related / superseded Issues」節を正とします(詳細は #1871 参照)。PR merge 後、残存 scope の有無を再確認した上で close 可否を判断してください。

  5. squne121 commented on Jul 31, 2026

    @squne121
    OwnerAuthor

    #1792(producer)が同一理由でsuperseded closeされたため、その consumer wiring を目的とする本Issueも独立scopeがありません。実3-way conflict / target PR mergeabilityのfail-closed表現は route_loop_verdict_v2.py(PR #1871, MERGED, c3cbc0dd)で既に達成済みです。superseded closeします。#1860 Closure Matrix参照。

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