Skip to content

実装: impl-review-loop の landing disposition prose を producer の現行 bounded carve-out 群へ同期する #2898

Closed

Description

@squne121

Machine-Readable Contract

contract_schema_version: v1
issue_kind: implementation
parent_issue: "none"
goal_ref: "impl-review-loop の preparation.md / SKILL.md の Evidence-Based Landing Disposition 記述を、producer の現行 bounded candidate exclusions と一致させる"
change_kind: docs

Parent Issue

なし

Parent Goal Ref

Current Validated Scope

2026-10-03 時点で確認した事実。

  1. preparation.md 0-a-0 節の「Bounded carve-out(irrelevant sibling cross-reference の除外、Issue 実装: impl-review-loop の cross-reference false candidate で不要な reconciliation 停止を防ぐ #2750)」段落は「bounded な例外が1つだけ存在する」と記述している。
  2. SKILL.md の Evidence-Based Landing Disposition 節にも同じ「1つだけ」記述がある。
  3. PR fix: historical merged later_scope_expansion と current exact open/draft の false conflict を解消する (#2893) #2894 は merged 済み(Issue 実装: Landing Disposition で historical merged later_scope_expansion と current exact PR の false conflict を除去する #2893 は completed/closed)であり、derive_landing_disposition() に第二の bounded candidate exclusion _exclude_historical_merged_later_scope_expansion()(historical merged later_scope_expansion と current exact open/draft の組み合わせ)を追加済みである。実装: Landing Disposition で historical merged later_scope_expansion と current exact PR の false conflict を除去する #2893 は Allowed Paths 外のため prose を更新できず、PR レビューで follow-up 候補とされた。
  4. 実装の正本は current main の .claude/skills/impl-review-loop/scripts/implementation_landed_evidence.py の docstring(read-only 参照。main から直接参照できるため着手を待つ必要はない)。

Remaining Parent Gaps

なし(parent_issue は none の単独 docs 同期)。

Outcome

preparation.md と SKILL.md の Evidence-Based Landing Disposition 記述が、「例外は1つだけ」ではなく 「Bounded candidate exclusions」 として producer の現行 2 種の除外(#2750 irrelevant sibling、#2893 historical merged later_scope_expansion)を 別分類として記述し、成立条件・適用順・除外範囲・fail-closed 非変更条件・closing_relation 優先・decision-time semantic refresh が producer docstring と一致した状態で PR にマージされる。構成は 詳細 = preparation.md、入口の要約と参照 = SKILL.md とし、長い条件式を両ファイルへ複製しない。

文書が満たすべき semantic contract(review requirement)

  • 実装: impl-review-loop の cross-reference false candidate で不要な reconciliation 停止を防ぐ #2750 除外: closing candidate が 0 件のときのみ。verified_cross_reference candidate のうち candidate-local scope_coverage が status: invalid かつ error が scope_coverage_issue_identity_mismatch 1件だけのものを conflict counting から除外する。複合 error・markerless には拡張しない。
  • 実装: Landing Disposition で historical merged later_scope_expansion と current exact PR の false conflict を除去する #2893 除外: 実装: impl-review-loop の cross-reference false candidate で不要な reconciliation 停止を防ぐ #2750 の identity mismatch 例外と同一分類にしない。valid な同一 Issue marker を持つ historical merged candidate(main_ancestry.verified / main_ancestry.reachable、later_scope_expansion is True、exact_coverage is not True)の限定的除外であり、historical 除外後に残る candidate が ちょうど 1 件で、それが fresh な current exact open/draft candidate であること(「current exact が 1 件存在する」へ条件を弱めない)。
  • 適用順: closing candidate なし → 実装: impl-review-loop の cross-reference false candidate で不要な reconciliation 停止を防ぐ #2750 除外 → 実装: Landing Disposition で historical merged later_scope_expansion と current exact PR の false conflict を除去する #2893 historical 除外。
  • 除外範囲: conflict counting / authority selection 用の local set のみ。evidence["candidates"] は保持する。
  • fail-closed 非変更: closing precedence 維持、current exact open/draft が複数なら conflict 維持、malformed / stale / markerless legacy / identity mismatch 等の既存 semantics は緩めない。
  • closing precedence: closing_relation candidate が存在する場合は bounded candidate exclusions を適用せず、structured closing authority を優先する(SKILL.md と preparation.md の双方から読めること)。
  • decision-time semantic refresh: 判定対象 candidate の live PR body と closingIssuesReferences から scope coverage / closing authority の意味を再導出する。PR body 全体の byte equality は追加 gate にしない(prose / verification-result のみの PR body 更新で不要停止しない)。一方、Issue body SHA・candidate head/merge OID・main SHA に対する既存の bounded freshness rebind は維持する。新 API call・新 freshness classifier は導入せず、既存 producer が取得した live 値を消費する説明にする。
  • start_data_plane: ordinary_dispatch_or_explicit_recovery → start_data_plane: true / dispatch_step1、existing_pr_resume → start_data_plane: false / resume_existing_pr。後者の false は duplicate worker / worktree / new PR を抑止する正常系であり failure ではない。canonical boolean/action を消費し、prose から判定を再実装させない。
  • 除外の「数」を固定する記述(「identity mismatch の例外が 2 つ」「今後も 2 つだけ」等)を書かない。

Runtime Verification Applicability

decision: immediate
reason: >-
  Allowed Paths の `.claude/skills/impl-review-loop/SKILL.md` は docs/dev/extension-surface-runtime-policy.yaml の
  `skill-invocation-procedure-or-contract-change`(`skill-invocation-runtime-smoke`)および
  `subagent-lifecycle-start-stop-delegation-fallback`(`subagent-lifecycle-causal-evidence-smoke`)の hard selector に
  該当し、`default_decision: immediate` である。`skill-executable-semantics-unchanged` は
  `human_evidence_required` / `approval_authority: owner` の PR-time 例外であり、issue-time の readiness
  (EXTSURF001 / RUNTIMEASSERT001)では評価されないため、本 Issue では既存 route の runtime smoke を既定とする。
  OWNER が PR-time にその例外を current-head diff evidence で適用するかは別判断であり、本 Issue はそれを前提にしない。
  runtime smoke は既存 runner(scripts/agent-ops/run_worktree_agent_runtime_smoke.py --mode structured)のみを使い、
  新 runner・新 harness・新 approval layer・新 schema registry は作らない。
  Skill の正式 load を no-mutation で行う既存経路は runner に存在しない(`--expect-skill-command` は tool 制限なしの実 Skill 起動となり no-mutation smoke にならない)ため、本 Issue の runtime smoke は delegation と観測範囲を限定した合成 dry-run に限る。
applicable_acs: [AC9]
execution_environment: current-head LOOP_PROTOCOL worktree と current Claude Code runtime。既存 runner を `--mode structured` で実行する。fixture(prompt と output schema)は GitHub への mutation・secret・destructive action を伴わない合成データ(read-only の dry-run 指示)のみを使い、Edit / Write / gh mutation を行わせない。
skip_conditions: `claude` 実行ファイルまたは `uv` が利用不能な場合は exit 77 + stdout 先頭 `SKIP:` で停止し、AC9 を PASS 扱いしない(docs/dev/runtime-verification-policy.md の SKIP 規約)。
fallback_policy: AC1〜AC8 と AC10 の静的検査・PR review の PASS を AC9 の代替にしない。AC9 は `Explore` への read-only delegation、宣言順 marker(Read 観測に条件付けた自己申告であり手順実行の証明ではない)、実在する出力契約 `IMPL_REVIEW_LOOP_RESULT_V1` の必須 field の形を満たす合成 JSON、SubAgent start/stop の causal evidence が実 delegation と相関することの確認に限る。`impl-review-loop` Skill の正式 load / route 選択は確認しない。意味の一致は AC7 が担う。
artifact_requirements: runner の bounded な evidence(current-head identity、Claude Code 版、causal_evidence_source、結果)を PR 本文に要約する。raw transcript・secret は記載しない。新しい artifact 形式は追加しない。
runtime_assertion_bindings:
  - profile: skill-invocation-runtime-smoke
    assertion: procedure_steps_executed_in_declared_order
    ac: AC9
  - profile: skill-invocation-runtime-smoke
    assertion: output_contract_schema_fields_present
    ac: AC9
  - profile: subagent-lifecycle-causal-evidence-smoke
    assertion: subagent_start_stop_causal_evidence_correlated
    ac: AC9

runtime smoke fixture の制約(false evidence を作らない)

  • output schema の required field は実在する出力契約 IMPL_REVIEW_LOOP_RESULT_V1(.claude/skills/impl-review-loop/scripts/validate_autonomy_policy_result.py の REQUIRED_RESULT_FIELDS = schema_version / status / termination_reason / merge_ready)のみとし、存在しない field・enum を作らない。status / termination_reason の enum は SKILL.md / step-5-feedback-and-termination.md に実在する値だけを使う。
  • ordered marker は prompt が SubAgent に echo させるだけの自己申告を semantic proof としない。causal evidence は hook_id_correlated(runner の subagent_causal_evidence_verdict())であることを必要条件とする。
  • 既存 runner だけで安全かつ正直に上記を実証できない場合は、新 harness を作らず Stop Conditions に従い停止する。
  • smoke の委譲先は production の agent 契約(必須入力・preload Skill・出力契約)と衝突しない既存 agent(Explore)とし、pr-reviewer 等の production custom agent を fixture のために流用しない。

In Scope

  • preparation.md の「1つだけ」記述を「Bounded candidate exclusions」節(2 種の除外を別分類で記述)へ改訂する(詳細の正本)。
  • SKILL.md の同記述を要点(2 種が別分類の bounded candidate exclusions であること、closing precedence、live PR semantic refresh、producer の boolean/action を prose から再導出しないこと)と preparation.md 該当節への参照へ改訂する。
  • 上記 semantic contract を producer docstring と一致させて記述する。
  • runtime smoke 用 fixture(prompt と output schema)を .claude/skills/impl-review-loop/tests/fixtures/ 配下に 最大 2 ファイルだけ追加する(OWNER 承認済みの最小 scope 拡張。readiness の EXTSURF001 / RUNTIMEASSERT001 を満たすためであり、production implementation scope の拡張ではない)。

Out of Scope

Acceptance Criteria

  • AC1: preparation.md に旧文言「bounded な例外が1つだけ」が残っていない。
  • AC2: SKILL.md に旧文言「bounded な例外が1つだけ」が残っていない。
  • AC3: preparation.md に「Bounded candidate exclusions」節があり、実装: impl-review-loop の cross-reference false candidate で不要な reconciliation 停止を防ぐ #2750 / 実装: Landing Disposition で historical merged later_scope_expansion と current exact PR の false conflict を除去する #2893 の 2 種を別分類で記述している。
  • AC4: SKILL.md に「Bounded candidate exclusions」の要点と preparation.md 該当節への参照がある。
  • AC5: 両ファイルが closing precedence(closing candidate が存在する場合は除外を適用しない)を記述している。
  • AC6: 両ファイルが decision-time semantic refresh(live PR body と closingIssuesReferences の意味再導出、PR body byte equality を gate にしない、既存 bounded rebind は維持)を記述している。
  • AC7: semantic contract(Outcome 節)の全項目が current-head の producer docstring / helper と一致していることを PR review で照合して確認する(grep は補助であり単独で AC を満たさない)。
  • AC8: 変更ファイルが corrected Allowed Paths のみであることを、既存の ALLOWED_PATHS_GATE_RESULT_V1(pr-review-judge の allowed_paths_review_gate.py)と PR diff review で確認する。git diff --name-only の exit 0 を PASS と扱わない。
  • AC9: 既存 runner(--mode structured)で、read-only の合成 dry-run を汎用 read-only 委譲先 Explore へ foreground 委譲し、(i) 子が改訂後の preparation.md / SKILL.md を Read した観測に条件付けた宣言順 marker(IMPL_REVIEW_LOOP_SMOKE_STEP_DOCS_READ → IMPL_REVIEW_LOOP_SMOKE_STEP_HEADINGS_OBSERVED → IMPL_REVIEW_LOOP_SMOKE_STEP_SHAPE_EMITTED)、(ii) 親の最終出力が実在する出力契約 IMPL_REVIEW_LOOP_RESULT_V1 の必須 field(schema_version / status / termination_reason / merge_ready)の形を満たす合成 JSON であること、(iii) SubAgent の start / stop の causal evidence が実 delegation と相関することを実 runtime で確認する。この smoke は impl-review-loop Skill の正式 load・route 選択・手順の業務意味の実行を証明しない(意味の一致は AC7)。SKIP は PASS ではない。
  • AC10: 必須品質ゲート(pnpm typecheck / pnpm lint / pnpm test / pnpm build)と、.github/workflows/check-japanese.yml が使う validate_japanese_content.py(変更 md ファイルごと)が PASS する。required CI / branch-protection checks は current-head で評価する。

Verification Commands

grep 系 VC は旧文言の除去と節・参照の存在を確認する補助検査であり、意味の一致は AC7 の PR review で確認する。

# AC1
# baseline-expect: fail
$ rg -P -U -c '\A(?s)(?!.*bounded な例外が1つだけ).*' .claude/skills/impl-review-loop/steps/preparation.md

# AC2
# baseline-expect: fail
$ rg -P -U -c '\A(?s)(?!.*bounded な例外が1つだけ).*' .claude/skills/impl-review-loop/SKILL.md

# AC3
# baseline-expect: fail
$ rg -c -F "Bounded candidate exclusions" .claude/skills/impl-review-loop/steps/preparation.md

# AC4
# baseline-expect: fail
$ rg -c -F "Bounded candidate exclusions" .claude/skills/impl-review-loop/SKILL.md

# AC5
# baseline-expect: fail
$ rg -c -F "closing precedence" .claude/skills/impl-review-loop/steps/preparation.md

# AC5
# baseline-expect: fail
$ rg -c -F "closing precedence" .claude/skills/impl-review-loop/SKILL.md

# AC6
# baseline-expect: fail
$ rg -c -F "semantic refresh" .claude/skills/impl-review-loop/steps/preparation.md

# AC6
# baseline-expect: fail
$ rg -c -F "semantic refresh" .claude/skills/impl-review-loop/SKILL.md

# AC7
# preflight-scope: pr_review_only
$ rg -c -F "resume_existing_pr" .claude/skills/impl-review-loop/steps/preparation.md

# AC8
# preflight-scope: pr_review_only
$ uv run --locked python3 .claude/skills/pr-review-judge/scripts/allowed_paths_review_gate.py --help

# AC9
# preflight-scope: runtime_only
$ uv run --locked python3 scripts/agent-ops/run_worktree_agent_runtime_smoke.py --runtime claude --mode structured --worktree . --prompt-file .claude/skills/impl-review-loop/tests/fixtures/issue_2898_landing_disposition_runtime_smoke.prompt.md --output-dir artifacts/runtime-smoke/issue-2898 --evidence-json artifacts/runtime-smoke/issue-2898.evidence.json --require-subagent-causal-evidence --expect-marker IMPL_REVIEW_LOOP_LANDING_SMOKE_OK --expect-ordered-marker IMPL_REVIEW_LOOP_SMOKE_STEP_DOCS_READ --expect-ordered-marker IMPL_REVIEW_LOOP_SMOKE_STEP_HEADINGS_OBSERVED --expect-ordered-marker IMPL_REVIEW_LOOP_SMOKE_STEP_SHAPE_EMITTED --output-schema-path .claude/skills/impl-review-loop/tests/fixtures/issue_2898_landing_disposition_runtime_smoke.output.schema.json

# AC10
# baseline-expect: pass
$ pnpm typecheck

# AC10
# baseline-expect: pass
$ pnpm lint

# AC10
# baseline-expect: pass
$ pnpm test

# AC10
# baseline-expect: pass
$ pnpm build

# AC10
# preflight-scope: pr_review_only
$ uv run python3 .claude/skills/create-issue/scripts/validate_japanese_content.py --file .claude/skills/impl-review-loop/steps/preparation.md --threshold 0.1

# AC10
# preflight-scope: pr_review_only
$ uv run python3 .claude/skills/create-issue/scripts/validate_japanese_content.py --file .claude/skills/impl-review-loop/SKILL.md --threshold 0.1

注: AC1 / AC2 は「旧文言が存在しないファイル全体にだけ一致する」否定先読み(rg -P -U -c)で、旧文言が残っていれば exit 1、削除後は exit 0 となる。OWNER 提案の rg --files-without-match --fixed-strings は同じ終了コード意味論だが、current の VC preflight(baseline_vc_preflight.py の _rg_extract_path_operands())が長形式の真偽 flag を PATH と誤認して VCP_BROAD_SEARCH_PATH_UN を返すため、短形式 flag のみで同じ意味を表した。baseline-expect: fail は pre-fix baseline の期待値であり、post-fix の exit 0 が成功である。AC10 の日本語チェックは uv run python3 が VC preflight の allowlist 外のため pr_review_only とし、実行は pr-reviewer / test-runner と CI の check-japanese が current-head で行う。AC7 / AC8 の VC は pr_review_only であり、実際の判定は pr-reviewer が current-head の producer と照合し、ALLOWED_PATHS_GATE_RESULT_V1 を live PR 引数で実行して行う(AC8 の --help 実行は存在確認に過ぎず PASS の根拠にしない)。AC9 は実 runtime が利用不能なら SKIP(PASS ではない)。

Allowed Paths

  • .claude/skills/impl-review-loop/steps/preparation.md
  • .claude/skills/impl-review-loop/SKILL.md
  • .claude/skills/impl-review-loop/tests/fixtures/issue_2898_landing_disposition_runtime_smoke.prompt.md
  • .claude/skills/impl-review-loop/tests/fixtures/issue_2898_landing_disposition_runtime_smoke.output.schema.json

Stop Conditions

  • Allowed Paths 外の変更が必要と判明した場合(承認済みの fixture 2 ファイルは Allowed Paths に含まれる。それ以外のファイルが対象)
  • In Scope の固定契約(キー集合・スキーマ・型定義)の変更が必要になった場合
  • 新規 Issue の起票が必要と判断した場合(スコープ分割が発生する場合)
  • 後続 Phase / 別スコープへの波及が判明した場合
  • nested SubAgent delegation が必要になった場合(canonical root-level orchestration の implementation-worker / test-runner / pr-reviewer は対象外。非 canonical な nested chain のみ)
  • 外部サービス利用・権限昇格・既存テスト大規模改変が必要になった場合
  • prose を producer と一致させるために producer / tests の変更が必要になった場合
  • IMPL_REVIEW_LOOP_RESULT_V1 の実在する出力契約だけでは runtime assertion を満たせず、schema の捏造が必要になる場合
  • 既存 runner だけでは安全な no-mutation runtime smoke が成立しない場合(新 runner / harness を作らず停止する)

Required Skills

なし

Required Design References

read-only 参照(変更しない):

Delivery Rule

Activity

  1. added
    phase/implementation
    agent/implementer
    enhancement
    on Oct 3, 2026
  2. squne121 commented on Oct 3, 2026

    @squne121
    OwnerAuthor

    判定:REQUEST_CHANGES — 実装範囲は広げず、Issue の検証契約を修正する

    #2898 の目的と「文書2ファイルだけを変更する」という切り方は妥当です。ただし、現状の Issue には、正しく修正すると検証が失敗する問題と、誤った説明でも検証を通過できる問題が混在しています。 修正要求はこの契約の整合に限定します。新しい判定器、承認レイヤー、大きな実行ハーネスを追加する必要はありません。

    確認した main は 91e5a836becc372cb4332a546f5efb2f50e55097 です。前提の PR #2894 は既にマージ済みなので、Issue に残る「#2894 が open」「マージ後に着手」という記述を理由に待ち続ける必要はありません。#2898 自体のコメントは取得時点でありませんでした。

    関連する #2893・#2750、PR #2894 の本文とレビューコメント、現行 producer、SKILL.md/preparation.md、検証コマンドの文法、runtime 適用ポリシーを照合した結果、主な修正要求は次の3件です。

    重要度 | 指摘 | 必要な修正 -- | -- | -- P2・修正要求 | AC1/AC2 の検証コマンドの成功・失敗が逆転している | 「削除後に exit 0」となるコマンドに変更する P2・修正要求 | 文書の意味、Allowed Paths、品質ゲートを VC が十分に検証していない | 意味確認と既存ゲートへの対応を明示する P2・修正要求 | runtime: not_applicable の根拠が既存の SKILL 適用ポリシーと整合していない | 既存の「意味不変」例外を使う根拠を示す。無条件に重い runtime 検証を追加しない

    これらは現行 producer が既に実装・説明している内容です。文書同期のために producer や tests の Allowed Paths を広げる理由にはなりません。

    AC8 についても、要求する品質ゲートと証拠を揃えてください。既存 CI/通常の検証工程で実行するものまで、この文書同期用の独自ハーネスで重複実行する設計にはしないことを勧めます。

    3. 【P2】「Markdown だから runtime 不要」は、既存ポリシー上の根拠になっていない

    対象:Runtime Verification Applicability。

    Issue は現在、「docs/prose のみで、プロセス起動・通信・I/O を伴わない」ことを理由に not_applicable としています。

    しかし、変更対象には 実際に Claude が読む SKILL.md が含まれます。リポジトリの既存ポリシーでは、.claude/skills/**/SKILL.md は skill-invocation-procedure-or-contract-change の issue-time hard selector に該当し、既定は immediate です。拡張子が Markdown であることだけでは、この規則との整合を説明できません。

    ただし、ここから 「毎回 Claude を起動する大きな runtime 検証を追加せよ」には進めません。

    既存ポリシーには、ちょうど本件で検討すべき skill-executable-semantics-unchanged という例外があります。要求されるのは、説明・コメント等の変更だけで、手順の実行順序、分岐条件、出力契約が変わらないことを current-head の差分で示すことです。OWNER の evidence に基づく例外であり、理由欄に名前を書くだけで自動成立するものではありません。

    本件での第一候補

    Issue の方針を、次のように明確にすることを勧めます。

    変更対象は、既に main に存在する producer の挙動を説明する文書である。
    producer の呼び出し、実行順序、canonical action の消費方法、出力契約は変更しない。
    not_applicable の根拠は「Markdown だから」ではなく、既存の skill-executable-semantics-unchanged に必要な差分・参照証拠で示す。

    実際の変更が Agent の分岐手順や呼び出し順序まで変えるなら、意味不変とは扱えません。その場合だけ既存の runtime 確認経路を使うべきであり、今回のための新しい例外制度や承認レイヤーを作る必要はありません。

    なお、今回はポリシー定義との不整合を指摘しています。#2898 を canonical intake に投入して、実際の拒否結果まで再現したわけではありません。

    文書同期で特に間違えやすい点

    「identity mismatch の例外が二つ」と書き換えない

    現在の文書は、identity mismatch の fail-closed 契約に対して「例外が1つだけ」と説明しています。ここを単純に複数形にすると、#2893 も identity mismatch を許容する例外であるかのように読めます。

    実際には、二つは異なる分類です。

    見出しは例えば 「Bounded candidate exclusions」 とし、その下に二つの条件を分ける方が正確です。「例外は今後も二つだけ」と数を新たに固定する必要もありません。

    #2893 の説明では特に、historical 側の main_ancestry.verified/reachable、later_scope_expansion is True、exact_coverage is not True に加え、historical 候補をすべて取り除いた後、残りがちょうど1件で、それが fresh な current exact open/draft であることを落とさないでください。「current exact が1件存在する」だけでは条件が弱すぎます。

    「prose-only の変更では停止しない」の対象を明記する

    Issue の AC6 は body としか書いておらず、PR 本文と Issue 本文を混同する余地があります。

    #2894 の修正が扱っているのは、判定に関与する候補について、既に取得済みの live PR body と closingIssuesReferences から scope coverage/closing authority の意味を再導出することです。PR 本文全体の byte 一致を追加ゲートにせず、説明や検証結果だけの更新では不要停止しない、という契約です。

    一方で、既存の Issue body SHA、candidate の head/merge OID、main SHA に対する bounded rebind まで無効にする変更ではありません。この区別を両ファイルに短く書くべきです。

    GitHub CLI の公式仕様でも、body、closingIssuesReferences、headRefOid は同じ gh pr view --json の取得対象です。文書には「既存の再取得結果を消費する」と説明すればよく、今回新たな API 呼び出しや別の freshness 判定器を要求する必要はありません。GitHub CLI

    start_data_plane: false を「再開失敗」と説明しない

    この関連作業では、次の区別も重要です。

    ordinary_dispatch_or_explicit_recovery
      → start_data_plane: true / dispatch_step1
    

    existing_pr_resume
    → start_data_plane: false / resume_existing_pr

    既存 PR の再開では、新規 PR/worktree/新規 dispatch を抑止するために false が使われます。false を true に変更することは、#2898 の修正ではありません。 文書は canonical な boolean/action を消費する手順を維持し、散文から判定を再実装させない形にしてください。

    再発を抑える文書構成

    詳細は preparation.md、入口の要約と参照は SKILL.md という構成を勧めます。両方に長い条件式の説明を複製すると、今回と同じ同期漏れの箇所を増やします。

    SKILL.md にも二つの除外、closing precedence、PR の semantic refresh の要点は残し、細部を読むタイミングと preparation.md の該当節を明示するのがよい構成です。Claude Code の公式資料も、SKILL.md を要点と案内に絞り、詳細を supporting files に分け、何をいつ読むかを明示する方法を案内しています。新規ファイルを増やさず、現在の2ファイルで実現できます。Claude Code

    また、Required Design References: なし は、この作業には不親切です。producer の該当 helper/freshness 経路と、既存の unit・integration tests を read-only 参照として指定してください。#2893 が文書を follow-up に分離した経緯とも整合します。

    最終推奨

    AC1/AC2 の終了コードを直し、意味確認・既存ゲートとの対応・runtime 適用除外の根拠を Issue に明記したうえで、予定どおり2ファイルだけを同期するのが適切です。

    PR #2894 のレビューでも、producer 内の修正と文書同期は分離されていました。今回その follow-up を完了するために、producer を再設計したり、過去の runtime incident を再現する巨大なハーネスを作ったりする必要はありません。

    今回直接実施したのは、GitHub 上の契約・コード・コメントの確認、公式資料との照合、そして rg/git diff の隔離再現です。リポジトリ全体の pytest/pnpm、canonical VC runner、Claude の skill runtime は再実行していません。 提案した rg の終了コードは確認済みですが、canonical runner での受理まで確認済みとは扱っていません。GitHub への投稿、Issue 更新、コード変更も行っていません。

    ## 判定:REQUEST_CHANGES — 実装範囲は広げず、Issue の検証契約を修正する

    #2898 の目的と「文書2ファイルだけを変更する」という切り方は妥当です。ただし、現状の Issue には、正しく修正すると検証が失敗する問題と、誤った説明でも検証を通過できる問題が混在しています。 修正要求はこの契約の整合に限定します。新しい判定器、承認レイヤー、大きな実行ハーネスを追加する必要はありません。

    確認した main は 91e5a836becc372cb4332a546f5efb2f50e55097 です。前提の PR #2894 は既にマージ済みなので、Issue に残る「#2894 が open」「マージ後に着手」という記述を理由に待ち続ける必要はありません。#2898 自体のコメントは取得時点でありませんでした。

    関連する #2893・#2750、PR #2894 の本文とレビューコメント、現行 producer、SKILL.md/preparation.md、検証コマンドの文法、runtime 適用ポリシーを照合した結果、主な修正要求は次の3件です。

    重要度 指摘 必要な修正
    P2・修正要求 AC1/AC2 の検証コマンドの成功・失敗が逆転している 「削除後に exit 0」となるコマンドに変更する
    P2・修正要求 文書の意味、Allowed Paths、品質ゲートを VC が十分に検証していない 意味確認と既存ゲートへの対応を明示する
    P2・修正要求 runtime: not_applicable の根拠が既存の SKILL 適用ポリシーと整合していない 既存の「意味不変」例外を使う根拠を示す。無条件に重い runtime 検証を追加しない

    1. 【P2】AC1/AC2 は、正しく削除すると失敗する

    対象:Issue #2898 の Verification Commands、AC1/AC2。

    現在は、削除すべき旧文言を rg -c で検索しています。ところがこのコマンドは、旧文言が残っていれば exit 0、削除できていれば exit 1 です。しかも両方に baseline-expect: fail が付いています。

    問題は、Issue 末尾の「exit 1 が期待結果」という注記では解消しません。リポジトリの baseline-expect は、実装前の baseline で何を期待するかを指定するものであり、修正後の成功条件を「exit 1」に反転する指定ではありません。

    この環境の ripgrep 14.1.1 を使い、独立した一時ファイルで確認しました。

    ファイルの状態 現行の rg -c 修正案の rg --files-without-match
    旧文言が残る 0:成功扱い 1:不合格
    旧文言を削除済み 1:失敗扱い 0:合格
    ファイル自体が存在しない 2:エラー 2:エラー

    小さく直す案

    Issue の VC は、次の形に変更することを勧めます。

    # AC1
    # baseline-expect: fail
    $ rg --files-without-match --fixed-strings "bounded な例外が1つだけ" .claude/skills/impl-review-loop/steps/preparation.md
    
    # AC2
    # baseline-expect: fail
    $ rg --files-without-match --fixed-strings "bounded な例外が1つだけ" .claude/skills/impl-review-loop/SKILL.md

    1コマンドにつき1ファイルを維持してください。2ファイルをまとめた結果の exit code だけでは、「両方から削除された」を確認する用途には適しません。

    また、ここに -q を付ける必要はありません。ripgrep の公式リポジトリには、14.1.0 で -q と --files-without-match の併用により終了コードが逆転する不具合報告があります。提案形はその組み合わせを避けています。これは過去の報告であり、現在の全バージョンに同じ不具合が残るという主張ではありません。[GitHub](BurntSushi/ripgrep#3108)

    この変更のために、否定検索専用の Python スクリプトや新しい検証フレームワークを追加する必要はありません。

    2. 【P2】VC が通っても、この Issue の目的を満たすとは限らない

    対象:AC3〜AC8 と、その Verification Commands の対応。

    この Issue の目的は「#2893 という文字列を増やすこと」ではなく、Agent が誤った landing disposition を導出しない説明にすることです。しかし現在の VC は、ほぼ単語の存在確認に留まっています。

    対象 現在の不足
    AC3/AC4 #2893 があれば通る。「#2893 の例外は適用しない」という誤説明でも検出できない
    AC5 両ファイルの closing precedence を要求する一方、VC は preparation.md の既存の closing_relation という単語だけを見る
    AC6 両ファイルの意味再導出と prose-only 非停止を要求する一方、VC は SKILL.md の live refresh という単語だけを見る
    AC7 git diff --name-only は変更ファイルを表示するだけで、Allowed Paths 違反を不合格にしない
    AC8 typecheck/lint/test/build と日本語チェックを要求するのに、VC には pnpm typecheck しかない

    AC7 の問題は、実際に false pass する

    一時 Git リポジトリで、許可対象外を想定した outside-allowed.txt を追加して確認すると、結果は次のとおりでした。

    git diff --name-only origin/main...HEAD
    stdout: outside-allowed.txt
    exit code: 0
    

    したがって、このコマンドの実行成功を AC7 の成功と扱ってはいけません。Git でも、差分の有無を終了コードに反映させるのは別の --exit-code オプションです。ただし今回、単にそれを追加すると意図した文書変更まで失敗扱いになるため、それだけでは修正になりません。Git

    ここは新しいチェックを作るより、既存の ALLOWED_PATHS_GATE_RESULT_V1 と PR 差分レビューに委ね、AC7 の証拠として何を採用するかを明示するのが適切です。リポジトリには既に、live Issue の Allowed Paths を基準にするゲートがあります。

    文書の意味確認を、単語チェックから分離する

    推奨するのは、grep を廃止することでも、自然言語検証器を新設することでもありません。

    grep は旧文言の除去と参照の存在を確認する補助検査に限定し、意味の一致は producer と照合する PR レビュー項目にする、という分担です。少なくとも次の内容をレビューで確認するよう、AC を具体化してください。

    必須の説明 producer と一致させる内容
    #2750 の例外 別 Issue を指す candidate-local marker について、エラーが scope_coverage_issue_identity_mismatch 1件だけの場合に限定する
    #2893 の例外 有効な同一 Issue marker を持つ historical merged candidate と、一意の current exact open/draft candidate の組み合わせに限定する
    適用順序 closing candidate がない場合に、#2750 の除外、その後 #2893 の除外を行う
    除外の範囲 conflict counting/authority selection 用のローカル集合だけを絞り、evidence["candidates"] は保持する
    非適用時 closing precedence、複数 current candidate の競合、markerless legacy などの既存の扱いを変えない

    これらは現行 producer が既に実装・説明している内容です。文書同期のために producer や tests の Allowed Paths を広げる理由にはなりません。

    AC8 についても、要求する品質ゲートと証拠を揃えてください。既存 CI/通常の検証工程で実行するものまで、この文書同期用の独自ハーネスで重複実行する設計にはしないことを勧めます。

    3. 【P2】「Markdown だから runtime 不要」は、既存ポリシー上の根拠になっていない

    対象:Runtime Verification Applicability。

    Issue は現在、「docs/prose のみで、プロセス起動・通信・I/O を伴わない」ことを理由に not_applicable としています。

    しかし、変更対象には 実際に Claude が読む SKILL.md が含まれます。リポジトリの既存ポリシーでは、.claude/skills/**/SKILL.md は skill-invocation-procedure-or-contract-change の issue-time hard selector に該当し、既定は immediate です。拡張子が Markdown であることだけでは、この規則との整合を説明できません。

    ただし、ここから 「毎回 Claude を起動する大きな runtime 検証を追加せよ」には進めません。

    既存ポリシーには、ちょうど本件で検討すべき skill-executable-semantics-unchanged という例外があります。要求されるのは、説明・コメント等の変更だけで、手順の実行順序、分岐条件、出力契約が変わらないことを current-head の差分で示すことです。OWNER の evidence に基づく例外であり、理由欄に名前を書くだけで自動成立するものではありません。

    本件での第一候補

    Issue の方針を、次のように明確にすることを勧めます。

    変更対象は、既に main に存在する producer の挙動を説明する文書である。
    producer の呼び出し、実行順序、canonical action の消費方法、出力契約は変更しない。
    not_applicable の根拠は「Markdown だから」ではなく、既存の skill-executable-semantics-unchanged に必要な差分・参照証拠で示す。

    実際の変更が Agent の分岐手順や呼び出し順序まで変えるなら、意味不変とは扱えません。その場合だけ既存の runtime 確認経路を使うべきであり、今回のための新しい例外制度や承認レイヤーを作る必要はありません。

    なお、今回はポリシー定義との不整合を指摘しています。#2898 を canonical intake に投入して、実際の拒否結果まで再現したわけではありません。

    文書同期で特に間違えやすい点

    「identity mismatch の例外が二つ」と書き換えない

    現在の文書は、identity mismatch の fail-closed 契約に対して「例外が1つだけ」と説明しています。ここを単純に複数形にすると、#2893 も identity mismatch を許容する例外であるかのように読めます。

    実際には、二つは異なる分類です。

    見出しは例えば 「Bounded candidate exclusions」 とし、その下に二つの条件を分ける方が正確です。「例外は今後も二つだけ」と数を新たに固定する必要もありません。

    #2893 の説明では特に、historical 側の main_ancestry.verified/reachable、later_scope_expansion is True、exact_coverage is not True に加え、historical 候補をすべて取り除いた後、残りがちょうど1件で、それが fresh な current exact open/draft であることを落とさないでください。「current exact が1件存在する」だけでは条件が弱すぎます。

    「prose-only の変更では停止しない」の対象を明記する

    Issue の AC6 は body としか書いておらず、PR 本文と Issue 本文を混同する余地があります。

    #2894 の修正が扱っているのは、判定に関与する候補について、既に取得済みの live PR body と closingIssuesReferences から scope coverage/closing authority の意味を再導出することです。PR 本文全体の byte 一致を追加ゲートにせず、説明や検証結果だけの更新では不要停止しない、という契約です。

    一方で、既存の Issue body SHA、candidate の head/merge OID、main SHA に対する bounded rebind まで無効にする変更ではありません。この区別を両ファイルに短く書くべきです。

    GitHub CLI の公式仕様でも、body、closingIssuesReferences、headRefOid は同じ gh pr view --json の取得対象です。文書には「既存の再取得結果を消費する」と説明すればよく、今回新たな API 呼び出しや別の freshness 判定器を要求する必要はありません。GitHub CLI

    start_data_plane: false を「再開失敗」と説明しない

    この関連作業では、次の区別も重要です。

    ordinary_dispatch_or_explicit_recovery
      → start_data_plane: true / dispatch_step1
    
    existing_pr_resume
      → start_data_plane: false / resume_existing_pr
    

    既存 PR の再開では、新規 PR/worktree/新規 dispatch を抑止するために false が使われます。false を true に変更することは、#2898 の修正ではありません。 文書は canonical な boolean/action を消費する手順を維持し、散文から判定を再実装させない形にしてください。

    再発を抑える文書構成

    詳細は preparation.md、入口の要約と参照は SKILL.md という構成を勧めます。両方に長い条件式の説明を複製すると、今回と同じ同期漏れの箇所を増やします。

    SKILL.md にも二つの除外、closing precedence、PR の semantic refresh の要点は残し、細部を読むタイミングと preparation.md の該当節を明示するのがよい構成です。Claude Code の公式資料も、SKILL.md を要点と案内に絞り、詳細を supporting files に分け、何をいつ読むかを明示する方法を案内しています。新規ファイルを増やさず、現在の2ファイルで実現できます。Claude Code

    また、Required Design References: なし は、この作業には不親切です。producer の該当 helper/freshness 経路と、既存の unit・integration tests を read-only 参照として指定してください。#2893 が文書を follow-up に分離した経緯とも整合します。

    最終推奨

    AC1/AC2 の終了コードを直し、意味確認・既存ゲートとの対応・runtime 適用除外の根拠を Issue に明記したうえで、予定どおり2ファイルだけを同期するのが適切です。

    PR #2894 のレビューでも、producer 内の修正と文書同期は分離されていました。今回その follow-up を完了するために、producer を再設計したり、過去の runtime incident を再現する巨大なハーネスを作ったりする必要はありません。

    今回直接実施したのは、GitHub 上の契約・コード・コメントの確認、公式資料との照合、そして rg/git diff の隔離再現です。リポジトリ全体の pytest/pnpm、canonical VC runner、Claude の skill runtime は再実行していません。 提案した rg の終了コードは確認済みですが、canonical runner での受理まで確認済みとは扱っていません。GitHub への投稿、Issue 更新、コード変更も行っていません。

  3. squne121 commented on Oct 3, 2026

    @squne121
    OwnerAuthor

    確認した live state では、#2898 は OPEN、current main は 91e5a836becc372cb4332a546f5efb2f50e55097、PR #2894 はすでに merged です。一方、current impl-review-loop/SKILL.md にはまだ「bounded な例外が1つだけ」という旧説明が残っています。指定 OWNER コメントは、実装前に #2898 の AC/VC・runtime applicability を修正し、その後 Allowed Paths 2ファイルだけを同期するよう要求しています。

    したがって推奨順序は、OWNERコメントを trusted human context として Issue 契約を最小修正 → fresh readback / current contract review → impl-review-loop → implementation-worker → test-runner → pr-reviewer → fix/re-review → merge判断直前で停止です。SubAgent は独立 context で開始するため、委譲時に authority・constraints・evidence・expected output を明記し、dispatch だけで先へ進まず final result を待つ指示を入れています。これは現行 Claude Code の SubAgent semantics とも整合します。[Claude Code](https://code.claude.com/docs/en/sub-agents) また、SKILL.md を概要・navigation に寄せ、詳細を supporting file に置く構成も公式の推奨に沿います。[Claude Code](https://code.claude.com/docs/en/skills)

    そのまま既存の interactive Claude Code / auto mode に貼り付けてください。

    repo: squne121/loop-protocol

    対象:

    あなたは既に auto mode で起動済みの interactive Claude Code session にいる。この既存 session を継続し、新しい Claude Code session を起動しない。permission bypass、--dangerously-skip-permissions、force push、auto-merge は要求しない。

    Goal

    Issue #2898 に対し、指定 OWNER コメントの REQUEST_CHANGES を trusted human context として取り込み、必要な Issue contract 修正を先に完了したうえで、current repository-native impl-review-loop を実行する。

    inspect → contract repair if needed → fresh intake → implement → verify → PR review → fix → re-verify → fresh-head review → CI/mergeability確認 を、current canonical loop の範囲内で人間の追加承認を求めず自律実行し、人間が最終 merge 判断できる直前まで到達すること。

    実 merge、auto-merge、force push、不可逆 cleanup は行わない。

    Explicit user authorization

    この依頼により、以下を明示的に承認する。通常の iteration ごとに再承認を求めないこと。

    ただし destructive operation、secret/credential 操作、history rewrite、permission bypass、実 merge/auto-merge は承認していない。

    0. Fresh state を取得する

    作業開始時に必ず live state を再取得する。ここに記した SHA や状態を blindly trust しない。

    最低限確認するもの:

    取得時点の参考情報:

    ただし実行時の fresh state が authority。

    1. OWNER comment を trusted human context として扱う

    次の URL は明示的に人間から指定された trusted OWNER context である。

    https://github.com/squne121/loop-protocol/issues/2898#issuecomment-5966267545

    current Skill が human_context_comment_urls を受ける場合、この URL をその provenance で渡すこと。

    このコメントの REQUEST_CHANGES は「作業停止要求」ではない。
    要求された defect を修正して implementation workflow を続行するための fix directive である。

    コメント内容を単なる参考情報として無視せず、Issue #2898 の current contract に stale / incorrect な記述が残っていれば implementation の前に修正する。

    2. Issue #2898 contract を先に最小修正する

    live Issue body がまだ OWNER comment の指摘を反映していなければ、repository-native controlled Issue-edit/refinement route を使って修正する。

    ad-hoc に別 workflow を発明しない。current Skill / Agent / wrapper が canonical edit route を定めている場合はそれを使う。

    修正後は必ず fresh GitHub readback を行い、remote body に実際に反映されたことを確認する。

    Contract repair の必須内容

    A. stale prerequisite を除去する

    PR #2894 の current live state を確認する。

    merged 済みなら、Issue に残る以下の stale premise を現在の事実に合わせる。

    producer docstring を current main から read-only authority として参照できる状態であることを明記する。

    B. AC1 / AC2 の negative check を修正する

    旧文言削除後に exit 0 となる検証にする。

    少なくとも OWNER comment が指定した次の形を反映すること:

    # AC1
    # baseline-expect: fail
    rg --files-without-match --fixed-strings \
      "bounded な例外が1つだけ" \
      .claude/skills/impl-review-loop/steps/preparation.md
    
    # AC2
    # baseline-expect: fail
    rg --files-without-match --fixed-strings \
      "bounded な例外が1つだけ" \
      .claude/skills/impl-review-loop/SKILL.md

    1 command / 1 file を維持する。
    -q を安易に追加しない。

    baseline-expect: fail は pre-fix baseline の期待値であり、post-fix の exit 1 を成功にする指定ではない。

    C. semantic verification を単純な単語存在確認と混同しない

    grep は旧文言削除や参照存在の補助検査に限定する。

    PR review では producer の current docstring / implementation と照合し、少なくとも以下の semantic contract を確認する AC / review requirement を持たせる。

    D. closing_relation precedence を両文書で説明する

    closing candidate が存在する場合は bounded candidate exclusion を適用せず、existing structured closing authority の precedence を維持することを SKILL.md と preparation.md の双方から読めるようにする。

    E. decision-time semantic refresh を正確に記述する

    body を曖昧に書かない。

    ここで扱うのは判定対象 candidate の live PR body と closingIssuesReferences から scope coverage / closing authority の意味を再導出すること。

    • PR body 全体の byte equality を追加 gate にしない
    • prose / verification-result-only な PR body 更新だけで不要停止しない
    • 一方で:
      • Issue body SHA
      • candidate head / merge OID
      • main SHA
        に対する既存 bounded freshness rebind は維持する

    新 API call、新 freshness classifier、新 harness を作らない。
    既存 producer が取得した live values を消費する説明にする。

    F. start_data_plane: false を failure と誤解しない

    canonical producer / routing を再実装しない。

    以下の既存 distinction を維持する:

    ordinary_dispatch_or_explicit_recovery
      -> start_data_plane: true / dispatch_step1
    
    existing_pr_resume
      -> start_data_plane: false / resume_existing_pr
    

    existing_pr_resume における start_data_plane: false は duplicate worker/worktree/new PR dispatch を抑止する正常系である。

    これを #2898 の都合で true に変更しない。

    G. AC7 Allowed Paths verification を false-green にしない

    git diff --name-only origin/main...HEAD の exit 0 だけを Allowed Paths PASS と扱わない。

    current repository の既存
    ALLOWED_PATHS_GATE_RESULT_V1
    および PR diff review を authority として利用する。

    新しい Allowed Paths checker を作らない。

    H. AC8 quality gates を contract と一致させる

    Issue が要求する quality gates と VC を一致させる。

    最低限:

    • pnpm typecheck
    • pnpm lint
    • pnpm test
    • pnpm build
    • repository の current canonical 日本語チェック

    日本語チェックの exact command は current repo の SSOT から解決する。推測で command 名を作らない。

    required CI / branch-protection checks は current live state を別途確認し、terminal readiness ではそれらも current-head で評価する。

    I. Runtime Verification Applicability を current policy に合わせる

    単に「Markdown/docs-only だから not_applicable」としない。

    docs/dev/extension-surface-runtime-policy.yaml の current
    skill-executable-semantics-unchanged
    を読み、その required evidence を満たす場合にのみ適用する。

    current policy では少なくとも:

    • 説明文 / comment / typo 修正のみ
    • 手順の実行順序が不変
    • 分岐条件が不変
    • output contract fields が不変
    • current-head diff evidence
    • owner evidence required

    という契約を確認する。

    本件では producer の既存挙動を文書化するだけであり、
    producer invocation / ordering / canonical action consumption / output contract を変えないことを current-head diff で示せるなら、この既存 exception を用いる。

    もし実際の diff が Agent の execution order / branching / output contract を変更しているなら、意味不変を捏造せず、current repository が定める既存 runtime verification route を使う。

    その場合でも #2898 専用の新しい harness / approval layer / exception framework は作らない。

    J. Required Design References を補強する

    少なくとも read-only reference として current:

    を contract から辿れる形にする。

    3. Contract repair 後に fresh readiness を確認する

    Issue update を行った場合、remote body を fresh readback した後、current repository-native contract review/preflight を実行する。

    古い snapshot / comment / local draft を authority にしない。

    Issue body が implementation-ready になったことを fresh evidence で確認してから impl-review-loop data-plane に進む。

    通常の advisory artifact drift を stop reason に昇格させない。current impl-review-loop の live Issue / tests / CI / PR review authority を優先する。

    4. Current impl-review-loop を実行する

    current HEAD の .claude/skills/impl-review-loop/SKILL.md と supporting steps を読み、そこに書かれた canonical procedure を実行する。

    過去会話やこの prompt に書かれた古い command/schema より current Skill が優先。

    target:

    • issue_number: 2898
    • human_context_comment_urls:
      • https://github.com/squne121/loop-protocol/issues/2898#issuecomment-5966267545

    current root-owned synchronous entry transition、landing disposition producer、pre-Step-1 action 等を散文で再実装しない。

    producer が返す canonical boolean/action をそのまま消費する。

    existing PR が見つかった場合

    duplicate branch / worktree / PR を作らない。

    canonical disposition が existing_pr_resume の場合:

    • existing PR を再利用
    • start_data_plane: false を failure とみなさない
    • new PR / duplicate worktree / duplicate Step-1 dispatch をしない
    • current canonical resume path に進む

    no existing PR の場合

    current Skill が許可した場合のみ #2898 専用 worktree / branch を作り、通常 Step 1 に進む。

    foreign dirty worktree / unrelated branch / 他 task の未commit変更を変更・削除・stash しない。

    5. Repository implementation scope

    Issue contract repair 後も repository file の implementation scope は原則として次の2ファイルだけ:

    • .claude/skills/impl-review-loop/steps/preparation.md
    • .claude/skills/impl-review-loop/SKILL.md

    producer / tests を read-only reference とする。

    OWNER comment の要求を理由に:

    • implementation_landed_evidence.py
    • existing tests
    • schema
    • registry
    • generic override
    • approval layer
      -新 harness

    へ scope を広げない。

    本当に2ファイル外の変更が不可避なら、勝手に scope を吸収せず current stop/escalation contract に従う。

    6. 文書実装方針

    同じ長大な条件式を2ファイルに複製しない。

    基本構成:

    • preparation.md: canonical detailed explanation
    • SKILL.md: entrypoint で必要な要点 + いつ preparation.md の該当節を読むか

    ただし SKILL.md からも最低限:

    が理解できるようにする。

    「identity mismatch の例外が2つ」とは書かない。
    「今後も carve-out は必ず2個」と数を固定しない。

    7. SubAgent execution requirements

    current impl-review-loop が指定する SubAgent を必ず使用する。

    最低限:

    • implementation-worker
    • test-runner
    • pr-reviewer

    Issue contract repair で current workflow が要求する場合は issue-editor 等も使用してよい。

    各 delegation に必ず含めるもの

    SubAgent が親 thread の暗黙 context を知っていると仮定しない。

    各 task prompt に明示する:

    • task
    • target Issue / PR
    • current exact HEAD / branch / worktree
    • authority:
      • live Issue
      • OWNER human-context URL
      • current Skill / Agent contract
    • Allowed Paths
    • In Scope / Out of Scope
    • applicable AC / VC
    • required evidence
    • stop conditions
    • expected structured output
    • downstream consumer が必要とする binding identifiers / HEAD SHA

    Completion discipline

    SubAgent を dispatch しただけで完了扱いしない。

    • running / background task の終了を確認する
    • final result を実際に取得する
    • partial / max-turn result は terminal success と扱わない
    • current Skill が resume を許すなら必要に応じて同じ SubAgent を resume する
    • final structured result を LOOP_STATE / downstream step へ反映してから次工程へ進む

    dependency のある:
    implementation → verification → review
    を順序無視で並列化しない。

    独立した read-only investigation だけは current workflow が許す範囲で並列化してよい。

    canonical root-level SubAgent dispatch は実行するが、current Issue の禁止に反する非canonical nested delegation chain を追加しない。

    8. Verification

    implementation-worker の自己申告だけで PASS にしない。

    current test-runner / VC adjudication contract を使用する。

    少なくとも corrected Issue contract が要求する:

    • negative phrase removal checks
    • producer semantics との review-time comparison
    • Allowed Paths gate
    • runtime applicability evidence
    • full repository quality gates
    • Japanese check

    を current PR HEAD で取得する。

    baseline-expect が付く VC は baseline semantics と post-fix semantics を混同しない。

    docs-only だからという理由で required gates を省略しない一方、同一 gate を #2898 専用 harness として重複実装しない。

    9. Review / fix loop

    fresh PR HEAD に対して pr-reviewer を実行する。

    REQUEST_CHANGES が出た場合:

    • blocker を exact fix_delta として implementation-worker に渡す
    • scope 内で修正
    • commit / push
    • current HEAD を取り直す
    • test-runner を再実行
    • fresh HEAD で pr-reviewer を再実行

    通常の REQUEST_CHANGES は human stop ではない。

    以下も current route_loop_verdict_v2() / current Skill に従い、自動修復可能なら人間確認なしで継続する:

    • stale reviewed HEAD
    • BEHIND
    • ordinary test failure
    • ordinary required CI failure
    • Allowed Paths blocker が scope 内修正で解消可能な場合
    • BLOCKED / UNSTABLE / DRAFT 等、current Skill が warning/re-evaluation と定める状態

    verdict: APPROVE 単独を terminal success としない。

    current Skill が要求する:

    • fresh reviewed HEAD
    • current live mergeability
    • blocker empty
    • VC/current-head binding
    • required CI / branch-protection state

    を terminal gate で確認する。

    canonical max iteration budget は守る。勝手に無限化しない。

    10. GitHub PR handling

    1 Issue = 1 PR を維持する。

    existing PR があれば原則再利用する。

    PR を新規作成する場合は current delivery rule に従い Draft を既定とする。

    PR body には current Issue contract と実 evidence に基づいて:

    • Issue linkage
    • Summary
    • AC mapping
    • verification results
    • Allowed Paths
    • runtime verification applicability / evidence
    • relevant limitations

    を記載する。

    stale evidence を current-head evidence としてコピーしない。

    current canonical workflow が Draft のまま human merge judgment に渡す契約なら、勝手に ready化しない。逆に current contract が ready transition を要求する場合だけそれに従う。

    11. 再発防止 Issue

    #2898 の implementation/review loop が terminal merge-ready state に到達した後、今回の defect class が再発しそうか評価する。

    特に確認する defect class:

    • producer の bounded candidate exclusion semantics が変わった際、SKILL.md / preparation.md の prose が追随せず drift する
    • detailed condition を複数ファイルへ重複記述することで同期漏れが再発する
    • VC が semantic requirement ではなく単語存在だけを検証し false-green になる

    ただし、今回の preparation.md = detail / SKILL.md = concise navigation 化だけで再発要因が十分除去できるなら、新 Issue を機械的に作らない。

    残存する具体的 recurrence risk がある場合:

    1. repository の open / closed Issue を検索する
    2. 同一 root cause / dedupe key / follow-up が既に存在すれば新規作成しない
    3. 存在しなければ separate follow-up GitHub Issue を作る
    4. 実装: impl-review-loop の landing disposition prose を producer の現行 bounded carve-out 群へ同期する #2898 の implementation scope へ吸収しない
    5. evidence を明記する
    6. 大きな generic framework ではなく、最小の repository-native prevention を提案する

    候補となる prevention は、evidence がある場合のみ:

    • producer contract change 時に prose ownership / synchronization を確認する focused regression
    • authoring rule / current existing checker の小規模拡張
    • detailed semantics の SSOT 集約

    とする。

    新しい permanent approval layer、generic schema、daemon、wrapper stack、巨大な docs lint framework は、具体的 failure class を解決しない限り作らない。

    この follow-up Issue 作成はユーザーが明示的に承認している。
    ただし #2898 の completion を妨げない separate post-loop action とする。

    12. Stop boundaries

    通常の review/test/CI failure では止まらない。

    次のみ current canonical contract に従って停止・escalate する:

    • actual destructive operation が必要
    • secret / credential の取得・変更・公開が必要
    • force push / history rewrite が必要
    • live human comment に明示的な STOP / human judgment directive がある
    • actual Git conflict が canonical runbook で人間判断を要求
    • irreconcilable scope conflict
    • 実装: impl-review-loop の landing disposition prose を producer の現行 bounded carve-out 群へ同期する #2898 の Allowed Paths 外変更が completion に不可避
    • producer / tests の挙動自体を変えないと Issue を成立させられない
    • current policy 上 genuine runtime change で、既存 verification routeでも判断不能
    • evidence integrity を維持できない
    • canonical max_iterations 到達
    • current repository contract が明示する genuine human_judgment_required

    SubAgent の単なる human_review_required: true 自己申告だけを stop authority にしない。current impl-review-loop の routing rules を使用する。

    13. Terminal condition

    以下を満たすまで「完了」と報告しない:

    • Issue 実装: impl-review-loop の landing disposition prose を producer の現行 bounded carve-out 群へ同期する #2898 contract が OWNER comment と整合
    • remote readback 済み
    • implementation diff が corrected Allowed Paths 内
    • current VC / gates PASS
    • test-runner の final result を取得済み
    • fresh HEAD で pr-reviewer の final result を取得済み
    • review blockers 解消済み
    • current required CI / mergeability を canonical terminal gate で評価済み
    • stale HEAD ではない
    • existing/open PR の current exact HEAD を報告可能
    • recurrence Issue の要否を dedupe 検討済み
    • 必要なら follow-up Issue を作成済み

    実 merge / auto-merge は行わない。

    14. Final report

    最後に簡潔に次を報告する:

    調査・計画だけで終了せず、上記 terminal state まで可能な作業を現在の session 内で実行すること。

    この形なら、指定コメントの「まず Issue 検証契約を直す」を飛ばさず、同時に impl-review-loop の canonical control-plane を上書きしません。特に existing_pr_resume → start_data_plane:false を誤って再開失敗扱いしない点と、SubAgent の完了待ちを明示しています。

  4. squne121 commented on Oct 3, 2026

    @squne121
    OwnerAuthor

    Issue 契約修正の途中停止報告(人間判断待ち)

    OWNER の REQUEST_CHANGES(issuecomment-5966267545)を反映した修正案を作成し、edit-issue の controlled route に渡す前の static readiness(contract_readiness_check.py --mode static)を実行しました。結果は needs_fix で、Issue 本文は未更新です(live body sha256 は変更なし)。

    解消できなかった点(本文の形式修正では直せない)

    1. EXTSURF001: Allowed Paths の SKILL.md が skill-invocation-procedure-or-contract-change 等(default_decision: immediate)に該当し、issue-time の判定は declared_rank < final_rank なら needs_fix です。decision: not_applicable では、skill-executable-semantics-unchanged を理由欄に書いても通りません(この例外は human_evidence_required / approval_authority: owner で、readiness 側では評価されない)。
    2. RUNTIMEASSERT001: decision: immediate に変えると、3 件の runtime_assertion_bindings と runtime-verification タグ付き AC、それを参照する VC が必須です。既存 route(run_worktree_agent_runtime_smoke.py --mode structured)には fixture(prompt / output schema)が要りますが、再利用できる既存 fixture はなく、新規ファイルは Allowed Paths の 2 ファイル外になります。

    判断をお願いしたい点

    • 案 A: Allowed Paths に runtime smoke 用 fixture(prompt と output schema)を追加し、immediate + bindings + runtime AC にする(実装: PR Closes/Refs 選択と post-merge OPEN close gate を整合する #2878 と同型。新 harness は作らない)。
    • 案 B: not_applicable(skill-executable-semantics-unchanged)を OWNER の PR-time evidence で適用できるよう、issue-time の readiness / policy 側の扱いを別 Issue で整える。
    • 案 C: その他、OWNER が指定する経路。

    なお AC1/AC2 の rg --files-without-match、AC7(semantic review)、AC8(ALLOWED_PATHS_GATE_RESULT_V1)、2 種の Bounded candidate exclusions の構成などは修正案に含めてあり、LP010(AC ごとに VC コメント 1 件)の調整だけ追加で必要です。判断をいただけ次第、同じ route で本文更新と impl-review-loop を再開します。

  5. squne121 commented on Oct 3, 2026

    @squne121
    OwnerAuthor

    GitHub の live state を確認しました。#2898 は現在も OPEN で本文は未更新、main は 013f11535b8737712787682c64903cc7ff9a59c7、PR #2894 は MERGED、#2893 は CLOSED、#2898 用 PR はまだありません。前回 run も issue-editor の static readiness が LP010 / EXTSURF001 / RUNTIMEASSERT001 で停止し、Issue mutation なしで終了しています。貼り付けたテキスト(1)

    推奨は 案Aの最小版です。現在の canonical readiness のまま #2898 を先へ進めるには immediate が必要です。案Bは #2290 で human-evidence exception の issue-time 自動証明を意図的に Out of Scope にした設計を変更する前提 Issue が必要になり、その PR を merge しない限り #2898 を解除できません。また output_contract_schema_fields_present の過剰要求については既に OPEN の #2775 が追跡しています。したがって今回は、既存 smoke runner を変更せず、runtime fixture 2ファイルだけを追加許可して #2898 を merge 直前まで進めるのが最短です。ただし、実在しない output contract を捏造しないことを hard boundary にします。

    以下を現在の auto mode Claude Code session にそのまま貼れます。

    repo: squne121/loop-protocol

    対象:

    あなたは既に auto mode で起動済みの interactive Claude Code session にいる。この既存 session を継続し、新しい Claude Code session は起動しない。

    permission bypass、--dangerously-skip-permissions、force push、history rewrite、実 merge、auto-merge は行わない。

    Goal

    Issue #2898 の途中停止から再開し、

    fresh inspect → Issue contract repair → controlled Issue update → fresh canonical intake → implementation → verification → PR review → fix/re-verify → fresh-head review → required CI / terminal gate

    を current repository-native workflow で実行し、人間が最終 merge 判断できる直前まで進める。

    調査・提案だけで終了しない。

    今回の人間判断 — Minimal A を採用する

    issuecomment-5966336318 の選択肢について、今回のユーザー指示を新しい human decision として扱う。

    案 A を、最小の scope 拡張で採用する。

    具体的には:

    1. Issue 実装: impl-review-loop の landing disposition prose を producer の現行 bounded carve-out 群へ同期する #2898 の Runtime Verification Applicability を decision: immediate に修正してよい。
    2. current hard selector が要求する runtime assertion 3 件を 1 個の runtime AC に binding してよい。
    3. 既存の scripts/agent-ops/run_worktree_agent_runtime_smoke.py --mode structured を使用してよい。
    4. runtime smoke を成立させるため、現在の Allowed Paths 2 ファイルに加えて、既存の .claude/skills/impl-review-loop/tests/fixtures/ 配下に prompt fixture と output-schema fixture の最大 2 ファイルだけを追加することを明示的に承認する。
    5. 新 runner、新 harness、新 approval layer、新 schema registry、新 daemon は作らない。
    6. implementation_landed_evidence.py、既存 production scripts、既存 test implementation は 実装: impl-review-loop の landing disposition prose を producer の現行 bounded carve-out 群へ同期する #2898 のために変更しない。
    7. fixture 2 ファイル以外へ scope を広げる必要が出た場合は、自動的に scope を拡張せず current canonical stop rule に従う。

    推奨 fixture 名は、current repository convention に反しなければ例えば:

    • .claude/skills/impl-review-loop/tests/fixtures/issue_2898_landing_disposition_runtime_smoke.prompt.md
    • .claude/skills/impl-review-loop/tests/fixtures/issue_2898_landing_disposition_runtime_smoke.output.schema.json

    とする。current convention により別名が適切なら変更してよいが、追加 fixture は原則この 2 ファイルに限定する。

    この判断は、元 OWNER comment の「文書2ファイルだけ」という scope を、canonical readiness を満たすための smoke fixture 2 ファイルに限って明示的に上書きする。production implementation scope を広げる承認ではない。

    0. Fresh state を必ず取り直す

    前回 session の SHA、tmp file、readiness result を authority として blindly reuse しない。

    最低限 fresh に確認する:

    前回の tmp/issue_2898_new.md 等が残っていても、fresh remote body と current main に照合してから再利用する。

    1. Issue contract repair

    まず Issue #2898 の契約を修正する。実装を先行しない。

    OWNER REQUEST_CHANGES と前回作成済み candidate の有用な部分を保持しつつ、少なくとも以下を反映する。

    Current Validated Scope

    Semantic contract

    単純に「identity mismatch の例外が2つ」と書かない。

    Bounded candidate exclusions として少なくとも:

    を別分類として説明する。

    #2893 側は current producer と照合し:

    • valid same-Issue marker
    • main_ancestry.verified
    • main_ancestry.reachable
    • later_scope_expansion is True
    • exact_coverage is not True
    • historical candidates 除外後、残りが ちょうど1件
    • その1件が fresh current exact open/draft

    という bounded condition を弱めない。

    また:

    を記述する。

    Decision-time semantic refresh

    body を曖昧に書かない。

    current producer と一致するよう:

    • live PR body
    • closingIssuesReferences

    から scope coverage / closing authority の意味を再導出すること

    • PR body byte equality を新しい gate にしないこと
    • prose / verification-result のみの PR body update で不要停止しないこと
    • Issue body SHA / candidate head-or-merge OID / main SHA の既存 bounded freshness rebind は維持すること

    を両文書から読み取れるようにする。

    詳細は preparation.md、SKILL.md は concise summary + 詳細節への navigation とし、長い条件式を二重 SSOT 化しない。

    2. Runtime Verification Applicability を immediate にする

    current policy/readiness が要求する canonical shape を current HEAD から読んで構成する。過去 Issue の YAML を盲目的にコピーしない。

    概念的には:

    decision: immediate
    applicable_acs: [AC<runtime>]
    execution_environment: ...
    skip_conditions: ...
    fallback_policy: ...
    artifact_requirements: ...
    runtime_assertion_bindings:
      - profile: skill-invocation-runtime-smoke
        assertion: procedure_steps_executed_in_declared_order
        ac: AC<runtime>
      - profile: skill-invocation-runtime-smoke
        assertion: output_contract_schema_fields_present
        ac: AC<runtime>
      - profile: subagent-lifecycle-causal-evidence-smoke
        assertion: subagent_start_stop_causal_evidence_correlated
        ac: AC<runtime>

    の current canonical equivalent とする。

    1 個の runtime AC で3 assertionを担えるなら、#2878 の current precedent と同型にまとめる。

    runtime AC には current grammar が要求する
    <!-- runtime-verification: true -->
    を付ける。

    重要: false evidence を作らない

    output_contract_schema_fields_present を満たすために、存在しない output contract を invent してはいけない。

    まず current:

    • IMPL_REVIEW_LOOP_RESULT_V1
    • steps/step-5-feedback-and-termination.md
    • validate_autonomy_policy_result.py
    • 既存 terminal result / validator

    を確認し、実在する output contract field だけから smoke 用 output schema を作る。

    current impl-review-loop に runtime smoke で正当に検証できる output contract が存在せず、fixture schema を捏造しないと RUNTIMEASSERT001 を通せない場合は、その事実を hard blocker として扱う。

    その場合:

    こと。

    3. Runtime smoke fixture

    current runner の既存 capability だけを使う。

    fixture は:

    とする。

    runtime VC は current accepted grammar の:

    • # AC<N>
    • # preflight-scope: runtime_only

    を使用する。

    実 runtime で少なくとも:

    1. current changed impl-review-loop Skill がロードされる
    2. smoke 対象 procedure の必要な ordered markers が宣言順で観測される
    3. current canonical output contract の必須 fields が実 output に存在する
    4. SubAgentStart/SubagentStop causal evidence が実際の delegation と相関する

    ことを証明する。

    単に prompt に marker を列挙して Agent に echo させただけの結果を semantic proof としない。

    既存 runner だけで安全かつ正直にこれを実証できない場合は、新 harness を作らず停止する。

    4. LP010 を正しく解消する

    前回 LP010 が検出した「AC7 / AC8 / AC9 に VC marker が無い」問題を解消する。

    current:

    • vc_contract_syntax.py
    • body validator
    • baseline_vc_preflight.py
    • recent accepted Issue precedent

    を確認し、各 AC に exactly one canonical # AC<N> VC marker を持たせる。

    semantic review / Allowed Paths review のような PR-time 判定は、current grammar が許す場合:

    # preflight-scope: pr_review_only

    を使う。

    推測で syntax を作らない。

    品質ゲートで複数 command が必要でも、同一 AC marker を重複させて LP010 を再発させない。current parser が受理する grouping を使う。

    5. AC / VC の最低構成

    番号は current candidate を最小変更で修正できるなら維持する。必要なら番号を整理してよい。

    意味として以下をカバーする:

    • 旧「bounded な例外が1つだけ」削除 — preparation.md
    • 同 — SKILL.md
    • Bounded candidate exclusions の detailed semantics
    • SKILL.md の concise summary + preparation.md reference
    • closing precedence
    • decision-time semantic refresh
    • producerとの semantic consistency — PR review
    • Allowed Paths — canonical ALLOWED_PATHS_GATE_RESULT_V1
    • runtime smoke — 3 hard assertions
    • repository quality gates + Japanese check

    AC1/AC2 の negative check は OWNER 指摘どおり rg --files-without-match --fixed-strings の current-supported formを使い、post-fix exit 0 になるようにする。

    git diff --name-only の exit 0 単独を Allowed Paths PASS と扱わない。

    6. Allowed Paths の今回の明示承認

    Issue contract の Allowed Paths を、必要最小限で次に更新してよい:

    • .claude/skills/impl-review-loop/steps/preparation.md
    • .claude/skills/impl-review-loop/SKILL.md
    • runtime smoke prompt fixture 1ファイル
    • runtime smoke output-schema fixture 1ファイル

    これ以外の production/test implementation path へ広げない。

    read-only reference としては producer、既存 tests、policy、runner 等を自由に参照してよい。

    7. controlled Issue update

    Issue body mutation は current .claude/skills/edit-issue/SKILL.md の controlled route を使用する。

    static readiness を fresh candidate に対して再実行する。

    needs_fix が body-author-fixable なら追加承認を求めず修正して再検証する。

    status: go を取得するまで Issue update を成功扱いしない。

    go 後:

    • current live body hash / updatedAt に bind
    • controlled Issue transaction
    • remote readback
    • expected body と remote body の一致確認

    まで行う。

    issue-editor SubAgent を使う場合、dispatch しただけで次へ進まない。terminal completion と final result を必ず受け取る。

    8. Issue 更新後、fresh impl-review-loop

    Issue body 更新後は stale な preparation result を再利用せず、fresh root-owned intake を実行する。

    current .claude/skills/impl-review-loop/SKILL.md の canonical procedure に従う。

    inspect → implement → verify → review → fix → re-verify → fresh review → terminal gate

    を実行する。

    既存 branch / worktree / PR が fresh discovery で見つかれば原則再利用し、重複作成しない。

    9. SubAgent 使用と completion discipline

    current Skill が要求する canonical root-level SubAgents を使用する:

    • implementation-worker
    • test-runner
    • pr-reviewer
    • 必要な current repository-native actor

    各 dispatch には暗黙 context に依存せず:

    • task
    • target Issue / PR / exact HEAD
    • authority / trusted comments
    • In Scope / Out of Scope
    • Allowed Paths
    • applicable AC / VC
    • required evidence
    • stop conditions
    • expected structured output

    を明示する。

    SubAgent を起動しただけで完了扱いしない。

    必ず:

    1. running/background 状態の終了を確認
    2. final result を取得
    3. partial / max-turn / interrupted result を terminal success と扱わない
    4. current Skill が resume を許すなら同じ task を適切に resume
    5. final structured result を downstream routing に反映

    してから次工程へ進む。

    dependency のある:

    implementation → verification → PR review

    を無秩序に並列化しない。

    独立 read-only investigation のみ必要なら並列化してよい。

    Issue の「nested SubAgent delegation」を禁止する stop conditionは、canonical root-level orchestration 自体を禁止する意味には解釈しない。非canonical nested delegation chain は追加しない。

    10. Verification

    implementation-worker の自己申告を PASS にしない。

    current test-runner / VC adjudication を使い、corrected contract の全 VC を current PR HEAD に binding する。

    最低限:

    • negative phrase removal
    • producer semantic review
    • Allowed Paths gate
    • runtime smoke
    • Japanese content check
    • pnpm typecheck
    • pnpm lint
    • pnpm test
    • pnpm build
    • current branch protection が要求する python-test
    • validate-generated-artifact
    • その他 current required checks

    を current-head evidence で評価する。

    branch protection / required checks は fresh live state を source of truth にする。

    11. Review / fix loop

    fresh PR HEAD に対して pr-reviewer を実行する。

    REQUEST_CHANGES は通常の fix loop として:

    • exact blocker を fix_delta 化
    • implementation-worker で修正
    • commit / push
    • fresh HEAD
    • test-runner
    • pr-reviewer

    を繰り返す。

    通常の test / CI failure、stale HEAD、BEHIND、scope 内で直せる Allowed Paths finding は追加承認を求めず current Skill の route で修復する。

    APPROVE 単独で完了扱いしない。

    current terminal gate で:

    • fresh reviewed HEAD
    • blockers empty
    • VC binding current
    • required CI
    • live mergeability
    • current Issue body binding

    を確認する。

    実 merge / auto-merge はしない。

    12. 再発防止

    今回の root cause について terminal merge-ready state 到達後に dedupe assessment を行う。

    必ず先に確認する:

    次の defect を区別する:

    A. output_contract_schema_fields_present の applicability 過剰要求
    → #2775 と同一 root cause なら新規 Issue を作らず #2775 を参照する。

    B. human_evidence_required / executable_or_prompt_semantics_unchanged 例外が issue-time readiness では一切適用不能で、valid docs/prose-only SKILL change が必ず runtime fixture を要求される deadlock
    → open / closed Issue を dedupe 検索する。

    B が:

    と evidence で確認できた場合だけ、separate follow-up Issue を起票する。

    follow-up は #2898 に吸収せず、例えば:

    再発防止: human_evidence_required runtime exception の issue-time / PR-time handoff deadlock を解消する

    程度の bounded outcome とし、

    • broad approval bypass
    • generic exemption registry
    • permanent approval layer
    • LLM semantic judge

    を新設する方向へ広げない。

    #2290 の historical Owner Decision と矛盾する変更が必要なら、その点を明記して human judgment が必要な follow-up とする。

    13. 明示的に承認する通常作業

    今回の依頼により、以下を追加の iteration ごとの承認なしで実行してよい:

    • live Issue / PR / comment / repo state の read
    • candidate Issue body の修正
    • static readiness の反復
    • controlled edit-issue
    • 上記4パスへの 実装: impl-review-loop の landing disposition prose を producer の現行 bounded carve-out 群へ同期する #2898 scope 拡張
    • runtime fixture 2ファイルの作成
    • existing runtime smoke runner の実行
    • Issue専用 branch/worktree の作成または再利用
    • Allowed Paths 内編集
    • commit / push
    • Draft PR 作成または既存 PR 更新
    • canonical PR body / Issue / PR comment mutation
    • implementation-worker / test-runner / pr-reviewer 等の canonical SubAgent dispatch
    • SubAgent completion 待ち・resume
    • VC / focused tests / full quality gates / required CI
    • REQUEST_CHANGES の自動修正
    • stale-head re-review
    • BEHIND の canonical update
    • fresh-head review
    • recurrence dedupe search
    • evidence に裏付けられた separate follow-up Issue の作成

    承認しないもの:

    • secret / credential 取得・変更・公開
    • permission bypass
    • force push / history rewrite
    • default branch direct push
    • destructive foreign cleanup
    • unrelated dirty work の変更・削除
    • 実 merge
    • auto-merge
    • current runner/harness の新設・汎用化
    • evidence fabrication

    14. Stop boundaries

    通常の test / review / CI failure では止まらない。

    次の場合だけ current canonical contract に従い停止する:

    • destructive operation が不可避
    • secret / credential 操作が必要
    • force push / history rewrite が必要
    • irreconcilable Git conflict
    • evidence integrity を維持できない
    • fixture 2ファイル以外の Allowed Paths 拡張が completion に不可避
    • current impl-review-loop に正当な output contract がなく、schema を捏造しないと runtime assertion を満たせない
    • current runner だけでは安全な no-mutation runtime smoke が不可能
    • producer / production behavior 自体を 実装: impl-review-loop の landing disposition prose を producer の現行 bounded carve-out 群へ同期する #2898 で変える必要がある
    • current canonical max_iterations 到達
    • live human instruction が明示的に STOP
    • repository contract が genuine human_judgment_required を要求

    SubAgent の単なる自己申告 human_review_required: true だけを stop authority にしない。current root routing rules に従う。

    15. Terminal condition

    以下を満たすまで「完了」と報告しない:

    • Issue 実装: impl-review-loop の landing disposition prose を producer の現行 bounded carve-out 群へ同期する #2898 contract repair 完了
    • static readiness go
    • controlled Issue update + remote readback 完了
    • implementation diff が corrected Allowed Paths 内
    • runtime smoke が false evidence なしで PASS
    • 全 VC / quality gates PASS
    • test-runner final result 取得済み
    • fresh HEAD の pr-reviewer final result 取得済み
    • review blockers 解消
    • required CI / branch protection current-head 判定済み
    • terminal gate 判定済み
    • stale HEAD でない
    • current PR exact HEAD を報告可能
    • recurrence dedupe assessment 済み
    • 必要なら follow-up Issue 作成済み
    • 実 merge / auto-merge を行っていない

    16. Final report

    最後に簡潔に報告する:

    現在の session で実行可能なところまで実際に進め、計画説明だけで終了しないこと。

    このプロンプトでは、runtime fixture の追加を明示承認しつつ、#2775 が指摘する「schema のない Skill に架空の output schema を作って通す」方向は拒否するようにしています。これが、現行 canonical gate を尊重しながら #2898 を最短で進める境界です。

  6. squne121 commented on Oct 3, 2026

    @squne121
    OwnerAuthor

    root-owned entry router audit

    route: stop
    reason: review_verdict_blocked

  7. squne121 commented on Oct 3, 2026

    @squne121
    OwnerAuthor

    root-owned entry router audit

    route: invoke_impl_review_loop
    reason: fresh_review_go_live_equality

  8. squne121 commented on Oct 3, 2026

    @squne121
    OwnerAuthor

    impl-review-loop: 完了報告

    • iteration: 0(修正ループなしで APPROVE)
    • verdict: APPROVE(reviewed head 0b49cbc7bc17f91976d541f86c72f94600dd970e、blockers なし)
    • route: approved(route_loop_verdict_v2() に reviewer verdict と live mergeability を渡して評価)
    • PR: https://github.com/squne121/loop-protocol/pull/2899(Draft のまま。人間がマージ判断)
    • 補足: pr_review_only の AC を含むため step4-adjudicate の gate は開かず、AC7 / AC8 / 日本語チェックは pr-reviewer が current head で検証した。step5-terminal-gate は使えなかったので、route_loop_verdict_v2() を直接評価した。
    • 次アクション: 人間レビュー → マージ → post-merge-cleanup

    以下は機械可読の終了結果であり、マーカーの直後に YAML を置く。

    IMPL_REVIEW_LOOP_RESULT_V1:
      schema_version: 1
      status: draft_pr_ready
      pr_url: "https://github.com/squne121/loop-protocol/pull/2899"
      head_sha: "0b49cbc7bc17f91976d541f86c72f94600dd970e"
      issue_number: 2898
      termination_reason: approved
      merge_ready: true
      iteration: 0
  9. added 2 commits that reference this issue on Oct 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent/implementerenhancementphase/implementation

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions