Skip to content

実装: open-pr の ordered/outbound-only waiver consumer を fail-closed 化する #1702

Open

Description

@squne121

Machine-Readable Contract

contract_schema_version: v1
issue_kind: implementation
parent_issue: "#1675"
goal_ref: "#1675 から分離した open-pr waiver consumer の fail-closed 修正"
change_kind: code

Parent Issue

#1675

Parent Goal Ref

Current Validated Scope

  • .claude/skills/open-pr/scripts/open_pr.py の waiver block 抽出・ordered/outbound-only consumer の fail-closed 条件。
  • 既存の waiver/overlap 回帰テスト 2 ファイルの最小 fixture 追加。

Remaining Parent Gaps

Outcome

.claude/skills/open-pr/scripts/open_pr.py と既存 waiver/overlap テストの 1 PR が完成し、ordered/outbound-only waiver は許可された順序でのみ消費され、malformed duplicate block・duplicate key・root type 不正を含む unsafe input はすべて mutation 前に fail-closed で拒否される。

In Scope

Out of Scope

Acceptance Criteria

Verification Commands

# AC1
$ uv run --locked pytest -q .claude/skills/open-pr/scripts/tests/test_open_pr_contract_bound_waiver.py -k "valid or outbound or ordered"
# AC2
$ uv run --locked pytest -q .claude/skills/open-pr/scripts/tests/test_open_pr_contract_bound_waiver.py -k "malformed or duplicate_block"
# AC3
$ uv run --locked pytest -q .claude/skills/open-pr/scripts/tests/test_open_pr_contract_bound_waiver.py -k "duplicate_key or root_type or mutation"
# AC4
$ uv run --locked pytest -q .claude/skills/open-pr/scripts/tests/test_open_pr_contract_bound_waiver.py .claude/skills/open-pr/scripts/tests/test_open_pr_overlap_gate.py

Allowed Paths

  • .claude/skills/open-pr/scripts/open_pr.py
  • .claude/skills/open-pr/scripts/tests/test_open_pr_contract_bound_waiver.py
  • .claude/skills/open-pr/scripts/tests/test_open_pr_overlap_gate.py

Stop Conditions

Required Skills

  • Python pytest

Required Design References

  • .claude/skills/open-pr/scripts/open_pr.py
  • .claude/skills/open-pr/scripts/tests/test_open_pr_contract_bound_waiver.py
  • .claude/skills/open-pr/scripts/tests/test_open_pr_overlap_gate.py
  • docs/dev/workflow.md

Scope Delta(該当時のみ記載)

Runtime Verification Applicability

  • decision: immediate
  • reason: open_pr.py の runtime waiver parsing/consumer を変更するため、pytest fixture で mutation deny と fail-closed wire を検証する。

Delivery Rule

Notes for Reviewer

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