Skip to content

feat: SHA固定のC1 overlap decisionを検証する (#1613) - #1614

Closed
squne121 wants to merge 9 commits into
mainfrom
worktree-issue-1613-implementation-overlap-preflight-sha-own
Closed

squne121 wants to merge 9 commits into
mainfrom
worktree-issue-1613-implementation-overlap-preflight-sha-own

Conversation

@squne121

Copy link
Copy Markdown
Owner

Summary

Checks

  • AC1–AC4: 対象ケースを含む pytest を実行済みです。
  • AC5: .claude/skills/implement-issue/tests/test_check_implementation_overlap.py の対象 suite は 42 件 pass です。
  • PR 起票直前に同じ limit 200 の overlap preflight を再実行し、stored evidence と fresh decision inputs の一致を gate で確認します。

Schema Change Applicability

  • decision: schema_change
  • IMPLEMENT_SCOPE_COLLISION_PREFLIGHT_V1 に candidate 単位の human_c1_decisions と、その検証入力を含む decision_inputs_sha256 を additive に扱います。

Schema Consumer Inventory

Before(変更前)

IMPLEMENT_SCOPE_COLLISION_PREFLIGHT_V1 は候補の構造シグナルと依存解決だけを出力し、owner/collaborator による SHA 固定 C1 decision を検証・記録しない。

After(変更後)

IMPLEMENT_SCOPE_COLLISION_PREFLIGHT_V1 は accepted/rejected の human_c1_decisions と検証済み入力を出力し、accepted な候補だけを proceed_with_collision_evidence の根拠にできる。
Consumer ファイル 更新有無 備考
.claude/skills/implement-issue/scripts/check_implementation_overlap.py yes comment の取得、固定値検証、evidence と decision hash への反映を実装。
.claude/skills/implement-issue/tests/test_check_implementation_overlap.py yes accept/reject、経路非解除、決定性、既存 route の回帰を検証。
.claude/skills/open-pr/scripts/open_pr.py no 既存の overlap evidence gate が schema の route/hash を消費し、変更不要。

Safety Claim Matrix

Claim Implemented? Not controlled Evidence Follow-up
C1 override は owner/collaborator・対象 Issue・candidate・本文 SHA・updatedAt・comment URL の全一致でのみ採用される yes none AC1/AC2 の pytest と fresh preflight evidence -
override は duplicate、C2、source saturation、validation error、未解決 dependency を解除しない yes none AC3 の pytest と既存 route 回帰 -
PR 作成時の collection 時点以後の Issue 更新は完全に原子的には防げない partial GitHub API に Issue body の If-Match 条件がない open-pr の直前 fresh preflight と decision_inputs hash 比較 #1613

Notes

@github-actions

Copy link
Copy Markdown
Contributor

Preview URL

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

The preview will be removed when this PR is closed.

@squne121 squne121 left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: REQUEST_CHANGES

Mergeability

  • mergeable=MERGEABLE, merge_state_status=BLOCKED

Evidence Check

  • Contract snapshot: current(#1613 / 5011344371)
  • Allowed Paths: fail_closed。6変更中4ファイルが契約外。
  • CI Verification: python-test が failure。
  • VC evidence: TEST_VERDICT_MACHINE 未投稿。AC pass 報告は補助証跡のみ。
  • Schema Consumer Inventory: schema_change 宣言と整合。
  • Safety Claim Matrix: Not controlled の follow-up が、本PRで閉じる #1613 自身であり未充足。
LOOP_VERDICT_V2:
  verdict: REQUEST_CHANGES
  reviewed_head_sha: b69ef5b844f61c26d2497e027c35abfc037b00ca
  merge_ready: false
  mergeability:
    mergeable: MERGEABLE
    merge_state_status: BLOCKED
  blockers:
    - "Allowed Paths gate が fail_closed: 6変更中4ファイルが #1613 の Allowed Paths 外"
    - "CI_VERDICT_SUMMARY_V1 が failed: python-test が failure"
    - "merge_state_status が BLOCKED"
    - "TEST_VERDICT_MACHINE が未投稿で、自己申告・補助報告だけでは APPROVE 不可"
    - "Safety Claim Matrix の Not controlled に対応する有効な open follow-up がない"
  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: fail_closed
    changed_files_source: git_diff_name_status_find_renames_z
    changed_files:
      - .claude/agents/test-runner.md
      - .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_non_regression_gate.py
      - .claude/skills/implement-issue/scripts/check_implementation_overlap.py
      - .claude/skills/implement-issue/tests/test_check_implementation_overlap.py
  allowed_paths_gate_source: review_subagent

@squne121

Copy link
Copy Markdown
Owner Author

PR #1615 により #1613 は完了済みのため、この旧Draft PR を置換済みとしてクローズします。

@squne121 squne121 closed this Jul 19, 2026
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.

実装: implementation overlap preflight に SHA 固定の owner C1 decision comment 検証を追加する

1 participant