Repository navigation
Description
Machine-Readable Contract
contract_schema_version: v1
issue_kind: implementation
parent_issue: none
goal_ref: "#2432 を変更せず、runtime_only の正規 producer skip を current-head 独立 binding によって安全に nonblocking adjudication できるようにする"
change_kind: codeParent Issue
none
Parent Goal Ref
- Goal: 実装: Reliability V1: workflow-run 統計単位と power contract を整合させる #2432 の実装フローが、契約・Allowed Paths を変更せず current-head VC adjudication を通過できる。
- Desired Destination: 実装: Reliability V1: workflow-run 統計単位と power contract を整合させる #2432 の downstream current-head gate を解除する独立した tooling control flow。
Current Validated Scope
runtime_onlyの正規 producer skip を、current-head 独立 binding(Issue / PR / current head / reviewed head / diff head / Issue body digest / declaration-order command hashes / per-command status・exit code / source integrity)に接続する adjudicator とその focused regression tests。- Step 2 と test-runner の記述を、runtime_only が baseline skip 単独では Step 4 へ進めず、current-head 独立 binding が必要である最小契約へ整合する範囲。この範囲には
.claude/agents/test-runner.mdへの narrow なuv run [--locked] pytestexecution allowance の追加(AC8)を明示的に含む。 - 実装: pr_review_only VC の current-head adjudication を修正する #1540 / PR fix: pr_review_only VC の current-head 判定を修正する #1544 の
pr_review_only限定先例を保持し、runtime_only をその例外へ拡張しない。
Remaining Parent Gaps
- 実装: Reliability V1: workflow-run 統計単位と power contract を整合させる #2432 の Reliability V1 schema、validator、fixtures、documentation、および同 Issue の contract / Allowed Paths は本 Issue では変更しない。
- current-head evidence producer 自体、baseline preflight、schema family、registry、workflow、publisher、persistent authorization は別スコープである。
Outcome
.claude/skills/impl-review-loop/scripts/adjudicate_vc_result.py と指定の tests/documentation が、正規 runtime_only producer skip を current-head 独立 binding の下でのみ nonblocking に adjudicate し、baseline skip 単独では Step 4 review に進ませない最小 tooling 成果物として完成し、指定 Verification Commands が PASS する。本 Issue の完了は、この tooling blocker の解消のみを意味し、他 PR の merge readiness を意味しない(下記 Background 参照)。
Runtime Verification Applicability
- decision: immediate
- reason: 変更対象の
.claude/skills/impl-review-loop/**と.claude/agents/test-runner.mdはdocs/dev/extension-surface-runtime-policy.yamlが定める runtime-loaded extension surface(skill-invocation-runtime-smoke / subagent-delegation-runtime-smoke)に該当するため、静的検証のみでは完結しない。 - verification_profile: 同 policy が指定する
skill-invocation-runtime-smokeおよびsubagent-delegation-runtime-smokeを用いる。
applicable_acs: [AC1, AC2, AC8]
execution_environment: 現在の Claude Code session / repository configuration(新しい credential・新しい外部サービス・権限昇格は使用しない)
skip_conditions: current-head 独立 binding の再現に必要な adjudicator/test-runner 実装が未着手の間はスキップし、実装 PR 内で smoke を実行する
fallback_policy: runtime smoke が実行不能な環境では、該当 AC の静的 assertion(procedure_steps_executed/output_contract_schema_fields_present/delegation_target_actually_invoked/permission_mode_effective_behavior_matches_parent_classifier)のみで結論とせず、human_judgment として明示する
artifact_requirements: 追加の artifact / receipt / publisher を新設せず、既存の test-runner report と orchestrator binding のみを証跡とする - scope: bounded runtime smoke は以下 2 経路のみに限定する。
- 正常経路: 正規 canonical producer envelope(
runner=skipped/classification=skipped/category=preflight_scope_runtime_only/decision=go/scope_class=runtime_only/verification_owner=impl-review-loop/ 非空deferred_reason/runtime_verification_required=true)+ current-head 独立 binding が一致する場合、nonblocking で Step 4 へ進むこと。 - negative 経路: baseline producer の
skippedrecord のみ(上記 envelope 不備、または current-head 独立 binding 不一致)の場合、nonblocking PASS にならず blocking のままであること。
- 正常経路: 正規 canonical producer envelope(
In Scope
- exact canonical
runtime_onlyproducer envelope(runner/classification/category/decision/scope_class/verification_owner/deferred_reason/runtime_verification_requiredの各正規値)のみを runtime_only delegation candidate の入口として認識する最小の adjudicator 分岐と focused test coverage を追加する。raw marker text(例: Issue 本文中の# preflight-scope: runtime_onlyコメント)の直接 parse は producer 側の責務とし、adjudicator(consumer)側では行わない。 - baseline skip を非blocking PASS とみなさず、current-head 独立 binding(Issue / PR / current head / reviewed head / diff head / Issue body digest / declaration-order command hashes / per-command status・exit code / source integrity)の完全性・整合性を満たす場合だけ runtime_only を adjudicate する。
- artifact / receipt / materialized TEST_VERDICT(存在する場合)は診断用の optional provenance として検証してよいが、その不在自体は nonblocking adjudication の必須入力・blocking condition にしない。current routing authority は test-runner の current-head-bound read-only report を orchestrator が独立に current-head へ binding して生成する
VC_ADJUDICATION_RESULT_V1とする。 - malformed marker/category/decision/scope/owner/hash/current-head binding、stale binding、fallback、human review、stop condition、source-integrity 不全を fail-closed にする。
.claude/agents/test-runner.mdの既存 command policy に、既存 Allowed Paths 内の repo-relative なテスト対象に対する narrow なuv run --locked pytest <repo-relative target> [pytest args]およびuv run pytest <repo-relative target> [pytest args]の正規 execution allowance を追加する(arbitraryuv runや unrestricted shell execution への一般化は行わない)。- Step 2 と test-runner の記述を実装済みの runtime_only adjudication 契約へ必要最小限で更新する。
.claude/skills/impl-review-loop/steps/step-4-pr-review.mdに既存実装済みの current-head / declaration-order command-hash binding(evaluate_step4_vc_gate())が runtime_only 統合によって regression しないことを、non-regression AC として明示する(新規 runtime_only 専用 Step 4 gate は実装しない)。
Out of Scope
baseline_vc_preflight.py、実装: Reliability V1: workflow-run 統計単位と power contract を整合させる #2432 Issue 本文・契約・Allowed Paths、schema family、registry、workflow、publisher、または persistent authorization の変更。- current-head evidence producer の新設、TEST_VERDICT schema の追加・変更、artifact / receipt format の新設、または broad control-plane refactor。
pr_review_onlyの既存 pass/fail 意味論・実装: pr_review_only VC の current-head adjudication を修正する #1540 / PR fix: pr_review_only VC の current-head 判定を修正する #1544 の限定先例を runtime_only へ一般化する変更。evaluate_step4_vc_gate()への runtime_only 専用 semantics の追加(既存 non-regression 維持のみ)。- artifact / receipt / TEST_VERDICT を routing eligibility の mandatory input へ戻すこと。
- 新しい approval gate、新 schema family、registry、publisher、materializer、persistent ledger、persistent authorization の導入。
Acceptance Criteria
- AC1: exact canonical
runtime_onlyproducer envelope(runner=skipped/classification=skipped/category=preflight_scope_runtime_only/decision=go/scope_class=runtime_only/verification_owner=impl-review-loop/非空deferred_reason/runtime_verification_required=true)を持つ正規 producer skip だけが runtime_only として認識され、raw marker text の直接 parse は行わない。envelope の欠落・不正値は fail-closed になる。 - AC2: baseline skip 単独は nonblocking PASS にならず、runtime_only の nonblocking adjudication には current-head 独立 binding(Issue / PR / current head / reviewed head / diff head / Issue body digest / declaration-order command hashes / per-command status・exit code / source integrity)が必須である。artifact / receipt / TEST_VERDICT の不在だけでは blocking にしない。
- AC3: runtime_only current-head 独立 binding は Issue、PR、current head、reviewed head、diff head、contract body digest、ordered command hashes の既存 binding 全件に一致した場合だけ受理される。
- AC4: malformed hash/current-head binding、stale binding、fallback、human-review-required、stop-condition-triggered、source-integrity failure はすべて fail-closed となる。
- AC5:
pr_review_onlyと通常の expected baseline pass/fail の既存 non-regression semantics を維持し、runtime_only の追加で既存例外の認可範囲を広げない。 - AC6:
.claude/skills/impl-review-loop/steps/step-4-pr-review.mdに既存実装済みの current-head / declaration-order command-hash binding(evaluate_step4_vc_gate())が、runtime_only 統合によって regression しないことを確認する(non-regression のみ、新規実装は行わない)。 - AC7: 実装: Reliability V1: workflow-run 統計単位と power contract を整合させる #2432 が持つ Acceptance Criteria 1個〜10個分の shape を使う e2e fixture が、正規 runtime_only current-head 独立 binding でのみ Step 4 を通し、baseline-only と不正 envelope を遮断する。
- AC8:
.claude/agents/test-runner.mdの既存 Allowed Path 内で、repo-relative なテスト対象に対する narrow なuv run --locked pytest ...およびuv run pytest ...の正規 execution allowance を command policy に追加する。arbitraryuv runや unrestricted shell execution へは一般化しない。 - AC9: 変更は既存 Allowed Paths に留まり、新 schema、registry、persistent authorization を導入しない。
Verification Commands
# AC1
$ uv run --locked pytest .claude/skills/impl-review-loop/tests/test_adjudicate_vc_result_runtime_only.py::test_runtime_only_producer_envelope_accepted -q
# AC2
$ uv run --locked pytest .claude/skills/impl-review-loop/tests/test_adjudicate_vc_result_non_regression_gate_runtime_only.py::test_non_regression_scope_runtime_only_requires_current_head_binding -q
# AC3
$ uv run --locked pytest .claude/skills/impl-review-loop/tests/test_adjudicate_vc_result.py -q -k binding
# AC4
$ uv run --locked pytest .claude/skills/impl-review-loop/tests/test_adjudicate_vc_result_non_regression_gate.py -q -k 'stale or fallback or human or stop or source_integrity'
# AC5
$ uv run --locked pytest .claude/skills/impl-review-loop/tests/test_adjudicate_vc_result_non_regression_gate.py -q -k 'pr_review_only or expected'
# AC6
$ uv run --locked pytest .claude/skills/impl-review-loop/tests/test_step4_requires_current_vc.py -q
# AC7
$ uv run --locked pytest .claude/skills/impl-review-loop/tests/test_adjudicate_vc_result_e2e_runtime_only.py -q
# AC8
$ grep -n "uv run --locked pytest" .claude/agents/test-runner.md
# AC8
$ grep -n "uv run pytest" .claude/agents/test-runner.md
# AC9
$ uv run --locked pytest .claude/skills/impl-review-loop/tests/test_adjudicate_vc_result.py .claude/skills/impl-review-loop/tests/test_adjudicate_vc_result_non_regression_gate.py .claude/skills/impl-review-loop/tests/test_adjudicate_vc_result_runtime_only.py .claude/skills/impl-review-loop/tests/test_adjudicate_vc_result_non_regression_gate_runtime_only.py .claude/skills/impl-review-loop/tests/test_adjudicate_vc_result_e2e_runtime_only.py .claude/skills/impl-review-loop/tests/test_step4_requires_current_vc.py -q
# AC9
$ pnpm typecheck
# AC9
$ pnpm lint
# AC9
$ pnpm test
# AC9
$ pnpm build
# AC9
$ uv run pytest .claude/skills/gemini-cli-headless-delegation/tests/test_model_routing.pyAllowed Paths
.claude/skills/impl-review-loop/scripts/adjudicate_vc_result.py.claude/skills/impl-review-loop/tests/test_adjudicate_vc_result.py.claude/skills/impl-review-loop/tests/test_adjudicate_vc_result_non_regression_gate.py.claude/skills/impl-review-loop/tests/test_adjudicate_vc_result_runtime_only.py.claude/skills/impl-review-loop/tests/test_adjudicate_vc_result_non_regression_gate_runtime_only.py.claude/skills/impl-review-loop/tests/test_adjudicate_vc_result_e2e_runtime_only.py.claude/skills/impl-review-loop/steps/step-2-verification.md.claude/agents/test-runner.md
Stop Conditions
- Allowed Paths 外の変更が必要と判明した場合。
- In Scope の固定契約(キー集合・スキーマ・型定義)の変更が必要になった場合。
- 新規 Issue の起票が必要と判断した場合(スコープ分割が発生する場合)。
- 後続 Phase / 別スコープへの波及が判明した場合。
- nested SubAgent delegation が必要になった場合。
- 本 Issue が明示的に許可する bounded runtime smoke(現在の Claude Code session / repository configuration を用いたもの)以外の外部サービス利用・権限昇格・既存テスト大規模改変が必要になった場合。
baseline_vc_preflight.py、TEST_VERDICT schema family、registry、workflow、publisher、または persistent authorization の変更が必要になった場合。- 実装: Reliability V1: workflow-run 統計単位と power contract を整合させる #2432 の Issue contract または Allowed Paths を変更する必要が判明した場合。
Required Skills
なし
Required Design References
docs/dev/workflow.mddocs/dev/agent-skill-boundaries.mddocs/dev/runtime-verification-policy.mddocs/dev/extension-surface-runtime-policy.yaml.claude/skills/impl-review-loop/steps/step-4-pr-review.md.claude/skills/impl-review-loop/steps/step-2-verification.md.claude/agents/test-runner.md
Scope Delta(任意)
N/A
Background
#2432 をブロック解除する別 control flow であり、#2432 の contract / Allowed Paths を変更しない。#1540 / PR #1544 は pr_review_only 限定先例で、runtime_only はその scope 外だったため、既存の pr_review_only authorization を広げず専用の fail-closed 分岐として扱う。
Overlap preflight は C1 (#2141, #2041, #1944, #1909, #1908, #1116, #966, #962, #961) を返した。#2141 は state: CLOSED / stateReason: NOT_PLANNED で確定しており、本 Issue の開始条件ではない。#2041 は phase-status publisher、その他は tests directory または agent document の broad-path match であり、本 Issue の edit intent は runtime_only adjudication のみである。
#2467 の完了は、#2432 / PR #2465 が現在依存する canonical VC tooling blocker を解消するものであり、PR #2465 自体の merge readiness を意味しない。PR #2465 は独立した implementation/review 状態(現在 Draft/Open)を持ち、その状態は本 Issue の完了によって自動的に変化しない。
Delivery Rule
1 Issue = 1 PR。.claude/worktrees/issue-2467-runtime-only-vc-adjudication/を使用し、Draft PR を既定とする。
Activity
squne121 commentedon Sep 2, 2026
#2141 close に伴う依存関係の解消(note only)
Issue #2141(「実装: pr_head_replay_publish_exec.execute() の production caller を配線する」)は fresh fact-check の結果、production replay state(source_base/source_head/expected_remote_pr_head を同一 decision cycle で生成する producer)が存在しないことが確認され、
not plannedとして CLOSED(state_reason: NOT_PLANNED)になりました。詳細: #2141本 Issue 本文の overlap preflight 節および Delivery Rule 節にある「
#2141merge 後に開始する」という prose dependency は、native GitHub dependency(blockedBy/trackedIssues)ではなく body 内記述のみです。#2141 がnot plannedで完了したため、この依存条件は解消されており、本 Issue は #2141 の merge を待たず着手可能です。本文の該当2箇所(overlap preflight 節・Delivery Rule 節)を narrow に修正しようとしましたが、本 Issue 自体に pre-existing の
EXTSURF001(Runtime Verification Applicability のdecision: not_applicableと、Allowed Paths が extension-surface risk-trigger policy のimmediateルールと重複する点との不整合)があり、canonicaledit_issue_txn.pyの static readiness gate が本文全体への書き込みを(依頼した2箇所とは無関係の理由で)fail-closed にブロックしています。この EXTSURF001 の是正自体は #2467 のスコープ判断(Runtime Verification Applicability decision の選定)が必要なため、本 note では本文を rewrite せずコメントでの記録に留めます。着手時にこの EXTSURF001 是正と合わせて本文の #2141 依存記述を更新することを推奨します。squne121 commentedon Sep 2, 2026
総合判定
REQUEST_CHANGES。Issue #2467 が解こうとしている
runtime_onlyproducer / consumer 不整合そのものは実在し、独立 tooling fix として切り出した判断も妥当です。 現行 producer はruntime_onlyを正規のskipped / go / verification_owner=impl-review-loopとして生成する一方、adjudicator 側の明示的な authorized-skip 処理はpr_review_only用に偏っています。ただし、現在の #2467 本文をそのまま実装すると、後から導入された evidence-authority 設計を一部巻き戻し、不要な artifact/receipt ハーネスを Step 2 の routing gate に再導入する可能性があります。 個人趣味開発・ワークフロー優先という前提では、実装前に Issue contract を狭く修正した方がよいです。
優先度 | Finding | 判定 -- | -- | -- P0 | AC2/AC3 の artifact / receipt 必須化が現行 Step 2 authority と衝突 | must-fix P0 | Runtime Verification Applicability: not_applicable が現行 extension-surface policy と矛盾し、実際に EXTSURF001 で停止 | must-fix P0 | test-runner の command allowlist が uv run pytest を許可しておらず、#2432/#2467 の VC を正規経路で実行できない | must-fix P1 | AC1 が「marker を adjudicator が認識」と書かれ、producer/consumer layer を混同 | simplify P1 | AC6 の declaration-order command binding は既に実装済み。新機能扱いすると不要な改変を誘発 | non-regression 化 P1 | #2141 merge 後 dependency が canonical body に残ったまま | remove P2 | #2467 完了を #2465 merge-ready と同一視しない方がよい | clarifyなお、#2467 が直れば #2432 / PR #2465 の canonical VC tooling blocker は解消できますが、#2465 自身にはその後の敵対的レビューで統計実装側の P0 finding も出ています。したがって「#2467 完了 = #2465 が自動的に merge-ready」とは契約化しない方がよいです。PR #2465 は現在も Draft/Open です。
結論として、#2467 は捨てる Issue ではありません。むしろ必要です。ただし #1540/PR #1544 の古い artifact-heavy precedent をそのまま runtime_only に横展開せず、#1856/#88 後の current authority model に合わせて reframe してから実装するのが最も小さく、壊れにくく、趣味開発向きです。
## 総合判定REQUEST_CHANGES。Issue #2467 が解こうとしている
runtime_onlyproducer / consumer 不整合そのものは実在し、独立 tooling fix として切り出した判断も妥当です。 現行 producer はruntime_onlyを正規のskipped / go / verification_owner=impl-review-loopとして生成する一方、adjudicator 側の明示的な authorized-skip 処理はpr_review_only用に偏っています。ただし、現在の #2467 本文をそのまま実装すると、後から導入された evidence-authority 設計を一部巻き戻し、不要な artifact/receipt ハーネスを Step 2 の routing gate に再導入する可能性があります。 個人趣味開発・ワークフロー優先という前提では、実装前に Issue contract を狭く修正した方がよいです。
Runtime Verification Applicability: not_applicableが現行 extension-surface policy と矛盾し、実際にEXTSURF001で停止test-runnerの command allowlist がuv run pytestを許可しておらず、#2432/#2467 の VC を正規経路で実行できない#2141 merge 後dependency が canonical body に残ったままP0 — artifact / receipt を runtime_only PASS の必須条件に戻してはいけない
ここが最大の問題です。
#1540 / PR #1544 は確かに有用な先例でした。当時は
pr_review_onlyskip を current-headTEST_VERDICT_MACHINE/v2、workflow/check run、artifact digest 等へ強く bind しました。PR #1544 では GitHub Actions artifact API digest と payload hash まで区別していました。しかし、その後の Issue #1856 authority cutover により、現在の
step-2-verification.mdは明示的に別設計へ移っています。現在の routing 正本は test-runner の read-only report を orchestrator が独立に、へ照合して作る
VC_ADJUDICATION_RESULT_V1です。materializer、publisher、producer-side signature、PR 上の TEST_VERDICT artifact/comment は routing input に要求しないと書かれています。TEST_VERDICT が存在してもしなくても同じ判定になるのが現行契約です。pr-review-judgeの evidence policy も、TEST_VERDICT_MACHINE自体は diagnostics-only であり、Step 4 を開くのは current-head のVC_ADJUDICATION_RESULT_V1だと明記しています。したがって #2467 AC3 の
は削るべきです。
残すべきなのは
TEST_VERDICT_MACHINE/v2の read-only report → canonical adapter → current VC result という現在の経路です。artifact/receipt が存在する場合に追加 provenance として検証するのは構いませんが、存在しないことを runtime_only adjudication の blocking 条件にはしないのがよいです。GitHub 自体は Actions artifact に
digest: sha256:...と workflow run のhead_shaを提供しているので、artifact digest を検証する技術的根拠自体はあります。([GitHub Docs]1) ただし「検証可能だから routing に必須化する」は別問題です。この用途では余分な依存です。P0 —
Runtime Verification Applicabilityはimmediateが正しい#2467 は現在、
decision: not_applicableですが、Allowed Paths には
.claude/skills/impl-review-loop/**と.claude/agents/test-runner.mdが含まれています。最新コメントで既に、この矛盾によりEXTSURF001が canonical body edit をブロックしていることが記録されています。repo の extension-surface SSOT では skill invocation の変更は
default_decision: immediate、verification profile はskill-invocation-runtime-smokeです。proven_not_runtime_loaded例外も human evidence が必要で、未証明なら適用されません。外部実装とも一致します。Claude Code は project skill を
.claude/skills/から発見し、current session 中の skill 編集も監視して反映します。([Claude]2) Project subagent も.claude/agents/から実際に discovery されます。([Claude]3)したがってここは素直に、
程度へ変更し、1本だけ bounded runtime smoke を実施するのが妥当です。
ただし大掛かりな artifact publisher、永続 ledger、新 schema は不要です。実際の worktree で
impl-review-loop → test-runnerがruntime_onlyVC を実行し、canonical baseline skip + matching current-head report → nonblockingかつ
baseline skip only → blockingになることを1回確認すれば十分です。
また現在の Stop Conditions にある「外部サービス利用が必要なら停止」は、その runtime smoke と衝突する可能性があります。ここは 既存 Claude Code セッション/設定を使う policy-mandated smoke は許可、新しい credential・service・権限昇格は stop と狭く書くべきです。
P0 —
test-runnerがuv run pytestを自分の契約上実行できないこれは実装に入るとかなり高確率で詰まります。
現在の
.claude/agents/test-runner.mdは「以下のコマンドだけを実行する」としてpnpm ...、rg、grep、test、一部gh等を列挙していますが、uv run pytestがありません。一方、#2432 の
runtime_onlyVC はuv run --locked pytest ...が中心です。 #2467 自身もuv run --locked pytest ...とuv run pytest ...を Verification Commands に持っています。つまり runtime_only consumer を直しても、producer/current-head executor の policy が pytest 実行を禁止したままです。
ここは Allowed Paths に
test-runner.mdが既にあるので、#2467 で直すのが自然です。ただし arbitraryuv runを開ける必要はありません。推奨は narrow に、
uv run --locked pytest <repo-relative target> [pytest args]uv run pytest <repo-relative target> [pytest args]だけを追加することです。これなら workflow freedom を上げつつ、command surface を無意味に一般化しません。
P1 — 「exact canonical marker を認識」は layer が違う
adjudicator は raw Issue body の
# preflight-scope: runtime_only文字列を読むべきではありません。
marker の parse は既に
baseline_vc_preflight.pyの producer 責務で、consumer には normalized envelope が届きます。現行adjudicate_vc_result.pyもpr_review_onlyを raw marker ではなく producer fields の完全一致で判定しています。AC1 は「exact marker」ではなく、例えば次の canonical producer envelope に書き換える方が堅いです。
runner=skipped、classification=skipped、category=preflight_scope_runtime_only、decision=go、scope_class=runtime_only、verification_owner=impl-review-loop、non-emptydeferred_reason、runtime_verification_required=true。これを満たすものだけ runtime_only delegation candidate とする。それ以外は既存どおり non-PASS にする、で十分です。
P1 — Step 4 の command-order binding は作り直さない
AC6 は必要な性質ですが、既に存在します。
test_step4_requires_current_vc.pyは current HEAD / contract digest / expected command hashes による reviewer gate を既に検証しています。 さらに既存 regression test には command hashes の順序だけを逆転させ、stale binding として拒否するケースも入っています。したがって AC6 は、
へ変更する方がよいです。
evaluate_step4_vc_gate()自体に新しい runtime_only 特殊ロジックを足す必要はありません。runtime_only の差分は Step 2 adjudication までで完結させ、Step 4 には既存VC_ADJUDICATION_RESULT_V1だけを見せるのが最小設計です。P1 — #2141 dependency は canonical body から削除する
Issue body は今も「#2141 merge 後に開始」としていますが、#2141 は 2026-09-02 に
not_plannedで CLOSED です。最新コメントでもこの prose dependency は解消済みとされています。
コメントで上書きするのではなく、EXTSURF001 修正時に body の2箇所から完全に削るのがよいです。別 dependency へ置換する必要もありません。
推奨する #2467 の最小設計
実装は次の程度まで削れます。
skippedrecord 自体は絶対に PASS にしない。exit_code=0/status=pass、no fallback / no human review / no stop condition、source integrity を満たした runtime_only VC だけを nonblocking にする。pr_review_only、expected_pass、expected_failの既存意味論は一切変えない。uv run [--locked] pytestexecution allowance を追加する。Runtime Verification Applicability: immediateとし、worktree で positive 1本 + baseline-only negative 1本程度の runtime smoke を行う。この形なら、新 schema、registry、publisher、persistent authorization、追加 approval gate は不要です。
Issue contract で具体的に直す箇所
not_applicableimmediatecomplete current-head TEST_VERDICT/v2 evidenceartifact / receipt必須exact canonical marker#2141 merge後なお、#2467 が直れば #2432 / PR #2465 の canonical VC tooling blocker は解消できますが、#2465 自身にはその後の敵対的レビューで統計実装側の P0 finding も出ています。したがって「#2467 完了 = #2465 が自動的に merge-ready」とは契約化しない方がよいです。PR #2465 は現在も Draft/Open です。
結論として、#2467 は捨てる Issue ではありません。むしろ必要です。ただし #1540/PR #1544 の古い artifact-heavy precedent をそのまま runtime_only に横展開せず、#1856/#88 後の current authority model に合わせて reframe してから実装するのが最も小さく、壊れにくく、趣味開発向きです。
squne121 commentedon Sep 2, 2026
推奨は #2467 をそのまま実装へ送らず、まず OWNER コメントを trusted human context として contract reframe を完了させる ことです。現本文は artifact/receipt を blocking evidence に要求し、RVA を
not_applicableとし、既にnot_plannedで閉じた #2141 の merge 待ちを残しています。特に #1856 で通常レビューの authority は TEST_VERDICT producer/publisher 依存から current-head CI / exact-head VC へ cutover 済みなので、#2467 で artifact-heavy な旧モデルを復活させないのが重要です。 コメント側も
VC_ADJUDICATION_RESULT_V1を Step 4 の authority とし、runtime_only 特殊処理は Step 2 までに閉じることを推奨しています。その前提で、Claude Code には以下を渡すのがよいです。
#2467 (comment)
を trusted human context / OWNER anchor として、Issue #2467 に対する
issue-refinement-loopを実行してください。目的は 実装開始ではなく、Issue #2467 の contract を現行 repository authority model に整合させ、implementation-ready な状態まで refinement を完了すること です。
実行方針
issue-refinement-loopSkill をロードし、その canonical procedure / planner / command registry を正本として従うこと。anchor_comment_urlには上記 comment URL を使用し、direct human context lane として処理すること。loop_iteration_approval_gate.default_required: falseの契約どおり、needs-fixなら max_iterations の範囲で自動継続すること。サブエージェント
必ず main orchestrator から必要な SubAgent を利用すること。
最低でも、planner が許可する canonical investigation lane で
codebase-investigatorを使用し、以下を repository の現行 HEAD で検証すること。pr_review_onlyprecedent と、その適用範囲.claude/skills/impl-review-loop/scripts/adjudicate_vc_result.py.claude/skills/impl-review-loop/steps/step-2-verification.md.claude/skills/impl-review-loop/steps/step-4-pr-review.md.claude/agents/test-runner.mdVC_ADJUDICATION_RESULT_V1の current authority / binding semanticsplanner が web research を要求する、または anchor comment 中の外部仕様が dispositive なら
web-researcherも起動し、必要最小限の外部仕様を検証すること。SubAgent completion rule
canonical Step 2 が root-owned review pipeline である場合、旧
issue-reviewerSubAgent を独自に追加せず、現行issue-refinement-loopの routing を優先すること。Anchor comment を反映する推奨 reframe
以下は OWNER anchor の desired direction である。ただし repo の現行 SSOT と fresh investigation に照らして検証し、矛盾があれば canonical planner/reviewer の evidence に従って最小修正すること。
P0-1: artifact / receipt を blocking authority に戻さない
現在の #2467 AC2/AC3 にある、
等を runtime_only nonblocking adjudication の必須 routing input にしないこと。
現行 authority model に合わせ、
test-runner read-only report→ orchestrator による independent current-head binding
→
VC_ADJUDICATION_RESULT_V1を authoritative path とすること。
最低限、以下へ bind すること。
TEST_VERDICT / artifact / receipt 等が存在する場合に diagnostics / optional provenance として検証することは妨げないが、不在そのものを blocking condition にしない。
新 publisher、materializer、receipt schema、persistent ledger、persistent authorization は追加しない。
P0-2: Runtime Verification Applicability を修正
現行
decision: not_applicableをそのまま残さない。.claude/skills/impl-review-loop/**および.claude/agents/test-runner.mdが runtime-loaded extension surface であるという現行 SSOT を確認し、原則としてdecision: immediateへ reframe すること。
applicable_acsは AC renumbering 後の実際の runtime-sensitive AC に最小限 bind すること。anchor にある[AC2, AC7]は参考値であり、番号を盲目的に固定しない。必要な runtime verification は bounded smoke 1本程度 に抑えること。
最低限、実 worktree / current session で以下の2方向を確認できる contract にする。
大掛かりな publisher、artifact harness、追加 approval gate は導入しない。
Stop Conditions の「外部サービス利用」は、この policy-mandated smoke を阻害しないよう narrow にすること。
許可:
停止:
P0-3: test-runner の pytest execution gap を解消
.claude/agents/test-runner.mdの現行 command policy を確認すること。#2432 / #2467 の runtime_only Verification Commands を canonical test-runner が実行できないのであれば、#2467 の既存 Allowed Path を使って pytest に限定した narrow allowlist を contract に含めること。
許可対象の目安:
uv run --locked pytest <repo-relative-target> [pytest args]uv run pytest <repo-relative-target> [pytest args]arbitrary
uv runや unrestricted shell execution に一般化しないこと。P1-1: marker parse と adjudicator responsibility を分離
adjudicator に raw Issue marker、
# preflight-scope: runtime_onlyを parse させる contract にしない。
marker parse は producer responsibility とし、consumer/adjudicator は normalized canonical runtime_only producer envelope のみを限定認識する形にすること。
fresh codebase investigation で exact field names を確認すること。anchor comment で想定されている shape は概ね以下。
runner=skippedclassification=skippedcategory=preflight_scope_runtime_onlydecision=goscope_class=runtime_onlyverification_owner=impl-review-loopdeferred_reasonruntime_verification_required=trueこれを満たす canonical envelope のみ runtime_only delegation candidate とし、不正・欠落・別 category は fail-closed の既存 semantics に流すこと。
baseline skipped record 自体を PASS へ変換してはならない。
P1-2: Step 4 command binding を新規機能として作り直さない
current HEAD / contract digest / expected command hashes / declaration order 等の Step 4 binding が既に実装・テスト済みか確認すること。
既存で保証されている場合、AC を
「runtime_only integration が existing declaration-order/current-head binding を regression させない」
という non-regression AC に変更すること。
evaluate_step4_vc_gate()等へ runtime_only 専用 semantics を追加する設計へ拡大しない。runtime_only 固有差分は Step 2 adjudication までで閉じ、Step 4 には通常どおり authoritative
VC_ADJUDICATION_RESULT_V1を渡すだけにする。P1-3: #2141 dependency を削除
Issue #2141 の live state を確認すること。
not_planned/ CLOSED が確認できる場合、#2467 body に残る#2141 merge 後に開始するという prose dependency を overlap preflight / Delivery Rule 等から削除すること。
別 dependency へ置き換えないこと。
P2: #2465 との関係を明確化
#2467 の Outcome を、
「#2432 / PR #2465 の canonical VC tooling blocker を解消する」
以上に広げないこと。
#2467 completed => PR #2465 merge-readyとは contract 化しない。
PR #2465 側には独立した implementation/review findings が存在し得るため、#2467 の完了はそれらを自動解消しないことを Background / Remaining Gap 等で必要最小限明示すること。
Contract の設計制約
維持すること:
pr_review_onlyの既存 authorization semantics を runtime_only に一般化しない導入しないこと:
Allowed Paths は fresh investigation に基づき必要最小限に保つこと。現在の Allowed Paths で目的を満たせるなら広げない。
issue-refinement-loop の進め方
REFINEMENT_LOOP_PLAN_V1を consume。needs-fix / request_changesなら人間確認なしで次 iteration。contract_update_required相当へ route された場合は、canonicalcontract_update.run.with_human_contextroute を実行。NEXT_ACTION: issue_editor_requiredの場合は、同一 contract-update を no-progress retry せず、canonicalissue-editor/ controlled full rewrite route に handoff。人間確認不要の範囲
以下について私への確認を求めず進めてよい。
「変更してよいですか」「次の iteration へ進んでよいですか」「Issue 本文を更新してよいですか」といった確認は不要。
ただし、canonical policy が
human_judgment_requiredと判定する 新しい未解決の意味論判断、新 credential、権限昇格、別 Issue の新規起票が必須など、repository contract 上どうしても人間判断を要求する場合のみ停止すること。その際も、単に「承認待ち」とせず、
まで提示すること。
完了条件
以下すべてを満たすまで終了しない。
最後に簡潔に、
を報告してください。
重要: refinement 完了後も、この依頼では #2467 の実装そのものへ進まないでください。
この形なら、単に「コメントを反映して直す」ではなく、
contract_update.run.with_human_context → 必要なら issue-editor full rewrite → fresh preflight/review/readinessまで Claude Code に継続させられます。issue-refinement-loop自体も trusted human context からの contract update と、更新後の fresh gates を要求する設計です。また PR #2465 は現在 Open / Draft なので、「#2467 完了=#2465 merge-ready」にしない制約も残すべきです。
squne121 commentedon Sep 2, 2026
推奨は (a) planner 修正を先に行うでも、(b) 人間が手でコメントを書き直すでもなく、「現在のあなたの判断を、Claude Code が最小 freeform OWNER directive として #2467 に転記し、その新 URL を
with_human_contextへ再投入する」 です。理由は明確です。現在の #2467 本文はまだ未更新で、
RVA: not_applicable、artifact/receipt binding、#2141 merge 後が残っています。 一方 #2141 は既にclosed / not_planned、PR #2465 は現在も Open/Draft です。前回の
PLANNER_FAIL_CLOSEDは、実装を見る限り false positive と考えてよいです。scanner は日本語の権限昇格と外部サービスを否定文脈まで理解せず boundary として拾います。 しかも現行 contract は freeform human-context lane を正式に認め、with_human_contextか否かは operator が invocation 時に選択します。構造化 YAML が無くても freeform lane は継続できます。 箇条書き directive だけでも operator-selected human context なら explicit directive として認識する仕様です。今回は
ANCHOR_SCOPE_REFRAME_V1YAML を使わない 方がよいです。その schema はallowed_path_deltasを必須かつ1件以上要求するため、Allowed Paths を増やさない今回の reframe に使うと、存在しない scope expansion を捏造することになります。以下をそのまま Claude Code に渡すのが推奨です。
Issue #2467 の
issue-refinement-loopを、前回のPLANNER_FAIL_CLOSEDから canonical に再開してください。対象:
#2467
前回 anchor:
#2467 (comment)
今回の目的は #2467 の implementation を開始することではなく、Issue contract の refinement を implementation-ready まで完了させること です。
今回のユーザー指示自体を、operator が明示した trusted human context として扱ってください。
重要な disposition
前回の停止理由である
changes_permission_boundary/changes_external_service_boundaryは、元 OWNER anchor 内の禁止・停止条件を説明する文言をscope_signal_delta.pyの keyword scanner が positive signal として拾った false positive と見なします。ただし、canonical planner の判定を orchestrator が上書きしたり bypass してはいけません。
代わりに、現行 repository の Accepted Trust Model / operator-selected human-context lane を使用し、今回ユーザーが承認した contract disposition だけを含む、狭い新しい freeform OWNER directive comment を #2467 に作成し、その新 comment URL を
preflight.run.with_human_context/contract_update.run.with_human_contextへ投入してください。このコメント作成は、agent が独自判断を GitHub に書き込むものではありません。
今回のユーザーによる明示的 disposition を GitHub comment へ機械的に転記する transport operation です。
この GitHub comment mutation は実行してよく、コメント作成について私へ追加確認を求める必要はありません。
絶対に行わないこと
scope_signal_delta.pyの実装を今回変更しない。contract_update.run.with_human_contextを迂回して直接 Issue body を勝手に編集しない。with_agent_report/ unlabeled anchor lane に読み替えない。ANCHOR_SCOPE_REFRAME_V1 は今回使わない
current repository schema を確認してください。
今回の disposition は Allowed Paths の追加を要求していません。
ANCHOR_SCOPE_REFRAME_V1schema が non-emptyallowed_path_deltasを要求する現行仕様であるなら、今回そこへ架空の path delta を入れてはいけません。その場合は、正式にサポートされている freeform operator-selected human-context directive lane を使用してください。
YAML fence を無理に作らないでください。
Step 1: canonical procedure を再ロード
最初に
issue-refinement-loopSkill をロードしてください。以後は、その時点の repository HEAD にある、
を正本としてください。
前回セッションの推測だけでコマンドを再構成しないでください。
Step 2: 必須 SubAgent investigation
main orchestrator から
codebase-investigatorを起動してください。SubAgent には mutation を許可せず、current HEAD で最低限以下を確認させてください。
anchor-comment-handling.mdの Operator-Selected Human-Context / Accepted Trust Modelfreeform human-context directive が canonical lane として有効であること
scope_signal_delta.py::detect_boundary_flags()の現在の boundary keyword semantics元 anchor のどの literal が
を発火させたか
今回必要な 実装: impl-review-loop の runtime_only VC adjudication を current-head evidence に安全に接続する #2467 contract rewrite は既存 Allowed Paths の範囲内であり、新しい path layer を必要としないこと
実装: pr_head_replay_publish_exec.execute() の production caller を配線する #2141 の current state/state_reason
実装: 通常レビューの evidence authority を TEST_VERDICT 非依存の CI/merge_state_status 正本へ切替える(Phase 1: authority cutover) #1856 後の Step 2 evidence authority
current extension-surface runtime policy と 実装: impl-review-loop の runtime_only VC adjudication を current-head evidence に安全に接続する #2467 に要求される RVA decision / required fields / verification profile
test-runner の現在の command policy
AC6 / Step 4 current-head declaration-order binding が既存実装であること
PR feat(ci): Reliability V1 fixed power contract #2465 の現在の state/draft 状態
SubAgent completion rule
SubAgent は background 実行して構いません。
ただし 必ず完了を待ってください。
「background で起動したので先へ進む」は禁止です。
codebase-investigatorの completion notification を受け、その result を main orchestrator が join してから次へ進んでください。SubAgent 自身には SubAgent を起動させないでください。
SubAgent が失敗した場合は親が推測で埋めず、canonical retry/routing policy に従ってください。
planner が外部仕様調査を dispositive と判断した場合のみ
web-researcherを追加起動して構いません。その場合も 完了を必ず待って join してください。
Step 3: 新 OWNER directive candidate を生成する
investigation 完了後、元 anchor の技術的 disposition を維持しつつ、boundary scanner に不要な administrative wording を与えない最小 freeform comment を生成してください。
意味論は以下で固定します。
#2467 contract disposition
skippedrecord 単独を PASS にしない。VC_ADJUDICATION_RESULT_V1とする。pr_review_only、expected pass、expected fail の既存意味論を変更しない。uv run --locked pytest ...および
uv run pytest ...の正規 execution allowance を契約へ含める。
immediateとする。decision: immediateに必要な全 fields は current SSOT/readiness checker から導出し、古い例から推測しない。Step 4: comment を投稿する前に boundary precheck
新 OWNER directive candidate を GitHub に投稿する前に、repository の 実際の canonical
detect_boundary_flags()実装を直接使って candidate text を検査してください。scanner logic を自前で再実装しないでください。
少なくとも次を確認してください。
changes_permission_boundary == falsechanges_external_service_boundary == falsedestructive_or_non_idempotent_operation == falserequires_issue_split == falseexpands_allowed_paths == falsefalse でない flag がある場合、contract semantics は変更せず wording だけを狭くして再検査してください。
この wording-only normalization について人間確認は不要です。
boundary flag を false にするために必要な technical requirement を削除してはいけません。
特に元 anchor にあった、停止条件や運用上の禁止事項を説明するだけの administrative paragraph は、新 anchor へコピーしないでください。
Step 5: narrow freeform OWNER directive を #2467 に投稿
precheck が clean になったら、その candidate を #2467 の新しい top-level comment として投稿してください。
repository が提供する controlled GitHub mutation mechanism を優先し、loaded Skill の mutation policy に従ってください。
投稿後は必ず readback し、
を検証してください。
OWNER / MEMBER / COLLABORATOR の trusted principal 条件を満たさない場合は fail-closed してください。
この新 comment URL を以後の active anchor としてください。
元の
issuecomment-5508736863は technical evidence / provenance として保持して構いませんが、次の scope authority evaluation の active anchor には使用しないでください。
Step 6: canonical with_human_context で再開
新 comment URL を
anchor_comment_urlとして、preflight.run.with_human_contextを fresh に実行してください。
重要:
with_agent_reportにしない。with_human_contextlane として実行する。fresh preflight が contract update を要求する場合は、canonical
contract_update.run.with_human_contextを実行してください。
issue_editor_requiredに route された場合は、no-progress retry をせず canonical issue-editor / controlled full rewrite route へ handoff してください。Step 7: #2467 contract rewrite
canonical route が許可した範囲で Issue body を更新してください。
少なくとも次が最終 body に反映されていることを確認してください。
Verification Commands は実装前 contract なので、まだ存在しないテスト名を「既に PASS するもの」として捏造しないでください。
必要なら implementation により追加される test target と、refinement 時点で確認可能な static/non-regression command を契約上区別してください。
Step 8: mutation 後の readback と fresh review
Issue mutation 後は必ず GitHub から title/body を readback してください。
その readback snapshot を使って fresh に、
を実行してください。
旧 review artifact を再利用しないでください。
canonical Step 2 が root-owned review pipeline なら、旧
issue-reviewerSubAgent を独自追加しないでください。Step 9: bounded auto-fix loop
fresh review が
needs-fix/request_changesを返した場合、max_iterationsの範囲で人間確認なしに修正 iteration を継続してください。以下の確認を私へ求めないでください。
repository loop approval と Claude Code client permission mode を混同しないでください。
今回変更してよいもの
refinement 完遂のために必要な以下は許可します。
今回変更してはいけないもの
scope_signal_delta.pyの negation handling fixscope_signal_delta.pyの negation false positive 自体は、#2467 refinement 完了後の follow-up candidate として記録してよいですが、今回それを先に実装しないでください。新 Issue の起票も今回の成功条件ではありません。
genuine stop
新しい narrow anchor を canonical
with_human_contextlane に投入した後も、current repository policy が 別の genuine semantic decision をhuman_judgment_requiredと判定した場合のみ停止してください。同じ旧 anchor の keyword false positive を理由に停止してはいけません。新 anchor の actual boundary evidence を確認してください。
停止時は必ず、
まで提示してください。
完了条件
以下をすべて満たすまで終了しないでください。
with_human_contextpreflight 済み最終報告
最後に簡潔に以下を報告してください。
refinement が成功しても、この依頼では #2467 の production implementation へ進まないでください。
この経路なら #2467 の refinement と planner の false-positive 改修を分離できます。
scope_signal_delta.pyの negation-aware 化は再発防止として価値がありますが、#2467 を先に通すための prerequisite にする必要はありません。squne121 commentedon Sep 2, 2026
Revised Acceptance Criteria (Issue Contract Disposition)
前回コメントの技術方針を維持しつつ、Issue #2467 の contract を狭く修正してください。
runtime_onlyproducer/consumer 不整合の修正を対象として維持する。runtime_onlydelegation candidate の入口とする。skippedrecord 単独では PASS にしない。VC_ADJUDICATION_RESULT_V1とする。pr_review_only、expected pass、expected fail の意味論は変更しない。runtime_only統合による non-regression requirement として扱う。uv run --locked pytest ...およびuv run pytest ...の正規 execution を test-runner の契約へ含める。immediateとし、必要な fields は現行 readiness checker が要求する schema から導出する。以上を Issue 本文へ反映してください。
squne121 commentedon Sep 2, 2026
issue-refinement-loop: refinement 完了 (approved)
trusted
with_human_contextanchor(https://github.com/squne121/loop-protocol/issues/2467#issuecomment-5509460780)に基づく contract refinement が完了しました。semantic_review_applicable: false(applicable な signal 消滅)。contract_readiness_check.py --mode preflight-static): gosha256:ee01c96fb5a52b7bf3b730e3cfdc14c5e479d8a41fd4f191cee6096aee78c6b9反映した主な変更点:
not_applicableからimmediateへ変更し、extension-surface policy が要求する required fields(applicable_acs / execution_environment / skip_conditions / fallback_policy / artifact_requirements)を明記uv run [--locked] pytestexecution allowance を In Scope/AC8 に追加#2141の stale dependency(merge 後に開始)を削除。実装: pr_head_replay_publish_exec.execute() の production caller を配線する #2141 はCLOSED/NOT_PLANNED確認済みこのサイクルで新規の hard dependency は確立していません(既存の #2141 依存を除去したのみ)。
evaluate_termination_dependency_gate()は「no hard dependency confirmed this cycle」に該当し no-op です。次の implementation 着手についての注記: 本 refinement サイクルは implementation-ready 状態に到達していますが、今回の依頼は明示的に「refinement 完了後も #2467 の production implementation へ進まないこと」を求めているため、canonical
root_entry_router.pyによるimpl-review-loop自動起動は本セッションでは実行していません。LOOP_HANDOFF_RESULT_V1marker も同じ理由でこのコメントには含めていません。次のタスクで implementation を開始する場合は、fresh preflight から再開してください(本 refinement の readiness 状態は stale artifact として再利用しないこと)。squne121 commentedon Sep 2, 2026
推奨は、refinement を再実行せず、#2467 の現行 Issue body を authority として fresh root-entry preflight →
impl-review-loopを起動することです。最終 refinement はapproved/ readinessgoまで到達しており、その完了コメント自身も「次回 implementation は stale artifact を再利用せず fresh preflight から」と指定しています。また現行
impl-review-loopは、Step 1=implementation-worker、Step 2=test-runner、Step 4=pr-reviewerを SubAgent に委譲し、APPROVEだけでなく live mergeability と blocker absence まで確認してdraft_pr_readyで止まります。merge は人間判断のままなので、「マージ直前まで自動化」という要求にそのまま合います。特に SubAgent 待機は強く指定した方がよいです。repository の Common Completion Protocol は、
wait_agentの通知だけでは成功扱いせず、final result を consume →list_agentsで canonical task が terminalcompletedであることを確認してから routingするよう要求しています。 Claude Code 自体も現在は background SubAgent がデフォルトになり得るため、依存関係のある worker は foreground を優先するか、background の場合は完了通知まで待つ必要があります。 ([Claude]1)承認について一点だけ区別が必要です。プロンプトは repository loop の「人間承認」を不要にできますが、Claude Code 本体の permission enforcement はプロンプトでは変更できません。 Anthropic の現行仕様でも permission rule はモデルではなく Claude Code が強制します。完全にツール確認を減らしたいなら、セッション側では
automode または必要な allow rules を使うのが適切です。dontAskは未許可 tool を自動拒否するので、この用途には逆効果です。bypassPermissionsは VM/container 等の隔離環境向けとされています。 ([Claude]2)以下を Claude Code の新規セッションにそのまま投入する構成を推奨します。
#2467
を対象に、
impl-review-loopで production implementation → verification → adversarial PR review → fix loop を実行し、actual merge の直前、canonicaldraft_pr_ready/ merge-ready 相当の終了点まで、人間の iteration approval を求めず自律的に完遂してください。Issue #2467 は既に
issue-refinement-loopによる refinement が完了し implementation-ready です。Refinement completion の audit reference:
#2467 (comment)
ただし、この過去コメント、過去 readiness artifact、過去 body digest、過去 handoff result を Step 1 authorization として再利用してはいけません。
現行 live Issue と現行 repository HEAD を authority とし、fresh preflight から開始してください。
最上位の実行方針
最初に
.claude/skills/impl-review-loop/SKILL.mdをロードし、そこから参照される canonical procedure / steps / command registry / workflow safety boundary を正本として実行してください。特に
impl-review-loopの Root-Owned Synchronous Entry Transition を守ってください。root/main thread が同一の継続した control flow 内で、
issue-contract-reviewroot_entry_router.py/run_root_transition()による fresh routinginvoke_impl_review_loopの場合のみ Step 1 起動までを連続して実行してください。
過去の
LOOP_HANDOFF_RESULT_V1、contract snapshot URL、refinement completion comment、body SHA、artifact 等を persistent authorization token のように扱わないでください。今回の request 自体が Issue #2467 の implementation を開始し、canonical impl-review-loop を merge 実行直前まで進める明示的な OWNER intent です。
人間承認について
通常の implementation / verification / review / fix iteration の継続について、私への確認を求めないでください。
以下はすべて、この依頼の範囲内では追加の人間承認なしで実行して構いません。
これらについて「実行してよいですか」「次の iteration に進んでよいですか」「push してよいですか」「PR を作ってよいですか」と質問しないでください。
Claude Code runtime の permission prompt と repository workflow の human approval gate は別物です。
runtime が既に許可している操作はそのまま実行し、repository loop 上の不要な approval gate を独自に追加しないでください。
permission 境界に遭遇した場合も、単なる SubAgent の
human_review_required: true自己申告を human veto と解釈せず、現行impl-review-loopの routing policy に従ってください。絶対に実行しないこと
PR の actual merge は行わないでください。
また、以下も merge の代替として勝手に実行しないでください。
gh pr merge--no-verify等による canonical safety check の迂回最終地点は、現行
impl-review-loopが定義するapproved/draft_pr_ready相当、すなわち 人間が merge 判断だけを残した状態です。PR の Draft/Ready 状態については独自判断で canonical procedure を変更せず、現行 Issue Delivery Rule と
impl-review-loopの正本に従ってください。Issue #2467 の contract を厳守
実装対象・Acceptance Criteria・Verification Commands・Allowed Paths・Stop Conditions は、開始時に fresh fetch した 現在の Issue #2467 本文を正本にしてください。
特に現行 contract の設計意図を維持してください。
runtime_onlyproducer envelope の限定認識skipped単独では nonblocking PASS にしないpr_review_onlyの既存 authorization scope を runtime_only へ拡張しないuv run [--locked] pytest ...allowance のみを追加するscope creep を避け、Issue #2467 の bounded tooling fix に限定してください。
SubAgent を必ず使用する
main/root orchestrator 自身が implementation・verification・review を肩代わりしないでください。
canonical
impl-review-loopに従って、少なくとも以下の SubAgent lane を使用してください。Step 1
implementation-workerimplement-issueskill を実行fix_deltaとして受け取って修正Step 2
test-runnerStep 4
pr-reviewerpr-review-judgeの canonical procedure に従うREQUEST_CHANGESAPPROVE必要な repository investigation を canonical procedure が SubAgent に委譲する場合も、その routing に従って構いません。
ただし Issue #2467 の Stop Conditions に抵触する nested SubAgent delegation を新たに必要とする設計へ変更してはいけません。
SubAgent の完了を必ず待つ
これは重要です。
SubAgent を dispatch しただけで次の Step へ進まないでください。
dependency-critical な SubAgent は可能なら foreground で実行してください。
background execution になった場合も、完了通知を待たずに root が作業を推測して先へ進むことを禁止します。
repository の Common Completion Protocol を厳守してください。
各 dispatch site で必ず、
spawn_agentの返却から canonicaltask_nameを保存する。wait_agentで対象 agent の activity / completion を待つ。list_agentsを実行し、その canonical task name が terminalcompletedであることを確認する。completedの両方が確認できてから次の routing を決める。errored/interrupted/shutdown/not_foundは成功として扱わないでください。「background agent を開始しました。完了通知を待ちます」とだけ出して処理を終了することも禁止します。
必要な SubAgent が残っている間は、その completion を current session 内で待ち、結果を join してから次工程へ進んでください。
SubAgent が API error 等で failure した場合は、partial output を完成結果として扱わず、canonical bounded retry / recovery routing に従ってください。
implementation / review loop
Step 1 → Step 2 → Step 4 → Step 5 を canonical に反復してください。
Verification failure
Step 2 が blocking の場合:
REQUEST_CHANGES
pr-reviewer が
REQUEST_CHANGESの場合:LOOP_STATE.blockers_history/fix_deltaへ保持を自動継続してください。
stale head
reviewed_head_sha != current PR headの場合、人間へ確認せず current head で re-review してください。BEHIND / main drift
canonical
route_to_update_branch/route_scope_clean_reconciliationが選ばれた場合は、その mechanical action と再検証・再レビューを自動実行してください。fail_closed warning
UNKNOWN/BLOCKED/UNSTABLE/DRAFT等で canonical policy が bounded retry / current-head CI evaluator への委譲を定めている場合、直ちに人間へ escalation せず、その routing を完遂してください。Iteration budget
この implementation は bounded scope なので、通常の default 3 iteration をまず使用してください。
同一 root session 内で canonical procedure が明示的に continuation を許可し、単にレビュー修正を収束させるためだけに追加 iteration が必要な場合は、repository policy が許す範囲で 最大 6 iteration まで継続して構いません。
iteration ごとの人間承認は求めないでください。
ただし max-iteration の canonical hard gate を超えて無限ループしたり、counter をリセットして迂回してはいけません。
hard stop
「承認不要」は hard safety / scope gate の無効化を意味しません。
現行 Issue / impl-review-loop が本当に停止を要求する次のようなケースでは、fail-closed を維持してください。
mergeable == CONFLICTING/merge_state_status == DIRTY)verdict: HUMAN_REVIEW_REQUIRED逆に、artifact missing、stale telemetry、SubAgent の単なる
human_review_required: true自己申告、mergeability UNKNOWN の一時状態など、現行 policy が warning / retry として扱うものを独自の human approval gate に格上げしないでください。runtime verification
Issue #2467 は runtime-loaded extension surface を変更するため、Issue contract が指定する
Runtime Verification Applicability: immediateを実施してください。現在の Claude Code session / repository configuration のみを使用し、新 credential / 新 external service / privilege escalation を要求しない bounded runtime smoke にしてください。
特に、
を actual candidate implementation 上で確認してください。
.claude/agents/test-runner.mdを変更した後の agent discovery については、現行impl-review-loopの bounded live-reload / fresh runtime recovery policy に従ってください。agent discovery の一時的な
not foundを即 human escalation にせず、canonical recovery を実行してください。最終判定
verdict: APPROVE単独で終了しないでください。canonical
route_loop_verdict_v2()が少なくとも、APPROVECLEAN/HAS_HOOKS等)を満たして
route: approvedと判定するまでループしてください。その状態に到達したら actual merge は実行せず停止してください。
最終報告
完了時は簡潔に次を報告してください。
IMPL_REVIEW_LOOP_RESULT_V1/ termination reason途中経過の説明だけでセッションを終了せず、canonical hard stop が発生しない限り、この依頼の current session 内で implementation → verification → review → fixes → re-verification → re-review を完遂してください。
補足すると、
max_iterations=6は私が「承認問い合わせを減らす」目的で追加した推奨値です。repository の標準値は 3 なので、正本への忠実性を最優先するならその段落だけ削除して default 3 のままでも構いません。#2467 は scope が限定されているため、まず 3 回で収束させる方が自然です。また、Claude Code の current background-agent semantics を考えると、今回のような直列依存の loop では「SubAgent を foreground 優先」と書いた点が有効です。background でも Claude Code は completion notification を待つ仕様ですが、repository 側の
final result + list_agents completedの二重確認まで明示したことで、以前の「background task を開始したまま session が止まる」パターンをかなり抑えられます。 (Claude)squne121 commentedon Sep 2, 2026
root-owned entry router audit
route: stop
reason: review_verdict_blocked
squne121 commentedon Sep 2, 2026
root-owned entry router audit
route: invoke_impl_review_loop
reason: fresh_review_go_live_equality
squne121 commentedon Sep 2, 2026
implement-issue: 実装完了 (2026-09-02)
.claude/worktrees/issue-2467-impl-review-loop-runtime-only-vc-adjudicworktree-issue-2467-impl-review-loop-runtime-only-vc-adjudic0b434cf056579afba0784abe21120273be463c62pnpm typecheck/pnpm lint/pnpm test(1874 tests)/pnpm buildすべて PASS。uv run pytest .claude/skills/gemini-cli-headless-delegation/tests/test_model_routing.pyも PASS。baseline_vc_preflight.pyを real git repository 上で subprocess 実行し、canonical runtime_only envelope が current-head 独立 binding 成立時のみ Step 4 gate を開く正常経路、baseline-only 実行・改ざん envelope が Step 4 gate を開かない negative 経路の両方をtest_adjudicate_vc_result_e2e_runtime_only.pyで実行し PASS を確認した(PR 本文 Checks 節参照)。fix(#2467): runtime_only current-head evidence を baseline skip の再要求から…
fix: ruff E501 for runtime_only current-head binding summary line (#2467
feat: impl-review-loop の runtime_only VC adjudication を current-head …