Description
Machine-Readable Contract
contract_schema_version: v1
issue_kind: implementation
parent_issue: "none"
goal_ref: "impl-review-loop pre-Step-1 intake が、対象 Issue 本文内の precedent/reference によって生じた他 Issue 向け PR の timeline cross-reference を current implementation の landing candidate と誤認し、qualified_candidate_conflict で不要停止する false reconciliation を防ぐ"
change_kind: workflow
source_issue: 2727
dedupe_key: "incident:issue-2727:impl-review-loop-cross-reference-false-candidate"Parent Issue
なし(standalone workflow correction)
Parent Goal Ref
standalone Issue のため parent 自体は存在しない(none)。テンプレート要求を満たすための bounded な Goal / Desired Destination を以下に示す。
- Goal: impl-review-loop の pre-Step-1 landing candidate 判定が、Issue 本文の precedent/reference によって生じた timeline cross-reference と、実際の closing linkage(
closingIssuesReferences)・durable scope marker(IMPLEMENTATION_SCOPE_COVERAGE_V1)を混同しないようにする。 - Desired Destination:
implementation_landed_evidence.pyの candidate qualification が、closing authority(GitHub 構造化closingIssuesReferences)と candidate-local durable marker identity を区別し、well-formed marker が別 Issue を指す verified non-closing cross-reference だけを、conflict counting から bounded に除外できる状態。合わせて.claude/skills/impl-review-loop/SKILL.md/steps/preparation.mdの既存 fail-closed 契約に、この bounded carve-out が明文化されている状態。
Current Validated Scope
Issue #2727 の impl-review-loop 起動時、.claude/skills/impl-review-loop/scripts/implementation_landed_evidence.py が GitHub timeline の cross-reference から PR #2735 / #2746 を verified_cross_reference candidate として収集した。
しかし live GitHub readback では:
- PR fix: summarize_agent_transcript.py の GitHub token redaction を新形式 ghs_ App installation token に対応させる #2735 の
closingIssuesReferencesは 実装: summarize_agent_transcript.py の GitHub token redaction パターンを新形式 ghs_ App installation token に対応させる #2725 - PR fix: compact_author_result.pyのghs_パターンを新形式GitHubトークンに対応させる #2746 の
closingIssuesReferencesは 実装: compact_author_result.py の GitHub token 検出パターンを新形式 ghs_ App installation token に対応させる #2726 - どちらも 実装: persist_retrospective_run.py の secret redaction パターンを新形式 ghs_ App installation token に対応させる #2727 を close しない
- 両 PR の durable
IMPLEMENTATION_SCOPE_COVERAGE_V1.issue_numberも 実装: persist_retrospective_run.py の secret redaction パターンを新形式 ghs_ App installation token に対応させる #2727 ではなく、それぞれ別 Issue を指すため、実装: persist_retrospective_run.py の secret redaction パターンを新形式 ghs_ App installation token に対応させる #2727 に対する parse ではscope_coverage_issue_identity_mismatch - Issue 実装: persist_retrospective_run.py の secret redaction パターンを新形式 ghs_ App installation token に対応させる #2727 の GitHub native
blocked_byは空集合であり、未完了 prerequisite が implementation readiness を block していたわけではない
#2727 本文が precedent として #2726 / PR #2746 等を参照したことで timeline cross-reference が生成され、その参照だけを根拠に merged PR が複数「qualified」とされ、derive_landing_disposition() が reconciliation_required / qualified_candidate_conflict を返した。
なお 2026-09-25 に PR #2751 が Issue #2727 を実際に closingIssuesReferences で close して merge 済みであり、現在の #2727 timeline は本 Issue 起票時点の exact incident shape とは異なる(genuine closing candidate が追加されている)。このため exact incident の再現は deterministic fixture / integration regression の責務とし、live runtime verification は read-only sanity check に限定する(詳細は Runtime Verification Applicability を参照)。
Remaining Parent Gaps
なし(standalone Issue であり、本 Issue のスコープ内に parent gap は存在しない)
Root Cause
現行 derive_landing_disposition() は、validation 済み candidates について lifecycle が merged|open|draft|closed_unmerged であればまず qualified set に入れ、closing relation が存在する場合だけ closing candidates に絞る。
closing relation が無い場合、複数の verified_cross_reference は、それぞれの target-bound scope coverage が current Issue identity と一致するかを candidate qualification 前に利用せず、そのまま multi-candidate conflict になり得る。
特に「PR 自身が持つ durable scope marker が別 Issue を明示している」ケースは、current Issue との landing authority の ambiguity ではなく、current Issue に対する irrelevant cross-reference として除外できる強い負の証拠である。
一方、closing relation が current Issue を明示しているのに durable marker identity が不一致である場合は、本当に contradictory evidence なので fail-closed reconciliation_required を維持する。
GitHub の意味論としても、timeline の cross-referenced イベントは「別 Issue/PR から参照(mention)された」ことだけを示すイベントであり、参照元が PR かどうかは source.issue.pull_request の有無で判別するに過ぎない。一方 closingIssuesReferences は PR がマージされた際にどの Issue を close するかを表す構造化リンクであり、cross-referenced とは別概念である。GitHub Issue 間の blocked_by / blocking(dependency)機能もさらに別の API 概念であり、この 3 つは GitHub 公式ドキュメント上も統合されていない独立した機構である。本 Issue はこの 3 つを別 authority として扱う前提に立つ。
Outcome
impl-review-loop の pre-Step-1 candidate resolution が relation authority と target-bound scope evidence を区別し、単なる precedent/reference による cross-reference を implementation landing candidate と誤認しない。
具体的には:
verified_cross_referencecandidate が current target Issue と異なるIMPLEMENTATION_SCOPE_COVERAGE_V1.issue_numberを持ち、かつ candidate-localscope_coverageの marker parse error がscope_coverage_issue_identity_mismatchの1件だけ(他の schema/digest/manifest 等の error と複合していない)場合に限り、その candidate は current Issue の qualified landing candidate から除外する。- 上記除外は advisory/debug evidence として保持してよいが、複数件存在しても
qualified_candidate_conflictを生成しない。 - current Issue を明示する
closing_relationcandidate(GitHub 構造化closingIssuesReferencesが current target Issue を含む candidate)の marker identity mismatch は従来どおり contradiction としてreconciliation_requiredにする。identity mismatch と他の marker error が同時に存在する non-closing candidate も、除外せず従来どおり fail-closed のまま扱う。 - markerless non-closing candidate の legacy compatibility、および Issue 実装: CI: Playwright E2E の responsive matrix を専用 lane へ分離し critical path を短縮する #2119 / PR feat: Playwright E2E responsive matrix を専用 lane へ分離する #2137 の regression behavior は維持する(markerless candidate は本 carve-out の対象外であり、sibling marker mismatch と同一理由では除外しない)。
- candidate がすべて irrelevant cross-reference として除外された場合は
no_qualified_candidate相当として既存already_satisfiedprecedence を通し、それでも未充足ならordinary_dispatch_or_explicit_recoveryへ進める。 - GitHub native issue dependency(構造化
blockedBy)、PR closing linkage(構造化closingIssuesReferences)、および timeline cross-reference は互いに別の authority のまま維持し、本文 precedent/reference や prose keyword(Closes/Fixes/Resolves 等)から dependency や closing authority を推測しない。closing_relationの authority は「current target Issue が GitHub 構造化closingIssuesReferencesに含まれること」であり、prose keyword は補助的な説明に留める。 .claude/skills/impl-review-loop/SKILL.mdと.claude/skills/impl-review-loop/steps/preparation.mdの既存 fail-closed 契約(「identity mismatch / malformed durable marker は lifecycle に関係なく常に最優先でreconciliation_required」)に対し、上記 1 の bounded carve-out を明文化する。これは既存契約を弱めるものではなく、carve-out が適用される exact な条件(non-closing candidate かつ marker error が identity mismatch 単独)を additive に記述する。
Runtime Verification Applicability
decision: immediate
reason: >
Allowed Paths が .claude/skills/impl-review-loop/scripts/**, SKILL.md,
steps/preparation.md を含むため docs/dev/extension-surface-runtime-policy.yaml の
skill-invocation-procedure-or-contract-change risk-trigger(default_decision:
immediate, verification_profile: skill-invocation-runtime-smoke)に該当する。
一方 incident は live GitHub timeline cross-reference / closingIssuesReferences
semantics に起因するが、2026-09-25 に PR #2751 が Issue #2727 を実際に close して
merge済みのため、現在の #2727 timeline は本 Issue が対象とする exact candidate set
(PR #2735/#2746 の qualified_candidate_conflict)をもはや再現しない。したがって
AC1-AC9 の中核ロジックは deterministic fixture / production-shaped integration
regression(mock gh pattern)で検証し、live runtime verification は #2735 / #2746 が
cross-reference として観測可能であること・それぞれの durable marker が sibling Issue
identity を指すこと・#2727 の GitHub native dependency と cross-reference が別概念
であることの external fact transport sanity check のみに限定する。「live #2727 が
original qualified_candidate_conflict を再現すること」を PASS 条件にはしない。
applicable_acs:
- AC1
- AC2
- AC3
- AC4
- AC5
- AC6
- AC7
- AC8
- AC9
execution_environment:
cli_tools:
- python3
- uv
- rg
auth_required: false
network_required: false
skip_conditions:
- "AC1-AC9 の pytest / rg regression は実行環境に依存せず常に実行できるため SKIP 対象ではない。read-only sanity check(verify_implementation_landed_intake_runtime.py)は native GitHub API 到達性が無い環境では既存の SKIP(exit 77) 契約に従う"
fallback_policy:
fallback_success_is_pass: false
notes: "fallback 経由の成功を PASS に変換しない。read-only sanity check の到達不能は SKIP として扱い、original #2727 qualified_candidate_conflict の再現を PASS 条件にしない"
artifact_requirements:
- "pytest 実行結果(-q 出力)"
- "rg による SKILL.md / preparation.md carve-out 明文化の grep 結果"In Scope
.claude/skills/impl-review-loop/scripts/implementation_landed_evidence.py- verified non-closing cross-reference の candidate qualification / filtering
- current target Issue と durable scope marker identity の関係を qualification 前に扱う bounded logic(candidate-local
candidate["scope_coverage"]を authority とし、_coverage_for()のような evidence-level fallback を qualification 判定の authority にしない)
.claude/skills/impl-review-loop/tests/test_implementation_landed_evidence.py- 実装: persist_retrospective_run.py の secret redaction パターンを新形式 ghs_ App installation token に対応させる #2727 incident shape の regression fixture
- closing-relation contradiction と non-closing irrelevant cross-reference の差分 regression
- 実装: CI: Playwright E2E の responsive matrix を専用 lane へ分離し critical path を短縮する #2119/feat: Playwright E2E responsive matrix を専用 lane へ分離する #2137 legacy behavior regression
.claude/skills/impl-review-loop/tests/test_implementation_landed_intake_integration.pycollect_candidate_inputs()から production-shaped path(timeline candidate collection → PR body marker parse → qualification → disposition composition)を通す integration regression- 既存 mock
ghpattern を再利用し、新しい巨大な harness は作らない
.claude/skills/impl-review-loop/SKILL.md- Evidence-Based Landing Disposition の既存 fail-closed 契約に対する bounded carve-out の明文化(required change surface)
.claude/skills/impl-review-loop/steps/preparation.md- 「0-a-0. Evidence-Based Landing Disposition」節の既存契約に対する同上の bounded carve-out の明文化(required change surface)
Out of Scope
create-issue/edit-issue/issue-refinement-loopの native dependency materialization 再設計- Issue 実装: issue-refinement-loop の hard dependency を GitHub native blockedBy に materialize / readback する #2435 で hard dependency → GitHub native
blockedBymaterialization/readback は実装済み
- Issue 実装: issue-refinement-loop の hard dependency を GitHub native blockedBy に materialize / readback する #2435 で hard dependency → GitHub native
- Issue 実装: persist_retrospective_run.py の secret redaction パターンを新形式 ghs_ App installation token に対応させる #2727 に存在しない blocker を新規に推測・設定すること
- generic timeline cross-reference を全面無効化すること
- markerless legacy false cross-reference 全般の解決(Issue 実装: impl-review-loop intakeにevidence-based landing dispositionを実装する #2699 が意図的に維持する markerless legacy compatibility はそのまま維持する)
- closing relation の fail-closed semantics を弱めること
- PR title / branch name / free-form body text を新たな landing authority にすること
- 新しい provenance schema、lifecycle registry、ledger、attestation subsystem の追加
verify_implementation_landed_intake_runtime.pyに historical incident(実装: persist_retrospective_run.py の secret redaction パターンを新形式 ghs_ App installation token に対応させる #2727 の original candidate set)を live 再現させる変更(Runtime Verification Applicability の通り、read-only sanity check の範囲を超える変更は行わない)
Acceptance Criteria
- AC1: merged
verified_cross_referencecandidate が current target Issue とは異なるIMPLEMENTATION_SCOPE_COVERAGE_V1.issue_numberを持ち、かつ candidate-local marker error がscope_coverage_issue_identity_mismatchの1件だけの場合、その candidate は qualified landing candidate から除外され、current target の reconciliation conflict を生成しない - AC2: 実装: persist_retrospective_run.py の secret redaction パターンを新形式 ghs_ App installation token に対応させる #2727 incident shape の reproducer(PR fix: summarize_agent_transcript.py の GitHub token redaction を新形式 ghs_ App installation token に対応させる #2735/fix: compact_author_result.pyのghs_パターンを新形式GitHubトークンに対応させる #2746 相当の well-formed sibling marker candidate 2件、両方 current target には irrelevant)で
qualified_candidate_conflictは発生せず、no_qualified_candidate相当 → 既存 already-satisfied precedence → canonical route(already_satisfiedまたはordinary_dispatch_or_explicit_recovery)になる - AC3: current target Issue を実際に
closing_relation(構造化closingIssuesReferences)で close する candidate が durable marker identity mismatch を持つ fixture は、従来どおりreconciliation_requiredを返す - AC4: current Issue 用の valid non-closing candidate が1件、sibling marker candidate(irrelevant)が複数存在する fixture では、sibling candidate は conflict counting から除外され valid candidate のみが評価される。また non-closing candidate の marker error が
scope_coverage_issue_identity_mismatchに加え別の marker error(schema/digest/manifest 等)を同時に持つ fixture では、irrelevant 扱いにせず従来どおりreconciliation_requiredを維持する(fail-closed) - AC5: Issue 実装: CI: Playwright E2E の responsive matrix を専用 lane へ分離し critical path を短縮する #2119 / PR feat: Playwright E2E responsive matrix を専用 lane へ分離する #2137 相当の markerless PR fixture で、sibling marker mismatch と同じ理由では除外されず、Issue 実装: impl-review-loop intakeにevidence-based landing dispositionを実装する #2699 の legacy compatibility 契約が維持される
- AC6:
verified_cross_reference/closing_relationの provenance schema や既存 disposition enum を増やさず、既存implementation_already_landed | existing_pr_resume | already_satisfied | ordinary_dispatch_or_explicit_recovery | reconciliation_requiredの範囲で解決する - AC7: GitHub native
blocked_byと timeline cross-reference を混同する新しい dependency inference を追加しない - AC8:
.claude/skills/impl-review-loop/SKILL.mdとsteps/preparation.mdが、既存の「identity mismatch / malformed durable marker は lifecycle に関係なく常に最優先でreconciliation_required」契約に対する bounded carve-out(non-closing candidate かつ marker error が identity mismatch 単独の場合のみ)を明文化している - AC9: AC1-AC5 の regression が、手組み candidate dict の unit test だけでなく、少なくとも1件は
collect_candidate_inputs()を通す production-shaped integration path(既存test_implementation_landed_intake_integration.pyの mockghpattern を再利用)でも検証される
Verification Commands
# AC1
$ uv run --locked pytest .claude/skills/impl-review-loop/tests/test_implementation_landed_evidence.py -q
# AC2
$ uv run --locked pytest .claude/skills/impl-review-loop/tests/test_implementation_landed_intake_integration.py -q
# AC3
$ uv run --locked pytest .claude/skills/impl-review-loop/tests/test_implementation_landed_evidence.py -q
# AC4
$ uv run --locked pytest .claude/skills/impl-review-loop/tests/test_implementation_landed_evidence.py -q
# AC5
$ uv run --locked pytest .claude/skills/impl-review-loop/tests/test_implementation_landed_evidence.py -q
# AC6
$ uv run --locked pytest .claude/skills/impl-review-loop/tests/test_implementation_landed_evidence.py -q
# AC7
$ uv run --locked pytest .claude/skills/impl-review-loop/tests/test_implementation_landed_evidence.py -q
# AC8
$ rg -n "scope_coverage_issue_identity_mismatch" .claude/skills/impl-review-loop/SKILL.md .claude/skills/impl-review-loop/steps/preparation.md
# AC9
$ uv run --locked pytest .claude/skills/impl-review-loop/tests/test_implementation_landed_intake_integration.py -q読み取り専用 sanity check(.claude/skills/impl-review-loop/scripts/verify_implementation_landed_intake_runtime.py)は、Runtime Verification Applicability に記載の通り native GitHub API 到達性に依存するため、正式な Verification Command としては列挙せず、native GitHub API 到達性が無い環境では既存 SKIP 契約に従う任意の補助チェックとして扱う。
Allowed Paths
.claude/skills/impl-review-loop/scripts/implementation_landed_evidence.py.claude/skills/impl-review-loop/tests/test_implementation_landed_evidence.py.claude/skills/impl-review-loop/tests/test_implementation_landed_intake_integration.py.claude/skills/impl-review-loop/SKILL.md.claude/skills/impl-review-loop/steps/preparation.md
Stop Conditions
- Allowed Paths 外の変更が必要と判明した場合
- In Scope の固定契約(キー集合・スキーマ・型定義)の変更が必要になった場合
- 新規 Issue の起票が必要と判断した場合(スコープ分割が発生する場合)
- 後続 Phase / 別スコープへの波及が判明した場合
- nested SubAgent delegation が必要になった場合
- 外部サービス利用・権限昇格・既存テスト大規模改変が必要になった場合
- closing relation と non-closing cross-reference の authority 境界を変更するために新しい provenance schema が必要と判明した場合
- 実装: CI: Playwright E2E の responsive matrix を専用 lane へ分離し critical path を短縮する #2119/feat: Playwright E2E responsive matrix を専用 lane へ分離する #2137 legacy compatibility を壊さずに bounded fix ができない場合
- GitHub native dependency materialization の再設計が必要と判明した場合
- remote mutation を伴う runtime test が必要になった場合
Required Skills
なし
Required Design References
- Issue 実装: impl-review-loop intakeにevidence-based landing dispositionを実装する #2699 — evidence-based landing disposition の実装契約
- Issue 調査: issue-refinement-loop の root_entry_router が post-merge の duplicate impl-review-loop handoff を防げない blind spot を調査し、follow-up 実装方針を確定する #2680 — non-closing cross-reference を含む research/design contract
- Issue 実装: issue-refinement-loop の hard dependency を GitHub native blockedBy に materialize / readback する #2435 — hard dependency の GitHub native
blockedBymaterialization/readback - Issue 実装: persist_retrospective_run.py の secret redaction パターンを新形式 ghs_ App installation token に対応させる #2727 — incident reproducer
- PR fix: summarize_agent_transcript.py の GitHub token redaction を新形式 ghs_ App installation token に対応させる #2735 / PR fix: compact_author_result.pyのghs_パターンを新形式GitHubトークンに対応させる #2746 — 実装: persist_retrospective_run.py の secret redaction パターンを新形式 ghs_ App installation token に対応させる #2727 から precedent/reference された sibling implementations(いずれも 実装: persist_retrospective_run.py の secret redaction パターンを新形式 ghs_ App installation token に対応させる #2727 を close しない)
- PR fix: persist_retrospective_run.py の _TOKEN_PATTERNS を新形式 ghs_ App installation token に対応させる #2751 — 実装: persist_retrospective_run.py の secret redaction パターンを新形式 ghs_ App installation token に対応させる #2727 を実際に close して merge済みの genuine landing PR(本 Issue 起票後にマージされたため、exact incident reproduction の対象外)
.claude/skills/impl-review-loop/SKILL.mdの「Evidence-Based Landing Disposition」節.claude/skills/impl-review-loop/steps/preparation.mdの「0-a-0. Evidence-Based Landing Disposition」節
Source
- incident_issue: 実装: persist_retrospective_run.py の secret redaction パターンを新形式 ghs_ App installation token に対応させる #2727
- observed_stop:
reconciliation_required / qualified_candidate_conflict - observed_false_candidates: PR fix: summarize_agent_transcript.py の GitHub token redaction を新形式 ghs_ App installation token に対応させる #2735, PR fix: compact_author_result.pyのghs_パターンを新形式GitHubトークンに対応させる #2746
- dependency_readback: Issue 実装: persist_retrospective_run.py の secret redaction パターンを新形式 ghs_ App installation token に対応させる #2727 native
blocked_by == [] - reviewer_feedback: 実装: impl-review-loop の cross-reference false candidate で不要な reconciliation 停止を防ぐ #2750 (comment)
Activity
squne121 commentedon Sep 25, 2026
判定:
REQUEST_CHANGESIssue #2750 の技術的な方向性は妥当です。実際、現行
derive_landing_disposition()は candidate の scope marker を見る前に candidate 数でqualified_candidate_conflictを確定しており、#2727 で PR #2735 / #2746 が false candidate になった説明はコードと一致しています。GitHub 側の意味論も、cross-referencedは単に「別Issue/PRから参照された」イベントであり、PRであることはsource.issue.pull_requestで識別するだけです。一方closingIssuesReferencesは PR と Issue の構造化された closing linkage で、Issue dependency のblocked by/blockingはさらに別機能です。したがって、この3つを別 authority として扱う方針は正しいです。GitHub Docsただし、このまま実装に渡すべきではありません。特に最初の2件は、今回直そうとしている「不要停止」そのものを別の形で再発させます。
参照した repository 契約はこちらです。Issue #2750 implementation.yml implementation_landed_evidence.py impl-review-loop SKILL.md
最小の実装設計
新 schema や新 provenance type は不要です。既存 candidate-local
scope_coverageを使い、closing authority の選択と false-cross-reference 除外を conflict counting より前に行うだけで十分です。重要なのは、判定に candidate-local
candidate["scope_coverage"]を使うことです。_coverage_for()は evidence-level fallback を持つため、candidate qualification の identity 判定に使うと別 candidate の coverage を誤適用できる余地があります。Issue本文に入れるべき regression boundary
最低限、AC/VC では次の5ケースを直接固定すべきです。
no_qualified_candidate、qualified_candidate_conflictなし。reconciliation_required。scope_coverage_issue_identity_mismatchと別の marker error が同時にある → irrelevant 扱いせず fail-closed。このうち1と2は、できれば
coverage_from_pr_body()に完成済み marker text を実際に通してください。手製の{"status": "invalid"}fixture だけだと、今回の根本にある parser → qualification 接続を検証できません。Runtime Verification は軽くするべき
この点はユーザー方針とも一致します。現在の live #2727 は PR #2751 が正規の closing candidate になっているため、事件当時の状態そのものは失われました。PR #2751
したがって新しい巨大な runtime harness や disposable Issue mutation を作る価値は低いです。deterministic collector/integration regression を正本にして、live verification は必要なら「#2735/#2746 が timeline cross-reference に存在し、それぞれ marker が #2725/#2726 を指し、#2727 の native
blocked_byが空」という external fact の read-only sanity check に留めるのが適切です。GitHub の dependency は cross-reference とは独立した機能なので、この separation 自体は公式仕様とも整合しています。GitHub Docs修正後の Issue #2750 のスコープ
最小修正で進めるなら、Allowed Paths は以下で十分です。
.claude/skills/impl-review-loop/scripts/implementation_landed_evidence.py.claude/skills/impl-review-loop/tests/test_implementation_landed_evidence.py.claude/skills/impl-review-loop/tests/test_implementation_landed_intake_integration.py.claude/skills/impl-review-loop/SKILL.md.claude/skills/impl-review-loop/steps/preparation.mdverify_implementation_landed_intake_runtime.pyは、上記の通り live incident reproduction をやめるなら変更不要でもよいです。総括すると、アルゴリズムの狙いは正しいものの、Issue contract 自体が現在 implementation-ready ではありません。特に「必須見出し/enumの修正」と「#2699 の fail-closed 契約に対する明示的 carve-out」の2点を先に直すべきです。その後は新規 framework を増やさず、candidate qualification の数十行程度の bounded fix + 既存テスト基盤で十分に閉じられます。
## 判定: `REQUEST_CHANGES`Issue #2750 の技術的な方向性は妥当です。実際、現行
derive_landing_disposition()は candidate の scope marker を見る前に candidate 数でqualified_candidate_conflictを確定しており、#2727 で PR #2735 / #2746 が false candidate になった説明はコードと一致しています。GitHub 側の意味論も、cross-referencedは単に「別Issue/PRから参照された」イベントであり、PRであることはsource.issue.pull_requestで識別するだけです。一方closingIssuesReferencesは PR と Issue の構造化された closing linkage で、Issue dependency のblocked by/blockingはさらに別機能です。したがって、この3つを別 authority として扱う方針は正しいです。:chatgpt-content-reference{index="0"}ただし、このまま実装に渡すべきではありません。特に最初の2件は、今回直そうとしている「不要停止」そのものを別の形で再発させます。
change_kind: workflow-routingは implementation template の許容値docs|code|mixed|workflow|dataにない。さらに必須の## Current Validated Scopeが## Incident / Current Validated Scopeに改名され、## Remaining Parent Gaps、## Allowed Paths、## Required Skillsが欠落。Stop Conditions は存在しないAllowed Pathsを参照している。テンプレート自身が「見出しを機械判定する」と明記しているため、implementation 前の preflight 停止要因になるchange_kind: workflowにする。必須見出しを canonical 名で追加。Remaining Parent Gaps: なし、Required Skills: なしでよい。Allowed Paths を明示するreconciliation_required」と明記。一方 #2750 は non-closing cross-reference の identity mismatch を「irrelevant evidence」として除外しようとしている。コードだけ変更すると skill SSOT と実装が不一致になる.claude/skills/impl-review-loop/SKILL.mdとsteps/preparation.mdを 必須変更対象 にし、「relation qualification 前の clean cross-reference identity mismatch は negative qualification evidence」という carve-out を明記するscope_coverage_issue_identity_mismatchを含むだけで除外すると fail-open になる_parse_marker()は identity mismatch 以外にも schema/digest/manifest error をまとめて返し、marker 自体を破棄する。そのためerrorsに identity mismatch が含まれる、というだけで除外すると「別Issue番号 + 壊れたmarker」まで irrelevant として無視できてしまうqualified_candidate_conflictshape にはならないderive_landing_disposition()だけでは不十分already_satisfiedcomposition という複数段の接続不良。手組み candidate だけの test では parser/filter wiring を間違えても green になるcollect_candidate_inputs()から production path を通す integration regression を必須にする。新 harness は不要で、既存 mockghpattern を再利用すれば十分closing_relationの説明を keyword に寄せすぎない方がよいclosingIssuesReferencesは structured linkage であり、デフォルトでは manually linked Issue も含み得る。Closes/Fixes/Resolvesだけを同義扱いすると external semantics とずれるclosingIssuesReferencesに存在する」を authority にする。本文 keyword は説明用に留める :chatgpt-content-reference{index="1"}参照した repository 契約はこちらです。[Issue #2750](https://github.com/squne121/loop-protocol/issues/2750?utm_source=chatgpt.com) [implementation.yml](https://github.com/squne121/loop-protocol/blob/main/.github/ISSUE_TEMPLATE/implementation.yml?utm_source=chatgpt.com) [implementation_landed_evidence.py](https://github.com/squne121/loop-protocol/blob/main/.claude/skills/impl-review-loop/scripts/implementation_landed_evidence.py?utm_source=chatgpt.com) [impl-review-loop SKILL.md](https://github.com/squne121/loop-protocol/blob/main/.claude/skills/impl-review-loop/SKILL.md?utm_source=chatgpt.com)
最小の実装設計
新 schema や新 provenance type は不要です。既存 candidate-local
scope_coverageを使い、closing authority の選択と false-cross-reference 除外を conflict counting より前に行うだけで十分です。重要なのは、判定に candidate-local
candidate["scope_coverage"]を使うことです。_coverage_for()は evidence-level fallback を持つため、candidate qualification の identity 判定に使うと別 candidate の coverage を誤適用できる余地があります。Issue本文に入れるべき regression boundary
最低限、AC/VC では次の5ケースを直接固定すべきです。
no_qualified_candidate、qualified_candidate_conflictなし。reconciliation_required。scope_coverage_issue_identity_mismatchと別の marker error が同時にある → irrelevant 扱いせず fail-closed。このうち1と2は、できれば
coverage_from_pr_body()に完成済み marker text を実際に通してください。手製の{"status": "invalid"}fixture だけだと、今回の根本にある parser → qualification 接続を検証できません。Runtime Verification は軽くするべき
この点はユーザー方針とも一致します。現在の live #2727 は PR #2751 が正規の closing candidate になっているため、事件当時の状態そのものは失われました。PR #2751
したがって新しい巨大な runtime harness や disposable Issue mutation を作る価値は低いです。deterministic collector/integration regression を正本にして、live verification は必要なら「#2735/#2746 が timeline cross-reference に存在し、それぞれ marker が #2725/#2726 を指し、#2727 の native
blocked_byが空」という external fact の read-only sanity check に留めるのが適切です。GitHub の dependency は cross-reference とは独立した機能なので、この separation 自体は公式仕様とも整合しています。:chatgpt-content-reference{index="7"}修正後の Issue #2750 のスコープ
最小修正で進めるなら、Allowed Paths は以下で十分です。
.claude/skills/impl-review-loop/scripts/implementation_landed_evidence.py.claude/skills/impl-review-loop/tests/test_implementation_landed_evidence.py.claude/skills/impl-review-loop/tests/test_implementation_landed_intake_integration.py.claude/skills/impl-review-loop/SKILL.md.claude/skills/impl-review-loop/steps/preparation.mdverify_implementation_landed_intake_runtime.pyは、上記の通り live incident reproduction をやめるなら変更不要でもよいです。総括すると、アルゴリズムの狙いは正しいものの、Issue contract 自体が現在 implementation-ready ではありません。特に「必須見出し/enumの修正」と「#2699 の fail-closed 契約に対する明示的 carve-out」の2点を先に直すべきです。その後は新規 framework を増やさず、candidate qualification の数十行程度の bounded fix + 既存テスト基盤で十分に閉じられます。
squne121 commentedon Sep 25, 2026
確認した限り、今回の最優先は #2750 自体を implementation-ready な契約へ修復してから承認まで refinement-loop を回すことです。レビューコメントのP0/P1は妥当で、さらに現行
implementation.ymlと照合するとParent Goal Refも必須なのに欠けています。特に重要なのは、対象コメントを単なる参考コメントではなく、今回ユーザーが明示指定した direct human context として扱うことです。
issue-refinement-loopの現行契約では通常の iteration 承認は不要で、SubAgent は必要時に使い、結果を必ず join してから次段へ進む設計になっています。Step 2 の root review も background 起動後の完了 join が必須です。現時点では別の再発防止Issueは起票していません。#2750 が主要な false-candidate 問題を包含しており、markerless legacy candidate は #2699 の互換性境界として意図的に残されているためです。refinement 中に「#2750とは独立した、repo-owned かつ再現可能な再発原因」が確認された場合だけ、重複検索後に follow-up Issue を起票させるのが適切です。
そのまま現在の auto mode Claude Code に投入するプロンプトです。
squne121/loop-protocolの Issue #2750 に対して、.claude/skills/issue-refinement-loopを実行してください。対象:
実装: impl-review-loop の cross-reference false candidate で不要な reconciliation 停止を防ぐ #2750 (comment)
このコメントURLは、今回ユーザーが明示的に選択した direct human context です。
GitHub の
author_associationから human origin を推定するのではなく、operator-selected human context として canonicalwith_human_contextlane を使用してください。実行方針
issue-refinement-loopのloop_iteration_approval_gate.default_required: falseに従い、needs-fixなら max_iterations の範囲で自動継続してください。gh issue edit等で governance を迂回せず、repository の canonical executor / controlled mutation route を使ってください。impl-review-loop、implementation worker、worktree implementation、commit、PR 作成へ進んではいけません。この依頼は Issue refinement の完了までです。max_iterations は既定値 3 を使用してください。
通常の
needs-fixでは停止せず自動修正・再レビューしてください。canonical hard stop、environment/integrity failure、真に人間判断が必要な semantic ambiguity の場合のみ停止してください。
Step 0 / human-context preflight
対象コメントを anchor として snapshot 固定し、Issue #2750 への binding を確認してください。
human-context 用 canonical preflight / contract update route を使用し、レビューコメントが要求する Issue contract 修正を反映してください。
コメントの列挙項目だけを機械的に転記するのではなく、current main の以下を SSOT として fresh に確認してください。
.github/ISSUE_TEMPLATE/implementation.yml.claude/skills/create-issue/scripts/validate_issue_body.py.claude/skills/review-issue/scripts/check_issue_contract.py.claude/skills/issue-contract-review/.claude/skills/impl-review-loop/SKILL.md.claude/skills/impl-review-loop/steps/preparation.mdレビューコメントと current repository contract が食い違う場合は current main の machine-enforced contract を優先し、その差分を最終報告してください。
Issue #2750 で最低限修正すべき contract hygiene
まず現在の implementation contract の構造不正を解消してください。
最低限:
Machine-Readable Contract
change_kind: workflow-routing→
change_kind: workflowcanonical heading を current implementation template に合わせる。
特に現在不足しているものを補ってください。
## Parent Goal Ref## Current Validated Scope## Incident / Current Validated Scopeを canonical heading に正規化する。## Remaining Parent Gaps## Allowed Paths## Required Skillstemplate/checker が他にも必須と判定する section があれば同時に修正すること。
Parent Goal Refstandalone Issue なので parent 自体は none ですが、テンプレート要求を満たす bounded な:
を記載してください。
Remaining Parent Gapsなしと明記。Required Skillsなし。Allowed Pathsreviewer feedback に基づく最小集合を原則とする:
.claude/skills/impl-review-loop/scripts/implementation_landed_evidence.py.claude/skills/impl-review-loop/tests/test_implementation_landed_evidence.py.claude/skills/impl-review-loop/tests/test_implementation_landed_intake_integration.py.claude/skills/impl-review-loop/SKILL.md.claude/skills/impl-review-loop/steps/preparation.mdverify_implementation_landed_intake_runtime.pyは「historical incident を live 再現する変更」が不要なら Allowed Paths に追加しないでください。investigation の結果 genuine に変更が必要なら、scope delta を明示して refinement 内で判断してください。
Stop Conditions
Allowed Pathsが存在しない状態を前提にした記述を解消する。#2699 / impl-review-loop SSOT との衝突解消
これは必須です。
Issue #2750 の修正を production code だけに限定せず、
.claude/skills/impl-review-loop/SKILL.md.claude/skills/impl-review-loop/steps/preparation.mdを required change surface として明記してください。
既存の
「identity mismatch / malformed durable marker は reconciliation_required」
という fail-closed 契約に対して、今回の bounded carve-out を明文化してください。
意図する境界は:
verified_cross_referencescope_coveragescope_coverage_issue_identity_mismatchの1件だけ
である場合に限り、current target に対する negative qualification evidence として扱い、qualified candidate conflict counting から除外可能。
一方で以下は従来どおり fail-closed:
closing_relationが current target Issue を指すのに marker identity mismatchcandidate qualification の identity 判定には candidate-local
candidate["scope_coverage"]を使用してください。
evidence-level fallback を持つ
_coverage_for()等で別 candidate の coverage が混入し得る設計を、この qualification 判定の authority にしてはいけません。bounded fix の範囲
Issue のタイトル・Outcome・In Scope・AC を、実際に修正可能な範囲へ狭めてください。
今回保証するのは原則:
「well-formed durable marker が別 Issue identity を指す verified non-closing cross-reference」
の false candidate 除外です。
以下を #2750 の実装で無理に一般解決しないでください。
closing_relationの authority は prose keyword ではなく、current target Issue が GitHub structured
closingIssuesReferencesに存在することとして記述してください。
Regression / Acceptance Criteria
最低限、以下を Issue body の AC/VC に固定してください。
実装: persist_retrospective_run.py の secret redaction パターンを新形式 ghs_ App installation token に対応させる #2727 incident shape
qualified_candidate_conflictなしno_qualified_candidate相当から existing already-satisfied precedence → canonical routecurrent Issue 用 valid non-closing candidate 1件 + sibling marker candidate 複数
closing_relation+ current Issue identity mismatchreconciliation_requirednon-closing candidate に
scope_coverage_issue_identity_mismatchが同時にある
markerless PR feat: Playwright E2E responsive matrix を専用 lane へ分離する #2137 相当
単なる手組み済み candidate dict の unit test だけで終了しないでください。
少なくとも incident-shape regression では可能な範囲で:
coverage_from_pr_body()collect_candidate_inputs()という production-shaped path を通してください。
既存
test_implementation_landed_intake_integration.pyと既存 mockghpattern を再利用し、新しい巨大な harness を作らないでください。Runtime Verification
historical live #2727 は現在 PR #2751 が genuine closing candidate として merge 済みなので、事件当時の exact candidate set ではありません。
したがって:
deterministic fixture / integration regression
必要なら read-only sanity check のみに限定
としてください。
live check を行う場合も、
等の external fact transport sanity に留め、
「live #2727 が original qualified_candidate_conflict を再現した」
ことを PASS 条件にしてはいけません。
新規 disposable Issue、remote mutation runtime harness、過剰な runtime framework は追加しないでください。
SubAgent の使用
planner の
REFINEMENT_LOOP_PLAN_V1を authority としてください。Investigation
investigation_policy.required == trueの場合:codebase-investigatorSubAgent を使用する。Web research
web_research_policy.required == trueの場合:web-researcherSubAgent を使用する。SubAgent が返した内容は advisory/evidence とし、main/root thread が最終 classification と mutation を所有してください。
Step 2 review の mandatory join
canonical Step 2 は current repository contract に従って root-owned
run_root_review_pipeline.py produceを使用してください。
Claude Code Bash tool からは repository contract の要求どおり background execution を明示し、
background task の完了 notification / 完了 JSON を必ず join してください。
background launch しただけで Step 2 完了扱いにしてはいけません。
完了後の
canonical_step2_routeのみを routing authority とし、status/verdict/next_actionから独自に route を再計算しないでください。自動 refinement loop
review が
needs-fix / request_changesなら、人間へ確認せず次 iteration に進んでください。NEXT_ACTION: issue_editor_requiredに従い、existing
issue-editor/edit-issuecontrolled transaction で full rewriteを使ってください。
full rewrite 後は必ず:
を再実行してください。
同一 no-progress mutation を盲目的に retry しないでください。
再発防止 follow-up Issue
refinement / investigation 完了時に、今回とは別の「再発し得る repository-owned defect」が concrete evidence 付きで確認されたか評価してください。
新規 Issue を起票する条件:
候補例:
create_issue_txn.py/validate_issue_body.pyを迂回し、不正な implementation contract を恒常的に生成できることが確認されたただし:
については speculative Issue を作らないでください。
follow-up が必要なら:
-既存 Issue があれば新規起票しない
create-issuetransaction を使用-単なる関連性を
blocked_byにしないユーザーはこの条件を満たす再発防止 Issue の起票を事前承認しています。追加確認は不要です。
終了条件
Issue #2750 が fresh review で approved / proceed になり、implementation-ready contract として validation/readiness を満たしたら refinement-loop を正常終了してください。
その際:
impl-review-loopを自動起動しない最後に以下を簡潔に報告してください。
このプロンプトでは、通常の修正ループだけでなく SubAgent完了待ち、Step 2 background review の join、full rewrite 後のfresh validation まで明示しています。今回のような「レビューコメントは正しいがIssue契約自体がpreflightで止まる」ケースでも、実装開始前に収束させる構成です。
squne121 commentedon Sep 25, 2026
issue-refinement-loop 終了報告
Verdict: approved(deterministic review:
VERDICT: approve/BLOCKERS: 0。semantic design review:assessment: findings(medium 1件・low 1件、いずれも blocker/high ではないためeffective_verdict: approveを維持))Iterations: 2(Step 4 rewrite 2回)
実施した本文修正(reviewer コメント #2750 (comment) 反映 + template/checker 準拠)
change_kind: workflow-routing→workflow(.github/ISSUE_TEMPLATE/implementation.ymlの許容値外だったため)## Incident / Current Validated Scope→## Current Validated Scope(canonical heading、内容は保持)## Parent Goal Ref/## Remaining Parent Gaps/## Allowed Paths/## Required Skillsを追加.claude/skills/impl-review-loop/SKILL.md/steps/preparation.mdを In Scope / Allowed Paths に追加し、既存 fail-closed 契約(identity mismatch は lifecycle に関係なく常に reconciliation_required)への bounded carve-out 明文化を要求する AC8 を追加closing_relationの authority を GitHub 構造化closingIssuesReferencesと明記(prose keyword は補助説明に留める)fresh review で追加検出した contract hygiene 問題(reviewer コメント外)
guard-issue-body.py --kind implementation(LP017)が実際の mutation gate で fail することを検出・修正(contract_readiness_check.py --mode preflight-staticの go 判定はこの kind 別チェックを捕捉しない非対称性があるため、事前確認だけでは不十分だった)decision: immediateの Runtime Verification Applicability にapplicable_acs/execution_environment/skip_conditions/fallback_policy/artifact_requirementsの必須フィールドが欠落していたため追加(RVA001)<!-- runtime-verification: true -->タグの欠落(C11_decision_tag_consistency)を修正uv run python3 <script>形式コマンドが VC preflight allowlist 外だったため(VCP_COMMAND_NOT_ALLOWED)、read-only sanity check を正式な VC ブロックから外し、Runtime Verification Applicability の参照として記述する形に変更Semantic Design Review(Step 2.5)所見
lifecycle == mergedの candidate に限定しているのに対し、Root Cause / Outcome bullet 1 は lifecycle を限定せず一般的に記述しており、実装者によって適用範囲の解釈が割れ得る(derive_landing_disposition()のlen(qualified) > 1チェック自体は lifecycle 分岐より前に走るため、open/draft candidate 同士の false conflict は AC1 の文言では明示的にカバーされない)。実装着手時に、この carve-out を merged-only に限定するのか、qualified な lifecycle 全般に広げるのかを明確にし、選んだ範囲を SKILL.md/preparation.md の契約文言(AC8)にも正確に反映することを推奨する。blocking ではないため本 Issue は approve 対象のまま。implementation_landed_evidence.py内の既存コード近傍コメント(実装: impl-review-loop intakeにevidence-based landing dispositionを実装する #2699 P1-1 由来、「lifecycle に関わらず reconciliation_required」を説明する既存コメント)も、実装時に bounded exception を反映するよう更新することを推奨(non-blocking)。再発防止 follow-up Issue
起票しませんでした。
contract_readiness_check.py --mode preflight-staticが implementation kind 向けの LP017 相当チェックを実行しない非対称性は、closed Issue #1844(contract_readiness_check.py の run_validate_issue_body が issue_kind を validate_issue_body.py へ転送せず...)がimplementationkind を意図的に "legacy-compatible profile" として扱う設計判断の範囲内であり、かつ今回も下流のguard-issue-body.py(mutation 直前の実 gate)が正しく fail-closed して不正な mutation は一切発生しなかった(mutation_started: falseで停止)。既知の設計トレードオフであり、新規の再現可能な defect ではないため、speculative Issue は起票していない。SubAgent 実行・完了 join
codebase-investigator: template/checker/SKILL.md/preparation.md/implementation_landed_evidence.py/Issue 実装: impl-review-loop intakeにevidence-based landing dispositionを実装する #2699,調査: issue-refinement-loop の root_entry_router が post-merge の duplicate impl-review-loop handoff を防げない blind spot を調査し、follow-up 実装方針を確定する #2680,実装: persist_retrospective_run.py の secret redaction パターンを新形式 ghs_ App installation token に対応させる #2727/PR fix: summarize_agent_transcript.py の GitHub token redaction を新形式 ghs_ App installation token に対応させる #2735,fix: compact_author_result.pyのghs_パターンを新形式GitHubトークンに対応させる #2746,fix: persist_retrospective_run.py の _TOKEN_PATTERNS を新形式 ghs_ App installation token に対応させる #2751 を fresh 調査。完了 join 済み。web-researcher: GitHubcross-referencedtimeline event /closingIssuesReferences/ issue dependency(blocked_by/blocking)が別 authority である旨を一次資料(docs.github.com)で確認。完了 join 済み。issue-editor: 本文書き換えを2回実行(1回目は LP017 で mutation 前に fail-closed、修正後の2回目で成功)。完了 join 済み。issue-design-reviewer: Step 2.5 semantic design review。完了 join 済み。Regression / Runtime Verification 方針
qualified_candidate_conflict)の再現は deterministic fixture(test_implementation_landed_evidence.py)と production-shaped integration regression(test_implementation_landed_intake_integration.py、既存 mockghpattern 再利用)に委ねる。verify_implementation_landed_intake_runtime.py)は、2026-09-25 の PR fix: persist_retrospective_run.py の _TOKEN_PATTERNS を新形式 ghs_ App installation token に対応させる #2751 マージにより original candidate set がもはや存在しないため、external fact transport の read-only sanity check に限定し、正式な Verification Command としては列挙しない。Implementation Handoff
issue_kind: implementationの standalone Issue。本 refinement-loop はapprovedで正常終了する。impl-review-loopの起動・implementation worker の起動・worktree 作成・production code の実装・commit/push/PR 作成のいずれも行っていない(本依頼のスコープ外)。実装着手は、ユーザーが別途明示的に依頼した時点でimpl-review-loop自身のエントリゲートを通じて行われる。未解決 blocker
なし。
squne121 commentedon Sep 25, 2026
Issue #2750 は refinement 済みで
approved、未解決 blocker なしです。現時点で #2750 用の既存PR・2750ブランチも見つからないため、そのままimpl-review-loopに渡して実装開始が適切です。実装解釈は1点だけ明示的に固定した方がよいです。現行
derive_landing_disposition()はmerged/open/draft/closed_unmergedをまとめてqualifiedにした後、lifecycle 別評価より前にqualified_candidate_conflictを判定します。そのため carve-out を AC1 の文面どおり merged だけに限定すると、open/draft の sibling cross-reference で同型の false reconciliation が残ります。Issue 本文の Outcome / In Scope と整合させ、non-closingverified_cross_referenceの全 lifecycle に bounded carve-out を適用する方針をプロンプトに固定しました。ただし closing relation は従来どおり fail-closed です。再発防止Issueについては、今回は新規起票していません。上記 lifecycle 問題は #2750 自体で解消可能であり、markerless false cross-reference は #2699 の明示的な legacy compatibility 範囲です。refinement 実行時にも独立した新規 defect は確認されていません。新しい out-of-scope の再現可能 defect が実装中に見つかった場合だけ、下記プロンプトで dedupe 後に自動起票させます。
そのまま、既に auto mode で起動中の Claude Code に貼り付けてください。
Issue #2750 を対象に、repository の canonical skill
.claude/skills/impl-review-loop/SKILL.mdを SSOT としてimpl-review-loopを実行してください。対象:
#2750
目的:
Issue #2750 の実装・検証・PRレビューを、人間の途中承認を要求せず自律的に反復し、マージ直前の merge-ready / draft_pr_ready 状態まで到達させてください。
PR の merge 自体は実行しないでください。
開始前の authority
必ず live GitHub から Issue #2750 本文とコメントを fresh read してください。
特に refinement-loop の終了報告:
#2750 (comment)
を確認してください。
このコメントでは refinement が
approved、未解決 blocker なしで終了しています。ただし過去の snapshot/comment/artifact 自体を Step 1 authorization とみなしてはいけません。impl-review-loopが要求する Root-Owned Synchronous Entry Transition を、今回の同一 continuous invocation 内で fresh に実行してください。すなわち、repository の現行契約に従って:
までを分断せず実行してください。
古い invocation token / authorization packet 相当の artifact を再利用して Step 1 を開始しないでください。
自律実行ポリシー
Claude Code は既に auto mode で起動しています。permission mode を変更したり、別の permission mechanism を導入したりしないでください。
通常の implementation → verification → PR review → fix loop について人間承認を求めないでください。
impl-review-loopの canonical routing に従って、REQUEST_CHANGESの場合は fix_delta を Step 1 に返し、自動的に次 iteration を継続してください。SubAgent の単なる:
human_review_required: true自己申告だけでは停止しないでください。現行 skill の #1860 Owner Decision に従い warning として扱い、iteration の余裕があれば継続してください。
同様に contract snapshot / product-spec の advisory な
human_judgment、missing_go、stale、refresh_contract_snapshot等を独自判断で hard stop に昇格させないでください。ただし live Issue/PR コメント上の明示的 human veto、actual Git conflict、max_iterations、Issue #2750 または canonical skill に定義された真正の hard stop は尊重してください。
SubAgent delegation — 必須
root/main thread は control-plane と routing に専念し、data-plane 作業を対応する SubAgent に委譲してください。
少なくとも以下を canonical skill に従って使用してください。
Step 1
implementation-workerSubAgentIssue #2750 の実装を委譲してください。
Step 2
test-runnerSubAgentcurrent PR head に対する verification を独立実行してください。
Step 4
pr-reviewerSubAgentpr-review-judgeskill に基づく current-head PR review を実行してください。必要に応じて canonical update-branch worker / fix iteration も使用してください。
Mandatory join
各 SubAgent の完了を必ず待ってください。
SubAgent 出力の散文を root thread が独自に再解釈して canonical structured verdict を上書きしないでください。
Issue #2750 の実装方針
実装は bounded fix に限定してください。
主変更対象:
.claude/skills/impl-review-loop/scripts/implementation_landed_evidence.py.claude/skills/impl-review-loop/tests/test_implementation_landed_evidence.py.claude/skills/impl-review-loop/tests/test_implementation_landed_intake_integration.py.claude/skills/impl-review-loop/SKILL.md.claude/skills/impl-review-loop/steps/preparation.mdIssue の Allowed Paths を authoritative boundary としてください。
Candidate qualification の基本設計
現行
derive_landing_disposition()では、lifecycle candidate を集めた後に closing relation を優先し、その後len(qualified) > 1でqualified_candidate_conflictを返します。今回の false candidate 除外は、この conflict counting より前に行ってください。
概念的には:
closing_relationcandidate を抽出verified_cross_referenceを conflict counting から除外len(qualified)を評価としてください。
新しい provenance schema / disposition enum は追加しないでください。
Irrelevant cross-reference の exact 条件
candidate を current Issue に対する irrelevant cross-reference として除外できるのは、以下をすべて満たす場合だけです。
verified_cross_referenceclosingIssuesReferencesで close するclosing_relationではないcandidate["scope_coverage"]が存在するscope_coverage.status == "invalid"scope_coverage.errorsが exactly:["scope_coverage_issue_identity_mismatch"]判定には必ず candidate-local:
candidate["scope_coverage"]を使用してください。
evidence-level fallback を持つ
_coverage_for(candidate, evidence)を、この candidate qualification の identity authority に使用しないでください。別 candidate の coverage が誤適用される可能性を残さないでください。
Lifecycle の解釈
Refinement の semantic review では AC1 の
merged文言と Outcome / Root Cause の一般記述との間に曖昧性が指摘されています。この実装では、carve-out を merged-only に限定しない 方針を採用してください。
理由:
qualified_candidate_conflictは lifecycle-specific disposition 処理より前に発生するverified non-closing cross-reference一般を対象としているしたがって、上記 exact 条件を満たす
verified_cross_referenceについては、qualified lifecycle 全般で conflict counting から除外してください。ただし:
closing_relationにはこの carve-out を適用しないでください。
closed_unmergedの既存 canonical disposition semantics 自体も変更しないでください。この lifecycle 解釈を
SKILL.mdとsteps/preparation.mdの bounded carve-out 文言にも明示し、production code と SSOT を一致させてください。既存コードの #2699 由来コメントで「identity mismatch / malformed marker は lifecycle に関係なく reconciliation」と説明している箇所も、今回の bounded exception が読み手に分かるよう必要最小限更新してください。
必須 regression
少なくとも以下を固定してください。
実装: persist_retrospective_run.py の secret redaction パターンを新形式 ghs_ App installation token に対応させる #2727 incident shape
qualified_candidate_conflictが発生しないcurrent Issue 用 valid non-closing candidate 1件 + sibling marker candidate 複数
current target を structured
closing_relationで closeする candidate + marker identity mismatchreconciliation_requirednon-closing candidate で:
scope_coverage_issue_identity_mismatchが同時発生
markerless PR feat: Playwright E2E responsive matrix を専用 lane へ分離する #2137 相当
lifecycle semantics の regression
verified_cross_referencequalified_candidate_conflictの原因にならないこと6 は今回の semantic ambiguity を将来再発させないための最小 regression としてください。巨大な新 harness は作らないでください。
Production-shaped integration
手組み candidate dict の unit test だけで完了扱いにしないでください。
既存
test_implementation_landed_intake_integration.pyの mockghpattern を再利用し、少なくとも1つは:timeline candidate collection
→ PR body取得
→ actual
IMPLEMENTATION_SCOPE_COVERAGE_V1marker text→
coverage_from_pr_body()→
collect_candidate_inputs()→ candidate qualification
→ disposition composition
の production-shaped path を通してください。
新規大規模 harness / ledger / registry / attestation subsystem は作らないでください。
Runtime verification
2026-09-25 に PR #2751 が #2727 を真正に close して merge 済みなので、live #2727 は incident 当時の candidate set を再現しません。
したがって exact incident reproduction の authority は deterministic fixture / integration regression としてください。
live runtime verification を行う場合は read-only sanity check に限定してください。
確認してよいもの:
禁止:
qualified_candidate_conflictを再現することを PASS 条件にするnative GitHub API が利用不能なら既存 exit-77 SKIP 契約を維持し、SKIP を PASS に変換しないでください。
Verification Commands
Issue #2750 の live body に記載された Verification Commands を authoritative として実行してください。
最低限:
uv run --locked pytest .claude/skills/impl-review-loop/tests/test_implementation_landed_evidence.py -quv run --locked pytest .claude/skills/impl-review-loop/tests/test_implementation_landed_intake_integration.py -qrg -n "scope_coverage_issue_identity_mismatch" .claude/skills/impl-review-loop/SKILL.md .claude/skills/impl-review-loop/steps/preparation.mdを current PR head で確認してください。
test-runner が issue/contract から要求する additional verification があればそれも実行してください。
PR review loop
実装後に PR を作成し、current head を対象に verification → PR review を実行してください。
pr-reviewerがREQUEST_CHANGESを返した場合、人間に確認せず fix_delta をimplementation-workerに渡して修正してください。修正後は必ず:
を取り直してください。
古い head に対する APPROVE を流用しないでください。
BEHINDの場合は canonicalroute_to_update_branchに従い branch を更新してから verification/review をやり直してください。stale review head の場合は canonical
route_stale_head_rereviewに従ってください。再発防止 follow-up Issue
実装・検証・レビュー中に、#2750 の bounded scope では解決できない別の repository-owned recurrence defectを concrete evidence 付きで発見した場合は、人間への追加確認なしで follow-up GitHub Issue を起票して構いません。
ただし起票条件はすべて満たしてください。
起票前に必ず GitHub Issue を検索して dedupe してください。
既存 Issue があれば新規起票しないでください。
新規起票が必要なら repository の canonical create-issue transaction / current validator/template を使用し、最初から valid contract としてください。
単に今回の lifecycle ambiguityを別Issue化しないでください。これは #2750 内で解消します。
また #2699 が意図的に保持する markerless legacy compatibility 自体を defect とみなして起票しないでください。実際の新しい reproducer が必要です。
禁止事項
closingIssuesReferencesauthority を PR body keyword/title/branch 推測に置き換えない正常終了条件
canonical
route_loop_verdict_v2()がapprovedを返し、状態になったら終了してください。
PR の merge は人間に残してください。
最終報告には以下を含めてください。
IMPL_REVIEW_LOOP_RESULT_V1/ canonical termination resultマージ直前まで自律的に進めてください。
参照した主な現行資産は Issue #2750、[refinement終了報告](https://github.com/squne121/loop-protocol/issues/2750#issuecomment-5829916522)、[`[implementation_landed_evidence.py](https://github.com/squne121/loop-protocol/blob/main/.claude/skills/impl-review-loop/scripts/implementation_landed_evidence.py)`](https://github.com/squne121/loop-protocol/blob/main/.claude/skills/impl-review-loop/scripts/implementation_landed_evidence.py)、[`[impl-review-loop/SKILL.md](https://github.com/squne121/loop-protocol/blob/main/.claude/skills/impl-review-loop/SKILL.md)`](https://github.com/squne121/loop-protocol/blob/main/.claude/skills/impl-review-loop/SKILL.md) です。
squne121 commentedon Sep 25, 2026
root-owned entry router audit
route: invoke_impl_review_loop
reason: fresh_review_go_live_equality
squne121 commentedon Sep 25, 2026
implement-issue: 実装完了 (2026-09-25)
.claude/worktrees/issue-2750-impl-review-loop-cross-reference-false-cworktree-issue-2750-impl-review-loop-cross-reference-false-cuv run --locked pytest .claude/skills/impl-review-loop/tests/test_implementation_landed_evidence.py -q→ 33 passeduv run --locked pytest .claude/skills/impl-review-loop/tests/test_implementation_landed_intake_integration.py -q→ 9 passedrg -n "scope_coverage_issue_identity_mismatch" .claude/skills/impl-review-loop/SKILL.md .claude/skills/impl-review-loop/steps/preparation.md→ 両ファイルで一致derive_landing_disposition()に、closing relation が無い場合に限り non-closingverified_cross_referencecandidate(candidate-localscope_coverage.status == invalidかつerrors == ["scope_coverage_issue_identity_mismatch"]の1件だけ)を conflict counting から bounded に除外するロジックを追加した。closing relation 存在時・複合 marker error・markerless candidate(実装: CI: Playwright E2E の responsive matrix を専用 lane へ分離し critical path を短縮する #2119/feat: Playwright E2E responsive matrix を専用 lane へ分離する #2137)は従来どおり fail-closed のまま。SKILL.md / preparation.md の既存契約に bounded carve-out を明文化(AC8)。実装: persist_retrospective_run.py の secret redaction パターンを新形式 ghs_ App installation token に対応させる #2727 incident shape の regression fixture(unit +collect_candidate_inputs()を通す production-shaped integration path)を追加。fix: #2727 sibling cross-reference regression テストを production composi…
fix: #2750/#2893 除外条件の分離・semantic refresh の射程限定・runtime smoke の委譲先と主張…
docs: impl-review-loop の landing disposition prose を Bounded candidat…