Skip to content

実装: reviewer_claim_replay と deterministic checker の taxonomy parity を検証する #1286

Closed

Description

@squne121

Machine-Readable Contract

contract_schema_version: v1
issue_kind: implementation
parent_issue: "none"
goal_ref: "reviewer blocker と deterministic checker の taxonomy parity を導入し、checker-backed blocker の不要な reviewer 再実行を止める"
change_kind: code

Parent Issue

なし(単独改善)

Parent Goal Ref

  • Goal: deterministic checker で裏付け可能な reviewer blocker が unbacked 判定されて再レビューに流れる浪費をなくす
  • Desired Destination: reviewer claim と checker 結果の対応が table-driven で drift 検出可能な状態

Current Validated Scope

  • .claude/skills/issue-refinement-loop/scripts/reviewer_claim_replay.py に table-driven taxonomy(REVIEWER_CHECKER_TAXONOMY_V1)を導入
  • taxonomy parity テストの追加
  • --dump-taxonomy CLI の追加

Remaining Parent Gaps

  • SubAgent 起動の launch plan 制限は別 Issue で扱う
  • VC baseline shape compiler は別 Issue で扱う

Outcome

reviewer_claim_replay.py が reviewer code / deterministic check 名 / readiness rule id / readiness category を単一 taxonomy entry へ正規化し、deterministic check が fail している同一 body hash の blocker を reviewer 再実行 route に戻さず、taxonomy drift をテストで検出できる状態。

Runtime Verification Applicability

  • decision: not_applicable
  • reason: 本 Issue のスコープは .claude/skills/issue-refinement-loop/scripts/reviewer_claim_replay.py(Python スクリプト)へのテーブル駆動 taxonomy 追加と --dump-taxonomy CLI 実装であり、プロセス起動・外部通信・Canvas/UI ランタイム挙動を伴わない。検証は pytest による unit test(AC1〜AC5 の Verification Commands)で完結し、静的検証(typecheck 相当の型整合含む)のみで判定可能。

Background

#1277 のログでは、C5 AC/VC number alignment が deterministic failure であるにもかかわらず、alias / evidence mapping の不足で unbacked 判定され、手動確認と追加 reviewer run が発生した。現在の reviewer_claim_replay.py は C5_ac_vc_number_alignment への mapping 自体は持つが、readiness errors 側では LP010 系 rule id だけを alignment evidence として拾うため、checker artifact inconsistency / unbacked route が残り得る。

In Scope

  • REVIEWER_CHECKER_TAXONOMY_V1 の table-driven 定義(reviewer_codes / deterministic_checks / readiness_rule_ids / readiness_categories / domain_keys を entry 単位で束ねる)
  • deterministic check fail + body hash 一致の場合、category mapping 欠落を checker_artifact_inconsistency でなく machine-actionable な taxonomy_gap として返し、同一 body/kind で reviewer を再実行しない routing
  • taxonomy 未登録の reviewer blocker は checker_gap として分類し、reviewer rerun を最大 1 回に制限
  • --dump-taxonomy で taxonomy JSON を出力する CLI と drift 検出テスト

Out of Scope

  • check_issue_contract.py の checker 追加・判定変更
  • issue-reviewer SubAgent の出力 schema 変更
  • refinement loop planner の routing 全面再設計

Acceptance Criteria

  • AC1: c5 / vc_number_alignment / C5_ac_vc_number_alignment が同一 taxonomy entry に正規化される
  • AC2: c9 / rva_immediate_field_missing / C9_runtime_applicability_present が同一 taxonomy entry に正規化される
  • AC3: deterministic check が fail している同一 body hash の blocker は reviewer rerun route に戻らない
  • AC4: taxonomy にない reviewer blocker は checker_gap として分類され、reviewer rerun は最大 1 回に制限される
  • AC5: --dump-taxonomy が JSON を出力し、テストが checker / reviewer code / readiness category の drift を検出する

Verification Commands

# AC1
$ uv run --locked pytest .claude/skills/issue-refinement-loop/tests/test_reviewer_claim_replay_taxonomy_parity.py::test_ac1_c5_aliases_normalize_to_single_entry -q
# AC2
$ uv run --locked pytest .claude/skills/issue-refinement-loop/tests/test_reviewer_claim_replay_taxonomy_parity.py::test_ac2_c9_aliases_normalize_to_single_entry -q
# AC3
$ uv run --locked pytest .claude/skills/issue-refinement-loop/tests/test_reviewer_claim_replay_taxonomy_parity.py::test_ac3_checker_backed_blocker_no_reviewer_rerun -q
# AC4
$ uv run --locked pytest .claude/skills/issue-refinement-loop/tests/test_reviewer_claim_replay_taxonomy_parity.py::test_ac4_unknown_blocker_checker_gap_single_rerun -q
# AC5
$ uv run --locked pytest .claude/skills/issue-refinement-loop/tests/test_reviewer_claim_replay_taxonomy_parity.py::test_ac5_dump_taxonomy_json_drift_detection -q

Allowed Paths

  • .claude/skills/issue-refinement-loop/scripts/reviewer_claim_replay.py
  • .claude/skills/issue-refinement-loop/tests/test_reviewer_claim_replay_taxonomy_parity.py
  • .claude/skills/issue-refinement-loop/tests/
  • .github/ci/python-test-plan.json

Stop Conditions

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

Required Skills

なし

Scope Delta(任意)

N/A

Notes for Reviewer

  • 既存の reviewer_claim_replay.py のテストを破壊しないこと(fail-closed 挙動は維持し、taxonomy 化は既存 mapping の superset として実装する)
  • taxonomy entry の追加はコード変更でなく table 追記だけで済む構造にする
  • ## Allowed Paths の scripts/python-test-plan.json は repo 実体と不一致だったため .github/ci/python-test-plan.json(実在パス)へ修正した(issue-refinement-loop 実行で検出)
  • ## Runtime Verification Applicability セクションを追加した(docs/dev/runtime-verification-policy.md の適用判定スキーマに基づき not_applicable)。refinement loop の Step 2 review が本セクション欠如を blocker(C9)として2回連続報告し、reviewer_claim_replay.py の taxonomy 上 deterministic checker に裏付けられず reviewer_false_positive_suspected で human_escalation となったため、人間承認を得て control-plane が直接追加した

Activity

  1. added
    enhancement
    phase/implementation
    triage-required
    agent/implementer
    on Jul 2, 2026
  2. squne121 commented on Jul 3, 2026

    @squne121
    OwnerAuthor

    判定: REQUEST_CHANGES

    #1286 の方向性は正しいです。ただし、現状の Issue 契約のまま実装すると、#1086 / PR #1101 で固定した fail-closed semantics と衝突します。特に危険なのは、#1286 が taxonomy_gap という新しい判定概念を導入している一方で、issue-refinement-loop/SKILL.md の Step 2a 出力契約にはその routing が存在せず、Allowed Paths に SKILL.md も含まれていない点です。#1286 自体はコメント 0 件なので、関連 Issue / PR / 実装資産側の契約を正本として見る必要があります。

    #1286 は reviewer_claim_replay.py に table-driven REVIEWER_CHECKER_TAXONOMY_V1 を導入し、C5 / C9 の reviewer code・deterministic check・readiness rule/category・domain key を同一 entry に束ねることを狙っています。背景には #1277 の loop log で、C5 AC/VC alignment failure が deterministic failure であるにもかかわらず mapping gap のため unbacked 扱いになった問題があります。

    関連履歴から見た前提

    #1021 / PR #1032 は、reviewer blocker が deterministic checker と結び付かないまま semantic iteration を消費する問題を止めるために、Step 2a の replay arbitration を追加した流れです。PR #1032 では reviewer_claim_replay.py が compact review result と readiness artifact を消費し、exact mapping のみに限定し、prefix 判定を廃止し、state file を body_sha256 + reviewer_blocker_code + normalized_kind で保持する設計になっています。

    #1042 / PR #1058 は producer 側の fail-closed contract です。REVIEW_ISSUE_RESULT_V1 に findings[] を導入し、deterministic_domain_blocker は checker evidence 必須、evidence 不足の deterministic-domain 指摘は checker_gap / blocking=false に落とす設計です。

    #1086 / PR #1101 はその後の重要な補正です。C4/C5 の deterministic failure が compact/replay 経由で checker_gap に誤降格され、human escalation に進む問題を直すため、C4/C5 fail を self-evidence 付き deterministic_domain_blocker として保持し、checker_artifact_inconsistency lane と fallback evidence 探索を追加しています。


    Blocker 1: taxonomy_gap の routing contract が存在しない

    現行 issue-refinement-loop/SKILL.md の Step 2a 出力契約は、deterministic_fail_confirmed、reviewer_claim_unbacked_by_deterministic_checker、reviewer_false_positive_suspected、input_or_runtime_error を文書化しています。実装上は #1086 後に checker_artifact_inconsistency もありますが、taxonomy_gap は routing contract にありません。

    したがって #1286 の「deterministic check fail + same body hash なのに taxonomy mapping が欠けている場合は taxonomy_gap」という仕様は、このままだと consumer が解釈できません。さらに #1286 の Allowed Paths は reviewer_claim_replay.py と tests 周辺に限定されており、Step 2a contract を更新する SKILL.md が含まれていません。これは実装前に Issue 側で修正すべきです。

    修正方針は二択です。

    1. Allowed Paths を広げ、issue-refinement-loop/SKILL.md と呼び出し側 routing を更新して、verdict: taxonomy_gap / routing: fix_taxonomy を正式 contract にする。
    2. Allowed Paths を現状維持するなら、外部 contract は verdict: checker_artifact_inconsistency のままにし、reason_code: taxonomy_gap、taxonomy_entry_id、taxonomy_gap_blockers[] を追加する。

    現実的には 2 が安全です。#1086 の fail-closed contract と互換し、routing surface を増やさずに taxonomy gap を機械可読化できます。


    Blocker 2: #1086 の checker_artifact_inconsistency と #1286 の taxonomy_gap が衝突している

    現行 tests は、deterministic_checks.C5_ac_vc_number_alignment=fail と findings[].checker_gap が同居する場合に checker_artifact_inconsistency を期待しています。C5 だけでなく C1/C4/C9 の parametrized regression でも同じ期待が固定されています。

    これは #1086 の AC5 と整合しています。#1086 は deterministic check fail と checker_gap が同居する場合、reviewer_false_positive_suspected ではなく checker_artifact_inconsistency に分離することを目的にしていました。

    #1286 が taxonomy_gap を新 verdict として導入すると、既存 regression の期待値をどこまで変更するかが未定義になります。ここを曖昧にしたまま実装すると、#1086 の回帰テストを「直す」つもりで壊します。

    必要な定義はこれです。

    taxonomy_gap:
      condition:
        - taxonomy entry は存在する
        - same body_sha256
        - deterministic_checks[entry.deterministic_checks[*]] == fail
        - checker artifact は stale / wrong_schema / body mismatch ではない
        - ただし reviewer_claim_replay taxonomy が producer output の rule/category/source をまだ認識していない
      external_verdict:
        current_allowed_paths_safe: checker_artifact_inconsistency
      reason_code: taxonomy_gap
      should_consume_iteration: false
      should_increment_unbacked_count: false

    逆に、checker_evidence が stale、artifact_schema 不正、body_sha256 mismatch、producer が evidence を出すべきなのに出していない場合は、引き続き checker_artifact_inconsistency のままにすべきです。


    Blocker 3: 現実装は taxonomy ではなく重複 dict 群で動いている

    現在の reviewer_claim_replay.py は、KIND_ALIASES、KIND_TO_DETERMINISTIC_DOMAIN_KEY、KIND_TO_DETERMINISTIC_CHECK、rule/category set、_matching_readiness_errors() の if/elif 分岐に mapping が分散しています。

    #1286 が単に --dump-taxonomy を追加するだけだと、taxonomy は「表示用の別表」になり、実 routing は旧 dict を見続けます。それでは drift 防止になりません。

    実装要件として、旧 mapping を taxonomy entry から派生させる必要があります。

    最小構造は次です。

    REVIEWER_CHECKER_TAXONOMY_SCHEMA = "REVIEWER_CHECKER_TAXONOMY_V1"
    
    TAXONOMY_ENTRIES = (
        {
            "id": "vc_number_alignment",
            "reviewer_codes": ("c5", "ac_vc_number_mismatch"),
            "domain_keys": ("vc_number_alignment",),
            "deterministic_checks": ("C5_ac_vc_number_alignment",),
            "readiness_rule_ids": ("LP010",),
            "readiness_category_sources": (
                ("check_issue_contract", "vc_number_alignment"),
            ),
        },
        {
            "id": "runtime_applicability",
            "reviewer_codes": ("c9", "rva_immediate_field_missing"),
            "domain_keys": ("runtime_applicability",),
            "deterministic_checks": ("C9_runtime_applicability_present",),
            "readiness_rule_ids": ("C9_runtime_applicability_present",),
            "readiness_category_sources": (
                ("contract_readiness_check", "rva_immediate_field_missing"),
            ),
        },
    )

    重要なのは readiness_categories を単独 set にしないことです。category=body_lint のような汎用 category を category だけで照合すると過剰一致します。(source_check, category) または rule_id のどちらで match したかを evidence に残すべきです。


    Blocker 4: C9 は producer evidence ではなく fallback taxonomy で扱う必要がある

    C4/C5 は check_issue_contract.py 側で self-evidence を生成し、C5 は rule_id="C5_ac_vc_number_alignment"、category="vc_number_alignment" の evidence を付ける実装になっています。

    一方 C9 は現在、runtime_applicability domain の heuristic_concern として append されており、C4/C5 のような self-evidence 付き deterministic_domain_blocker ではありません。

    REVIEW_ISSUE_RESULT_V1 schema は、deterministic_domain_blocker には blocking=true と checker_evidence>=1 を要求し、checker_gap は blocking=false に制限しています。

    したがって #1286 の AC2「c9 / rva_immediate_field_missing / C9_runtime_applicability_present が同じ entry」は、C9 が findings[] で evidence-backed になることを期待してはいけません。#1286 の Allowed Paths では check_issue_contract.py は変更不可なので、C9 は deterministic_checks.C9_runtime_applicability_present=fail と readiness category の fallback によって backed 判定する仕様にすべきです。


    Blocker 5: --dump-taxonomy は現 argparse 設計と衝突する

    現行 CLI は --review-result-file と --readiness-result-file を required=True にしています。--dump-taxonomy を追加しても、このままでは taxonomy dump だけを実行できません。

    Python の argparse では action='store_true' による on/off flag が標準的に使えますが、required=True の option は存在しないと parse_args() 時点で error になります。([Python documentation]1) ([Python documentation]1)

    実装はこうすべきです。

    parser.add_argument("--dump-taxonomy", action="store_true")
    parser.add_argument("--review-result-file")
    parser.add_argument("--readiness-result-file")
    ...
    args = parser.parse_args()
    
    if args.dump_taxonomy:
        print(_strict_json_dumps(dump_taxonomy(), sort_keys=True), flush=True)
        return 0
    
    _missing = [
        name for name in ("review_result_file", "readiness_result_file")
        if not getattr(args, name)
    ]
    if _missing:
        raise ValueError(...)

    JSON 出力は既存の strict JSON 方針に合わせ、allow_nan=False、入力側は parse_constant reject を維持すべきです。Python json docs は allow_nan=False で nan / inf / -inf の serialize を ValueError にし、parse_constant で NaN / Infinity / -Infinity を例外化できることを明記しています。([Python documentation]2)

    dump の安定性は sort_keys=True と compact separator で担保できます。Python docs でも sort_keys=True により dict key が sorted output になること、separators=(',', ':') で whitespace を除いた compact encoding にできることが示されています。([Python documentation]2)


    Blocker 6: same-body 判定が片側だけに寄っている

    現行 analyze() は body_sha256 を readiness_result から取り、checker evidence の body_sha256 もそれに一致するかを検査します。

    しかし compact artifact には producer_body_sha256 が保持されています。

    #1286 が「same body hash」を条件にするなら、少なくとも次を fail-closed にすべきです。

    body_hash_contract:
      readiness_result.body_sha256 == review_result.producer_body_sha256
      every checker_evidence.body_sha256 == readiness_result.body_sha256
    reject_as:
      verdict: input_or_runtime_error
      routing: human_judgment_required
      reason_code: body_sha_mismatch

    これを入れないと、古い compact review artifact と新しい readiness artifact を組み合わせた場合に、taxonomy gap と stale artifact を誤分類します。


    Blocker 7: mixed blocker aggregate verdict が曖昧

    現行 tests は、supported deterministic blocker と unsupported blocker が混在しても、全体 verdict が deterministic_fail_confirmed になり、rewrite_ready_blockers だけが 1 件になることを固定しています。

    これは「Step 4 に渡す payload が rewrite_ready_blockers のみ」という consumer contract があるなら成立します。しかし issue-refinement-loop/SKILL.md は deterministic_fail_confirmed なら Step 4 rewrite に進むとしか書いていません。

    #1286 で taxonomy_gap / checker_gap lane を増やすなら、aggregate output は少なくとも次を持つべきです。

    rewrite_ready_blockers: []
    taxonomy_gap_blockers: []
    checker_gap_blockers: []
    unbacked_blockers: []
    routing_payload_contract:
      issue_author_receives: rewrite_ready_blockers only
      taxonomy_gap_blockers: never forwarded to issue-author rewrite payload

    これを明記しないと、taxonomy gap を「deterministic fail confirmed の一種」と誤って Step 4 に流す余地が残ります。


    Blocker 8: taxonomy dump は schema / invariant が必要

    --dump-taxonomy をただの JSON print にすると、将来の drift test が弱くなります。JSON Schema 側では required で必須 property を指定でき、enum で値を固定集合に制限でき、additionalProperties: false で未知 property を拒否できます。([JSON Schema]3) ([JSON Schema]3) (JSON Schema)

    dump schema は最低限これを固定してください。

    {
      "schema": "REVIEWER_CHECKER_TAXONOMY_V1",
      "entries": [
        {
          "id": "vc_number_alignment",
          "reviewer_codes": ["c5", "ac_vc_number_mismatch"],
          "domain_keys": ["vc_number_alignment"],
          "deterministic_checks": ["C5_ac_vc_number_alignment"],
          "readiness_rule_ids": ["LP010"],
          "readiness_category_sources": [
            {"source_check": "check_issue_contract", "category": "vc_number_alignment"}
          ]
        }
      ]
    }

    invariant test は次が必要です。

    - schema == REVIEWER_CHECKER_TAXONOMY_V1
    - entries[].id は unique
    - reviewer_codes は全 entry 横断で duplicate 禁止
    - deterministic_checks は全 entry 横断で duplicate 禁止
    - domain_keys は全 entry 横断で duplicate 禁止
    - readiness_rule_ids は entry 横断 duplicate を原則禁止。ただし明示 allowlist がある場合のみ許可
    - readiness_category_sources は (source_check, category) tuple で unique
    - C5 entry に c5 / vc_number_alignment / C5_ac_vc_number_alignment / LP010 が同居
    - C9 entry に c9 / runtime_applicability / C9_runtime_applicability_present / rva_immediate_field_missing が同居
    

    pytest は @pytest.mark.parametrize で複数入力・期待値の組を同一 test function に流せるため、taxonomy entry の drift tests は table-driven に寄せるべきです。([pytest ドキュメント]5)


    Issue #1286 に入れるべき修正文案

    このまま Issue 本文に追記するなら、以下を追加してください。

    ## Contract Clarification
    
    - `REVIEWER_CHECKER_TAXONOMY_V1` は表示用ではなく、`reviewer_claim_replay.py` の分類・deterministic check lookup・readiness fallback lookup の唯一の mapping source とする。
    - 既存の `KIND_ALIASES` / `KIND_TO_DETERMINISTIC_DOMAIN_KEY` / `KIND_TO_DETERMINISTIC_CHECK` / readiness rule/category set は taxonomy entry から compile する。重複した手書き mapping を残さない。
    - `taxonomy_gap` は external routing contract を増やさない限り、`verdict: checker_artifact_inconsistency` + `reason_code: taxonomy_gap` として出力する。
    - `taxonomy_gap` は `consecutive_unbacked_count` を increment しない。reviewer rerun も要求しない。
    - unknown reviewer blocker は taxonomy entry 不在として `checker_gap` / unbacked lane に分離し、same body + same normalized unknown lane で reviewer rerun は最大 1 回に制限する。
    - `review_result.producer_body_sha256` と `readiness_result.body_sha256` が一致しない場合は taxonomy 判定に進まず `input_or_runtime_error` / `body_sha_mismatch` とする。
    - C9 は現 producer が evidence-backed `deterministic_domain_blocker` を出さないため、`deterministic_checks.C9_runtime_applicability_present` と readiness `(source_check, category)` fallback で backed 判定する。

    追加 AC は以下です。

    ## Additional Acceptance Criteria
    
    - [ ] AC6: taxonomy entry は `reviewer_codes`, `domain_keys`, `deterministic_checks`, `readiness_rule_ids`, `readiness_category_sources` を持ち、分類・lookup はこの entry からのみ派生する。
    - [ ] AC7: `--dump-taxonomy` は review/readiness input なしで実行でき、stdout に strict JSON の `REVIEWER_CHECKER_TAXONOMY_V1` だけを出す。
    - [ ] AC8: taxonomy dump は key ordering が安定し、NaN / Infinity を encode/decode しない。
    - [ ] AC9: C5 fixture は `c5`, `vc_number_alignment`, `C5_ac_vc_number_alignment`, `LP010` が同一 entry であることを検証する。
    - [ ] AC10: C9 fixture は `c9`, `runtime_applicability`, `C9_runtime_applicability_present`, `(contract_readiness_check, rva_immediate_field_missing)` が同一 entry であることを検証する。
    - [ ] AC11: deterministic check fail + same body + taxonomy mapping miss は `reason_code=taxonomy_gap` になり、`consecutive_unbacked_count` を増やさない。
    - [ ] AC12: stale body hash / wrong artifact schema / invalid checker evidence は taxonomy_gap ではなく existing fail-closed inconsistency lane に残る。
    - [ ] AC13: mixed blockers では issue-author rewrite payload に `rewrite_ready_blockers` だけが入る。`taxonomy_gap_blockers` / `checker_gap_blockers` は rewrite payload に流れない。

    最終実装順序

    1. TaxonomyEntry と compile-time duplicate validation を追加する。
    2. _classify_blocker()、_matching_findings()、_matching_readiness_errors()、_has_deterministic_check_failure() を taxonomy entry driven に置換する。
    3. --dump-taxonomy を input 不要 branch として追加する。
    4. producer_body_sha256 と readiness_result.body_sha256 の一致検査を追加する。
    5. 既存 実装: review checker compact artifact の blocking semantics を修正し C4 VC failure を human escalation に誤分類しない #1086 tests を壊さず、taxonomy_gap はまず reason_code として追加する。
    6. C5/C9 taxonomy parity tests と dump drift tests を追加する。
    7. どうしても verdict: taxonomy_gap を正式化するなら、実装: reviewer_claim_replay と deterministic checker の taxonomy parity を検証する #1286 の Allowed Paths に issue-refinement-loop/SKILL.md と routing consumer を追加する。

    現契約のままなら、最も安全な結論は「taxonomy_gap を新 verdict にしない。checker_artifact_inconsistency の subreason として実装する」です。

  3. squne121 commented on Jul 3, 2026

    @squne121
    OwnerAuthor

    Refinement Loop: Human Escalation Required

    The loop has terminated and requires human review. Cause: human judgment required

    Blockers

    "investigation_policy.required=true (reason_code: repo_fact_claim_in_outcome_or_ac_or_vc) だが codebase-investigator の必須委譲経路 gemini-cli-headless-delegation の preflight が environment_failure で失敗: local_asset_research dangerous tool denylist is incomplete(.gemini/settings.json の serena MCP excludeTools が preflight_agy.py の expected_dangerous set と不一致。不足ツール: delete_lines, insert_at_line, prepare_for_new_conversation, read_file_content, remove_project, replace_lines, replace_regex, restart_language_server, switch_modes, think_about_collected_information, think_about_task_adherence, think_about_whether_you_are_done, write_file)"
    
    "codebase-investigator は fail-closed policy によりローカル代替調査を行わないため Step 1 (Investigation) を完了できない"
    
    "web_research_policy.required=true は web-researcher が完了済み(critical claim `--dump-taxonomy` CLI/JSON dump/drift検出 は verdict: supported, unresolved_risks: [])"
    
    "修復は .gemini/settings.json の excludeTools 更新が必要だが、これは issue-refinement-loop の Allowed Paths 外・本タスクのスコープ外(issue-refinement-loop skill 自体の改変も本タスク範囲外)のため人間判断を要する"
    
  4. squne121 commented on Jul 3, 2026

    @squne121
    OwnerAuthor

    Refinement Loop: Human Escalation Required

    The loop has terminated and requires human review. Cause: human judgment required

    Blockers

    "reviewer_claim_replay arbitration: C9 legacy_missing_applicability は review-issue checker 上 finding_kind=heuristic_concern(deterministic_domain_blocker ではない)であり contract_readiness_check(status=go, errors=[]) でも裏付けられず、同一 body_sha256(e7ec2f6236740f513102645cd615948232e48a7ccabb47073dd8c8635427b82b)・同一 blocker lane で2回連続 unbacked のため reviewer_false_positive_suspected と判定"
    
    "Allowed Paths 記載の scripts/python-test-plan.json は repo に存在しない(実在パスは .github/ci/python-test-plan.json)。review-issue の deterministic checker categories に対応するものがなく、free-text heuristic としてのみ記録されているため taxonomy 上 unbacked。ただし実際の contract 上の誤りであり、人間判断で Allowed Paths 修正が必要"
    
    "Step 1 investigation は今回 codebase-investigator の2回目試行で成功(1回目は SubAgent がworktree外main repo絶対パスをcontext_filesに渡したための呼び出しミスで environment_failure、wrapper自体は正常動作と独立検証で確認)。Issue の前提(taxonomy未導入)はコードベースと整合"
    
  5. squne121 commented on Jul 3, 2026

    @squne121
    OwnerAuthor

    Refinement Loop: Human Escalation Required

    The loop has terminated and requires human review. Cause: human judgment required

    Blockers

    "reviewer blocker「## Runtime Verification Applicability セクションがない(レガシー Issue)」(C9_runtime_applicability_present=legacy_missing_applicability, finding_kind=heuristic_concern, deterministic_domain_key=runtime_applicability)は reviewer_claim_replay.py の taxonomy 上 deterministic checker に裏付けられておらず(normalized_kind=unknown_blocker_type, deterministic_backed=false)、同一 body_sha256(sha256:b046b409...)に対し 2 回連続 reviewer_claim_unbacked_by_deterministic_checker/reviewer_false_positive_suspected となったため human_escalation で停止する。前回(2 回目)実行時と同一の taxonomy gap。"
    
    "control-plane による独立調査の結果、Issue #1286 の実装スコープ(.claude/skills/issue-refinement-loop/ 配下の Python スクリプト実装、reviewer_claim_replay.py の taxonomy テーブル統合 + --dump-taxonomy CLI + parity test)は pytest による静的検証のみで完結し、プロセス間通信や外部 I/O を伴わないため、docs/dev/runtime-verification-policy.md の適用判定スキーマ上 Runtime Verification Applicability は not_applicable に該当すると判断できる。人間承認後、Step 4 rewrite で本文に以下のセクションを追加することが妥当な対応:\n\n## Runtime Verification Applicability\n- decision: not_applicable\n- reason: 本 Issue は .claude/skills/issue-refinement-loop/scripts/reviewer_claim_replay.py の taxonomy テーブル統合・--dump-taxonomy CLI 追加・pytest による drift/parity 検証であり、静的検証(unit test / lint / typecheck)のみで完結し、プロセス起動・外部通信・I/O を伴わない。"
    
    "taxonomy gap 自体(reviewer の C9/heuristic_concern を reviewer_claim_replay.py の deterministic_domain_key マッピングに追加すべきかどうか)は本 Issue #1286 が扱う対象そのものであり、循環参照の可能性がある。人間判断で、この human_escalation を経て Step 4 rewrite に進めるか、あるいは #1286 自体の taxonomy 設計に本件を fixture として反映すべきかを決定してほしい。"
    
  6. squne121 commented on Jul 3, 2026

    @squne121
    OwnerAuthor

    Contract Review Result

    CONTRACT_REVIEW_RESULT_V1:
      status: go
      generated_at: "2026-07-03T11:31:20Z"
      generated_by: issue-contract-review
      issue_url: https://github.com/squne121/loop-protocol/issues/1286
      body_sha256: "sha256:821420c56e57521cf271c66ec0bd53e0d741f7cad7fe612b480970e924d776b7"
      checks:
        readiness: go
        blockers: pass
        product_spec: pass
        vc_preflight: pass
      source: ensure_contract_snapshot_auto
  7. squne121 commented on Jul 3, 2026

    @squne121
    OwnerAuthor

    implement-issue: 実装完了

    • PR: feat: reviewer_claim_replay に table-driven taxonomy を導入する #1304
    • Worktree: .claude/worktrees/issue-1286-reviewer-claim-taxonomy
    • Branch: worktree-issue-1286-reviewer-claim-taxonomy
    • Verification: AC1-AC5 の 5 VC すべて PASS。既存 test_reviewer_claim_replay.py(24件)・test_compact_review_result.py(24件)・issue-refinement-loop/tests/ 全体(1100件)・issue-refinement-loop/scripts/tests/(34件)も回帰なし。
    • 後続: PR レビュー(pr-review-judge)→ マージ → post-merge-cleanup
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