Repository navigation
fix: stabilize scope-rollup final response capture - #933
Conversation
Preview URLPreview removed (PR #933 closed). |
TEST_VERDICT:
result: PASS
mergeable: MERGEABLE
merge_state_status: BEHIND
branch_behind_main: true
baseline_only: false
verification_commands_pass: 7
verification_commands_fail: 0
verification_skipped_count: 0
runtime_ac_results:
- ac: AC1
command: "rtk rg -n \"name: scope-rollup-runner|SubagentStop|agent_type|last_assistant_message|manual_main_capture|unsupported|routing_action: stop_human|capture_status: hook_unavailable|SCOPE_ROLLUP_CAPTURE_RESULT_V1|capture_mode|capture_status|capture_sha256|parser_status|routing_action\" .claude/agents/scope-rollup-runner.md .claude/hooks/ .claude/skills/impl-review-loop/steps/preparation.md"
exit_code: 0
status: pass
fallback_detected: false
artifact_present: not_required
human_review_required: false
stop_condition_triggered: false
notes: "AC1/AC5/AC6 の静的参照を確認"
- ac: AC2
command: "rtk uv run pytest .claude/hooks/tests/test_scope_rollup_capture.py -k deterministic_capture -q"
exit_code: 0
status: pass
fallback_detected: false
artifact_present: not_required
human_review_required: false
stop_condition_triggered: false
notes: "deterministic_capture が 2 passed"
- ac: AC3
command: "rtk uv run pytest .claude/hooks/tests/test_scope_rollup_capture.py -k fail_closed -q"
exit_code: 0
status: pass
fallback_detected: false
artifact_present: not_required
human_review_required: false
stop_condition_triggered: false
notes: "fail_closed が 4 passed"
- ac: AC4
command: "rtk uv run pytest .claude/skills/impl-review-loop/tests/test_parse_scope_rollup_run_result.py -k \"requested_at_mismatch or raw_plan_location_invalid or marker_missing or marker_ambiguous\" -q"
exit_code: 0
status: pass
fallback_detected: false
artifact_present: not_required
human_review_required: false
stop_condition_triggered: false
notes: "parser regression の対象ケースが 4 passed"
- ac: AC5
command: "rtk rg -n \"manual_main_capture|unsupported|routing_action: stop_human|capture_status: hook_unavailable\" .claude/hooks/ .claude/skills/impl-review-loop/steps/preparation.md"
exit_code: 0
status: pass
fallback_detected: false
artifact_present: not_required
human_review_required: false
stop_condition_triggered: false
notes: "hook 非使用 route の記述を確認"
- ac: AC6
command: "rtk rg -n \"SCOPE_ROLLUP_CAPTURE_RESULT_V1|capture_mode|capture_status|capture_sha256|parser_status|routing_action\" .claude/hooks/ .claude/skills/impl-review-loop/steps/preparation.md"
exit_code: 0
status: pass
fallback_detected: false
artifact_present: not_required
human_review_required: false
stop_condition_triggered: false
notes: "capture record のキー群を確認"
- ac: AC7
command: "rtk uv run pytest .claude/hooks/tests/test_scope_rollup_capture.py -q"
exit_code: 0
status: pass
fallback_detected: false
artifact_present: not_required
human_review_required: false
stop_condition_triggered: false
notes: "scope-rollup capture test suite が 13 passed"検証結果レポートIssue #873: 実装: scope-rollup runner の SubAgent 出力 capture を deterministic 化し、hook/marker 不整合を防ぐ
総合判定
mergeability
|
squne121
left a comment
There was a problem hiding this comment.
LOOP_VERDICT_V2
verdict: REQUEST_CHANGES
reviewed_head_sha: "f57b72a639b75d1b442e884fe886fbb108d9cb48"
merge_ready: false
mergeability:
mergeable: "MERGEABLE"
merge_state_status: "BEHIND"
blockers:
- "AC5/AC6 unmet: unsupported hook route is documented as machine-readable, but `.claude/hooks/capture_scope_rollup_final_response.py` exits before writing any `SCOPE_ROLLUP_CAPTURE_RESULT_V1` sidecar when `decision.invocation_id is None`, so `capture_mode: unsupported` / `capture_status: hook_unavailable` is not persisted. The new tests also assert no record is written for unsupported or malformed routes, which leaves the documented machine-readable path unimplemented."
required_auto_actions:
- kind: update_branch
executor: implementation-worker
skill: implement-issue.update_branch
blocking_merge_ready: true
mechanical: true
expected_head_sha: "f57b72a639b75d1b442e884fe886fbb108d9cb48"
auto_fix_applied: []
follow_up_issue_requests: []
allowed_paths_gate:
status: ok
allowed_paths_gate_source: review_subagent
TEST_VERDICT:
result: PASS
mergeable: MERGEABLE
merge_state_status: BLOCKED
head_ref_oid: ec7135e9fd77f48eaaba0d86f1ed0e9d5d7ecd37
branch_behind_main: true
verification_commands_pass: 7
verification_commands_fail: 0
verification_skipped_count: 0
runtime_ac_results:
- ac: AC1
command: "rg -n \"name: scope-rollup-runner|SubagentStop|agent_type|last_assistant_message\" .claude/agents/scope-rollup-runner.md .claude/hooks/"
exit_code: 0
status: pass
- ac: AC2
command: "uv run pytest .claude/hooks/tests/test_scope_rollup_capture.py -k deterministic_capture -q"
exit_code: 0
status: pass
- ac: AC3
command: "uv run pytest .claude/hooks/tests/test_scope_rollup_capture.py -k fail_closed -q"
exit_code: 0
status: pass
- ac: AC4
command: "uv run pytest .claude/skills/impl-review-loop/tests/test_parse_scope_rollup_run_result.py -k \"requested_at_mismatch or raw_plan_location_invalid or marker_missing or marker_ambiguous\" -q"
exit_code: 0
status: pass
- ac: AC5
command: "rg -n \"manual_main_capture|unsupported|routing_action: stop_human|capture_status: hook_unavailable\" .claude/hooks/ .claude/skills/impl-review-loop/steps/preparation.md"
exit_code: 0
status: pass
- ac: AC6
command: "rg -n \"SCOPE_ROLLUP_CAPTURE_RESULT_V1|capture_mode|capture_status|capture_sha256|parser_status|routing_action\" .claude/hooks/ .claude/skills/impl-review-loop/steps/preparation.md"
exit_code: 0
status: pass
- ac: AC7
command: "uv run pytest .claude/hooks/tests/test_scope_rollup_capture.py -q"
exit_code: 0
status: pass |
squne121
left a comment
There was a problem hiding this comment.
Verdict: REQUEST_CHANGES
Mergeability
- mergeable=MERGEABLE, merge_state_status=BLOCKED
Evidence Check
- AC coverage: Issue #873 の scope には一致。前回指摘した
unsupported/hook_unavailableroute の未永続化は、.claude/hooks/capture_scope_rollup_final_response.pyの digest-based sidecar record と.claude/hooks/tests/test_scope_rollup_capture.pyの fail-closed coverage で解消済み。 - Allowed Paths:
allowed_paths_review_gate.pyでstatus: ok。変更 6 ファイルはいずれも Issue #873 の Allowed Paths 内。 - CI Verification:
ci_verdict_summary.pyは reviewed headec7135e9fd77f48eaaba0d86f1ed0e9d5d7ecd37に対してstatus: all_pass。 - 検証コマンド結果: latest
TEST_VERDICT_MACHINEは reviewed head 一致、verification_commands_pass: 7、verification_skipped_count: 0。 - Self-report gate: PR 本文の自己申告単独ではなく、TEST_VERDICT と CI 補助証拠を使用して判定。
Blockers
- latest
TEST_VERDICT_MACHINEfor headec7135e9fd77f48eaaba0d86f1ed0e9d5d7ecd37reportsmerge_state_status: BLOCKED。pr-review-judgeではBLOCKEDは merge-blocking で、REQUEST_CHANGES判定です。
Non-blockers
- PR body には
## 受け入れ条件の達成状況/## 検証コマンド結果/## Allowed Paths 遵守の required sections が不足しているため、機械修正対象としてrequired_auto_actionsに残します。
LOOP_VERDICT_V2
verdict: REQUEST_CHANGES
reviewed_head_sha: "ec7135e9fd77f48eaaba0d86f1ed0e9d5d7ecd37"
merge_ready: false
mergeability:
mergeable: "MERGEABLE"
merge_state_status: "BLOCKED"
blockers:
- "latest TEST_VERDICT_MACHINE for reviewed head ec7135e9fd77f48eaaba0d86f1ed0e9d5d7ecd37 reports merge_state_status: BLOCKED, which pr-review-judge treats as merge-blocking even though CI evidence and allowed-paths gate pass."
required_auto_actions:
- kind: update_pr_body_hygiene
executor: implementation-worker
skill: open-pr.update_pr
blocking_merge_ready: true
mechanical: true
auto_fix_applied: []
follow_up_issue_requests: []
allowed_paths_gate:
status: ok
allowed_paths_gate_source: review_subagent
squne121
left a comment
There was a problem hiding this comment.
Verdict: REQUEST_CHANGES
Mergeability
- mergeable=MERGEABLE, merge_state_status=BLOCKED
Evidence Check
- AC coverage: PR body now includes
## 受け入れ条件の達成状況/## 検証コマンド結果/## Allowed Paths 遵守, and AC1-AC7 are mapped to Issue #873 with concrete evidence. - Allowed Paths:
allowed_paths_review_gate.pyreturnedstatus: okfor reviewed headec7135e9fd77f48eaaba0d86f1ed0e9d5d7ecd37; all 6 changed files stay within Issue #873 Allowed Paths. - CI Verification: latest live checks for this head are green (
gh pr checks: 12 passed, 0 failed). The newestPR Body Japanese Checkpassed after the hygiene-only body update. - 検証コマンド結果: latest
TEST_VERDICT_MACHINEmatches reviewed headec7135e9fd77f48eaaba0d86f1ed0e9d5d7ecd37, reportsverification_commands_pass: 7,verification_commands_fail: 0,verification_skipped_count: 0.
Blockers
- latest
TEST_VERDICT_MACHINEfor reviewed headec7135e9fd77f48eaaba0d86f1ed0e9d5d7ecd37still reportsmerge_state_status: BLOCKED. Underpr-review-judge,BLOCKEDremains merge-blocking even whenrequired_auto_actionsis empty, so the verdict staysREQUEST_CHANGESuntil that state is refreshed or resolved.
Non-blockers
- PR body required sections are now present.
required_auto_actionsis now empty.
LOOP_VERDICT_V2
verdict: REQUEST_CHANGES
reviewed_head_sha: "ec7135e9fd77f48eaaba0d86f1ed0e9d5d7ecd37"
merge_ready: false
mergeability:
mergeable: "MERGEABLE"
merge_state_status: "BLOCKED"
blockers:
- "latest TEST_VERDICT_MACHINE for reviewed head ec7135e9fd77f48eaaba0d86f1ed0e9d5d7ecd37 still reports merge_state_status: BLOCKED, which pr-review-judge treats as merge-blocking even though PR body hygiene is fixed, latest live checks are green, and allowed_paths_gate is ok."
required_auto_actions: []
auto_fix_applied: []
follow_up_issue_requests: []
allowed_paths_gate:
status: ok
allowed_paths_gate_source: review_subagent
判定: REQUEST_CHANGESPR #933 は方向性自体は正しいです。Claude Code の ただし、現状の実装は capture 契約を満たしていません。特に duplicate invocation、failure/runner_unavailable marker、sidecar provenance の3点は、PR本文・関連Issueコメント・preparation契約・実装・テストが食い違っています。このまま merge すると「fail-closed を実装したように見えるが、肝心の証跡が欠落または誤分類される」状態になります。 確認範囲として、PR #933 は open / draft の Blocker 1: duplicate invocation の sidecar が記録されないこれは最優先で直すべきです。
結果として、duplicate の2回目実行では:
テストもこのバグを仕様化しています。duplicate test は、2回目実行後も record の これは #873 の狙いに反します。Issueコメントでは duplicate / mismatch / stale / write_failed を capture_status として machine-readable に残す設計が求められています。 修正案:
Blocker 2:
|
ISSUE_873_FIX_RESULT_V1:
status: pass
issue: 873
pr: 933
addressed_comment: 4712141427
head_sha: "53039054dd9f9319cfea035c8b93e9f7e3e8cd79"
blockers_addressed:
- duplicate_sidecar
- failure_marker_contract
- sidecar_provenance_validation
files_changed:
- .claude/agents/scope-rollup-runner.md
- .claude/hooks/capture_scope_rollup_final_response.py
- .claude/hooks/session_manifest_coordinator.sh
- .claude/hooks/tests/test_scope_rollup_capture.py
- .claude/skills/impl-review-loop/scripts/parse_scope_rollup_run_result.py
- .claude/skills/impl-review-loop/steps/preparation.md
- .claude/skills/impl-review-loop/tests/test_parse_scope_rollup_run_result.py
verification:
commands:
- command: "uv run pytest .claude/hooks/tests/test_scope_rollup_capture.py -q"
result: pass
- command: "uv run pytest .claude/skills/impl-review-loop/tests/test_parse_scope_rollup_run_result.py -q"
result: pass
remaining_blockers:
- "GitHub 上の draft / branch protection / mergeability 再計算など、コード外の merge blocker が残る可能性があります。"
merge_ready: false
|
Summary
scope-rollup-runnerの final response capture を deterministic に固定し、duplicate sidecar・failure marker contract・sidecar provenance parser validation を comment-first で修正する変更です。受け入れ条件の達成状況
scope-rollup-runnerの failure / runner_unavailable 例を hook / parser が受け取れる envelope に整合させました。SubagentStoproute で/tmp/scope_rollup_<invocation_id>.txtを atomic capture し、duplicate invocation でも別 sidecar を残します。stop_humanで止まります。SCOPE_ROLLUP_CAPTURE_RESULT_V1に capture provenance と routing 情報を保持し、parser 側で authority として読みます。検証コマンド結果
Allowed Paths 遵守
.claude/agents/scope-rollup-runner.md.claude/hooks/capture_scope_rollup_final_response.py.claude/hooks/session_manifest_coordinator.sh.claude/hooks/tests/test_scope_rollup_capture.py.claude/skills/impl-review-loop/steps/preparation.md.claude/skills/impl-review-loop/scripts/parse_scope_rollup_run_result.py.claude/skills/impl-review-loop/tests/test_parse_scope_rollup_run_result.pySchema Change Applicability
Schema Consumer Inventory
N/A
reason: repo 内の scope-rollup workflow 実装だけを更新したためです。
Safety Claim Matrix
test_scope_rollup_capture.pyduplicate casetest_parse_scope_rollup_run_result.pyprovenance caseshook_unavailablerecord を残すNotes