Skip to content

修正: impl-review-loop の独立VCを Step 4 起動前の current-head gate に接続する - #2312

Merged
squne121 merged 4 commits into
mainfrom
worktree-issue-88-vc-current-head-gate
Aug 23, 2026
Merged

squne121 merged 4 commits into
mainfrom
worktree-issue-88-vc-current-head-gate

Conversation

@squne121

@squne121 squne121 commented Aug 22, 2026 •

Copy link
Copy Markdown
Owner

概要

impl-review-loop の Step 4 (pr-reviewer) 起動直前に、独立実行 Issue VC の
current-head adjudication(VC_ADJUDICATION_RESULT_V1)を再照合する
fail-closed gate を接続し、TEST_VERDICT_MACHINE の PR コメント投稿を
diagnostics-only(旧経路として非規範化)にする。

背景

PR #2310 では、実装差分・Allowed Paths・required CI に問題がなかったにも
かかわらず、独立Issue VCがStep 4初回reviewer起動前に渡されなかったため、
同一headに対して不要な二重review(1. independent VC missing → REQUEST_CHANGES、
2. independent VC PASS追加後 → APPROVE)が発生した。

変更内容

  • .claude/skills/impl-review-loop/scripts/adjudicate_vc_result.py
  • .claude/skills/impl-review-loop/steps/step-4-pr-review.md
    • 「current-head gate」節を追加し、Step 4 起動直前の再照合手順と
      fail-closed 条件(adjudication missing/malformed、blocking true、
      head/body/command mismatch)を明記。
  • .claude/skills/impl-review-loop/steps/step-2-verification.md
  • .claude/skills/impl-review-loop/steps/context-protocol-and-guardrails.md
    • test-runner 出力の受け取り方を「gh pr view --json comments からの
      TEST_VERDICT 抽出」から「spawn_agent/list_agents の final result
      からの直接受け取り」へ更新(normal routing からの除去)。
  • .claude/skills/impl-review-loop/SKILL.md
    • Loop Structure 図に current-head gate の注記を追加。
  • .claude/agents/test-runner.md / .codex/agents/test-runner.toml
    • test-runner が PR へコメントを投稿しない read-only report contract を
      明示(Claude Code / Codex CLI 間で同一 semantic contract、AC11)。
  • .claude/skills/pr-review-judge/references/evidence-policy.md
    • TEST_VERDICT_MACHINE が diagnostics-only である旨を明記。
  • 新規テスト
    • .claude/skills/impl-review-loop/tests/test_step4_requires_current_vc.py
      (新規、AC1/AC4/AC7)
    • .claude/skills/impl-review-loop/tests/test_adjudicate_vc_result.py
      に AC2/AC3 の binding triple テストを追加
    • .claude/skills/impl-review-loop/tests/test_adjudicate_vc_result_non_regression_gate.py
      に AC5/AC6 の same-loop reuse / happy-path invocation count テストを追加

Verification Commands 実行結果(Issue #88 本文の記載通り、逐語実行)

# AC1/AC4/AC7
$ uv run --locked pytest .claude/skills/impl-review-loop/tests/test_step4_requires_current_vc.py -q
9 passed

# AC2/AC3
$ uv run --locked pytest .claude/skills/impl-review-loop/tests/test_adjudicate_vc_result.py -q
29 passed

# AC5/AC6
$ uv run --locked pytest .claude/skills/impl-review-loop/tests/test_adjudicate_vc_result_non_regression_gate.py -q
21 passed

# AC8
$ rg -q "投稿しない" .claude/agents/test-runner.md
exit 0 (match found)

# AC9
$ rg -c "TEST_VERDICT_MACHINE.*PR.*コメント" .claude/skills/impl-review-loop/steps/step-4-pr-review.md
0 matches / exit 1 (negative control: この文言が normal routing として残っていないことを確認する AC のため、0件が期待挙動)

# AC10
$ rg -q "diagnostics-only" .claude/skills/pr-review-judge/references/evidence-policy.md
exit 0 (match found)

# AC11
$ rg -q "投稿しない" .codex/agents/test-runner.toml
exit 0 (match found)

# AC12
$ rg -c "persistent ledger" .claude/skills/impl-review-loop/scripts/adjudicate_vc_result.py
4 matches / exit 0

追加で以下も実行し regression なしを確認:

$ uv run --locked ruff check .claude/skills/impl-review-loop/scripts/adjudicate_vc_result.py .claude/skills/impl-review-loop/tests/test_step4_requires_current_vc.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
All checks passed!

$ uv run --locked pytest .claude/skills/impl-review-loop/tests/ -q
576 passed, 2 deselected, 2 xfailed

$ uv run --locked pytest .claude/skills/gemini-cli-headless-delegation/tests/test_model_routing.py -q
24 passed

Runtime Verification Applicability(動作検証の適用判定)

decision: not_applicable(Issue本文の通り)。AC1〜AC12 は pytest fixture /
ruff / rg による静的・決定論的検証のみで完結する。

CI_TEST_PERFORMANCE_DECISION_V1(.codex/agents/test-runner.toml 変更に伴う advisory 対応)

CI_TEST_PERFORMANCE_DECISION_V1:
  schema: CI_TEST_PERFORMANCE_DECISION_V1
  issue_number: 88
  pr_number: null
  decision_scope: docs_only
  changed_paths:
    - .claude/agents/test-runner.md
    - .claude/skills/impl-review-loop/SKILL.md
    - .claude/skills/impl-review-loop/scripts/adjudicate_vc_result.py
    - .claude/skills/impl-review-loop/steps/context-protocol-and-guardrails.md
    - .claude/skills/impl-review-loop/steps/step-2-verification.md
    - .claude/skills/impl-review-loop/steps/step-4-pr-review.md
    - .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_step4_requires_current_vc.py
    - .claude/skills/pr-review-judge/references/evidence-policy.md
    - .codex/agents/test-runner.toml
  lane_classification:
    fast_static:
      applicable: false
      evidence: []
      required_commands: []
    python_unit:
      applicable: true
      evidence:
        - "3 new/updated pytest files under .claude/skills/impl-review-loop/tests/"
      required_commands:
        - "uv run --locked pytest .claude/skills/impl-review-loop/tests/test_step4_requires_current_vc.py -q"
        - "uv run --locked pytest .claude/skills/impl-review-loop/tests/test_adjudicate_vc_result.py -q"
        - "uv run --locked pytest .claude/skills/impl-review-loop/tests/test_adjudicate_vc_result_non_regression_gate.py -q"
    contract_artifact:
      applicable: false
      evidence: []
      required_commands: []
    integration:
      applicable: false
      evidence: []
      required_commands: []
  baseline_inputs:
    ci_runtime_baseline_v1_available: false
    run_count: 0
    p50_p95_ready: false
  artifact_consistency:
    ci_test_selection_v1_checked: false
    missing_pytest_args: []
  risk_flags:
    - "test-runner.toml/md changes are docs-only agent contract text; no new CI job or workflow change"
  reviewer_gate:
    approve_allowed: true
    required_evidence:
      - CI_CHECK_RUN_SCOPED
  follow_up_required: []

Safety Claim Matrix(安全性主張マトリクス)

本 PR は .claude/skills/** / .claude/agents/** / .codex/agents/** 配下(impl-review-loop の
routing gate ロジックを含む)を変更するため safety-sensitive 判定に該当する。

Claim Implemented Not controlled Evidence Follow-up
Step 4 (pr-reviewer) は current-head の non-stale・non-blocking VC_ADJUDICATION_RESULT_V1 が無い限り起動されない evaluate_step4_vc_gate() が Step 4 起動直前に head/body/command の binding triple を再照合し、いずれか mismatch なら invoke_pr_reviewer: False を fail-closed で返す この gate 関数自体を呼び出すかどうかは呼び出し側(impl-review-loop orchestrator)に委ねられており、本 PR は呼び出しを強制する新規 enforcing hook を追加していない(Issue #88 Required Design #9 / Out of Scope により意図的) test_step4_requires_current_vc.py(9 tests, AC1/AC4/AC7)、step-4-pr-review.md の current-head gate 節 不要。enforcing hook の追加は Issue #88 Stop Conditions で明示的に対象外
同一 binding tuple の adjudication 再利用は同一 root invocation 内に限定される(永続化しない) Step4AdjudicationCache は in-memory dict のみで実装し、プロセス終了で消える プロセス再起動をまたいだ再利用は行わない(意図的な非永続設計であり、persistent ledger は Issue #88 Out of Scope) test_adjudicate_vc_result_non_regression_gate.py(21 tests, AC5/AC6) 不要。persistent ledger は Issue #88 Out of Scope で明示的に対象外
test-runner(Claude Code .claude/agents/test-runner.md / Codex .codex/agents/test-runner.toml)は read-only report のみを返し、PR にコメントを投稿しない 両ファイルに「投稿しない」を明記し、Claude/Codex 間で同一 semantic contract を維持 この契約はエージェント instructions レベルの記述であり、本 PR は投稿そのものを技術的に禁止する enforcing hook を追加していない(既存の repo tool-permission 境界に委ねる) rg -q "投稿しない" .claude/agents/test-runner.md(AC8)、同 .codex/agents/test-runner.toml(AC11) 不要。enforcing hook 追加は Issue #88 Stop Conditions で明示的に対象外
TEST_VERDICT_MACHINE は diagnostics-only であり、approval / blocking / routing を左右しない evidence-policy.md に diagnostics-only を明記し、step-4-pr-review.md の normal flow から TEST_VERDICT comment 検索を除去 TEST_VERDICT_MACHINE の legacy parser/schema/materializer 自体の物理削除は行っていない(Issue #88 Out of Scope)。既存の下流 consumer が独自に legacy 経路を authoritative 扱いしていないかの全数監査は本 PR の範囲外 rg -q "diagnostics-only" evidence-policy.md(AC10)、step-4-pr-review.md の TEST_VERDICT comment 検索除去(AC9 negative control) 不要。legacy subsystem の物理削除は Issue #88 Out of Scope / Stop Conditions で明示的に対象外(必要になれば別 Issue へ分割)

Closes #88(Issue #88 を close する)

PR #2310 で独立Issue VCがStep 4初回reviewer起動前に渡されず、同一headに対して
不要な二重review(REQUEST_CHANGES→PASS追加後APPROVE)が発生した。

adjudicate_vc_result.py に evaluate_step4_vc_gate() / Step4AdjudicationCache
を追加し、既存の VC_ADJUDICATION_RESULT_V1 判定ロジックを再利用したまま、
current head SHA・Issue body SHA256・literal command SHA256 のいずれかが
drift すれば adjudication を stale として扱い、pr-reviewer を起動しない
fail-closed gate を Step 4 起動直前に接続した。同一 binding tuple の
valid adjudication は同一 root invocation 内で再利用し、test-runner の
二重実行を避ける(新規 persistent ledger・publisher・hook は追加しない)。

test-runner の contract を read-only report(PRコメント投稿なし)に統一し、
Claude Code(.claude/agents/test-runner.md)と Codex CLI
(.codex/agents/test-runner.toml)で同一 semantic contract を明記した。
evidence-policy.md には TEST_VERDICT_MACHINE が diagnostics-only である旨を
明記した。

Closes #88

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

Copy link
Copy Markdown
Contributor

Preview URL

✅ verified live assets: https://squne121.github.io/loop-protocol/pr-2312/

The preview will be removed when this PR is closed.

@squne121

Copy link
Copy Markdown
Owner Author

判定

REQUEST_CHANGES

レビュー対象は最新 head b79e72209337c397ba077c7e531c717ca23691ef。PR は Draft、GitHub 上は mergeable で、最新 head の ci、日本語チェック、hook integrity、manifest、Pages はすべて成功しています。したがって問題は赤い CI ではなく、Step 2 → Step 4 の実運用経路と、受入条件を再現していないテスト構造です。

方向性自体は妥当です。Issue #1856/PR #1870 で、通常レビューの authority は TEST_VERDICT_MACHINE から current-head CI と exact-head の独立 Issue VC へ切り替えられました。また、PR #2310 では独立 VC 不足による最初の REQUEST_CHANGES 後、同じ head に VC 証跡が追加されて再レビュー・承認となっており、Issue #88 の問題設定は実害に基づいています。


Findings

1. [P1] VC_ADJUDICATION_RESULT_V1 の保持・変換・gate 呼出しが実運用経路として接続されていない

Issue #88 Required Design #3–#4 は、Step 2 の adjudication を LOOP_STATE に保持し、Step 4 の pr-reviewer 起動直前に current binding と再照合することを要求しています。しかし、正本とされる LOOP_STATE YAML に VC_ADJUDICATION_RESULT_V1、binding tuple、verification task identity のいずれのフィールドもありません。PR が SKILL.md に追加したのはループ図の注記であり、state ownership は未定義のままです。context-protocol-and-guardrails.md は「LOOP_STATEへ反映」と書いているため、正本 schema と手順が split-brain になっています。

さらに、test-runner の final result は TEST_VERDICT_MACHINE/v2 と定義されていますが、adjudicate_vc_result.py の --current-vc-result-file 側は baseline_vc_preflight/v1、CONTRACT_REVIEW_RESULT_V1、CONTRACT_REVIEW_ONCE_RESULT_V1 しか受理しません。直接返却された test-runner report を authoritative current VC input に変換する canonical adapter がありません。TEST_VERDICT_MACHINE/v2 は別の --test-verdict-file 用であり、現在の evidence policy 上は diagnostics-only です。

Step 4 文書は evaluate_step4_vc_gate() を「使う」とだけ記載しています。ところが既存 CLI の main() は adjudication の生成しか行わず、gate のサブコマンド、JSON decision 出力、終了コード分岐、直後の spawn_agent への接続を持ちません。新規テストも production dispatch ではなく、ローカル関数で偽の spawn counter を増やす「lightweight in-process loop simulation」です。PR 本文の Safety Claim Matrix 自身も、「gate 関数を呼ぶかどうかは orchestrator に委ねる」と認めています。

Claude Code の SubAgent は独立した context で動き、結果だけを親へ返します。したがって、親 control-plane が返却値を正規化して state に保持し、明示的に次の dispatch を判断する必要があります。SubAgent 側の context や、名前だけ定義された Python 関数がその役割を代替することはありません。([Claude Platform Docs]1)

実害

最小修正

新しい hook、publisher、persistent ledger は不要です。

  1. 既存 LOOP_STATE に vc_adjudication と binding fields を追加する。
  2. test-runner direct report から既存 baseline_vc_preflight/v1 への deterministic adapter を定義するか、test-runner の authoritative direct report 自体を既存 schema に統一する。
  3. adjudicate_vc_result.py に step4-gate サブコマンドを追加し、単一 JSON と 0=invoke / 1=rerun verification / 2=malformed or runtime error を返す。
  4. Step 4 文書に、live PR head・Issue body・literal commands を取得して gate を実行し、その直後にだけ spawn する具体的コマンドを載せる。

同リポジトリの root_entry_router.py は、live fetch、current-run 判定、route、次 dispatch を root-owned transition にまとめる既存パターンです。これと同程度の薄い carrier で足ります。


2. [P1] Step4AdjudicationCache は実際の Step 2 をモデル化しておらず、二重実行と再試行不能の両方を起こす

実ワークフローでは Step 2 が先に test-runner を起動します。しかし追加された cache は、cache miss 時に run_test_runner_and_adjudicate() を呼ぶ API しか持たず、Step 2 で生成済みの adjudication を seed する API がありません。Step 2 文書にも cache の生成・保持・投入は記載されていません。

AC5/AC6 テストは fresh cache を作り、その最初の miss callback を「test-runner 1回」と数えています。これは本来その前に存在する Step 2 の test-runner 実行を省略した topology です。したがって、現在の記述どおり実装すると次のどちらかになります。

  1. Step 2 で test-runner を1回実行する。
  2. Step 4 で fresh cache が miss し、test-runner をもう1回実行する。

つまり「happy path は test-runner 1回」という AC6 を、実ワークフローではなく Step 4 内だけのシミュレーションで満たしたことにしています。

もう一つの独立した不具合として、get_or_run() は callback の戻り値を gate validation 前に無条件で cache します。同一 binding で最初の実行が malformed、blocking、environment-blocked、truncated だった場合も保存されます。その後、環境が直って再試行しても同じ key から失敗結果が返り、callback は再実行されません。Issue #88 が許可しているのは「valid adjudication」の再利用だけなので、AC5 に反します。

また、この cache は Python object のメモリにしか存在しません。CLI を複数回起動する構成では、各起動は新しい process であり、前回 object は残りません。長寿命 Python process を control-plane として保持する実装も本 PR にはありません。([Python documentation]2)

推奨修正

Step4AdjudicationCache は削除し、Issue が元々要求している LOOP_STATE の adjudication を再利用する方が簡単です。

  • Step 2 で1回だけ test-runner を実行。
  • valid な adjudication を LOOP_STATE に保持。
  • Step 4 では test-runner を起動せず、live binding に対して再照合だけ行う。
  • stale/invalid なら Step 2 へ戻して新しい test-runner task を起動。
  • invalid/blocking result は再利用対象にしない。

cache を残す場合でも、少なくとも Step 2 result の明示的な put_valid()、valid-only storage、invalid-first → fresh-second の回帰テストが必要です。


3. [P1] ordered command hashes を sort しており、Verification Commands の順序変更を stale と判定できない

Issue #88 の Binding Tuple と AC2 は ordered command hashes を要求しています。一方、実装は observed/expected の両方を sorted() して比較し、cache key も sorted tuple に変換します。Step 4 文書も「literal command SHA256 の集合」と記述し、Issue の ordered-list contract を set semantics へ弱めています。

例えば、以下は同じ集合ですが同じ検証ではありません。

1. fixture を生成
2. fixture を検証
1. fixture を検証
2. fixture を生成

現在の gate と cache は後者への変更を検出せず、前者の adjudication を再利用できます。追加テストも「hash 自体が別値になるケース」しか扱っておらず、並べ替えだけの negative control がありません。

修正

  • _step4_command_hashes() で sort しない。
  • step4_binding_key() も元の順序を保持する。
  • [A, B] の adjudication に対して expected [B, A] が command_mismatch になるテストを追加する。
  • 順序を本当に無視したいのであれば、コードだけでなく Issue の Binding Tuple/AC2 を明示的に set semantics へ変更する。

4. [P2] active test-runner prompt が no-comment 契約と矛盾したまま

.claude/agents/test-runner.md には同時に次の指示が残っています。

  • merge conflict 時に PR コメントに ... 明記
  • test-runner は PR へコメントを投稿しない
  • TEST_VERDICT_MACHINE marker は test-runner が投稿するコメントだけに含まれる正本 marker
  • 実際の PR 投稿は materializer/publisher を経由する

LLM にとっては active prompt 内の相互排他的な命令です。単に「投稿しない」という1文を追加しただけでは、AC8 の「active contract が統一されている」を満たしません。

Verification Command の rg -q "投稿しない" は、その文言が1件あれば成功します。矛盾する「PRコメントへ記載」「test-runner が投稿するコメント」という既存文言が残っていても green です。AC9 も Step 4 文書しか検索せず、実際に矛盾が残る active test-runner prompt を対象にしていません。PR 本文の検証結果はこの false positive をそのまま PASS としています。

Codex 側も「コメントしない」という1行は追加されていますが、Claude 側の詳細な TEST_VERDICT_MACHINE/v2、identity fields、command binding、PASS/FAIL/SKIP 条件と同一の canonical contract を参照していません。したがって、同じ文言の存在だけでは AC11 の semantic parity を証明していません。

修正

  • PR コメントに明記 を read-only report に明記 に変更。
  • marker 説明を「呼び出し元へ返す report の識別 marker」に変更。
  • materializer/publisher の説明は legacy diagnostics compatibility path と明示し、normal routing では起動しないと記載。
  • Claude/Codex の両 agent から同一 canonical output contract ファイルを参照させる。
  • active agent files 全体に対する negative test を追加する。

新しい permission hook は不要です。矛盾した prompt を整理するだけで十分です。


5. [P2] malformed 判定が不十分で、内部不整合 payload が gate を開ける

evaluate_step4_vc_gate() が確認するのは概ね次だけです。

  • schema 名
  • per_ac と source_integrity の存在
  • top-level blocking is False
    -限定された per_ac.status
  • head/body/command hashes

一方、既存 result には schema_version、errors、rerun_required、source_integrity.evidence_complete、source_integrity.evidence_fresh、各 per_ac.blocking もありますが、gate は確認しません。

例えば以下のような内部矛盾 payload でも、head/body/hash が一致すれば gate が開きます。

schema: VC_ADJUDICATION_RESULT_V1
schema_version: 999
blocking: false
rerun_required: true
errors: [stdout_budget_exceeded]
source_integrity:
  evidence_complete: false
  evidence_fresh: false
per_ac:
  - status: pass
    blocking: true

通常 producer が常に整合した結果を返す限り発生確率は低いため P2 としました。ただし、今回は SubAgent final result を会話履歴経由で root が parse・再保持する設計なので、malformed fail-closed を掲げるなら整合性確認は必要です。

また Issue の Binding Tuple は repository/issue number/PR number を含みますが、実装の key は head/body/commands だけです。単一 target に固定された root invocation という前提なら実害は小さいため、重い identity harness を追加する必要はありません。ただし、その前提を invariant として明記するか、既存 tuple に合わせる必要があります。

最小限の追加チェック

schema_version == 1
errors == []
rerun_required is false
evidence_complete is true
evidence_fresh is true
all(per_ac.blocking is false)

JSON Schema、署名、digest authority の追加は不要です。


テスト/検証に対する評価

576 passed と全 CI green は確認できますが、主要 AC のテストが実 control-plane ではなく「同じ Python process 内の fake loop」であるため、green は production routing の成立を示していません。特に integration.applicable: false としながら、PR の主目的は Step 2 と Step 4 の integration 修正です。

一方で、Claude Code を実際に起動する重い live canary や enforcing hook までは不要です。以下の1本の deterministic integration test で十分です。

fake live Issue/PR transport
  → test-runner final report fixture
  → canonical adapter
  → VC adjudication
  → Step 4 live rebind
  → spawn callback count

最低限、次を検証すべきです。

  • happy path: test-runner 1、reviewer 1
  • missing/blocking: reviewer 0
  • invalid-first → retry-success: test-runner 2、reviewer 1
  • command reorder: reviewer 0
  • head drift: reviewer 0
  • same valid binding: test-runner再実行なし

なお、AC12 の rg -c "persistent ledger" で4件ヒットしたことを「persistent ledger を追加していない証拠」とする検証は成立していません。これは単に説明コメント内の語句を数えているだけです。


推奨する最小修正着地点

  1. LOOP_STATE に adjudication と binding を正式追加する。
  2. test-runner direct report → authoritative current VC payload の変換を一本化する。
  3. 既存 adjudicator に root-owned step4-gate entrypoint を追加する。
  4. Step4AdjudicationCache は削除し、valid な LOOP_STATE result を再照合して再利用する。
  5. command hash の順序を保持する。
  6. active test-runner prompt の comment 契約矛盾を除去する。
  7. 実際の Step 2 → gate → reviewer callback を通す小さな integration test を追加する。

この修正範囲なら、新規 persistent ledger、publisher、authorization packet、hook、GitHub comment readback は不要です。個人開発のワークフローを重くせず、今回必要な「無駄な初回レビューを防ぐ」という目的だけを決定論的に満たせます。


評価できる点

verdict: REQUEST_CHANGES
reviewed_head_sha: b79e72209337c397ba077c7e531c717ca23691ef
blockers:
  - Step 2 adjudication の canonical LOOP_STATE 保持と Step 4 production carrier が未実装
  - Step4AdjudicationCache が実際の Step 2 topology をモデル化せず、二重実行と invalid-result 固定化を起こす
  - ordered command hash list を sort し、command reorder drift を受理する
warnings:
  - active test-runner prompt に PR comment 契約の矛盾が残る
  - malformed adjudication の整合性チェックが不足
  - AC8/AC9/AC12 の grep verification が受入条件を十分に検証していない

…P_STATE ベースに再設計する (#88)

- VC_ADJUDICATION_RESULT_V1 を LOOP_STATE.vc_adjudication へ永続化し、TEST_VERDICT_MACHINE/v2 -> baseline_vc_preflight/v1 の canonical adapter (adapt subcommand) と step4-gate CLI subcommand (exit 0/1/2) を実運用経路へ接続する
- 各プロセス呼び出し間で状態が残らない Step4AdjudicationCache (in-memory object) を廃止し、LOOP_STATE 経由の再利用へ置き換える
- ordered command hashes の照合を sorted 比較から順序保持比較へ修正し、reorder-only の binding を stale として検出する negative test を追加する
- test-runner.md の read-only report 契約と矛盾する「PRコメントに明記」等の文言を修正する
- evaluate_step4_vc_gate() に schema_version / errors / rerun_required / evidence_complete / evidence_fresh の malformed 判定を追加する

Co-Authored-By: Claude Sonnet 5 <[email protected]>
@squne121
squne121 marked this pull request as ready for review August 23, 2026 03:41
@squne121
squne121 merged commit 5f508ef into main Aug 23, 2026
42 checks passed
@squne121
squne121 deleted the worktree-issue-88-vc-current-head-gate branch August 23, 2026 03:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

修正: impl-review-loop の独立VCを Step 4 起動前の current-head gate に接続し TEST_VERDICT 旧経路を非規範化する

1 participant