Skip to content

実装: fix(replay-taxonomy): readiness rule_id/category を deterministic_domain_key taxonomy に正規化する #1810

Open

Description

@squne121

Machine-Readable Contract

contract_schema_version: v1
issue_kind: implementation
parent_issue: "none"
goal_ref: "REVIEWER_CHECKER_TAXONOMY_V1 を唯一のSSOTとして readiness の full error と producer metadata を deterministic domain に正規化し、既知 blocker の checker_gap 降格と readiness/replay の split-brain を防ぐ"
change_kind: code

Parent Issue

none(単独改善)。依存順は #1549 → #1810 → #1555 とし、#1564 の完了待ち条件は設けない。

Source

Parent Goal Ref

Remaining Parent Gaps

Background

  • readiness error は source_check, rule_id, category, source_payload の全フィールドを保持し、taxonomy entry の entry_id, reviewer_codes, domain, deterministic_domain_key と producer metadata により解決する必要がある。
  • command_not_allowed は reason_class(body_author_fixable / tooling_gap / policy_violation / unsafe_mutation)に応じて routing し、needs_fix は body_author_fixable の場合だけ許可する。RDR001 は autofixable:false を尊重し自動 rewrite に送らず human judgment とする。
  • strict schema、型、body hash、source/category/rule、producer-shape が一致しない readiness artifact、unknown / ambiguous / conflict は fail-closed とする。

Current Validated Scope

  • .claude/skills/issue-contract-review/scripts/contract_readiness_check.py、.claude/skills/issue-refinement-loop/scripts/parent_replay_binding.py、.claude/skills/issue-refinement-loop/scripts/reviewer_claim_replay.py と対応テストを変更する。
  • REVIEWER_CHECKER_TAXONOMY_V1 を唯一の SSOT として VCS001 / LP001 / RVA001 に加え VCP_COMMAND_NOT_ALLOWED と RDR001 を登録し、entry と producer metadata を同一 entry から解決する。
  • full readiness error は rule/category/source/producer-shape の AND 条件で source-qualified に lookup し、unknown / ambiguous / conflict を fail-closed で fix_checker_artifact へ routing する。

Outcome

taxonomy SSOT から reviewer blocker code と deterministic domain key、routing、autofix 可否を一意に解決し、readiness artifact の strict validation と parent replay binding を production wiring する。command_not_allowed は reason_class に応じて routing し body-author-fixable のみ needs_fix、RDR001(required_design_references_missing_or_empty)は autofixable:false を保持して human judgment へ送る。VCS001 / LP001 / RVA001 / VCP_COMMAND_NOT_ALLOWED / RDR001 の E2E が deterministic-backed または契約どおり human judgment となり、checker_gap への誤降格を防止する。

In Scope

  • taxonomy entry に entry_id, reviewer_codes, domain, deterministic_domain_key, source_check, rule_id, category, producer_shape, reason_class, autofixable を定義し、第二の mapping table/dict/match 分岐を禁止する。
  • contract_readiness_check.py の producer metadata から VCP_COMMAND_NOT_ALLOWED と RDR001 の full error を生成し、reason_class routing と autofixable:false を保持する。
  • parent_replay_binding.py / reviewer_claim_replay.py で child claim code と parent-owned readiness artifact を照合し、entry_id は blocker code、deterministic_domain_key は finding domain に格納する。
  • strict schema validation(missing/wrong schema/wrong type/stale body/wrong source/category/rule/producer-shape の拒否)、unknown/ambiguous/conflict の fail-closed、iteration と consecutive_unbacked_count 不変、downgrade 禁止を実装する。
  • E2E: baseline_vc_preflight -> contract_readiness_check -> merge_readiness -> compact_review_result -> REVIEWER_BLOCKER_CLAIM_V1 -> parent_replay_binding -> reviewer_claim_replay.analyze を VCS001/LP001/RVA001/VCP_COMMAND_NOT_ALLOWED/RDR001 で検証する。

Out of Scope

Acceptance Criteria

  • AC1: taxonomy SSOT が VCS001/LP001/RVA001 と VCP_COMMAND_NOT_ALLOWED/RDR001 の entry_id・reviewer_codes・domain・deterministic_domain_key・producer metadata を一意に定義し、第二の hardcoded mapping が存在しない。
  • AC2: full readiness error(source_check, rule_id, category, source_payload)を rule/category/source/producer-shape の AND で source-qualified に解決し、entry_id と deterministic_domain_key の格納先を固定する。
  • AC3: command_not_allowed の reason_class routing は body-author-fixable のみ needs_fix とし、tooling_gap/policy_violation/unsafe_mutation は rewrite に進めない。RDR001 の autofixable:false は human judgment を維持する。
  • AC4: readiness artifact の strict schema/type/body-SHA/source/category/rule/producer-shape 検証が wrong/missing/stale/ambiguous/conflict を fail-closed(fix_checker_artifact、iteration/counter 不変、downgrade 禁止)で拒否する。
  • AC5: child claim code と parent-owned readiness artifact の production wiring が一致し、VCS001/LP001/RVA001 の指定 E2E は deterministic_backed:true、deterministic_fail_confirmed、checker_gap:false で再生される。
  • AC6: VCP_COMMAND_NOT_ALLOWED の baseline preflight と readiness が source-qualified に再生され、body-author-fixable のみ proceed_to_rewrite、その他 reason_class は fail-closed になる。
  • AC7: RDR001 の readiness は required_design_references_missing_or_empty、source_check: contract_readiness_check、autofixable:false を保持し、自動 rewrite に送られず human judgment となる。
  • AC8: dedicated new test file の node-id で、strict schema、wrong source/category/rule、stale body、unknown/ambiguous/conflict、state counter、taxonomy invariant、parent binding、全5 code の E2E が PASS する。

Verification Commands

# AC1
# preflight-scope: pr_review_only
$ uv run --locked pytest .claude/skills/issue-refinement-loop/tests/test_reviewer_claim_replay_taxonomy_ssot.py::test_taxonomy_entries_and_no_duplicate_mapping
# AC2
# preflight-scope: pr_review_only
$ uv run --locked pytest .claude/skills/issue-refinement-loop/tests/test_reviewer_claim_replay_taxonomy_ssot.py::test_source_qualified_full_readiness_error_resolution
# AC3
# preflight-scope: pr_review_only
$ uv run --locked pytest .claude/skills/issue-refinement-loop/tests/test_reviewer_claim_replay_taxonomy_ssot.py::test_reason_class_routing_and_rdr001_autofix_guard
# AC4
# preflight-scope: pr_review_only
$ uv run --locked pytest .claude/skills/issue-refinement-loop/tests/test_reviewer_claim_replay_taxonomy_ssot.py::test_strict_schema_and_fail_closed_guards
# AC5
# preflight-scope: pr_review_only
$ uv run --locked pytest .claude/skills/issue-refinement-loop/tests/test_reviewer_claim_replay_taxonomy_ssot.py::test_parent_binding_and_legacy_taxonomy_e2e
# AC6
# preflight-scope: pr_review_only
$ uv run --locked pytest .claude/skills/issue-refinement-loop/tests/test_reviewer_claim_replay_taxonomy_ssot.py::test_vcp_command_not_allowed_e2e
# AC7
# preflight-scope: pr_review_only
$ uv run --locked pytest .claude/skills/issue-refinement-loop/tests/test_reviewer_claim_replay_taxonomy_ssot.py::test_rdr001_human_judgment_e2e
# AC8
# preflight-scope: pr_review_only
$ uv run --locked pytest .claude/skills/issue-refinement-loop/tests/test_reviewer_claim_replay_taxonomy_ssot.py::test_all_taxonomy_contract_invariants

Allowed Paths

  • .claude/skills/issue-contract-review/scripts/contract_readiness_check.py
  • .claude/skills/issue-refinement-loop/scripts/parent_replay_binding.py
  • .claude/skills/issue-refinement-loop/scripts/reviewer_claim_replay.py
  • .claude/skills/issue-contract-review/tests/test_contract_readiness_check_broad_search_path.py
  • .claude/skills/issue-refinement-loop/tests/test_reviewer_claim_replay_taxonomy_parity.py
  • .claude/skills/issue-refinement-loop/tests/test_reviewer_claim_replay_broad_search_path.py
  • .claude/skills/issue-refinement-loop/tests/test_reviewer_claim_replay_taxonomy_ssot.py
  • .claude/skills/issue-refinement-loop/tests/test_reviewer_claim_replay_taxonomy_ssot.py::test_taxonomy_entries_and_no_duplicate_mapping
  • .claude/skills/issue-refinement-loop/tests/test_reviewer_claim_replay_taxonomy_ssot.py::test_source_qualified_full_readiness_error_resolution
  • .claude/skills/issue-refinement-loop/tests/test_reviewer_claim_replay_taxonomy_ssot.py::test_reason_class_routing_and_rdr001_autofix_guard
  • .claude/skills/issue-refinement-loop/tests/test_reviewer_claim_replay_taxonomy_ssot.py::test_strict_schema_and_fail_closed_guards
  • .claude/skills/issue-refinement-loop/tests/test_reviewer_claim_replay_taxonomy_ssot.py::test_parent_binding_and_legacy_taxonomy_e2e
  • .claude/skills/issue-refinement-loop/tests/test_reviewer_claim_replay_taxonomy_ssot.py::test_vcp_command_not_allowed_e2e
  • .claude/skills/issue-refinement-loop/tests/test_reviewer_claim_replay_taxonomy_ssot.py::test_rdr001_human_judgment_e2e
  • .claude/skills/issue-refinement-loop/tests/test_reviewer_claim_replay_taxonomy_ssot.py::test_all_taxonomy_contract_invariants

Stop Conditions

Required Skills

  • Python(taxonomy table-driven design、strict schema validation、pytest)

Required Design References

  • docs/dev/agent-skill-boundaries.md
  • .claude/skills/issue-refinement-loop/SKILL.md
  • .claude/skills/issue-contract-review/SKILL.md

Runtime Verification Applicability

  • decision: not_applicable
  • reason: readiness/preflight/replay の決定論的ロジックと pytest のみで完結し、外部 runtime 接続を要しない。

Delivery Rule

  • 1 Issue = 1 PR
  • worktree で作業し Draft PR を既定とする

Activity

  1. squne121 commented on Jul 26, 2026

    @squne121
    OwnerAuthor

    create-issue transaction partial-failure

    Issue: #1810
    Failure stage: label-apply
    Message: label-apply failed

    Requested:

    • labels: triage-required, review-issue-related, enhancement, phase/implementation, agent/implementer
    • parent: (none)
    • dependencies: (none)
      Completed steps: create

    Failure context: command=gh issue edit --repo squne121/loop-protocol 1810 --add-label triage-required,review-issue-related,enhancement,phase/implementation,agent/implementer
    output=failed to update #1810: 'review-issue-related' not found
    failed to update 1 issue
    matching_issue_numbers=[1810]
    issue_number=1810

    Recovery hint: stage 'label-apply' encountered an unexpected failure.
    Generic guidance: verify the issue state manually and re-run the transaction if safe.
    gh issue view 1810 --repo squne121/loop-protocol --json number,title,labels,state
    idempotent re-run: depends on the specific failure

    Please recover deterministically before re-running the create issue transaction.

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

    @squne121
    OwnerAuthor

    判定

    REQUEST_CHANGES — 問題設定は正しいものの、Issue #1810 は現状の契約では実装開始不可です。

    readiness_error_to_structured_blocker() が code に生の rule_id、deterministic_domain_key に生の category を入れる一方、replay 側の通常 lookup は readiness ID/category を参照しません。このため、VCS001 などが未知コードとして checker_gap に分類される経路は実在します。問題の発見自体は妥当です。

    ただし、現在のACでは「変換関数を追加したが実運用経路には接続されていない」「誤った正規化で別の split-brain を作る」という実装でも完了扱いになります。

    Blocker 1 — entry_id と deterministic_domain_key を混同している

    Issue本文は複数箇所で「taxonomy entry_id(deterministic_domain_key)」と同一視していますが、現行taxonomyでは明確に別物です。

    • missing_section の entry_id に対する domain key は required_sections
    • rva_immediate_field_missing の domain key は runtime_applicability
    • vc_command_format のみ、たまたま両者が同名

    さらに finding 照合は、entry_id ではなくエントリの先頭 domain_keys と finding.deterministic_domain_key を比較します。したがって、例えば LP001 → missing_section だけを実装し、その値を deterministic_domain_key に入れると、既存の required_sections finding と一致しません。

    必要な修正

    変換結果を最低でも次の2値として明記してください。

    LP001:
      entry_id: missing_section
      deterministic_domain_key: required_sections
    
    RVA001:
      entry_id: rva_immediate_field_missing
      deterministic_domain_key: runtime_applicability
    
    VCS001:
      entry_id: vc_command_format
      deterministic_domain_key: vc_command_format
    

    structured_blocker.code と deterministic_domain_key のどちらに何を格納するかもACで固定する必要があります。

    Blocker 2 — 単体変換関数では本番経路を直せない

    実際の parent replay に渡される child claim は、次の4項目だけです。

    • reviewer_blocker_code
    • message
    • line_start
    • line_end

    category、deterministic_domain_key、checker_evidence は渡されません。compact_review_result.py は structured_blockers[].code を claim の code に採用し、parent binding はそのcodeだけで replay用の review_result を再構築します。findings と deterministic_checks は意図的に空です。

    したがって、次の実装はACを通しても不具合を直しません。

    def readiness_rule_id_to_entry_id(rule_id, category):
        ...

    関数がどこからも呼ばれなければ、parent replay は従来どおり VCS001 を未知コードとして扱います。これはPR #1801で一度発生した「adapter関数は存在するがproduction wiringがない」という失敗パターンと同型です。PR #1801自身もこのtaxonomy不整合を未対応follow-upとして記録しています。

    必要な修正

    ACに次のE2Eを追加してください。

    contract_readiness_check
    → check_issue_contract --mode merge_readiness
    → compact_review_result
    → REVIEWER_BLOCKER_CLAIM_V1
    → parent_replay_binding
    → reviewer_claim_replay.analyze
    

    この経路で VCS001、LP001、RVA001 がそれぞれ以下になることを検証すべきです。

    deterministic_backed: true
    verdict_detail_v1: deterministic_fail_confirmed
    routing: proceed_to_rewrite
    checker_gap: false
    

    Blocker 3 — 「fail-closed」の出力契約が未定義

    Issueは未知ruleを「fail-closed」「unmappedとして明示」としていますが、具体的な verdict、routing、state counter がありません。

    現行実装では未知codeは次のようになります。

    1. 初回: checker_gap → downgrade_to_non_blocking
    2. 同一laneの2回目: checker_gap_repeated → human_escalation
    3. consecutive_unbacked_count が増加

    つまり、変換関数が None を返すだけでは、Issueが解消したい現在の挙動をそのまま残します。

    未知・曖昧・矛盾時の契約を、例えば次のように固定する必要があります。

    reason_code:
      - unmapped_readiness_taxonomy
      - ambiguous_readiness_taxonomy
      - readiness_taxonomy_conflict
    
    routing: fix_checker_artifact
    should_consume_iteration: false
    consecutive_unbacked_count: 変更しない
    downgrade_to_non_blocking: 禁止
    

    input_or_runtime_error / human_judgment_required を選ぶ設計も可能ですが、少なくとも「どの値になるか」をACで固定しなければなりません。

    High 1 — 文字列だけのlookupへ追加すると、producer検証を弱体化する

    現行taxonomyは、readiness categoryを単なる文字列ではなく、実質的に次の複合キーとして扱っています。

    (source_check, category)
    

    また、切り詰められる VCP_* ruleについては、rule IDとcategoryの両方に加え、source_payload のproducer shapeまで検証しています。taxonomy invariantも、category単体ではなく (source_check, category) ペアの重複を検出します。

    したがって、TAXONOMY_LOOKUP に以下を単純追加する方式は不適切です。

    lookup["vcs001"] = "vc_command_format"
    lookup["compound_command_disallowed"] = "vc_command_format"

    これではwrong sourceや、将来別producerが同じcategory名を使った場合の衝突を検出できません。外部の入力検証指針でも、個々のフィールドだけでなく、関連フィールド間の整合性と業務ルールを検証することが求められます。([CWE]1)

    正規化関数は生文字列ではなく、少なくとも完全なreadiness errorを入力にすべきです。

    resolve_readiness_taxonomy_entry(
        source_check,
        rule_id,
        category,
        source_payload,
    )

    判定規則も必要です。

    • rule IDとcategoryが同じentryを示す: 正常
    • 一方だけ一致: entryごとのpolicyに従う
    • 両方が異なるentryを示す: conflictとしてfail-closed
    • strictなVCP系: rule ID、category、source、producer shapeの全一致
    • bare categoryだけのグローバルlookupは禁止

    High 2 — #1564との「独立に並行可能」は成立していない

    #1564は同じ reviewer_claim_replay.py とtaxonomy parity testsを変更し、RDR001 / command_not_allowed に対してrule ID・category・sourceのAND semanticsとproducer-shape検証を追加するIssueです。#1549も同じtaxonomyへ切り詰め VCP_* エントリを追加します。いずれも現在openです。

    さらに#1555は#1564をprerequisiteとし、既存6 taxonomy entryの意味論変更を明示的にスコープ外としています。一方#1810は、その既存entryに対する解決方法自体を変更します。

    推奨順序

    #1549 / #1564
            ↓
    #1810
            ↓
    #1555
    

    または、#1810へ#1549・#1564のtaxonomy変更を統合し、重複Issueを整理する必要があります。単なる「マージコンフリクトに留意」では不十分です。

    Medium 1 — SSOTに反する二重マッピングを許している

    taxonomyは既に次を同じentryに保持するtable-driven SSOTとして設計されています。

    • reviewer codes
    • deterministic checks
    • readiness rule IDs
    • readiness categories
    • domain keys

    #1286とPR #1304の設計目的も、個別dictや分岐を増やさず、追加をtaxonomy tableだけで完結させることです。

    しかし#1810の記述では、独立した次のようなdictでもACを満たせます。

    READINESS_RULE_TO_ENTRY = {
        "VCS001": "vc_command_format",
        "LP001": "missing_section",
        "RVA001": "rva_immediate_field_missing",
    }

    これは将来taxonomyとのdriftを再発させます。

    ACに以下を追加すべきです。

    正規化は REVIEWER_CHECKER_TAXONOMY_V1 から導出し、同じ対応を保持する第二の定数・dict・match分岐を追加しない。

    なお、RVA001 は現行entryの readiness_rule_ids に入っておらずcategoryだけで紐づいているため、table自体に追加するか、categoryを含むresolverで扱うかを明記する必要があります。

    Medium 2 — テスト計画が単体・happy pathに偏っている

    現在のACでは、関数単体の期待値を書くだけで完了可能です。最低限、以下が必要です。

    1. source_check + rule_id + category の正しい組み合わせ
    2. wrong source、wrong category、wrong rule
    3. ruleとcategoryが別entryを指すconflict
    4. taxonomy未登録ruleがchecker_gap downgradeされないこと
    5. truncated VCP_* の衝突とsource_payload検証
    6. 複数blockerのうち一部だけmappedの場合
    7. taxonomy dumpとinvariantのdrift検出
    8. parent bindingまで含むE2E
    9. unknown/conflict時にstate counterを増やさないこと

    既存テストはtaxonomy entry集合、category、重複をかなり厳格に固定しているため、#1810で新しいresolverを追加するなら同じinvariant suiteへ組み込むべきです。

    Low — Issue作成transactionが未回復

    Issueコメントには、存在しない review-issue-related labelの適用に失敗したpartial transactionが残っています。現在のラベル集合も要求された完全な状態ではありません。実装上のblockerではありませんが、再実行前にtransactionをdeterministically recoveryすべきです。

    推奨する設計

    現行のtrust boundaryを維持するなら、parent-owned readiness artifactを使って正規化する方式が適切です。

    @dataclass(frozen=True)
    class TaxonomyResolution:
        entry_id: str
        deterministic_domain_key: str
        reason_code: str | None = None
    
    
    def resolve_readiness_taxonomy_entry(
        error: dict[str, Any],
    ) -> TaxonomyResolution | None:
        ...

    処理は次の順序にします。

    1. child claimからはcodeのみ受け取る。
    2. parent-owned readiness errorsから同じcodeに対応するerror候補を取得する。
    3. source_check、rule_id、category、必要ならsource_payloadをtaxonomy tableと照合する。
    4. 一意に解決できた場合だけcanonical entry_id とdomain keyを得る。
    5. childのcodeから得た結果とparent-owned evidenceの結果が矛盾した場合はfail-closed。
    6. raw rule_id / category はevidenceとして保持し、canonical識別子と混ぜない。

    RFC 9457では機械的な識別に安定したtype identifierを使い、人間向けdetailの解析に依存しない設計が推奨されています。OpenTelemetryも error.type を予測可能かつ低カーディナリティのcanonical identifierにするよう規定しています。ここでも生のproducer ruleとcanonical taxonomy IDを分離するのが妥当です。([RFC Editor]2)

    最低限のAC改訂案

    AC1:
    full readiness error
    (source_check/rule_id/category/source_payload)
    から、entry_id と deterministic_domain_key の両方を返す
    table-derived resolverを実装する。
    
    AC2:
    VCS001 → (vc_command_format, vc_command_format)
    LP001 → (missing_section, required_sections)
    RVA001 → (rva_immediate_field_missing, runtime_applicability)
    を検証する。
    
    AC3:
    unknown、ambiguous、rule/category conflictを明示reason_codeで
    fail-closedにし、checker_gap downgradeおよび
    consecutive_unbacked_count増加を禁止する。
    
    AC4:
    VCP truncation対象はrule/category/source/producer-shapeの
    AND条件を維持する。
    
    AC5:
    readiness producerからparent_replay_bindingまでのE2Eで
    3ルールがdeterministic_fail_confirmedになることを検証する。
    
    AC6:
    第二のhardcoded mapping tableを禁止し、
    taxonomy dump/schema/invariant testsを更新する。
    
    AC7:
    #1549/#1564とのdependency orderingを明示し、
    未完了のまま同一ファイルへ並行実装しない。
    

    結論: #1810は削除すべきIssueではありません。実障害を正しく捉えています。ただし、canonical identity、production wiring、unknown時のrouting、source-qualified validation、関連Issueの順序を契約に追加してから実装へ進めるべきです。現行のままでは、表面的なunit testだけを追加して再び「関数はあるが実運用ではchecker_gap」という状態になる可能性が高いです。

    今回の判定はGitHub上の現行コード・Issue・PR・コメントを用いた静的レビューです。リポジトリのテストコマンド自体は実行していません。

  4. squne121 commented on Jul 28, 2026

    @squne121
    OwnerAuthor

    Refinement Loop: Human Escalation Required

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

    Blockers

    "review_compact_intermediate_invalid: ARTIFACT が absolute path のため intermediate grammar に不適合"
    
    "contract_readiness_human_judgment: 6本の Verification Commands が canonical runtime-smoke target ではない python -m pytest 形式として拒否された"
    
  5. squne121 commented on Jul 28, 2026

    @squne121
    OwnerAuthor

    Contract Review Result

    CONTRACT_REVIEW_RESULT_V1:
      status: go
      generated_at: "2026-07-28T21:51:03Z"
      generated_by: issue-contract-review
      issue_url: https://github.com/squne121/loop-protocol/issues/1810
      body_sha256: "sha256:e244ba564e1f55f915eec80ad3f6c7d75f4f7cafc80cafa885b16afe1fb60f2d"
      checks:
        readiness: go
        blockers: pass
        product_spec: pass
        product_spec_check: {"schema":"product_spec_check/v1","applicability":"applicable","decision":"pass","triggers":{"docs_product_allowed_paths":false,"tasks_md_mentioned":false,"specify_artifact_mentioned":false,"generated_task_mentioned":false,"product_spec_context_present":false,"machine_readable_contract_present":true},"conditions":{"docs_product_requires_spec_evidence":{"status":"pass","evidence":[]},"tasks_md_not_direct_source":{"status":"pass","evidence":[]},"specify_not_canonical":{"status":"pass","evidence":[]},"diff_first_rationale_present":{"status":"pass","evidence":[]},"generated_task_trace_present":{"status":"pass","evidence":[]},"task_dependencies_materialized":{"status":"pass","evidence":[]}},"blocked_reasons":[],"body_sha256":"sha256:e244ba564e1f55f915eec80ad3f6c7d75f4f7cafc80cafa885b16afe1fb60f2d","source_provenance":{"source_type":"github_api","body_file":null}}
        vc_preflight:
          decision: pass
          classifications: [{"ac":"AC1","line":3,"raw_command":"uv run --locked python3 -m pytest \".claude/skills/issue-refinement-loop/tests/test_reviewer_claim_replay_taxonomy_parity.py::test_entry_id_and_domain_key_pairs\"","command_hash":"sha256:44093044a6baa628a336259266e81c99603ac08f2311eac6ffc467518f30f704","execution_key_hash":null,"runner":"skipped","exit_code":null,"classification":"skipped","category":"preflight_scope_pr_review_only","decision":"go","scope_class":"pr_review_only","confidence":"low","stdout_head":[],"stdout_truncated":false,"stdout_original_line_count":1,"stderr_head":[],"stderr_truncated":false,"stderr_original_line_count":1,"runner_env_delta":{},"duration_ms":0,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":null,"vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":null,"raw":null},"strict":null,"repair":null,"verification_owner":"pr-review-judge","deferred_reason":"VC marked pr_review_only; verification deferred to PR review","runtime_verification_required":false},{"ac":"AC2","line":6,"raw_command":"uv run --locked python3 -m pytest \".claude/skills/issue-refinement-loop/tests/test_reviewer_claim_replay_taxonomy_parity.py::test_resolution_uses_taxonomy_ssot_only\"","command_hash":"sha256:632e7a9373f6db4bcf47f90e8c48b7365ac8814ee8e57f9f3fcc3b741ba0ca44","execution_key_hash":null,"runner":"skipped","exit_code":null,"classification":"skipped","category":"preflight_scope_pr_review_only","decision":"go","scope_class":"pr_review_only","confidence":"low","stdout_head":[],"stdout_truncated":false,"stdout_original_line_count":1,"stderr_head":[],"stderr_truncated":false,"stderr_original_line_count":1,"runner_env_delta":{},"duration_ms":0,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":null,"vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":null,"raw":null},"strict":null,"repair":null,"verification_owner":"pr-review-judge","deferred_reason":"VC marked pr_review_only; verification deferred to PR review","runtime_verification_required":false},{"ac":"AC3","line":9,"raw_command":"uv run --locked python3 -m pytest \".claude/skills/issue-refinement-loop/tests/test_reviewer_claim_replay_taxonomy_parity.py::test_child_claim_matches_parent_readiness_artifact\"","command_hash":"sha256:6b1bf06ed71d72422b4c292c4a4024f73e296d721a86d42c9e8c1d5488e65d2f","execution_key_hash":null,"runner":"skipped","exit_code":null,"classification":"skipped","category":"preflight_scope_pr_review_only","decision":"go","scope_class":"pr_review_only","confidence":"low","stdout_head":[],"stdout_truncated":false,"stdout_original_line_count":1,"stderr_head":[],"stderr_truncated":false,"stderr_original_line_count":1,"runner_env_delta":{},"duration_ms":0,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":null,"vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":null,"raw":null},"strict":null,"repair":null,"verification_owner":"pr-review-judge","deferred_reason":"VC marked pr_review_only; verification deferred to PR review","runtime_verification_required":false},{"ac":"AC4","line":12,"raw_command":"uv run --locked python3 -m pytest \".claude/skills/issue-refinement-loop/tests/test_reviewer_claim_replay_taxonomy_parity.py::test_readiness_claim_replay_e2e\"","command_hash":"sha256:cb84fdc8e248a8d8335adf64ea7a33f6e84d74c9ce13a0634665b89a54368d9a","execution_key_hash":null,"runner":"skipped","exit_code":null,"classification":"skipped","category":"preflight_scope_pr_review_only","decision":"go","scope_class":"pr_review_only","confidence":"low","stdout_head":[],"stdout_truncated":false,"stdout_original_line_count":1,"stderr_head":[],"stderr_truncated":false,"stderr_original_line_count":1,"runner_env_delta":{},"duration_ms":0,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":null,"vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":null,"raw":null},"strict":null,"repair":null,"verification_owner":"pr-review-judge","deferred_reason":"VC marked pr_review_only; verification deferred to PR review","runtime_verification_required":false},{"ac":"AC5","line":15,"raw_command":"uv run --locked python3 -m pytest \".claude/skills/issue-refinement-loop/tests/test_reviewer_claim_replay_taxonomy_parity.py::test_unknown_ambiguous_conflict_fail_closed\"","command_hash":"sha256:667b29b14e31b1a898d3ac28685a53277efbe1c4bf6d3a2f8d3254f51a4ba1ad","execution_key_hash":null,"runner":"skipped","exit_code":null,"classification":"skipped","category":"preflight_scope_pr_review_only","decision":"go","scope_class":"pr_review_only","confidence":"low","stdout_head":[],"stdout_truncated":false,"stdout_original_line_count":1,"stderr_head":[],"stderr_truncated":false,"stderr_original_line_count":1,"runner_env_delta":{},"duration_ms":0,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":null,"vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":null,"raw":null},"strict":null,"repair":null,"verification_owner":"pr-review-judge","deferred_reason":"VC marked pr_review_only; verification deferred to PR review","runtime_verification_required":false},{"ac":"AC6","line":18,"raw_command":"uv run --locked python3 -m pytest \".claude/skills/issue-refinement-loop/tests/test_reviewer_claim_replay_taxonomy_parity.py::test_truncated_vcp_and_invariant_guards\"","command_hash":"sha256:334fb19946ce5fd67dc9fdf4ebbf29c43436d3b2c0568085999ce48b0856e80d","execution_key_hash":null,"runner":"skipped","exit_code":null,"classification":"skipped","category":"preflight_scope_pr_review_only","decision":"go","scope_class":"pr_review_only","confidence":"low","stdout_head":[],"stdout_truncated":false,"stdout_original_line_count":1,"stderr_head":[],"stderr_truncated":false,"stderr_original_line_count":1,"runner_env_delta":{},"duration_ms":0,"fix_hint":null,"certified_target_paths":null,"annotations":{"baseline_expect":null,"vc_role":null,"missing_baseline_expect":false},"annotation_source":{"line":null,"raw":null},"strict":null,"repair":null,"verification_owner":"pr-review-judge","deferred_reason":"VC marked pr_review_only; verification deferred to PR review","runtime_verification_required":false}]
        declared_path_overlap: {"schema":"declared_path_overlap/v1","advisory":true,"blocking":false,"decision":"advisory_only","disjoint":true,"overlapping_prs":[],"inventory":{"schema":"OPEN_PR_INVENTORY_V1","repo":"squne121/loop-protocol","state":"open","base_ref":"main","base_sha":"bc703b449818d858d694040156aed08c6d7c3c69","draft_policy":"include_drafts","prs":[{"number":1528,"title":"feat(cleanup): 同一実行内の branch-only fallback を追加","base_ref_name":"main","head_ref_name":"worktree-issue-1403-post-merge-cleanup-dedicated-branch-forc","head_ref_oid":"b29007580ae225eb9676c7f32c878ee2bb9ccaa9","is_draft":false,"is_cross_repository":false,"head_repository_owner":"squne121","head_repository_name":"loop-protocol","url":"https://github.com/squne121/loop-protocol/pull/1528","changed_files_count_graphql":4},{"number":1817,"title":"test: CLOSED predecessor の候補外 readback を固定 (#1766)","base_ref_name":"main","head_ref_name":"worktree-issue-1766-closed-native-predecessor-regression-v2","head_ref_oid":"5e39ca27825d76873b285de39a195a8d8f2311fd","is_draft":true,"is_cross_repository":false,"head_repository_owner":"squne121","head_repository_name":"loop-protocol","url":"https://github.com/squne121/loop-protocol/pull/1817","changed_files_count_graphql":1},{"number":1819,"title":"実装:#1797_C2a-successor-structural-collisionのhuman-review-route修正","base_ref_name":"main","head_ref_name":"worktree-issue-1797-c2a-successor-collision","head_ref_oid":"e1bb2480b8cc6968496e53660d17b25993864a2d","is_draft":true,"is_cross_repository":false,"head_repository_owner":"squne121","head_repository_name":"loop-protocol","url":"https://github.com/squne121/loop-protocol/pull/1819","changed_files_count_graphql":5},{"number":1831,"title":"実装: TEST_VERDICT consumer integration(materializer + receipt-aware adjudicator)を追加する","base_ref_name":"main","head_ref_name":"worktree-issue-1648-test-verdict-consumer-integration","head_ref_oid":"3f6a43073e1edc1b7e5c566f3f27be2610fc7891","is_draft":true,"is_cross_repository":false,"head_repository_owner":"squne121","head_repository_name":"loop-protocol","url":"https://github.com/squne121/loop-protocol/pull/1831","changed_files_count_graphql":5}],"fetched_count":4,"totalCount":4,"has_next_page":false,"complete":true,"saturated":false,"limit":200,"page_count":1,"inventory_digest":"sha256:ca28022bc3098400b3f33b8f4123f8cd8e5e2da52a0dd48ed5431e6b74e6ef6f","errors":[]},"inventory_digest_extended":"sha256:bfde17119bed975b96f2ea88798054039460cd5982af81c4d9dabd15cde49bde","errors":[],"note":"changed-file 名の単純な重なりのみを証明する advisory check。3-way merge・hunk 競合・rename/delete 競合は評価しない(実 Git merge 競合の判定は Issue #1792 の PAIRWISE_MERGE_OBSERVATION_V1 producer の責務)。単独では blocking にしない。disjoint は tri-state(true/false/null)— 観測が不完全な場合は null。"}
      source: ensure_contract_snapshot_auto
      expected_contract_fingerprint: {"issue_number":1810,"contract_source_kind":"issue_comment","contract_source_id":"5110062837","contract_body_sha256":"sha256:e244ba564e1f55f915eec80ad3f6c7d75f4f7cafc80cafa885b16afe1fb60f2d","allowed_paths_normalized_sha256":"417586a31eb735fd72bac92ae6ec9291e4ef8b4f2b54942eeee3770a4e5858f7","base_ref":"main","base_sha_at_snapshot":"bc703b449818d858d694040156aed08c6d7c3c69"}
  6. squne121 commented on Jul 28, 2026

    @squne121
    OwnerAuthor

    impl-review-loop: 人間判断要請(2026-07-28T21:54:00Z)

    人間の判断後、依存完了を live readback してから本 loop を再開してください。

    IMPL_REVIEW_LOOP_RESULT_V1:
      schema_version: 1
      status: human_escalation
      issue_number: 1810
      iteration: 0
      termination_reason: human_escalation
      last_step: implementation
      merge_ready: false
      pr_url: null
      blockers:
        - dependency_state_mismatch: "#1549/#1564 are OPEN; same-taxonomy parallel implementation is forbidden"
      scope_rollup_decision:
        decision: deferred
        reason: runner_unavailable
  7. squne121 commented on Jul 28, 2026

    @squne121
    OwnerAuthor

    impl-review-loop: structural overlap による人間判断要請(2026-07-28T22:00:00Z)

    • iteration: 0
    • 実装 commit: 4303a6c288e026247b3fd2a9cb06e96b77e92fd1(未公開)
    • 検証: AC1〜AC6 PASS、taxonomy parity 28 passed / 0 failed
    • Allowed Paths: 遵守
    • PR: 未作成(push も未実行)

    停止理由

    #1549/#1564 が OPEN であるだけでは停止していません。live readback では両 Issue の open PR と対応ローカル branch はありませんでした。

    ただし fresh overlap preflight は以下の structural collision を human_review_required と判定しました。

    この分類は open-pr の waiver 対象外で、proceed_with_collision_evidence を満たす既存証跡もありません。そのため sanctioned publish / Draft PR 起票を行いません。

    IMPL_REVIEW_LOOP_RESULT_V1:
      schema_version: 1
      status: human_escalation
      issue_number: 1810
      iteration: 0
      termination_reason: human_escalation
      last_step: implementation
      head_sha: "4303a6c288e026247b3fd2a9cb06e96b77e92fd1"
      pr_url: null
      merge_ready: false
      blockers:
        - overlap_preflight_human_review_required
      overlap_evidence_sha256: "sha256:e7c649d38775c32f4ff15616c2a1680cfd4628d449ba86da1922801cdcc797d8"
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