Repository navigation
Description
Machine-Readable Contract
contract_schema_version: v1
issue_kind: implementation
parent_issue: "none"
goal_ref: "#1810 が利用できる REVIEWER_CHECKER_TAXONOMY_V1 の最小 SSOT foundation を実装する"
change_kind: code
dependencies: ["#1810 consumes this foundation; #1555 is downstream"]
Parent Issue
none(単独改善)
Parent Goal Ref
anchor comment #5115886604 の REQUEST_CHANGES を反映し、#1810 の prerequisite foundation を提供する。
Current Validated Scope
- taxonomy table/resolver、対象 entry、E2E/negative tests は以下の In Scope と Allowed Paths に限定する。
- 実装・PR・worktree は本 refinement 実行では開始しない。
Remaining Parent Gaps
なし(#1810 が downstream integration を所有する)。
Outcome
親 Issue はありません。anchor(https://github.com/squne121/loop-protocol/issues/1549#issuecomment-5115886604)の REQUEST_CHANGES を反映し、#1549 を #1810 が安全に利用できる最小 taxonomy SSOT foundation に改訂する。実装後、既存ファイルに存在しない pytest node id を非正規 VC として実 producer から再現し、parent replay が deterministic_fail_confirmed として裏付ける。
In Scope
REVIEWER_CHECKER_TAXONOMY_V1の table-driven SSOT foundation と、existing_file_missing_node_id_noncanonicalの entry。- entry から一意に解決する
entry_id、accepted reviewer codes、readinessrule_id、readinesscategory、期待source_check、deterministic_domain_key、producer-shape validation policy、rule/category resolver。 - strict entry は rule・category・source・producer shape を AND で照合する generic resolver とし、同じ対応を保持する第二の map/set/match/category-if を追加しない。fuzzy/自然言語 matching は禁止する。
- 現行
domain_keysconsumer との後方互換性を保つ。ただしentry_id(canonical taxonomy identity)とdeterministic_domain_key(source-qualified collision key)は別フィールドとして扱い、既存 consumer を破壊しない。 - target entry の production E2E、negative/fail-closed matrix、taxonomy dump、collision invariant、既存 entry 回帰。temporary reproduction はテスト内部で existing pytest file と missing node id を作る。
Out of Scope
- 実装: fix(replay-taxonomy): readiness rule_id/category を deterministic_domain_key taxonomy に正規化する #1810 が本 foundation を利用して所有する全 readiness normalization(VCS001、LP001、RVA001、VCP_COMMAND_NOT_ALLOWED、RDR001)、reason class、autofix、複数 blocker の unknown/ambiguous/conflict routing、broader production integration、実装: reviewer_claim_replay.py の taxonomy に RDR001 / VCP_COMMAND_NOT_ALLOWED を追加し parent_replay_binding.py に C9 evidence 経路を追加する #1555 handoff。
- 実装: reviewer checker taxonomy の最小 SSOT foundation と既存ファイル未登録node-id resolver #1549 と 実装: fix(replay-taxonomy): readiness rule_id/category を deterministic_domain_key taxonomy に正規化する #1810 に mapping table、generic resolver、producer-shape policy を二重実装しない。実装: fix(replay-taxonomy): readiness rule_id/category を deterministic_domain_key taxonomy に正規化する #1810 は本 Issue の SSOT entry/resolver を consume し、追加 entry を同じ SSOTへ登録する。
baseline_vc_preflight.pyの既存 category 判定、state store、実装: issue-reviewer envelope 生成を決定論的スクリプトに統合する #1541/実装: build_request.py を provider-aware にし、Gemini/AGY/auto の request contract を正しく生成・検証する #1692 の再判定、ソース実装・PR・worktree の変更は行わない。
Acceptance Criteria
- AC1 (taxonomy SSOT):
entry_id=existing_file_missing_node_id_noncanonicalが reviewer codes、VCP_EXISTING_FILE_MISSIN、category、baseline_vc_preflight、deterministic_domain_key、producer-shape policy を一意に持ち、domain-key collision と第二の mapping がない。 - AC2 (canonical normalization): category、rule id、許可した大小文字 variant のみが同一 entry に正規化され、自然言語文・substring・token/semantic matching は unknown のままになる。
- AC3 (real classifier): test 内の temporary existing pytest file に missing node id を指定し、実
baseline_vc_preflight.pyがexisting_file_missing_node_id_noncanonical、VCP_EXISTING_FILE_MISSIN、実際の classification/decision/scope_class を生成する。新規 test file 不在による exit 4 だけを証明に使わない。 - AC4 (readiness producer): 実 preflight artifact を
contract_readiness_check.pyに渡し、body SHA、source payload、rule、category、source check を保持した readiness error を生成する。 - AC5 (full CLI chain): baseline preflight → contract readiness →
check_issue_contract --mode merge_readiness→ compact claim → V2 envelope/parent replay binding →reviewer_claim_replay.analyze→ V2 validation を subprocess で通し、reviewer_blocker_code=VCP_EXISTING_FILE_MISSIN、deterministic_backed=true、verdict_detail_v1=deterministic_fail_confirmed、routing=proceed_to_rewrite、should_consume_iteration=true、checker_gap=falseを満たす。 - AC6 (strict negatives): schema/type、source payload/check、rule、category、rule-category conflict、classification、decision、scope_class、missing/stale SHA、unknown/ambiguous、malformed producer、preflight/readiness 不一致を個別に reject し、AND semantics を確認する。
- AC7 (fail closed): AC6 の拒否は具体的 reason と
fix_checker_artifactまたは明示 human lane に固定し、should_consume_iteration=false、downgrade_to_non_blocking禁止、consecutive_unbacked_count不変を証明する。 - AC8 (NL regression): 実装: build_request.py を provider-aware にし、Gemini/AGY/auto の request contract を正しく生成・検証する #1692 の自然言語 reviewer code は canonical chain から生成されず、直接 analyze に渡しても既知 entry として誤認しない。
- AC9 (multiple/observability): mapped/unknown/inconsistent blocker 混在の優先 routing、state counter/evidence binding、taxonomy dump、collision invariant、既存 taxonomy/replay 回帰が PASS する。
- AC10 (ownership): 実装: reviewer checker taxonomy の最小 SSOT foundation と既存ファイル未登録node-id resolver #1549→実装: fix(replay-taxonomy): readiness rule_id/category を deterministic_domain_key taxonomy に正規化する #1810→実装: reviewer_claim_replay.py の taxonomy に RDR001 / VCP_COMMAND_NOT_ALLOWED を追加し parent_replay_binding.py に C9 evidence 経路を追加する #1555 の依存順、SSOT migration、
domain_keyscompatibility、entry_id と deterministic_domain_key の区別、重複 mapping/resolver 禁止を明記し、Allowed Paths 外へ scope を拡張しない。
Verification Commands
# AC1
$ uv run --locked pytest .claude/skills/issue-refinement-loop/tests/test_reviewer_claim_replay_existing_file_missing_node_id.py::test_taxonomy_ssot_entry -q
# AC2
$ uv run --locked pytest .claude/skills/issue-refinement-loop/tests/test_reviewer_claim_replay_existing_file_missing_node_id.py::test_canonical_normalization -q
# AC3
$ uv run --locked pytest .claude/skills/issue-refinement-loop/tests/test_reviewer_claim_replay_existing_file_missing_node_id.py::test_real_baseline_classifier_existing_file_missing_node_id -q
# AC4
$ uv run --locked pytest .claude/skills/issue-refinement-loop/tests/test_reviewer_claim_replay_existing_file_missing_node_id.py::test_readiness_producer_preserves_source_and_sha -q
# AC5
$ uv run --locked pytest .claude/skills/issue-refinement-loop/tests/test_reviewer_claim_replay_existing_file_missing_node_id.py::test_full_cli_chain_parent_replay -q
# AC6
$ uv run --locked pytest .claude/skills/issue-refinement-loop/tests/test_reviewer_claim_replay_existing_file_missing_node_id.py::test_strict_negative_matrix_fail_closed -q
# AC7
$ uv run --locked pytest .claude/skills/issue-refinement-loop/tests/test_reviewer_claim_replay_existing_file_missing_node_id.py::test_fail_closed_state_contract -q
# AC8
$ uv run --locked pytest .claude/skills/issue-refinement-loop/tests/test_reviewer_claim_replay_existing_file_missing_node_id.py::test_natural_language_never_normalizes -q
# AC9
$ uv run --locked pytest .claude/skills/issue-refinement-loop/tests/test_reviewer_claim_replay_existing_file_missing_node_id.py::test_multiple_blockers_and_taxonomy_dump -q
# AC10
$ uv run --locked pytest .claude/skills/issue-refinement-loop/tests/test_reviewer_claim_replay_existing_file_missing_node_id.py::test_downstream_ownership_contract -q
Node ID binding (AC1–AC10) is respectively
test_reviewer_claim_replay_existing_file_missing_node_id.py::test_taxonomy_ssot_entry,
::test_canonical_normalization, ::test_real_baseline_classifier_existing_file_missing_node_id,
::test_readiness_producer_preserves_source_and_sha, ::test_full_cli_chain_parent_replay,
::test_strict_negative_matrix_fail_closed, ::test_fail_closed_state_contract,
::test_natural_language_never_normalizes, ::test_multiple_blockers_and_taxonomy_dump,
and ::test_downstream_ownership_contract.
回帰として test 内から taxonomy parity、既存 replay、broad-search strict matcher、merge-readiness、V2 chain を実行する。uv run --locked を canonical command とし、既に同期済みの環境でのみ --no-sync --offline を追加してよい。
Runtime Verification Applicability
decision: not_applicable
reason: >
外部サービスまたは本番 runtime への接続は不要。ただし local subprocess、
temporary filesystem、baseline-preflight、readiness merge、parent-replay
production CLI chain は実行する。
Allowed Paths
.claude/skills/issue-refinement-loop/scripts/reviewer_claim_replay.py.claude/skills/issue-refinement-loop/tests/test_reviewer_claim_replay_existing_file_missing_node_id.py.claude/skills/issue-refinement-loop/tests/test_reviewer_claim_replay_taxonomy_parity.py
VC node-id selectors are bounded subpaths of the same new test file (not new source files or directories):
.claude/skills/issue-refinement-loop/tests/test_reviewer_claim_replay_existing_file_missing_node_id.py::test_taxonomy_ssot_entry.claude/skills/issue-refinement-loop/tests/test_reviewer_claim_replay_existing_file_missing_node_id.py::test_canonical_normalization.claude/skills/issue-refinement-loop/tests/test_reviewer_claim_replay_existing_file_missing_node_id.py::test_real_baseline_classifier_existing_file_missing_node_id.claude/skills/issue-refinement-loop/tests/test_reviewer_claim_replay_existing_file_missing_node_id.py::test_readiness_producer_preserves_source_and_sha.claude/skills/issue-refinement-loop/tests/test_reviewer_claim_replay_existing_file_missing_node_id.py::test_full_cli_chain_parent_replay.claude/skills/issue-refinement-loop/tests/test_reviewer_claim_replay_existing_file_missing_node_id.py::test_strict_negative_matrix_fail_closed.claude/skills/issue-refinement-loop/tests/test_reviewer_claim_replay_existing_file_missing_node_id.py::test_fail_closed_state_contract.claude/skills/issue-refinement-loop/tests/test_reviewer_claim_replay_existing_file_missing_node_id.py::test_natural_language_never_normalizes.claude/skills/issue-refinement-loop/tests/test_reviewer_claim_replay_existing_file_missing_node_id.py::test_multiple_blockers_and_taxonomy_dump.claude/skills/issue-refinement-loop/tests/test_reviewer_claim_replay_existing_file_missing_node_id.py::test_downstream_ownership_contract
上記以外は Required Design References / test dependencies として読むだけで、path追加はしない。Allowed Paths 外の実装が必要なら停止し、scope expansion を要求する。
Required Skills
edit-issue(本文 mutation はedit_issue_txn.pyのみ)issue-contract-review(static readiness)
Required Design References
.claude/skills/issue-contract-review/scripts/baseline_vc_preflight.py(category producer).claude/skills/issue-contract-review/scripts/contract_readiness_check.py(readiness producer).claude/skills/issue-refinement-loop/SKILL.md、reviewer_claim_replay.py、parent_replay_binding.py、V2 envelope/validator(production chain)- 1 Issue = 1 PR。implementation/code/worktree は本 refinement 実行では開始しない。
Stop Conditions
- Allowed Paths 外の変更が必要と判明した場合
- In Scope の固定契約(キー集合・スキーマ・型定義)の変更が必要になった場合
- 新規 Issue の起票が必要と判断した場合(スコープ分割が発生する場合)
- 後続 Phase / 別スコープへの波及が判明した場合
- nested SubAgent delegation が必要になった場合
- 外部サービス利用・権限昇格・既存テスト大規模改変が必要になった場合
上記では fail-closed とし、anchor の REQUEST_CHANGES と #1810 境界を弱めず、canonical producer の structured rule ID を parent replay まで損失なく保持する。
Notes for Reviewer
domain_keys は既存 consumer の互換 alias として保持し、新しい deterministic domain key と混同しない。自然言語 reviewer prose は taxonomy alias ではない。
Activity
squne121 commentedon Jul 17, 2026
Refinement Loop: Human Escalation Required
The loop has terminated and requires human review. Cause: human judgment required
human_escalationhuman_judgment_requiredBlockers
squne121 commentedon Jul 17, 2026
squne121 commentedon Jul 17, 2026
Refinement Loop: Approved
The issue has been approved and is ready for implementation.
approvedsqune121 commentedon Jul 17, 2026
Contract Review Result
squne121 commentedon Jul 17, 2026
Refinement Loop: Approved
The issue has been approved and is ready for implementation.
approvedsqune121 commentedon Jul 26, 2026
追加の実例(Issue #1692 issue-refinement-loop 実行時に再現)
Issue #1692 の issue-refinement-loop 実行中、2 iteration とも本 Issue が扱う
checker_gapが発生した。"7 Verification Commands use non-canonical VC shape: new test on existing file. Rewrite to reference not-yet-created test file per #1285."/"AC1-AC8: All Verification Commands reference new test functions on existing files (non-canonical VC shape per Issue #1285). Rewrite to reference not-yet-created test files instead."vc_baseline_shape_compiler.py --body-file <body>は該当 8 行すべてをnot_autofixableとして検出済み(pytest_no_safe_missing_file_candidate/pytest_complex_node_id_on_existing_file/pytest_unsupported_cli_syntax)。parent_replay_binding.pyは毎回verdict: reviewer_claim_unbacked_by_deterministic_checker/verdict_detail_v1: checker_gap/normalized_kind: unknown_blocker_typeを返し、routing: downgrade_to_non_blockingとなった。本 Issue(#1549)の実装により、この種の reviewer 指摘が
deterministic_fail_confirmedとして裏付けられるようになることを確認したい。squne121 commentedon Jul 29, 2026
敵対的レビュー結果
判定:
REQUEST_CHANGES— 問題は実在するが、現在のIssue契約では実装開始不可です。#1549が狙う「既存ファイル上の未実装pytest node-idを非正規VCとして検出し、
checker_gapではなくdeterministic_fail_confirmedにする」という方向自体は正しいです。現行コードには既に当該categoryのproducerとreadiness変換が存在します。しかし、現在のACはtaxonomy entryの追加と人工的なfixtureによるhappy pathしか固定していません。そのため、全ACがPASSしても、Issueコメントで報告された実運用上の
checker_gapが残る実装が成立します。また、後続Issue #1810が#1549に要求している「taxonomy SSOT基盤」と、#1549の現在の限定スコープが矛盾しています。Blocker 1 — #1810が前提とするtaxonomy SSOTを#1549は提供しない
後続の#1810は依存順を明示的に
#1549 → #1810 → #1555とし、#1549がtaxonomy SSOT契約を提供する前提です。さらに、各entryに次のメタデータを持たせ、第二のmappingやcategory別hardcodeを禁止しています。domaindeterministic_domain_keysource_checkrule_idcategoryproducer_shapereason_classautofixable一方、現在の#1549は、既存の8キー構造に1 entryを追加するだけであり、キー集合やschemaの変更が必要なら停止する契約です。つまり、#1549が現状のまま完了しても、#1810のprerequisiteは満たされません。
必須修正
次のどちらかを明示的に選ぶ必要があります。
推奨案: #1549をtaxonomy SSOT基盤Issueへ昇格する
existing_file_missing_node_id_noncanonicalを最初の適用entryとするcommand_not_allowedなどの追加entryに限定する代替案: #1549を暫定hotfixに固定する
現在のまま両Issueを進めると、同じtaxonomyとstrict matcherを二段階で作り直すことになります。
Blocker 2 — Issue自身が示した実障害をACが再現していない
#1549の最新コメントでは、Issue #1692で実際に渡された
reviewer_blocker_codeはcanonical codeではなく、次のような自然言語文だったと記録されています。その結果、
normalized_kind: unknown_blocker_type、verdict_detail_v1: checker_gap、routing: downgrade_to_non_blockingになっています。ところが現行のtaxonomy normalizationは、lowercase化と空白圧縮をした後の完全一致lookupです。部分一致、token抽出、semantic matchingは一切ありません。したがって、
existing_file_missing_node_id_noncanonicalやVCP_EXISTING_FILE_MISSINをaliasesへ追加しても、上記の自然言語文には一致しません。現在のmainにはPR #1801により、readiness errorを決定論的に
structured_blockerへ変換するproduction CLI経路が追加されています。その変換ではstructured_blocker.code = rule_idとなるため、正しくこの経路を通ればVCP_EXISTING_FILE_MISSINをtaxonomyで解決できます。問題は、#1549のACがこのproduction経路を通しておらず、「自然言語blockerがもう生成されない」ことも、「canonical rule IDがparent replayまで保全される」ことも証明していない点です。
必須修正
次の実CLI chainをACに追加してください。
期待値は最低限、次を固定すべきです。
自然言語をfuzzy matchingする実装は避けるべきです。trust-criticalなroutingにLLM proseやsubstring matchingを持ち込むと、無関係な指摘まで誤ってdeterministic blockerとして採用する危険があります。producer側でcanonical codeを必須化するのが正解です。
Blocker 3 — strict producer-shape検証がACで保証されていない
現在の
reviewer_claim_replay.pyは、通常のreadiness照合ではrule_idまたはcategoryのどちらか一方が一致すればevidence候補にします。strictなAND照合とproducer-shape検証は、broad_search_path_unboundedだけにhardcodeされています。direct
vc_preflight_resultについても同様で、top-level schemaと完全なitem shapeを厳密に見る対象は現在broad_search_path_unboundedだけです。さらにitem検証自体がif kind == "broad_search_path_unbounded"という個別分岐になっています。#1549は「既存パターンとの整合を実装者が判断する」としていますが、これでは次の実装でもACを通ります。
source_checkを採用source_payload欠落でも採用classificationやscope_classが不正でも採用特にrule IDはcategoryを20文字で切り詰めて生成されるため、rule ID単独での照合は衝突に弱い設計です。実際のreadiness producerはrule、category、source、producer payloadを保持しています。
必須のnegative AC
少なくとも以下を明文化してください。
rule_idのみ一致、category不一致はrejectrule_id不一致はrejectsource_checkはrejectsource_payload欠落はrejectclassificationはrejectdecisionはrejectscope_classはrejectinput_or_runtime_errordowngrade_to_non_blockingへ流さず、fix_checker_artifactまたは明示したhuman laneへ送る既存の#1406は、まさにこのnegative matrixとrule/category AND semanticsをAC8・AC9で要求していました。#1549だけ検証水準を下げる根拠はありません。
High 1 — 「table entryだけで拡張可能」という設計説明と実装が乖離している
ファイル先頭では「新しいreviewer blockerへの対応はtable entryの追加だけで済む」と説明されています。
実際にはstrict evidenceを追加するたび、現在は以下を変更する必要があります。
_STRICT_READINESS_SOURCE_PAYLOAD_KINDS_has_valid_broad_search_source_payload()_STRICT_VC_PREFLIGHT_PRODUCER_SHAPE_KINDS_matching_vc_preflight()内のcategory固有分岐つまり、#1549を既存#1406のコピーとして実装すると、taxonomy tableとhardcode分岐の二重SSOTが増えます。これは#1810が明示的に禁止している設計です。
推奨実装
現行schemaを維持する暫定実装でも、少なくとも次のようにgeneric化すべきです。
_matching_vc_preflight()でもkind == "broad_search_path_unbounded"という個別比較を削除し、strict setに含まれる全entryへ同じ検証を適用します。ただし最終形は、#1810が要求する
producer_shape等をtaxonomy entry自身に持たせる設計です。High 2 — baseline producerそのものを実行するテストが必要
現行のbaseline classifierは、pytest exit 4に加えて、stderr中の特定文言とnode-idのfile partが実在することを組み合わせて
existing_file_missing_node_id_noncanonicalを生成します。pytestの公式契約では、
path::function形式のnode ID指定は公開されていますが、exit 4は一般的な「command line usage error」としか規定されていません。特定のstderr文言は公開APIとして保証されていません。(pytest) (pytest)したがって、手書きの次のpayloadだけを
analyze()へ渡すテストでは不十分です。temp directory内に実在するtest fileと未実装node IDを作り、実際の
baseline_vc_preflight.pyをsubprocessで実行してcategoryが生成されることを固定すべきです。これによりpytestのバージョン更新でstderr形式が変化した場合も検出できます。隣接不具合
_MISSING_NODE_ID_ERROR_REはcase-insensitiveですが、併用する_NO_MATCH_IN_MODULE_REにはre.IGNORECASEがありません。一方、docstringは両メッセージをcase-insensitiveに扱うと説明しています。#1549の直接スコープ外でも、別Issue候補として記録すべきです。Medium — Runtime Verificationと
uv --lockedの説明が不正確Issueは「静的pytestのみで、プロセス起動・I/O・外部通信を伴わない」としていますが、高品質な完了証明には少なくとも次が必要です。
また、
uv run --lockedはlockfile更新を禁止するだけで、環境同期自体は無効にしません。uv runは通常、実行前にlockとenvironmentを確認・同期します。同期を禁止するのは--no-sync、ネットワークを禁止するのは--offlineです。([Astral Docs]3)したがって、Runtime Verification Applicabilityの理由は次のように修正するのが妥当です。
repository policyが許すなら、hermetic gateは事前sync後に
--no-sync --offlineで固定します。評価できる点
以下は既に成立しています。
needs_fixとして扱う。structured_blockers[].codeがcompact claimで優先されるようになった。source_payloadも保持されるようになった。つまり、必要なのは新しいheuristicではなく、既存のcanonical producerとparent replayを正しく接続し、source-qualifiedに検証することです。
推奨する改訂Acceptance Criteria
最終判断
現状の#1549をそのまま実装すると、taxonomy parity testsは通っても、production wiring・freeform fallback・spoof耐性・#1810依存契約のいずれかが未解決のまま残る可能性が高いです。Issue本文を改訂し、contract reviewを再実行してから実装へ進めるべきです。
squne121 commentedon Jul 29, 2026
Contract Review Result
squne121 commentedon Jul 29, 2026
Refinement Loop: Approved
The issue has been approved and is ready for implementation.
approvedsqune121 commentedon Jul 29, 2026
判定
本文修正は必要です。
現状の #1549 を本文無変更のまま
impl_readyとした判断は、アンカーコメント、後続 Issue #1810、現行実装、リポジトリの refinement 規約のいずれとも整合していません。少なくとも次の処理が必要です。
impl_readyhandoff を supersede する。敵対的レビュー結果
P0 — OWNERの修正指示を処理せず、read-only reviewerのapproveで上書きしている
作業ログは当初「承認不要の本文改善・検証・readbackまで進める」と宣言していますが、実際には
issue-authorによる本文更新を行わず、reviewerのapprove出力を中間バリデータへ通しています。これは責務境界に反します。
contract_update_requiredに送る規約です。issue-reviewerの責務ではありません。issue-author→edit_issue_txn.pyの経路で実行する契約です。したがって、構造checkerが
approveを返したことは、アンカーの意味的なREQUEST_CHANGESを無効化する根拠になりません。P0 —
impl_readyを投稿した後にplannerを実行しているログでは次の順序になっています。
LOOP_HANDOFF_RESULT_V1: impl_readyを投稿plan_refinement_loop.pyを実行deferredと判定scope-rollup結果を追加しようとした
jqコマンドも、ログ上はファイルへの書き戻しや、その入力を使ったplanner再実行が確認できません。リポジトリ規約上、
ISSUE_EXECUTION_DECISION_V1のsemantic stateをdownstream consumerが独自に再分類することは禁止されています。deferredなら、完全な入力を再収集してplannerを再実行しなければなりません。現在の
impl_readyコメントは、少なくともstale handoffとして扱うべきです。P1 — #1549と#1810の責務契約が矛盾している
現行 #1549 は、概ね次の限定契約です。
一方、#1810は明示的に
#1549 → #1810 → #1555とし、#1549がtaxonomy SSOT契約を提供することを前提にしています。しかし現行mainでは、taxonomyのstrict policyはSSOT化されていません。
broad_search_path_unbounded専用の集合・分岐としてハードコードされています。現在の #1549 本文にある「
broad_search_path_unboundedを参考に必要なstrict-shape検証を追加する」という記述では、同様のcategory固有ハードコードをもう一つ増やす実装でもACを満たします。必要なのは、strict matching policyをtaxonomy entry側から解決するtable-driven設計です。
P1 — 実障害を通るproduction chainがACにない
現在のproduction review経路は、次の3コマンドでreadiness結果をreview結果へ決定論的に合成します。
生のreadiness errorを直接コピーせず、
code、deterministic_domain_key、checker_evidenceを持つstructured blockerへ変換するのが正規経路です。PR #1801でも、最初は変換関数が存在するだけでproduction wiringされておらず、OWNERレビュー後に
--mode merge_readinessが追加されています。#1549にも、最低限次の実CLI chainが必要です。
現在のAC3・AC4は
analyze()に人工fixtureを直接渡す検証であり、canonical rule IDがproduction chainを通ってparent replayまで保存されることを証明しません。さらに、
.claude/agents/issue-reviewer.mdは「errors構造体をそのままstructured blockersへ転写」と記載している一方、正本のreview-issue/SKILL.mdは「直接転写は禁止、変換後形状のみ」と規定しています。ここにもstale documentationがあります。P1 — contract snapshotのbaseline結果は対象障害を証明していない
AC1〜AC4は、新規テストファイルが存在しないためpytestがexit code 4を返した結果を
expected_baseline_failとしています。pytest公式仕様では、exit code 4はCLI usage error、exit code 5はno tests collectedです。また、特定テストのnode IDは
file.py::test_func形式です。 (pytest) (pytest)このbaselineは「将来追加するテストファイルがまだない」ことは示しますが、Issueが扱う次の形状は再現していません。
新規テストファイル内でtemporary fixtureを作り、実際に「existing file + missing node ID」をbaseline classifierへ通す必要があります。
P2 — Runtime Verification Applicabilityの理由が事実と合わない
現行本文は「静的pytest unit testのみで、プロセス起動やI/Oは不要」としています。しかし必要な高品質検証には、subprocess、temporary filesystem、baseline preflight、production CLI chainが含まれます。
また、
uv run --lockedはlockfileの変更を禁止しますが、environment sync自体を禁止しません。公式uvドキュメントでは、uv runは通常lockとsyncを行い、syncを避けるのは--no-sync、ネットワークを無効化するのは--offlineとされています。 ([Astral Docs]3)Runtime Verificationは次のように修正すべきです。
推奨する処理
#1549を「単一entry追加」から、次の範囲へ改訂するのが妥当です。
fix_checker_artifact等へfail-closeddowngrade_to_non_blocking禁止Codex CLIへ渡す実行プロンプト
以下は本文改訂と再refinement専用です。ソース実装やPR作成には進ませません。
リポジトリ
squne121/loop-protocolの Issue #1549 について、前回の issue-refinement-loop の誤判定を是正し、Issue本文を改訂してfreshなcontract handoffを再生成してください。対象:
https://github.com/squne121/loop-protocol/issues/1549https://github.com/squne121/loop-protocol/issues/1549#issuecomment-511588660451159923085116008593この実行ではソースコードを実装しないでください。Issue本文、関連Issueの責務記述、refinement/contract artifacts、GitHub上の訂正コメントだけを扱ってください。
実行原則
gpt-5.3-codex-sparkが利用可能なら、manual invocationとしてspark-deepとspark-skimを優先的に使い、read-onlyな独立レビューを行う。issue-author、issue-reviewer、codebase-investigatorの代替にしない。issue-author→edit-issue→edit_issue_txn.py経路で行う。直接のgh issue editで本文を書き換えない。最初に確認する正本
最低限、以下をmain HEADから読むこと。
AGENTS.mdCLAUDE.md.claude/settings.jsondocs/dev/agent-skill-boundaries.md.claude/agents/codebase-investigator.md.claude/agents/issue-reviewer.md.claude/agents/issue-author.md.claude/skills/issue-refinement-loop/SKILL.md.claude/skills/issue-contract-review/SKILL.md.claude/skills/review-issue/SKILL.md.claude/skills/edit-issue/SKILL.md.claude/skills/issue-refinement-loop/references/anchor-comment-handling.md.claude/skills/issue-refinement-loop/references/scope-signal-guard.md.claude/skills/issue-refinement-loop/references/scope-rollup-policy.md.claude/skills/issue-refinement-loop/references/termination-policy.md.claude/skills/issue-refinement-loop/references/refinement-loop-plan-output.md.claude/skills/issue-refinement-loop/scripts/run_refinement_preflight.py.claude/skills/issue-refinement-loop/scripts/plan_refinement_loop.py.claude/skills/issue-refinement-loop/scripts/reviewer_claim_replay.py.claude/skills/issue-refinement-loop/scripts/parent_replay_binding.py.claude/skills/issue-refinement-loop/scripts/compact_review_result.py.claude/skills/issue-refinement-loop/scripts/emit_parent_review_envelope_v2.py.claude/skills/issue-refinement-loop/scripts/validate_review_compact_output.py.claude/skills/issue-refinement-loop/scripts/reviewer_claim_replay_state_store.py.claude/skills/issue-contract-review/scripts/baseline_vc_preflight.py.claude/skills/issue-contract-review/scripts/contract_readiness_check.py.claude/skills/review-issue/scripts/check_issue_contract.py.claude/agents/issue-reviewer.mdと.claude/skills/review-issue/SKILL.mdのreadiness error→structured blocker記述が一致しているか確認すること。前者がraw errorの直接転写、後者が--mode merge_readinessによる変換を要求している場合はstale documentationとして記録し、#1549に含めるか別follow-upにするかをscope規約に従って決定する。GitHub調査
Issue、PR、コメント、現在の状態、依存関係を取得すること。
最低限:
次を決定論的に答えること。
REVIEWER_BLOCKER_CLAIM_V1.blockers[].reviewer_blocker_codeが自然言語ではなくrule IDとしてparent replayまで保存されるか。Web調査
一次資料だけを使って以下を確認すること。
pytest公式ドキュメント:
Astral uv公式ドキュメント:
uv run--locked--no-sync--offline実装で使うJSON SchemaまたはPython標準APIについて外部仕様が必要なら、その公式仕様
検索結果は、Issue本文へ不要な一般論を追加せず、AC、VC、Runtime Verification、Notes for Reviewerを正確にするためだけに使う。
前回実行の監査
前回ログを再監査し、最低限以下を確認すること。
impl_readyhandoffがplanner/scope-rollupより先に投稿された。deferredを返した。issue-authorによる本文更新が行われていない。上記が確認できた場合、既存のcomment ID
5115992308と5116008593はfreshな実装許可としてconsumeしない。履歴コメントを削除または内容改変せず、リポジトリ内にcanonicalなsupersession markerがあるか調査する。存在する場合はそれを使う。存在しない場合は、古いhandoffを明示的に無効化する訂正コメントを投稿する。
訂正コメントには最低限以下を含める。
既存のcanonical schemaがある場合は、そのschemaを優先する。
#1549の改訂方針
「本文変更不要」という前提を破棄する。
#1549を、単なるcategory固有entry追加ではなく、#1810が安全にconsumeできる最小taxonomy SSOT foundationを提供する契約へ改訂する。ただし#1810の全機能を#1549へ吸収しない。
#1549が所有する範囲
REVIEWER_CHECKER_TAXONOMY_V1のtable-driven SSOT foundation。existing_file_missing_node_id_noncanonicalentry。少なくとも次の意味情報をentryから一意に解決できること:
entry_idrule_idcategorysource_checkstrict entryについて、rule、category、source、producer shapeをANDで検証するgeneric resolver。
同じ対応を保持する第二のdict、set、match、category固有
if分岐を追加しないこと。target entryのproduction E2E。
target entryのnegative matrix。
taxonomy dump、collision invariant、既存entry回帰。
現在の
domain_keysとの後方互換性、entry_idとdeterministic_domain_keyの区別、既存consumerへの影響を調査して本文に明記する。名称やschema shapeを推測だけで固定しない。#1810が所有する範囲
#1810本文が#1549に過剰または不足した責務を要求している場合は、#1810本文も同じ実行内で整合するよう修正する。#1549と#1810に同じmapping tableまたはgeneric resolverを二重実装させない。
fuzzy matchingは禁止
Issue #1692で観測された自然言語のreviewer blockerを部分一致、token抽出、正規表現、semantic matchingでtaxonomyへ割り当てない。
代わりにproduction chainがcanonical structured blocker codeを生成し、
REVIEWER_BLOCKER_CLAIM_V1からparent replayまで損失なく保持することをE2Eで証明する。改訂Acceptance Criteriaの最低要件
少なくとも次を明示すること。
AC1 — taxonomy SSOT
対象entryのcode、rule ID、category、source、domain key、producer-shape policyがtaxonomyから一意に解決され、第二のmappingやcategory固有分岐が存在しない。
AC2 — canonical normalization
existing_file_missing_node_id_noncanonical、VCP_EXISTING_FILE_MISSIN、明示的に許可した大小文字variantが同じentryへ正規化される。自然言語レビュー文はtaxonomy aliasに追加しない。
AC3 — real classifier reproduction
temporary directory内に既存pytestファイルを作り、そのファイルに存在しないnode IDを含むVCを入力として、実
baseline_vc_preflight.pyが次を生成すること。「新規テストファイル自体が存在しない」exit code 4だけを対象障害の証明に使わない。
AC4 — readiness producer
実preflight artifactを
contract_readiness_check.pyに渡し、source payload、body SHA、rule ID、category、source checkを保持したreadiness errorが生成される。AC5 — production chain E2E
実CLI subprocessで次を通す。
最終結果が少なくとも次を満たす。
AC6 — strict negative matrix
以下を個別に検証する。
strict evidence不一致をunbacked reviewer laneへdowngradeしない。
AC7 — fail-closed state contract
unknown、ambiguous、conflict、malformed artifactでは、具体的なreason codeとroutingを固定する。
少なくとも次を保証する。
AC8 — natural-language regression
Issue #1692で記録された自然言語reviewer codeがcanonical production chainから生成されないことを確認する。
自然言語文字列を直接
analyze()に渡した場合は既知entryとして誤認しない。AC9 — multiple blockers
mapped、unknown、inconsistentな複数blockerが混在した場合の優先routing、state counter、evidence bindingを固定する。
AC10 — downstream ownership
#1810との責務境界、依存順、migration方針を本文に明記する。
Verification Commands
Verification Commandsは新規専用テストファイルを対象にする。各ACとnode IDを一対一に対応させる。
候補:
新規テストファイルのpytest command自体はrepositoryのcanonical VC形式に従わせる。
対象障害の再現は、そのテスト関数内部でtemporary existing fileとmissing node IDを作って実施する。Issue本文自身のVCとして、既存ファイル上の未実装node IDを再び記載しない。
回帰として少なくとも以下を含める。
事前に環境同期が完了している場合、hermeticな再実行ではrepository policyに反しない範囲で
uv run --locked --no-sync --offlineを使用する。環境が未準備なら、最初のdependency setupとhermetic verificationを分離して記録する。Runtime Verification Applicability
次の趣旨へ修正する。
Allowed Paths
まず現行Allowed Paths内で高品質な実装契約が成立するか調査する。
production E2Eが他スクリプトを呼び出すだけで、修正を必要としない場合は、それらをRequired Design Referencesおよびtest dependenciesとして記載し、Allowed Pathsへ不要に追加しない。
generic taxonomy foundationの実装に現行Allowed Paths外のソース変更が本当に必要な場合:
本文更新
調査結果からcandidate bodyを生成する。
1 Issue = 1 PRを維持する。pre-author static readinessを実行し、
READINESS_FORWARDING_PAYLOAD_V1を生成してissue-authorに渡す。edit_issue_txn.pyのexpected previous SHA / updatedAt preconditionを使用し、競合更新をfail-closedで拒否する。mutation後はGitHub APIから本文を再取得し、candidate bodyのSHA、remote body SHA、updatedAt、主要セクションを照合する。
再refinement
本文更新後、古いartifactを再利用せず、以下を正しい順番で実行する。
planner、scope-rollup、execution decisionが確定する前にcontract snapshotまたは
impl_readyhandoffを投稿しない。ISSUE_EXECUTION_DECISION_V1.execution.stateがselectedでなく、deferred、blocked、invalid、stale、incompleteのいずれかなら、impl_readyを投稿しない。scope-rollup結果をplanner inputへ反映した場合は、変更後のplanner input artifact、digest、planner outputを保存し、plannerを実際に再実行したことをreadbackする。
jqのstdout表示だけを永続化の証拠にしない。最終出力
最後に次を報告する。
Issue本文のreadback、fresh contract review、fresh planner decisionのいずれかが不成立なら、成功や
impl_readyを主張しないでください。このプロンプトは、前回の
impl_readyをそのまま利用せず、本文改訂 → stale handoff訂正 → fresh refinement を一続きで要求します。squne121 commentedon Jul 29, 2026
#1549 stale handoff 訂正
anchor の
REQUEST_CHANGESを本文へ反映し、fresh refinement をやり直します。以下の旧コメントは実装許可として利用しません。[-]実装: reviewer_claim_replay.py の taxonomy に existing-file-missing-node-id 非正規 VC 形状の checker エントリを追加する[/-][+]実装: reviewer checker taxonomy の最小 SSOT foundation と既存ファイル未登録node-id resolver[/+]squne121 commentedon Jul 29, 2026
Contract Review Result
squne121 commentedon Jul 29, 2026
推奨判定
#1549を先行実装し、#1810は一時凍結、#1555は待機と裁定するのが妥当です。
#1549は taxonomy/resolver の最小SSOT foundation、#1810はその下流integration、#1555はさらに下流のC9 evidence bindingという所有境界が、3件の現行契約で一致しています。#1549を#1810へ統合したり、並行実装を許可したりする必要はありません。
#1810には未公開commit
4303a6c288e026247b3fd2a9cb06e96b77e92fd1が存在しますが、PR未作成・未pushです。これは捨てずに保存し、#1549マージ後の差分回収用として扱います。現時点で正本へ昇格させるべきではありません。直ちに行うアクション
policy_class: C1であることを確認する。HUMAN_C1_DECISION_V1を投稿する。route: proceed_with_collision_evidenceを確認する。mainにrebaseまたはcherry-pickし、#1549と重複するtaxonomy foundation部分を除去してから#1810を再検証する。preflightは、人間裁定を自由文ではなく、候補Issue番号と双方の本文SHAへ束縛された固定スキーマだけで受理します。投稿者もOWNER/COLLABORATORに限定されています。
以下のSHAはfresh preflight JSONの値へ置換してから投稿してください。特に#1810の既知SHAを流用せず、
candidates[].body_sha256を読み戻す必要があります。Human C1 overlap adjudication
Issue #1549 と Issue #1810 の構造的重複について、以下のとおり裁定します。
REVIEWER_CHECKER_TAXONOMY_V1と generic resolver の最小SSOT foundationを所有する。#1549 → #1810 → #1555とする。このコメントを投稿した後は、preflightの最終readbackが完了するまで#1549・#1810本文や裁定コメントを編集しないでください。入力のdriftが検出されると再びfail-closedになります。受理されれば、そのC1候補はcollision集計から除外され、他のblockerがなければ
proceed_with_collision_evidenceへ進みます。採用しない方がよい案
#1549を#1810へ統合する案は、現行3契約の所有境界を逆転させ、#1810の実装済みコードを理由に契約を後追い変更するため不適切です。
Allowed Pathsを人工的に分離する案も避けるべきです。
reviewer_claim_replay.pyは両Issueで実際に必要ですが、編集時期と責務が異なるだけです。自由文の承認コメントだけを投稿する案ではpreflightは解除されません。固定スキーマとfresh SHA bindingが必要です。
squne121 commentedon Jul 29, 2026
Human C1 overlap adjudication
Issue #1549 owns the minimum SSOT foundation for
REVIEWER_CHECKER_TAXONOMY_V1and the generic resolver. Issue #1810 consumes the merged foundation and owns readiness normalization, producer metadata, and parent replay integration. Execution order is#1549 → #1810 → #1555; #1810 must not push, create a PR, or edit concurrently before #1549 completes.squne121 commentedon Jul 29, 2026
you asked
message time: 2026-07-30 00:12:52
• IMPL_REVIEW_LOOP_RESULT_V1:
issue_number: 1549
status: blocked
termination_reason: repo_defined_fail_closed_condition
failed_step: verification.test_verdict_materialization
exact_blocker: >
current-head CI は成功したが、TEST_VERDICT_MACHINE/v2 materializer が必須とする
producer receipt artifact と execution record artifact が current workflow run に存在しない。
手書き証跡・旧HEAD証跡・Allowed Paths外のproducer実装は使用できない。
evidence_refs:
- #1846
- https://github.com/squne121/loop-protocol/actions/runs/30463943784
- #1549 (comment)
safe_actions_completed:
- "human push後のremote HEAD readback: aa2fdde"
- "AC1〜AC10: 10/10 PASS"
- "関連回帰: PASS"
- "required CI: PASS"
- "CI artifacts 19件のHEAD binding: 全件 aa2fdde… と一致"
- "PR本文hygieneを open-pr.update_pr 経路で更新・readback"
- "Draft PR #1846を維持。マージ未実行"
remaining_human_action:
- >
current CI producerが TEST_VERDICT_PRODUCER_RECEIPT_V1 と execution record artifactを
生成・公開する正規経路を復旧または別スコープで実装する。
- >
artifact生成後、current HEAD aa2fdde… に対してmaterializer、test_verdict.publish、
current-head PR reviewを再実行する。
可能な限りこのイシュー実装を続行する形で推奨のアクションを検討して教えてください。
chatgpt response
停止条件の妥当性と、#1549 のスコープ内で進められる作業/別Issue化すべき作業を分離して確認します。PR・Actions・関連コメント・producer/materializer 実装を突き合わせ、再開手順を具体化します。
現時点で、#1549 のコード変更自体は Allowed Paths 内に収まり、current HEAD の CI も成功しています。残る障害は実装品質ではなく、CI 証跡供給系の契約不履行であり、PR内修正と基盤修正を混同しないことが重要です。
専用 workflow を単に手動起動すれば解消するとは限りません。現行 producer はコード上「#1646 用の bootstrap-only」で、固定テスト1本・AC1〜AC5だけを証明する設計です。#1549 の AC1〜AC10へ流用すると coverage binding で再停止する可能性が高いため、ここを追加確認しています。
推奨判定
#1549 の実装コードは凍結し、証跡 producer の修復を別Issue・別PRで先行させるのが妥当です。
PR #1846 は current HEAD
aa2fddeaf6463095f68ca316a6c0c1a0bd57b029で Draft・未マージのまま、変更は #1549 の3つの Allowed Paths に収まっています。通常CIも current HEAD で成功しているため、#1549 側へ追加コミットして解決すべき実装不具合は現時点では確認できません。現在の状態は、次のように分類するのが正確です。
単純な再実行では解消しない理由
通常の
ciworkflow run30463943784には、一般的なテスト・Lint・JUnit・CI summary artifact はありますが、正規経路が要求する次の artifact はありません。test-verdict-execution-record-<run>-<attempt>test-verdict-producer-receipt-<run>-<attempt>通常CIのジョブ構成にも protected producer の
trusted-preflight、untrusted-execution、produceは含まれていません。したがって、同じ通常CIを再実行しても構造的には解消しません。また、既存の protected workflow をそのまま手動起動するだけでも不十分です。現行 producer はコード上、Issue #1646 用の bootstrap-only producer と明記され、固定された1コマンドを実行し、AC1〜AC5だけを coverage として生成します。#1549 は異なる10個の node-id command を AC1〜AC10へ対応付けているため、現行 producer の receipt を流用するのは正規な証明になりません。
materializer は
command_hash_mapに存在する全ACが execution record のper_acに存在することを要求し、不足すればexecution_record_per_ac_missing_acsで停止します。このため、現行のAC1〜AC5 recordを #1549 に渡すと、少なくともAC6〜AC10が不足します。推奨する実行順序
1. PR #1846を現状のまま保持する
aa2fddea…に追加コミットしない。#1549 → #1810 → #1555を維持して待機させる。producer・workflow の変更は #1549 の Allowed Paths外であり、PR #1846へ混ぜると明示的な Stop Condition に抵触します。
2. #1549専用の producer-enablement Issueを別途作る
推奨タイトルは次です。
実装: protected TEST_VERDICT producer に #1549 AC1–AC10 command-set を追加する
親または goal reference は
#1645とし、変更範囲は原則として次に限定します。.github/workflows/test-verdict-execution-record.ymlscripts/agent-ops/test_verdict_execution_record_producer.pyscripts/agent-guards/tests/test_test_verdict_execution_record_workflow.py.github/ci/python-test-plan.json(必要な場合のみ)既存の #1848 は名称上は複数VC対応ですが、現行契約は #1766用 command_idとAC1〜AC3 に固定されています。#1549を黙って追加すると #1848 自身のスコープ境界を破るため、別Issueが最も安全です。#1848を使う場合は、実装開始前に正式な再refinementを行い、#1766専用契約から複数Issue対応契約へ変更する必要があります。
3. producerは「任意コマンド」ではなく閉じたcommand-setにする
#1549用 producer は、例えば次のような versioned IDを持たせます。
ただし、内部を単一の全ファイルpytestに置き換えるのではなく、以下の構造を推奨します。
per_acにAC1〜AC10をすべて記録既存 producer は manifestから
per_acを生成する設計なので、単一command対応から複数execution対応へ拡張する必要があります。4. producer PRをdefault branchへ先にマージする
protected workflow は
workflow_dispatch専用で、対象PR番号、Issue番号、期待HEAD SHA、期待Issue本文SHAを入力として受け取ります。また、execution recordとproducer receiptを専用artifactとしてアップロードする実装自体は既に存在します。producer拡張をdefault branchへマージした後、改めて次をlive readbackします。
HEADが引き続き
aa2fddea…でも、値を固定的に再利用せずGitHubから再取得してください。5. 正規の証跡チェーンを再実行する
順序は次です。
TEST_VERDICT_MACHINE/v2を生成adjudicate_vc_result.py --require-producer-receiptを実行test_verdict.publish専用publisherでPRへ投稿merge_ready: trueの場合だけDraft解除・マージ判断へ進むこの3段構成、すなわち read-only test report → materializer → dedicated publisher がリポジトリ上の正規経路です。materializerはreceiptが指すrun/job/check/artifactをGitHubから再取得し、呼び出し元が渡した手書きexecution recordを信用しません。
採用しない方がよいアクション
最小の人間判断
必要な判断は一つです。
この判断後は、producer Issueの実装・テスト・PR・default branchへのマージ、protected workflow dispatch、#1846のmaterializer/publisher/review再実行まで、通常の
impl-review-loopで続行できます。you asked
message time: 2026-07-30 00:44:36
#1549 の実装を優先してほしい。証跡生成はコストパフォーマンスそれが悪いから、もうこの開発では不要としたいです。個人趣味開発では過剰に思います。
chatgpt response
#1549 を先に進める前提で、現在の PR 状態と、最小限のルール変更で過剰な証跡要件を外す経路を確認します。通常CIを正本に切り替え、protected artifact chain は廃止または任意化する方針で整理します。
その方針で妥当です。#1549 を証跡基盤の修復待ちにせず、通常CIとコードレビューを基準に完了させるべきです。
PR #1846 は current HEAD
aa2fddeaf6463095f68ca316a6c0c1a0bd57b029、変更3ファイル、AC1〜AC10個別PASS、関連回帰97件PASSとして整理済みです。現在の阻害要因は #1549 のコード不具合ではなく、TEST_VERDICT_MACHINE/v2の付随証跡要件です。今後の判定基準
この個人開発では、マージ必須条件を次に限定することを推奨します。
次は必須条件から外します。
TEST_VERDICT_MACHINE/v2TEST_VERDICT_PRODUCER_RECEIPT_V1手書きの偽証跡を認めるのではなく、そもそも証跡契約をマージ判定に使わない方針です。
#1549 の直近アクション
PR本文に記録されているAC・回帰結果は保持して構いません。追加のproducer receiptは不要です。
リポジトリルールの整理
impl-review-loopは次のように単純化するのが適切です。materialize_test_verdict_artifact.pyやprotected producerは直ちに削除する必要はありません。まずルーティング上で任意・非blocking・非推奨に変更し、利用されなくなった段階で削除します。現行Step 2はreceipt付きmaterializerを正規経路として要求しているため、ここは後続の小規模な運用簡素化Issueで変更対象になります。結論: #1549は
verification-infrastructure-blockedではなく、通常CI基準で implementation complete と再判定し、current-headレビュー後にマージを進めるのが最も費用対効果の高い対応です。you asked
message time: 2026-07-30 00:47:17
AIにプロンプトを出してください。
chatgpt response
そのまま実装AIへ渡せる形です。
**Document Title: **
あなたは
squne121/loop-protocolの実装・レビュー・マージ担当AIです。最優先目標
Issue #1549 の実装を最優先で完了し、PR #1846を通常CI基準でレビュー・マージしてください。
証跡生成基盤の修復や拡張を、#1549 の完了条件にしてはいけません。
オーナー方針
このリポジトリは個人の趣味開発です。
以下の証跡チェーンは、開発コストに対して便益が小さく、今後のマージ必須条件から除外します。
TEST_VERDICT_MACHINE/v2TEST_VERDICT_PRODUCER_RECEIPT_V1materialize_test_verdict_artifact.pyによるmaterializationtest_verdict.publishを経由した専用証跡投稿これらが存在しないことを理由に、#1549を停止、差し戻し、human escalation、REQUEST_CHANGESにしてはいけません。
偽のreceiptや手書きの機械証跡を作成することも禁止します。証跡を偽造するのではなく、マージ判定から要件自体を外してください。
現在の対象
squne121/loop-protocol#1549#1846aa2fddeaf6463095f68ca316a6c0c1a0bd57b029main30463943784は成功済みただし、上記の状態は作業開始時にGitHubから再取得し、最新状態を正本としてください。既知HEADを無条件に信用してはいけません。
新しいマージ判定
以下をすべて満たせば
merge-readyと判断してください。次の条件は
merge-ready判定に使用しないでください。TEST_VERDICT_MACHINE/v2コメントの有無実行手順
Phase 1: 最新状態のreadback
GitHubから次を取得してください。
旧HEADに対するREQUEST_CHANGESやレビューコメントは履歴として参照して構いませんが、current HEADへの未解決コード問題でない限り、現在のblocking条件にしないでください。
Phase 2: current-headコードレビュー
PR #1846を敵対的にレビューしてください。
重点確認項目:
REVIEWER_CHECKER_TAXONOMY_V1が唯一のSSOTになっているかexisting_file_missing_node_id_noncanonicalentryが一意かentry_idとdeterministic_domain_keyが混同されていないかdomain_keysconsumer互換性が維持されているか重大な実装問題を発見した場合のみ、PR #1846のAllowed Paths内で最小修正してください。
証跡基盤を修正するために、workflow、producer、materializer、publisher、schema、agent guardを変更してはいけません。
Phase 3: 検証
Issue #1549記載のAC1〜AC10のnode-idをcurrent HEADで実行してください。
加えて、PR本文記載の関連回帰を実行してください。
最低限確認するもの:
ローカル検証結果は通常の作業ログとして記録してください。専用receiptやexecution artifactへ変換する必要はありません。
Phase 4: PR整理
コード上のblocking問題がない場合:
PR本文を長大な証跡一覧で膨らませないでください。
Phase 5: マージ
次の条件を満たす場合、#1549をマージしてください。
マージ方式はリポジトリの標準方式を使用してください。
branch protectionが、廃止対象のTEST_VERDICT証跡だけを理由にマージを拒否する場合:
通常CIの実失敗や実マージ競合を無視して強制マージしてはいけません。
マージ後
#1549のマージ後は、依存順を維持してください。
#1810は#1549のtaxonomy SSOTをconsumeし、同じmappingやresolverを再実装してはいけません。
証跡基盤の今後の扱い
#1549の完了後、別スコープで次の簡素化を行ってください。
impl-review-loopのマージ判定を通常CI中心へ変更repo_defined_fail_closed_conditionからTEST_VERDICT artifact欠損を除外ただし、この簡素化作業を #1549 のマージ前提条件にしてはいけません。
禁止事項
最終出力
作業完了時は、次の形式で報告してください。
status: blocked_by_real_code_or_ci_failureは、実際のコード問題、テスト失敗、通常CI失敗、マージ競合がある場合だけ使用してください。証跡artifactの欠損はblocking reasonに含めないでください。
Codex CLIやClaude Codeの自律実行用として、そのまま投入できる粒度にしています。
Powered by AI Exporter
feat(refinement): missing pytest node taxonomy foundation (#1846)