Skip to content

contract_readiness_check.py の canonical parent skip 判定を run_contract_review_once.py と共有する #1945

Open

Description

@squne121

Machine-Readable Contract

contract_schema_version: v1
issue_kind: implementation
parent_issue: "none"
goal_ref: "contract_readiness_check.py の execute-mode 内 canonical parent skip 判定と、run_contract_review_once.py の DeliveryRollupApplicability 判定を単一の共有 helper へ統合し、primitive の重複再合成を解消する"
change_kind: refactor

Outcome

contract_readiness_check.py(execute-mode 内の skip_preflight = is_canonical_parent and not parent_has_vc_section 判定、#1878/#1867)と run_contract_review_once.py(DeliveryRollupApplicability / _resolve_delivery_rollup_applicability()、#1914)が、同じ primitive(resolve_existing_issue_validation_profile / parse_machine_readable_contract / extract_verification_commands_section)から独立に判定を再合成するのではなく、単一の共有 helper を消費する状態になる。

Background

Issue #1914(PR #1940)で run_contract_review_once.py 内に DeliveryRollupApplicability(単一の applicability 判定結果、NamedTuple)を導入したが、contract_readiness_check.py 側の同等の skip 判定ロジックとは統合していない(PR #1940 敵対的レビュー P1-1 で指摘)。contract_readiness_check.py は Issue #1914 の Allowed Paths(run_contract_review_once.py の単一ファイルのみ)に含まれないため、同 PR では対応せず本 Issue に分離した。

In Scope

  • contract_readiness_check.py から run_contract_review_once.py の DeliveryRollupApplicability 相当の判定を import 可能にする、または共通モジュールへ抽出する
  • 両ファイルの canonical parent / delivery-rollup skip 判定を単一 helper の消費に統一する

Out of Scope

  • 適用除外の対象を delivery-rollup 以外の parent_mode へ拡大すること

Acceptance Criteria

  • AC1: contract_readiness_check.py と run_contract_review_once.py が同一の共有 helper を消費していることを回帰テストで固定する
  • AC2: 既存の issue-contract-review/tests/ 全体が PASS する

Allowed Paths

  • .claude/skills/issue-contract-review/scripts/contract_readiness_check.py
  • .claude/skills/issue-contract-review/scripts/run_contract_review_once.py
  • .claude/skills/issue-contract-review/tests/

Stop Conditions

  • Allowed Paths 外の変更が必要と判明した場合

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions