Repository navigation
feat(impl-review-loop): add VC adjudication artifact - #1250
Conversation
Preview URLPreview removed (PR #1250 closed). |
TEST_VERDICT:
result: FAIL
mergeable: MERGEABLE
merge_state_status: BLOCKED
branch_behind_main: false
baseline_only: false
verification_commands_pass: 7
verification_commands_fail: 0
verification_skipped_count: 0
runtime_ac_results: []検証結果レポートIssue #1115: VC failure adjudicator pre-existing out-of-scope
総合判定
FAIL / SKIP 詳細
|
squne121
left a comment
There was a problem hiding this comment.
LOOP_VERDICT_V2
verdict: REQUEST_CHANGES
reviewed_head_sha: "3f56617fa43b5ccc4a0e2c2a990029baf4f3b396"
merge_ready: false
mergeability:
mergeable: "MERGEABLE"
merge_state_status: "CLEAN"
blockers:
- "TEST_VERDICT_MACHINE evidence is stale for the current head: https://github.com/squne121/loop-protocol/pull/1250#issuecomment-4843212232 was posted at 2026-06-30T12:07:19Z, but reviewed_head_sha 3f56617fa43b5ccc4a0e2c2a990029baf4f3b396 was created at 2026-06-30T12:14:18Z. Current-head VC evidence is missing, so approve must fail closed."
- "`.claude/skills/impl-review-loop/scripts/adjudicate_vc_result.py` uses literal/prefix path comparison for changed_paths and allowed_paths relevance, while the canonical allowed-paths matcher uses matcher v2 glob semantics (`*` / `**`). Contracts such as `src/**` or `.claude/skills/**` can therefore be misclassified as `out_of_scope_fail` instead of `regression_fail`, which violates Issue #1115 AC3/AC4."
required_auto_actions: []
auto_fix_applied: []
follow_up_issue_requests: []
allowed_paths_gate:
status: ok
allowed_paths_gate_source: review_subagent
TEST_VERDICT:
result: PASS
head_sha: 3e0a398aed6ca1e5220afc187e44ab37966d1303
mergeable: MERGEABLE
merge_state_status: CLEAN
branch_behind_main: false
baseline_only: false
verification_commands_pass: 7
verification_commands_fail: 0
verification_skipped_count: 0
runtime_ac_results:
- ac: AC1
command: "test -f .claude/skills/impl-review-loop/scripts/adjudicate_vc_result.py"
exit_code: 0
status: pass
fallback_detected: false
artifact_present: not_required
human_review_required: false
stop_condition_triggered: false
notes: "script present; current head matches PR head"
- ac: AC2
command: "rg -n \"test_no_diff_same_baseline_failure_is_pre_existing_nonblocking\" .claude/skills/impl-review-loop/tests/"
exit_code: 0
status: pass
fallback_detected: false
artifact_present: not_required
human_review_required: false
stop_condition_triggered: false
notes: "matched .claude/skills/impl-review-loop/tests/test_adjudicate_vc_result.py:67"
- ac: AC3
command: "rg -n \"test_out_of_scope_requires_diff_and_failure_key_evidence\" .claude/skills/impl-review-loop/tests/"
exit_code: 0
status: pass
fallback_detected: false
artifact_present: not_required
human_review_required: false
stop_condition_triggered: false
notes: "matched .claude/skills/impl-review-loop/tests/test_adjudicate_vc_result.py:100"
- ac: AC4
command: "rg -n \"test_diff_related_failure_is_regression_blocking\" .claude/skills/impl-review-loop/tests/"
exit_code: 0
status: pass
fallback_detected: false
artifact_present: not_required
human_review_required: false
stop_condition_triggered: false
notes: "matched .claude/skills/impl-review-loop/tests/test_adjudicate_vc_result.py:124"
- ac: AC5
command: "rg -n \"VC_ADJUDICATION_RESULT_V1\\\\.overall_status.*blocking\" .claude/skills/impl-review-loop/steps/step-2-verification.md"
exit_code: 0
status: pass
fallback_detected: false
artifact_present: not_required
human_review_required: false
stop_condition_triggered: false
notes: "matched .claude/skills/impl-review-loop/steps/step-2-verification.md:41"
- ac: AC6
command: "rg -n \"test_full_stdout_stderr_only_in_private_artifact\" .claude/skills/impl-review-loop/tests/"
exit_code: 0
status: pass
fallback_detected: false
artifact_present: not_required
human_review_required: false
stop_condition_triggered: false
notes: "matched .claude/skills/impl-review-loop/tests/test_adjudicate_vc_result.py:199"
- ac: AC7
command: "rg -n \"test_pytest_exit_5_is_not_regression_fail\" .claude/skills/impl-review-loop/tests/"
exit_code: 0
status: pass
fallback_detected: false
artifact_present: not_required
human_review_required: false
stop_condition_triggered: false
notes: "matched .claude/skills/impl-review-loop/tests/test_adjudicate_vc_result.py:182"検証結果レポートIssue #1115: VC failure adjudicator pre-existing out-of-scope
総合判定
|
squne121
left a comment
There was a problem hiding this comment.
Verdict: APPROVE
Mergeability
- mergeable=
MERGEABLE, merge_state_status=CLEAN
Evidence Check
- AC coverage: PR 本文の
## 受け入れ条件の達成状況で AC1-AC7 がすべて根拠付きで充足されています。 - Allowed Paths: 変更ファイルは
.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/tests/test_adjudicate_vc_result.py,docs/dev/agent-run-report.mdの 4 件のみで、Issue #1115 の Allowed Paths 内です。 - CI Verification: required checks は current head
3e0a398aed6ca1e5220afc187e44ab37966d1303で通過しています。 - 検証コマンド結果:
TEST_VERDICT_MACHINEの latest comment が current head 一致、verification_commands_pass=7,verification_commands_fail=0,verification_skipped_count=0です。
Blockers
- なし
Non-blockers
- なし
LOOP_VERDICT_V2
verdict: APPROVE
reviewed_head_sha: "3e0a398aed6ca1e5220afc187e44ab37966d1303"
merge_ready: true
mergeability:
mergeable: "MERGEABLE"
merge_state_status: "CLEAN"
blockers: []
required_auto_actions: []
auto_fix_applied: []
follow_up_issue_requests: []
allowed_paths_gate:
status: ok
allowed_paths_gate_source: review_subagent
判定: REQUEST_CHANGESこのPRは方向性自体は正しいですが、現状の実装は fail-closed artifact としてまだ信用できません。特に、current head に対する検証証跡が stale に見える点、compact JSON がサイズ制限で壊れる点、 確認した主な材料は、PR #1250本文・コメント、Issue #1115本文とオーナーコメント、関連PR #980、 Blocker 1: current head に対する TEST_VERDICT / APPROVE 証跡が stalePRメタデータ上の現在 head は これは過去レビューで既に blocker とされた stale evidence 問題の再発です。そのレビューは、検証コメントが reviewed head より古い場合は current-head VC evidence missing として fail-closed すべきだと明示していました。 修正要求: Blocker 2:
|
9dc3c67 to
3e0a398
Compare
TEST_VERDICT:
result: PASS
head_sha: c501c7ece2d3fa472d17a66ec401c14a328ec58e
mergeable: MERGEABLE
merge_state_status: CLEAN
branch_behind_main: false
baseline_only: false
verification_commands_pass: 7
verification_commands_fail: 0
verification_skipped_count: 0
runtime_ac_results:
- ac: AC1
command: "test -f .claude/skills/impl-review-loop/scripts/adjudicate_vc_result.py"
exit_code: 0
status: pass
fallback_detected: false
artifact_present: not_required
human_review_required: false
stop_condition_triggered: false
notes: "script present; current head matches PR head"
- ac: AC2
command: "rg -n \"test_no_diff_same_baseline_failure_is_pre_existing_nonblocking\" .claude/skills/impl-review-loop/tests/"
exit_code: 0
status: pass
fallback_detected: false
artifact_present: not_required
human_review_required: false
stop_condition_triggered: false
notes: "matched .claude/skills/impl-review-loop/tests/test_adjudicate_vc_result.py:86"
- ac: AC3
command: "rg -n \"test_out_of_scope_requires_diff_and_failure_key_evidence\" .claude/skills/impl-review-loop/tests/"
exit_code: 0
status: pass
fallback_detected: false
artifact_present: not_required
human_review_required: false
stop_condition_triggered: false
notes: "matched .claude/skills/impl-review-loop/tests/test_adjudicate_vc_result.py:277"
- ac: AC4
command: "rg -n \"test_diff_related_failure_is_regression_blocking\" .claude/skills/impl-review-loop/tests/"
exit_code: 0
status: pass
fallback_detected: false
artifact_present: not_required
human_review_required: false
stop_condition_triggered: false
notes: "matched .claude/skills/impl-review-loop/tests/test_adjudicate_vc_result.py:139"
- ac: AC5
command: "rg -n \"VC_ADJUDICATION_RESULT_V1\\\\.overall_status.*blocking\" .claude/skills/impl-review-loop/steps/step-2-verification.md"
exit_code: 0
status: pass
fallback_detected: false
artifact_present: not_required
human_review_required: false
stop_condition_triggered: false
notes: "matched .claude/skills/impl-review-loop/steps/step-2-verification.md:39"
- ac: AC6
command: "rg -n \"test_full_stdout_stderr_only_in_private_artifact\" .claude/skills/impl-review-loop/tests/"
exit_code: 0
status: pass
fallback_detected: false
artifact_present: not_required
human_review_required: false
stop_condition_triggered: false
notes: "matched .claude/skills/impl-review-loop/tests/test_adjudicate_vc_result.py:339"
- ac: AC7
command: "rg -n \"test_pytest_exit_5_is_not_regression_fail\" .claude/skills/impl-review-loop/tests/"
exit_code: 0
status: pass
fallback_detected: false
artifact_present: not_required
human_review_required: false
stop_condition_triggered: false
notes: "matched .claude/skills/impl-review-loop/tests/test_adjudicate_vc_result.py:204"検証結果レポートIssue #1115: VC failure adjudicator pre-existing out-of-scope
総合判定
|
squne121
left a comment
There was a problem hiding this comment.
Verdict: APPROVE
Mergeability
- mergeable=
MERGEABLE, merge_state_status=CLEAN
Evidence Check
- AC coverage: PR 本文の
## 受け入れ条件の達成状況で AC1-AC7 が根拠付きで充足されています。 - Allowed Paths: PR diff は
.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/tests/test_adjudicate_vc_result.py,docs/dev/agent-run-report.mdの契約内に収まっています。 - CI Verification: current head
c501c7ece2d3fa472d17a66ec401c14a328ec58eで required checks は13 passed / 0 failedです。 - 検証コマンド結果: latest
TEST_VERDICT_MACHINEは current head 一致でverification_commands_pass=7,verification_commands_fail=0,verification_skipped_count=0です。
Blockers
- なし
Non-blockers
- なし
LOOP_VERDICT_V2
verdict: APPROVE
reviewed_head_sha: "c501c7ece2d3fa472d17a66ec401c14a328ec58e"
merge_ready: true
mergeability:
mergeable: "MERGEABLE"
merge_state_status: "CLEAN"
blockers: []
required_auto_actions: []
auto_fix_applied: []
follow_up_issue_requests: []
allowed_paths_gate:
status: ok
allowed_paths_gate_source: review_subagent
Summary
VC_ADJUDICATION_RESULT_V1を返すadjudicate_vc_result.pyを追加し、baseline/current/diff/allowed paths の証跡からpre_existing_fail/out_of_scope_fail/regression_fail/environment_blocked/indeterminateを fail-closed で裁定できるようにしました。TEST_VERDICT.baseline_onlyを routing 正本から外してVC_ADJUDICATION_RESULT_V1.overall_statusとblockingを正本にする方針を明文化しました。artifact_ref/artifact_digestだけを出す境界をテストと運用文書で固定しました。受け入れ条件の達成状況
adjudicate_vc_result.pyがoverall_status/blocking/rerun_required/per_ac[]/evidence_refs[]/source_integrity/artifact_ref/errors[]を返します。command_hash+ 同一failure_keysの場合だけpre_existing_failnon-blocking に倒し、証跡不足時は fail-closed にします。indeterminateblocking、changed/allowed scope と無関係な証跡が揃う場合だけout_of_scope_failを返します。regression_failblocking になります。TEST_VERDICT.baseline_onlyを evidence input に格下げし、VC_ADJUDICATION_RESULT_V1.overall_status/blockingを routing 正本として扱います。regression_failにせず fail-closed に扱う unit test を追加しました。検証コマンド結果
以下は Issue 本文に対応する実行結果です。
test -f .claude/skills/impl-review-loop/scripts/adjudicate_vc_result.pyを実行し、script の存在を確認しました。rg -n "test_no_diff_same_baseline_failure_is_pre_existing_nonblocking" .claude/skills/impl-review-loop/tests/を実行し、AC2 テスト名を確認しました。rg -n "test_out_of_scope_requires_diff_and_failure_key_evidence" .claude/skills/impl-review-loop/tests/を実行し、AC3 テスト名を確認しました。rg -n "test_diff_related_failure_is_regression_blocking" .claude/skills/impl-review-loop/tests/を実行し、AC4 テスト名を確認しました。rg -n "VC_ADJUDICATION_RESULT_V1\\.overall_status.*blocking" .claude/skills/impl-review-loop/steps/step-2-verification.mdを実行し、AC5 文言を確認しました。rg -n "test_full_stdout_stderr_only_in_private_artifact" .claude/skills/impl-review-loop/tests/を実行し、AC6 テスト名を確認しました。rg -n "test_pytest_exit_5_is_not_regression_fail" .claude/skills/impl-review-loop/tests/を実行し、AC7 テスト名を確認しました。python3 -m py_compile .claude/skills/impl-review-loop/scripts/adjudicate_vc_result.py .claude/skills/impl-review-loop/tests/test_adjudicate_vc_result.pyを実行し、構文エラーがないことを確認しました。uv run pytest .claude/skills/impl-review-loop/tests/test_adjudicate_vc_result.py -qを実行し、17 passedを確認しました。Allowed Paths 遵守
編集は Issue 契約で許可された 4 パスのみに限定しました。
.claude/skills/impl-review-loop/scripts/adjudicate_vc_result.pyのみを producer 実装として編集しました。.claude/skills/impl-review-loop/steps/step-2-verification.mdのみを Step 2 契約更新として編集しました。.claude/skills/impl-review-loop/tests/test_adjudicate_vc_result.pyのみを contract test として追加しました。docs/dev/agent-run-report.mdのみを public-safe 境界注記として更新しました。Checks
追加の sanity check と unit test も通しています。
python3 -m py_compile .claude/skills/impl-review-loop/scripts/adjudicate_vc_result.py .claude/skills/impl-review-loop/tests/test_adjudicate_vc_result.pyuv run pytest .claude/skills/impl-review-loop/tests/test_adjudicate_vc_result.py -qSchema Change Applicability
この PR では Step 2 の裁定 artifact 契約を新設するため、schema change として扱います。
VC_ADJUDICATION_RESULT_V1とVC_ADJUDICATION_PRIVATE_BUNDLE_V1を新設し、Step 2 が参照する裁定 artifact の contract を追加したためです。Schema Consumer Inventory
consumer と producer の対応関係を日本語で明示し、schema 差分の監査経路を固定します。
変更対象 schema: 今回追加する schema は
VC_ADJUDICATION_RESULT_V1,VC_ADJUDICATION_PRIVATE_BUNDLE_V1です。before/after 差分: 変更前後の契約差分を以下に示します。
Consumer 列挙(rg コマンド例と結果):
rg -n "VC_ADJUDICATION_RESULT_V1" .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/tests/test_adjudicate_vc_result.py docs/dev/agent-run-report.mddocs/dev/agent-run-report.md: public-safe artifact 境界の運用注記.claude/skills/impl-review-loop/steps/step-2-verification.md: Step 2 routing contract を日本語 SSOT に反映しました。.claude/skills/impl-review-loop/scripts/adjudicate_vc_result.py: producer 実装.claude/skills/impl-review-loop/tests/test_adjudicate_vc_result.py: contract test として AC2-AC7 を固定しました。Consumer 更新状況:
.claude/skills/impl-review-loop/steps/step-2-verification.mdVC_ADJUDICATION_RESULT_V1に変更.claude/skills/impl-review-loop/scripts/adjudicate_vc_result.py.claude/skills/impl-review-loop/tests/test_adjudicate_vc_result.pydocs/dev/agent-run-report.mdCompatibility Decision / 互換性判断
additivebackward_compatibleno(追加のみで移行不要です)N/A(今回の追加だけで別移行は不要です)Safety Claim Matrix
安全主張は今回の compact JSON 境界と fail-closed routing に限定し、未実装範囲へ拡張しません。
uv run pytest .claude/skills/impl-review-loop/tests/test_adjudicate_vc_result.py -q,docs/dev/agent-run-report.md更新baseline_only単独で非 blocking 判定しない fail-closed contract を Step 2 SSOT に固定したrg -n "VC_ADJUDICATION_RESULT_V1\\.overall_status.*blocking" .claude/skills/impl-review-loop/steps/step-2-verification.mdNotes
Closes #1115としてこの実装 Issue を閉じます。