Skip to content

実装: workflow.md の Allowed Paths overlap hard stop を Scope Collision Classification に置き換える #384

Closed
2 of 2 issues completed

Description

@squne121

Machine-Readable Contract

contract_schema_version: v1
issue_kind: implementation
parent_issue: "none"
goal_ref: "docs/dev/workflow.md の Allowed Paths overlap hard stop を Scope Collision Classification に置き換え、skill / subagent を作業手順層として扱う運用境界と script-first 優先原則を SSOT に固定する"
change_kind: workflow

Parent Issue

none

Parent Goal Ref

  • Goal: OPEN な他 Implementation Issue との Allowed Paths 重複を一律 hard stop にせず、危険度分類と直列化ルールで運用できる SSOT に更新する
  • Desired Destination: docs/dev/workflow.md が Hard gate と Scope Collision Preflight を分離し、skill / SubAgent は不要な設計判断を抱え込まない作業手順層であること、および workflow 不具合では自然言語 workaround より決定論的修正を優先することが明文化された状態

Current Validated Scope

  • docs/dev/workflow.md の「Issue contract を作業計画の正本として扱う条件」を、Allowed Paths overlap 単独では着手停止にしない Hard gate + Scope Collision Preflight へ書き換える
  • docs/dev/workflow.md に C0 no collision / C1 benign overlap / C2 ordered overlap / C3 conflicting overlap の分類、各 class の許容条件、記録方法、停止条件を追加する
  • docs/dev/workflow.md の 3 階層説明または関連セクションに、skill / SubAgent は作業手順を伝える確率論的プロンプト層であり、設計判断や不要なコンテクストを持ち込まないことを追記する
  • docs/dev/workflow.md に、workflow 不具合の修正方針は自然言語 workaround より script / config / code による決定論的修正を優先する原則を追記する

Remaining Parent Gaps

なし

Background

Issue #338 の impl-review-loop preflight で、docs/dev/workflow.md にある「OPEN な他 Implementation Issue と Allowed Paths が重複しないこと」が hard stop として働き、review-issue 周辺の小さな改善 Issue 群が一律に停止した。owner コメントでは、この運用は merge conflict 回避には効く一方で、同一 subsystem の改善を過度に直列化し、AI と人間の両方に高い認知負荷を強いていると整理された。

あわせて owner は、skill / SubAgent は設計判断の正本ではなく作業手順を伝える層であり、不要な設計コンテキストを持たせず、workflow 不具合への対処でも自然言語による確率的な workaround ではなくスクリプト等の決定論的修正を優先したいと指摘している。これらの方針は skill 個別の補足ではなく開発運用 SSOT に固定する必要がある。

issue-contract-review の baseline VC preflight では、実装前から PASS する quality gate コマンドは unexpected_pass として blocker になる。そのため本 Issue の VC は baseline で fail すべき marker-based 確認に限定し、rtk pnpm typecheck / rtk pnpm lint / rtk pnpm test / rtk pnpm build は実装時の追加検証として PR / 実装報告に記録する。

Outcome

docs/dev/workflow.md に Hard gate と Scope Collision Preflight の分離、C0/C1/C2/C3 の collision class ごとの扱い、skill / SubAgent を作業手順層として扱う境界、workflow 不具合では自然言語 workaround より決定論的修正を優先する原則が追記された状態。

In Scope

  • docs/dev/workflow.md の着手条件を Hard gate と Scope Collision Preflight に分離する
  • docs/dev/workflow.md に C0/C1/C2/C3 の定義、proceed | wait | absorb | supersede | split 相当の判断方針、Depends on #N / parent Work Ordering による直列化方針を追記する
  • docs/dev/workflow.md に、Allowed Paths overlap 単独では hard stop にしないことを明記する
  • docs/dev/workflow.md に、skill / SubAgent は作業手順層であり、設計判断や不要な背景説明を抱え込まない原則を追記する
  • docs/dev/workflow.md に、workflow 不具合の修正では script / config / code による決定論的修正を第一候補にする原則を追記する

Out of Scope

Acceptance Criteria

  • AC1: docs/dev/workflow.md に Scope Collision Preflight または同等の節が追加され、C0 no collision / C1 benign overlap / C2 ordered overlap / C3 conflicting overlap の 4 分類が定義されている
  • AC2: 同ファイルに「Allowed Paths overlap 単独では hard stop ではない」こと、および overlap がある場合は分類して扱うことが明記されている
  • AC3: 同ファイルに C1 は着手可、C2 は Depends on #N または parent Work Ordering による直列化、C3 は human escalation で停止する旨が明記されている
  • AC4: 同ファイルに、skill / SubAgent は作業手順を伝える層であり、設計判断や不要なコンテキストを与えない旨が明記されている
  • AC5: 同ファイルに、workflow 不具合の修正方針として自然言語 workaround より script / config / code による決定論的修正を優先する旨が明記されている

Verification Commands

$ rg -n "Scope Collision Preflight|C0: no collision|C1: benign overlap|C2: ordered overlap|C3: conflicting overlap" docs/dev/workflow.md # AC1
$ rg -n "Allowed Paths overlap.*hard stop ではない|重複.*分類して扱う|即停止ではなく" docs/dev/workflow.md # AC2
$ rg -n "C1.*着手可|C2.*Depends on #N|Work Ordering|C3.*human escalation" docs/dev/workflow.md # AC3
$ rg -n "設計判断の正本ではなく作業手順を伝える層|不要な背景説明を抱え込まない|確率論的プロンプト層として扱う" docs/dev/workflow.md # AC4
$ rg -n "決定論的修正|script / config / code|自然言語 workaround" docs/dev/workflow.md # AC5

Allowed Paths

  • docs/dev/workflow.md

Stop Conditions

  • Allowed Paths 外の変更が必要と判明した場合
  • In Scope の固定契約(C0/C1/C2/C3 の分類名、Hard gate と Scope Collision Preflight の責務分離、決定論的修正優先原則)の変更が必要になった場合
  • 新規 Issue の起票が必要と判断した場合(issue-contract-review script 実装や template 変更など別スコープが確定した場合)
  • 後続 Phase / 別スコープへの波及が判明した場合
  • nested SubAgent delegation が必要になった場合
  • 外部サービス利用・権限昇格・既存テスト大規模改変が必要になった場合

Required Skills

なし

Runtime Verification Applicability

runtime_verification_applicability:
  decision: not_applicable
  rationale: >
    Outcome は docs/dev/workflow.md の運用 SSOT 更新であり、検証は `rg` での
    marker 確認と、実装時に追加で実行する repo 既存 quality gate で完結する。
    実ランタイム I/O や UI 操作は含まない。
  verification_commands_ref: AC1-AC5

Scope Delta(任意)

VC を baseline fail する marker-based 検証に限定し、standard quality gate は実装時の追加検証へ移した。

Source

Delivery Rule

  • 1 Issue = 1 PR
  • worktree: .claude/worktrees/issue-<issue-number>-workflow-scope-collision
  • Draft PR 既定
  • docs/dev/workflow.md を正本とし、skill / SubAgent 個別ファイルへの方針追記はこの Issue の完了後に必要性を再判定する
  • 実装時には rtk pnpm typecheck / rtk pnpm lint / rtk pnpm test / rtk pnpm build を追加検証として実行し、PR と Issue コメントに記録する

Sub-issues

Sub-issues

2 of 2 Issues completed
Loading 2 sub-issues

Activity

  1. added
    phase/implementation
    agent/implementer
    enhancement
    on May 24, 2026
  2. squne121 commented on May 24, 2026

    @squne121
    OwnerAuthor

    人間指摘
    このIssue単体ではドキュメント修正のみであり、エージェントスキルの修正が行われないため後続Issueを起票してほしい。

    #338 (comment) のケースではAIエージェントがドキュメントを読んで、停止条件に気づいてる。それ自体は正しいことだが、AIエージェント作業におけるコンテクスト管理としてはどうなのか?運用設計ドキュメントと作業手順書の不整合や厳格すぎるルールに気づけたいい機会ではあるが、正本ドキュメントの全文を読むことは避けたほうが良さそう。

  3. squne121 commented on May 25, 2026

    @squne121
    OwnerAuthor

    結論: #384 は必要だが不十分です。人間指摘どおり、この Issue 単体は docs/dev/workflow.md の SSOT 修正だけで、実際に impl-review-loop / ssot-discovery / implement-issue が「全文ドキュメントを読まずに Scope Collision を最小コンテクストで扱う」状態にはなりません。#384 自身も Out of Scope に issue-contract-review script 実装、template 変更、既存 Issue の dependency 付け替え、自動化を明示しているため、後続 Issue が必要です。

    敵対的レビュー

    #384 の主眼は、Allowed Paths overlap を一律 hard stop にしないため、docs/dev/workflow.md に C0/C1/C2/C3 の Scope Collision Classification と script-first 原則を追記することです。これは正しい方向です。#338 のケースでは、既存の「OPEN な他 Implementation Issue と Allowed Paths が重複しないこと」が hard stop として働き、同一 subsystem の小改善が過剰に直列化された、という問題設定も妥当です。

    ただし、#384 は policy 正本の更新に閉じています。Allowed Paths は docs/dev/workflow.md のみで、Stop Conditions でも「新規 Issue の起票が必要と判断した場合」「後続 Phase / 別スコープへの波及が判明した場合」に停止すると書かれています。したがって、エージェントスキルの実行手順や checker を変える実装は #384 ではできません。

    人間指摘の核心は「AI エージェントが正本ドキュメントを読んで停止条件に気づいたことは正しいが、作業時コンテクスト管理として毎回全文を読むのは悪い」という点です。これはかなり重要です。Claude Code Skills の公式ドキュメントでも、Skill は SKILL.md、references、scripts、resources で構成され、追加ファイルは必要時に読み込ませる設計になっています。つまり、常時長文を context に入れるのではなく、短い skill 起動文 + 必要 section / script / reference への progressive disclosure に寄せるべきです。

    外部調査上も、Spec Kit は /speckit.tasks で task list を生成し、/speckit.taskstoissues で GitHub Issues に変換し、/speckit.implement で実装する流れを持っています。これは LOOP_PROTOCOL の「Issue が tracking SSOT、docs は policy SSOT、skill は作業手順」という分離と相性がよい一方、Issue 化後の trace / scope / ordering を機械的に扱わないと、AI が長文正本を都度読みに行く設計に戻ります。

    GitHub CLI も gh issue view に --json と --jq を提供しているため、Issue metadata / body / labels / comments を script-first に抽出する路線は実装可能です。docs/dev/workflow.md 全文を LLM に読ませるより、rg と gh issue view --json ... --jq ... で必要情報だけを渡す方が、判定揺れと token cost を抑えられます。

    不足している後続 Issue

    起票を試みましたが、GitHub 連携が Resource not accessible by integration / 403 を返したため、こちらから直接作成はできませんでした。以下をそのまま新規 Issue 本文に使えます。

    実装: impl-review-loop / ssot-discovery に Scope Collision の最小コンテクスト読込手順を追加する

    Machine-Readable Contract

    contract_schema_version: v1
    issue_kind: implementation
    parent_issue: "#384"
    goal_ref: "#384 で docs/dev/workflow.md に固定する Scope Collision Classification を、AI agent 作業時に全文 SSOT 読込へ逃げず、必要 section / deterministic query / checker output に限定して扱えるように impl-review-loop / ssot-discovery の作業手順へ反映する"
    change_kind: workflow
    
    Parent Issue
    
    #384
    
    Parent Goal Ref
    
    Goal: docs/dev/workflow.md に固定される Scope Collision Classification / script-first 原則を、エージェントスキルの実行手順にも反映し、AI agent が正本ドキュメント全文を都度読む運用から脱却する
    
    Desired Destination: impl-review-loop が Allowed Paths overlap を検出した際、docs/dev/workflow.md 全文読込ではなく、必要な classification section と Issue metadata / open issue allowed paths だけを参照して C0/C1/C2/C3 を判断し、判断根拠を短く記録できる状態
    
    
    Background
    
    #384 は docs/dev/workflow.md のみを Allowed Paths とする docs-only Issue であり、Scope Collision Classification と script-first 原則を SSOT に固定する一方、エージェントスキル自体の挙動は変更しない。
    
    #338 のケースでは AI エージェントが docs/dev/workflow.md を読み、停止条件に気づいた。それ自体は正しいが、AI agent 作業におけるコンテクスト管理としては望ましくない。運用設計ドキュメントと作業手順書の不整合や厳格すぎるルールに気づけた点は有益だが、毎回正本ドキュメント全文を読む運用は token cost / context pollution / stale instruction carryover のリスクがある。
    
    本 Issue は、#384 の policy を skill 層の HOW に落とし込み、全文 SSOT 読込ではなく section-limited discovery / deterministic command / short evidence logging に寄せる。
    
    Outcome
    
    Allowed Paths overlap を検出した impl-review-loop が、docs/dev/workflow.md 全文を読むのではなく、Scope Collision Preflight 周辺の最小 section、対象 Issue の Allowed Paths、OPEN な関連 implementation issue の Allowed Paths だけを材料に C0/C1/C2/C3 を判定し、proceed | wait | absorb | supersede | split | human_escalation のいずれかを短い machine-readable evidence とともに出力できる状態。
    
    In Scope
    
    impl-review-loop preflight に以下を追加する:
    
    Allowed Paths overlap 単独では即停止しない
    
    overlap 検出時は Scope Collision Preflight の最小 section のみを参照する
    
    C0/C1/C2/C3 classification を行う
    
    C1 は proceed、C2 は dependency / ordering を記録して wait または proceed、C3 は human escalation
    
    判断根拠は issue_number, overlapping_paths, related_issue, collision_class, action, evidence_refs 程度の短い構造で残す
    
    
    ssot-discovery に section-limited retrieval rule を追加する:
    
    docs/dev/workflow.md が必要な場合でも、まず rg -n "Scope Collision Preflight|Hard gate|Allowed Paths overlap|C0|C1|C2|C3" docs/dev/workflow.md で該当箇所を特定する
    
    全文読込は、該当 section 抽出で判断不能な場合の fallback に限定する
    
    
    skill 側に「方針判断を抱え込まない」旨を長文で再定義せず、#384 / docs/dev/workflow.md への参照導線と最小実行手順に留める
    
    
    Out of Scope
    
    docs/dev/workflow.md の policy 本文変更
    
    docs/dev/agent-skill-boundaries.md の責務分離 policy 更新
    
    issue-contract-review の JSON schema / script への scope_collision_check 実装
    
    .github/ISSUE_TEMPLATE/implementation.yml の変更
    
    GitHub API / AST / symbol-level collision 自動判定
    
    既存 OPEN Issue の dependency / parent 構造の一括修正
    
    LLM に workflow 正本全文を読ませる自然言語 workaround の追加
    
    
    Acceptance Criteria
    
    [ ] AC1: impl-review-loop の preflight 手順に Scope Collision Classification または同等の手順が追加されている
    
    [ ] AC2: 同手順に「Allowed Paths overlap 単独では即停止しない」旨が明記されている
    
    [ ] AC3: 同手順に C0/C1/C2/C3 の action mapping(proceed / wait / human_escalation 等)が記載されている
    
    [ ] AC4: ssot-discovery に docs/dev/workflow.md 全文読込ではなく Scope Collision Preflight 周辺を rg 等で section-limited に抽出する手順が追加されている
    
    [ ] AC5: skill 側の追加は HOW に限定され、docs/dev/workflow.md の policy を重複再定義していない
    
    [ ] AC6: collision 判定結果の短い machine-readable evidence 例が存在する
    
    [ ] AC7: pnpm typecheck / pnpm lint / pnpm test / pnpm build が PASS する
    
    
    Verification Commands
    
    # AC1-AC3
    rg -n "Scope Collision|C0|C1|C2|C3|Allowed Paths overlap|即停止|hard stop" .claude/skills/impl-review-loop
    
    # AC4
    rg -n "Scope Collision Preflight|section-limited|全文|rg -n|docs/dev/workflow.md" .claude/skills/ssot-discovery
    
    # AC5
    rg -n "docs/dev/workflow.md|Scope Collision Preflight" .claude/skills/impl-review-loop .claude/skills/ssot-discovery
    
    # AC6
    rg -n "collision_class|overlapping_paths|evidence_refs|human_escalation|proceed|wait" .claude/skills/impl-review-loop
    
    # AC7
    pnpm typecheck && pnpm lint && pnpm test && pnpm build
    
    Allowed Paths
    
    .claude/skills/impl-review-loop/
    
    .claude/skills/ssot-discovery/
    
    .claude/skills/implement-issue/(必要な場合のみ)
    
    
    Stop Conditions
    
    docs/dev/workflow.md の policy 本文変更が必要と判明した場合
    
    issue-contract-review の schema / script 実装が必要と判明した場合
    
    .github/ISSUE_TEMPLATE/implementation.yml の変更が必要と判明した場合
    
    Scope Collision の判定を GitHub API / AST / symbol-level に自動化する必要が判明した場合
    
    skill 側に policy を重複再定義しないと成立しないと判明した場合
    
    nested SubAgent delegation が必要になった場合
    
    外部サービス利用・権限昇格・既存テスト大規模改変が必要になった場合
    
    
    Source
    
    parent_issue: #384
    
    source_comment: https://github.com/squne121/loop-protocol/issues/384#issuecomment-4530546615
    
    related_case: https://github.com/squne121/loop-protocol/issues/338#issuecomment-4529048485
    
    dedupe_key: workflow-scope-collision-skill-minimal-context-loading
    
    
    Delivery Rule
    
    1 Issue = 1 PR
    
    Draft PR 既定
    
    #384 merge 後に着手する
    
    skill 側は docs/dev/workflow.md の policy を再定義せず、最小読込・実行手順・evidence format のみを持つ
    
    
    ## 追加で切るべき Issue 候補
    
    上の Issue は「skill 手順への反映」です。さらに厳密化するなら、別 Issue として **`issue-contract-review` に `scope_collision_check` JSON を実装する** べきです。ただし #384 が明示的に Out of Scope にしているため、同時に混ぜるべきではありません。6
    
    優先順位は次です。
    
    1. **#384**: policy SSOT を `docs/dev/workflow.md` に固定。
    2. **上記後続 Issue**: `impl-review-loop` / `ssot-discovery` が全文読込を避ける手順を持つ。
    3. **さらに後続**: `issue-contract-review` に `scope_collision_check` を JSON / script-first で実装。
    4. **必要なら後続**: `.github/ISSUE_TEMPLATE/implementation.yml` に `edit_intent` / `Scope Collision` セクションを追加。
    
    この順番なら、policy → HOW → deterministic checker → authoring template の依存が明確になります。
  4. squne121 commented on May 25, 2026

    @squne121
    OwnerAuthor

    issue-refinement-loop 更新結果

    対象コメント:

    判定

    • #384 は docs/dev/workflow.md の policy SSOT 更新として維持する
    • 追加指摘どおり、AI agent が毎回 docs/dev/workflow.md 全文を読みに行かず、Scope Collision を最小コンテクストで扱える HOW 層の follow-up が必要
    • 既存 open issue との Allowed Paths 衝突を避けるため、follow-up の write-capable scope は以下に限定した
      • .claude/skills/impl-review-loop/steps/context-protocol-and-guardrails.md
      • .claude/skills/ssot-discovery/scripts/match_ssot.py
      • .claude/skills/ssot-discovery/references/output-contract.md

    起票結果

    #385 に入れた主なスコープ

    • impl-review-loop の Scope Collision 判定で policy 正本全文ではなく section-limited evidence を使う guardrail
    • ssot-discovery の Scope Collision 関連 section 優先抽出
    • collision_class / action / evidence_refs を短く扱う machine-readable evidence 契約

    まだ Out of Scope に残している後続候補

    • issue-contract-review に scope_collision_check を JSON / script-first で実装する follow-up
    • implementation template に edit_intent / Scope Collision authoring セクションを追加する follow-up
  5. squne121 commented on May 25, 2026

    @squne121
    OwnerAuthor

    edit-issue 適用結果

    • issue-contract-review の baseline VC preflight で、AC6-AC9 に置いていた standard quality gate が実装前から unexpected_pass となり BLOCKED になった
    • Issue の実装スコープ自体は維持しつつ、## Verification Commands を baseline fail する marker-based VC (AC1-AC5) に限定した
    • rtk pnpm typecheck / rtk pnpm lint / rtk pnpm test / rtk pnpm build は削除ではなく、実装時の追加検証として Background / Delivery Rule / Runtime Verification Applicability に移した

    Guard summary

    • guard-issue-body.py: all_passed: true
    • AC/VC alignment: AC=5, VC=5

    次に issue-contract-review を再実行し、CONTRACT_REVIEW_RESULT_V1 status: go の materialize を試みる。

  6. squne121 commented on May 25, 2026

    @squne121
    OwnerAuthor

    Contract Snapshot

    CONTRACT_REVIEW_RESULT_V1:
      status: go
      generated_at: 2026-05-25T00:19:34Z
      generated_by: issue-contract-review
      issue_url: https://github.com/squne121/loop-protocol/issues/384
      checks:
        template_compliance: pass
        state_label: ok
        allowed_paths_present: pass
        vc_present: pass
        stop_conditions_complete: pass
        vc_preflight:
          passed: true
          vc_failed_as_expected: 5
          vc_passed_unexpectedly: 0
          vc_unrunnable: 0
          classifications:
            - ac: AC1
              command: 'rg -n "Scope Collision Preflight|C0: no collision|C1: benign overlap|C2: ordered overlap|C3: conflicting overlap" docs/dev/workflow.md'
              exit_code: 1
              category: expected_baseline_fail
              confidence: high
              evidence:
                stdout_excerpt: ""
                stderr_excerpt: ""
              decision: go
            - ac: AC2
              command: 'rg -n "Allowed Paths overlap.*hard stop ではない|重複.*分類して扱う|即停止ではなく" docs/dev/workflow.md'
              exit_code: 1
              category: expected_baseline_fail
              confidence: high
              evidence:
                stdout_excerpt: ""
                stderr_excerpt: ""
              decision: go
            - ac: AC3
              command: 'rg -n "C1.*着手可|C2.*Depends on #N|Work Ordering|C3.*human escalation" docs/dev/workflow.md'
              exit_code: 1
              category: expected_baseline_fail
              confidence: high
              evidence:
                stdout_excerpt: ""
                stderr_excerpt: ""
              decision: go
            - ac: AC4
              command: 'rg -n "設計判断の正本ではなく作業手順を伝える層|不要な背景説明を抱え込まない|確率論的プロンプト層として扱う" docs/dev/workflow.md'
              exit_code: 1
              category: expected_baseline_fail
              confidence: high
              evidence:
                stdout_excerpt: ""
                stderr_excerpt: ""
              decision: go
            - ac: AC5
              command: 'rg -n "決定論的修正|script / config / code|自然言語 workaround" docs/dev/workflow.md'
              exit_code: 1
              category: expected_baseline_fail
              confidence: high
              evidence:
                stdout_excerpt: ""
                stderr_excerpt: ""
              decision: go
        ac_verifiability: pass
        product_spec_check:
          applicability: not_applicable
          decision: pass
          triggers:
            docs_product_allowed_paths: false
            tasks_md_mentioned: false
            specify_artifact_mentioned: false
            generated_task_mentioned: false
            product_spec_context_present: false
          blocked_reasons: []
        worktree_branch_collision: clear
      blocked_reasons: []
      notes:
        - body_sha256=sha256:f49bd5d9d59356abd7d8c5b68dab0e537f8dc3ab9bf6f5b0d2b5155c4e666385
        - blocker_check=OK

    補足:

  7. squne121 commented on May 25, 2026

    @squne121
    OwnerAuthor

    impl-review-loop 実行結果

    実装内容

    • docs/dev/workflow.md の issue contract ready 条件を Hard gate と Scope Collision Preflight に分離
    • C0/C1/C2/C3 の Scope Collision Classification を追加
    • skill / SubAgent は設計判断の正本ではなく作業手順層であることと、workflow 不具合では script / config / code による決定論的修正を優先する原則を追記

    検証

    • AC1-AC5 の rg ベース VC: PASS
    • rtk pnpm typecheck: PASS
    • rtk pnpm lint: PASS
    • rtk pnpm test: PASS
    • rtk pnpm build: PASS
    • GitHub Checks: Passed 5 / Failed 0

    レビュー結果

    Scope overlap メモ

  8. squne121 commented on May 25, 2026

    @squne121
    OwnerAuthor

    review follow-up 反映結果

    PR コメント #386 (comment) を受けて、docs/dev/workflow.md と PR 証跡を更新しました。

    反映した内容

    • SSOT 更新時の「同 PR で HOW / guardrail も更新する」原則に対し、policy-only PR の例外条件を docs/dev/workflow.md に明文化
    • C1 を heading / schema / output contract 非競合まで厳密化
    • C2 を C2a / C2b に分け、predecessor open 時は wait と明記
    • script-first 原則を script / checker / hook / CI → config / template / schema → 手順追記の優先順位で定義
    • PR 本文に scope_collision_evidence と mandatory_follow_up: #385 を追加

    再検証

    PR は引き続き Ready for review / mergeable=MERGEABLE / mergeStateStatus=CLEAN です。

  9. squne121 commented on May 25, 2026

    @squne121
    OwnerAuthor

    post-merge-cleanup: 完了 (2026-05-25T01:02:13Z)

    POST_MERGE_CLEANUP_REPORT_V1:
      status: partial
      generated_at: 2026-05-25T01:02:13Z
      generated_by: post-merge-cleanup
      human_review_required: false
      cleaned_branches:
        - worktree-issue-384-workflow-scope-collision
      cleaned_worktrees:
        - /home/squne/projects/LOOP_PROTOCOL/.claude/worktrees/issue-384-workflow-scope-collision
      unresolved_cleanup_items:
        - "main worktree に未追跡ファイルが存在するため報告のみ(削除なし)"
        - "remote-only branch origin/worktree-issue-384-workflow-scope-collision は未削除"
        - "worktree-issue-366-pytest-classifier は main 未マージのため `git branch -d` 不可"
        - "worktree-issue-64-python-version-pin は main 未マージのため `git branch -d` 不可"
        - "gemini-cli-headless-delegation は `gemini auth login` 未完了で fail-closed。類似 issue 調査は local gh search で代替"
      parent_issue_status:
        parent_issue_number: null
        all_children_closed: false
        recommended_action: n/a
      superseded_prs: []
      follow_up_issue_requests:
        - title: "実装: issue-contract-review に scope_collision_check を JSON / script-first で追加する"
          issue_kind: implementation
          severity: optional_follow_up
          source:
            kind: post_merge_cleanup
            url: "https://github.com/squne121/loop-protocol/pull/386#issuecomment-4530730210"
            note_id: "1"
          dedupe_key: "issue-contract-review-scope-collision-check-json-script-first"
          desired_destination: "issue-contract-review が OPEN implementation issue の Allowed Paths overlap を collision evidence として構造化出力し、caller が C0/C1/C2/C3 判定を最小入力で行える状態"
          validated_scope_delta: ".claude/skills/issue-contract-review/scripts/ と対応 tests、および必要最小限の reference に限定する。#385 の HOW-layer 手順追加とは統合しない。"
          origin_skill: post-merge-cleanup
          labels:
            - triage-required
      stash_restored: n/a
      stash_entry_ref: null
      warnings:
        - "Gemini headless delegation auth failed; fallback search used"
      errors: []
    FOLLOW_UP_MATERIALIZATION_RESULT_V1:
      follow_up_issues:
        - request_dedupe_key: "issue-contract-review-scope-collision-check-json-script-first"
          issue_number: 387
          issue_url: "https://github.com/squne121/loop-protocol/issues/387"
          status: created
      note_only_observations:
        - dedupe_key: "follow-up:squne121/loop-protocol:issue/385:how-layer-sibling"
          source_url: "https://github.com/squne121/loop-protocol/issues/385"
          source_note_id: "1"
          summary: "#385 は HOW-layer 手順反映を扱う sibling follow-up のため #387 へ統合しなかった"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent/implementerenhancementphase/implementation

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions