Skip to content

実装: test(review-compact): Consumer Inventory の taxonomy parity テストを追加する #1812

Open

Description

@squne121

Machine-Readable Contract

contract_schema_version: v1
issue_kind: implementation
parent_issue: "none"
goal_ref: "readiness rule_id/category taxonomy 正規化(#1810)後の Consumer 側 taxonomy parity 回帰テストを validate_review_compact_output.py 等に追加する"
change_kind: code

Parent Issue

none(単独改善)

Source

Background

Depends on

Parent Goal Ref

Current Validated Scope

Remaining Parent Gaps

Outcome

.claude/skills/issue-refinement-loop/tests/test_validate_review_compact_output.py に、readiness rule_id/category taxonomy 正規化(#1810)後の structured_blocker.code(vc_command_format / missing_section / rva_immediate_field_missing 等の正規化済み entry_id)を validate_review_compact_output.py が正しく consume・検証できることを保証する新規テストケースが追加され、PASS している状態。

In Scope

  • .claude/skills/issue-refinement-loop/tests/test_validate_review_compact_output.py に、taxonomy 正規化後の structured_blocker.code(entry_id 形状)を Consumer 側 validator が正しく受理することを検証するテストケースを追加する
  • taxonomy 正規化前の rule_id 形状(例: VCS001 そのまま)が Consumer 側で受理されない、または明示的に reject されることを確認する回帰テストケースを追加する

Out of Scope

Acceptance Criteria

  • AC1: .claude/skills/issue-refinement-loop/tests/test_validate_review_compact_output.py に、実装: fix(replay-taxonomy): readiness rule_id/category を deterministic_domain_key taxonomy に正規化する #1810 の taxonomy 正規化後の structured_blocker.code(正規化済み entry_id)を Consumer 側 validator が正しく受理することを検証する新規テストケースが追加されている
  • AC2: taxonomy 正規化前の rule_id 形状が Consumer 側で reject される(または明示的に不正扱いされる)ことを確認する回帰テストケースが追加されている
  • AC3: 追加した新規テストケースが全て PASS している

Verification Commands

# AC1
$ uv run --locked python3 -m pytest ".claude/skills/issue-refinement-loop/tests/test_validate_review_compact_output.py::test_taxonomy_normalized_structured_blocker_code_accepted"

# AC2
$ uv run --locked python3 -m pytest ".claude/skills/issue-refinement-loop/tests/test_validate_review_compact_output.py::test_pre_normalization_rule_id_shape_rejected"

# AC3
$ uv run --locked python3 -m pytest .claude/skills/issue-refinement-loop/tests/test_validate_review_compact_output.py

Allowed Paths

  • .claude/skills/issue-refinement-loop/tests/test_validate_review_compact_output.py

Stop Conditions

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

Required Skills

なし

Required Design References

  • docs/dev/agent-skill-boundaries.md

Scope Delta(任意)

N/A

Notes for Reviewer

Delivery Rule

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/implementationtriage-required

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions