Repository navigation
fix: add unexpected_pass reviewer replay support (#1368) - #1394
Conversation
Preview URLPreview removed (PR #1394 closed). |
判定: REQUEST_CHANGESPR #1394 は、Issue #1368 の修正後スコープには概ね沿っています。 ただし、direct Blocker:
|
…nexpe' of https://github.com/squne121/loop-protocol into worktree-issue-1368-reviewer-claim-replay-py-taxonomy-unexpe
判定: APPROVE
LOOP_VERDICT_V2verdict: APPROVE
reviewed_head_sha: "8bdcb25dea0b166bd58465cdd23c34c31803f4b4"
merge_ready: true
mergeability:
mergeable: "MERGEABLE"
merge_state_status: "UNSTABLE"
blockers: []
required_auto_actions: []
auto_fix_applied: []
follow_up_issue_requests: []
allowed_paths_gate:
status: ok
changed_files_source: github_pull_request_files_api_with_previous_filename
changed_files:
- .claude/skills/issue-refinement-loop/scripts/reviewer_claim_replay.py
- .claude/skills/issue-refinement-loop/tests/test_reviewer_claim_replay.py
- .claude/skills/issue-refinement-loop/tests/test_reviewer_claim_replay_taxonomy_parity.py
allowed_paths_gate_source: review_subagent |
Summary
reviewer_claim_replay.pyで direct--vc-preflight-result-fileを deterministic backing に使う前に、source.body_sha256と review/readiness の body hash を fail-closed に照合するようにしています。status == "blocked"、unexpected_passではclassification == "unexpected_pass"・category == "unexpected_pass"・decision == "blocked"を要求するようにしています。lineをline_start == line_end == lineに正規化し、command_hash・raw_command・classification・decisionなどの metadata も保持します。Checks
受け入れ条件の達成状況
vc_preflight_result.source.body_sha256が review/readiness body hash と一致しない場合はinput_or_runtime_errorで fail-closed し、deterministic evidence に採用しないことを追加テストで固定しました。baseline_vc_preflight.pyの producer shape に寄せ、source.body_sha256、status、results[].ac/line/raw_command/command_hash/classification/category/decision/scope_class/confidenceを含む形へ更新しました。unexpected_passmatching でclassification == "unexpected_pass"、category == "unexpected_pass"、decision == "blocked"を要求し、spoof artifact が backing にならないことを確認しました。line正規化の回帰テストを追加しました。検証コマンド結果
uv run --locked pytest .claude/skills/issue-refinement-loop/tests/test_reviewer_claim_replay.py -vuv run --locked pytest .claude/skills/issue-refinement-loop/tests/test_reviewer_claim_replay_taxonomy_parity.py -vCI fix delta(2026-07-08)
python-testの Ruff E501 指摘に合わせ、.claude/skills/issue-refinement-loop/tests/test_reviewer_claim_replay.pyのraw_commandfixture 文字列だけを折り返しました。uv run --locked ruff check .claude/skills/issue-refinement-loop/tests/test_reviewer_claim_replay.py --select E501Allowed Paths 遵守
.claude/skills/issue-refinement-loop/tests/test_reviewer_claim_replay.pyのみです。Notes
unsafe_command/command_not_allowedは producer routing 変更を伴うため、本 PR では引き続き対象外です。