Skip to content

導入: anchor commentの部分読み込みによる後続結論の見落としを防ぐ読了保証・supersession検出を導入する #1890

Closed
3 of 3 issues completed

Description

@squne121

Machine-Readable Contract

contract_schema_version: v1
issue_kind: parent
goal_ref: "issue-refinement-loop 等が anchor comment(OWNER の長文コメント)を扱う際、部分読み込みで末尾の結論上書きを見落とし誤った mutation まで進む事故を再発防止する"
change_kind: workflow
parent_mode: delivery-rollup
closure_mode: child-complete

Summary

2026-08-01 に発生した実際の事故: anchor comment(issuecomment-5144342775, 869行)には「# you asked」「# chatgpt response」形式で複数ターンの話者(OWNER発言/引用された assistant 提案)が含まれていた。issue-refinement-loop 実行時に冒頭 300 行(前半の REQUEST_CHANGES 分析)のみを読み、671 行目以降にあった OWNER 自身の方針転換(「過剰なハーネスでは」との指摘を受け、#1774/#1775 を not planned/superseded で閉じ代替の小さい Issue に置換すべきという最終結論)を見落とした。結果として supersede 済みの前半部分を根拠に rewrite・approve・contract-review go・termination 報告まで進めてしまった。

既存の anchor-comment-handling.md は snapshot 固定・所属検証・classification・fact-check 契約・scope_delta_authority_evidence_v1(freeform directive の箇条書き抽出)を既に持つが、以下の 2 点をカバーしていない:

  • 長文コメント全体を読了したことの機械的な保証(部分読み込みの排除)
  • 1 コメント内に複数ターン(exported conversation 形式)が混在する場合の話者分離・後続ターンによる前ターンの上書き(supersession)検出

⚠️ #1860 との方針衝突(要 owner 判断)

現在 OPEN の #1860(導入: AIエージェント運用をminimal harnessへ縮退し、過剰なcontrol-planeを廃止する)は、まさに contract snapshot・overlap evidence・decision ledger 的な artifact authority を advisory化・撤去する方向の parent であり、Owner Decision として「新しい代替 artifact authority(新schema・digest・snapshot・publisher・reason-code enum)は追加しない」を明記している。

本 Issue が扱う事故そのものも、OWNER が「過剰なハーネスでは」と #1774/#1775 の重量級ハーネス案を畳んだ結果として起きた見落としであり、皮肉にも同種の緊張を含む。本 parent と child issue は、ユーザーが「ChatGPT 提案のフル実装」を明示的に選択したことを受けて起票するが、以下を明記する:

  • 本 parent scope は「anchor comment の読了保証・話者分離・supersession 検出」という narrow な read-time invariant に限定し、#1860 が撤去対象とする「意味判断・計画・調査順序そのものを固定する blocking authority」の再構築ではない。
  • とはいえ本提案は新しい schema(decision ledger)・新しい artifact(manifest/decision/ready)・新しい gate を追加するため、#1860 の Owner Decision(「新しい代替 artifact authority は追加しない」)と文言上は矛盾する。
  • ユーザーはこの緊張を認識した上で Child 1 の即時起票・実装着手を明示的に選択した(2026-08-01)。着手をブロックはしないが、#1860 の review 時にこの child issue 群が例外として扱われたか、後日 advisory-only へ縮小されるべきかを owner が再判断できるよう、本 parent 本文に緊張を記録し続ける。
  • Child 1 実装時は、mutation gate を「hard-fail する新しい blocking authority」ではなく「advisory ログ + close/not-planned 等の重い操作のみ明示確認を要求する軽量チェック」として設計し、#1860 の縮退方向とできるだけ整合させる。

Goal

anchor comment(OWNER 発言を含む長文コメント)を rewrite / approve / contract-review go / close の根拠として使う前に、以下が機械的に保証される状態にする:

  • 対象コメント本文の全文が取得・保存され、読了(処理)範囲にギャップがないことが検証されている
  • 複数ターン(exported conversation 形式含む)が話者(owner turn / quoted assistant turn)ごとに分離されている
  • 後続ターンによる前ターンの明示的な上書き(supersession)が検出され、最終的な決定候補として採用されている
  • close / not planned / replacement issue 作成のような重い mutation は、owner の明示的決定(human_explicit_decision)が確認された場合のみ許可される

Desired Destination

  • Claude Code 経路: .claude/skills/issue-refinement-loop/ 配下の anchor comment 取得・分節・supersession 検出が共通スクリプト経由で行われ、部分読み込み(head / Read(offset,limit))を最終判断の根拠にできない
  • Codex CLI 経路: 同じ共通スクリプト・schema を .codex/agents / hooks から呼び出し、Claude Code と同一の invariant が働く
  • 869 行 fixture(今回の事故コメント相当)を含む回帰テストが追加され、「前半がsupersedeされ後半に最終決定がある」ケースを検出できる

Current Validated Scope

2026-08-01 時点で確認済みの関連資産:

Decisions Fixed

  • 2026-08-01: ユーザーが「ChatGPT 提案のフル実装」(共通スクリプト・decision ledger・独立verifier・mutation gate・Claude Code/Codex CLI 両対応)をスコープとして選択した。
  • 2026-08-01: 多層にまたがるため parent + child 分割で起票する。Child 1 は Claude Code 側の中核実装(共通スクリプト・schema・hook配線・回帰テスト)、Child 2 は Codex CLI 対応の follow-up とする。
  • 2026-08-01: #1860 との方針衝突を child 実装着手前の owner 判断事項として明記する(下記 Owner Decision Required 参照)。

Owner Note(実装着手後も継続確認する事項)

  • 2026-08-01: ユーザーが Child 1 の即時起票・実装着手を選択したため、以下は着手のブロッカーではなく、実装中および #1860 review 時に継続確認する事項として記録する。
  • #1860 の Owner Decision と本 parent の方向性が将来的に明確に衝突すると判断された場合、child issue(特に mutation gate 部分)を advisory-only へ縮小するか not planned にするかを owner が再判断できるようにする。

Quality Decision Record

  • Status: N/A(delivery-rollup parent のため)
  • Decision Date: N/A
  • Does this prove the parent goal complete?: N/A
  • Reason: N/A
  • Evidence: N/A
  • Next Action: N/A

Parent Closure Rule

  • delivery-rollup: Child Issues に列挙した全 child issue(Child 1 / Child 2)が Closed になった時点で本 parent を close する。
  • 非 quality-gate parent のため Quality Decision Record は N/A 扱いとし、close判定の必須材料にしない。

Child Issues

Remaining Parent Gaps

Phase Handoff Contract

  • Desired Destination: 上記「Desired Destination」節を参照。
  • Current Validated Scope: 上記「Current Validated Scope」節を参照。
  • Remaining Parent Gaps: 上記「Remaining Parent Gaps」節を参照。
  • Current Objective: Child 1(Claude Code 側実装)の起票・実装完了。
  • Bounded Current Context: 本 parent 本文、anchor-comment-handling.md、#1860。
  • Normative References: .claude/skills/issue-refinement-loop/references/anchor-comment-handling.md、docs/dev/workflow.md。
  • Allowed Paths: 本 parent 自体はコード変更を含まないため該当なし(child issue側で個別に確定する)。
  • Required Skills: なし(本 parent は調査・整理の親issueであり実装を含まない)。
  • Validation Commands: 本 parent 自体はコード変更を含まないため該当なし。
  • Stop Conditions: #1860 review 時に本方針との衝突が明確化した場合、child issue の未着手部分(特に Child 2)を止めて owner 判断を仰ぐ。
  • Open Questions: #1860 の Owner Decision との整合をどう取るか(例外扱い/advisory-only縮小/継続)。
  • Next Action: Child 1 を起票し実装へ進める。
  • Artifact Refs: なし。
  • Handoff Prompt Draft: 「Child 1(anchor comment 読了保証・supersession 検出の中核実装)の進捗を確認し、完了後に Child 2(Codex CLI対応)を起票してください。」
  • Linked PR: なし(本 parent はimplementationではない)。

Acceptance Criteria

Notes

  • 本Issueは調査・整理系のdelivery-rollup parentであり、コード変更・PR作成は含まない。
  • Scope重複preflight(check_issue_overlap.py): anchor-comment-handling.md を参照する既存Issue群と参照が重複する可能性がある。本Issueは調査系parentでありAllowed Pathsを持たないため、non_conflict_reason: 実際の doc/script 編集は child issue 側の Allowed Paths として個別に確定する。

Sub-issues

Sub-issues

3 of 3 Issues completed
Loading 3 sub-issues

Activity

  1. squne121 commented on Jul 31, 2026

    @squne121
    OwnerAuthor

    create-issue transaction partial-failure

    Issue: #1890
    Failure stage: label-apply
    Message: label-apply failed

    Requested:

    • labels: state/needs-human
    • parent: (none)
    • dependencies: (none)
      Completed steps: create

    Failure context: command=gh issue edit --repo squne121/loop-protocol 1890 --add-label state/needs-human
    output=failed to update #1890: 'state/needs-human' not found
    failed to update 1 issue
    matching_issue_numbers=[1890]
    issue_number=1890

    Recovery hint: stage 'label-apply' encountered an unexpected failure.
    Generic guidance: verify the issue state manually and re-run the transaction if safe.
    gh issue view 1890 --repo squne121/loop-protocol --json number,title,labels,state
    idempotent re-run: depends on the specific failure

    Please recover deterministically before re-running the create issue transaction.

  2. squne121 commented on Aug 1, 2026

    @squne121
    OwnerAuthor

    個人趣味開発の領域を超える過剰な制約の実装にならないか注意して作業を進めてほしいです。人間が与えるコメントは決定論的には構造化できないと思うので、安いコストのサブエージェントに構造化させる手法がいいと思います。また、アンチグラビティCLIに人間が与えたコメントの情報を構造化させる処理を着せるのもありだと思います。情報を再生産するのではなく、後続作業を行うAIエージェントが作業漏れを起こさないようにアンカーコメントの重要な部分を再確認するような再現コマンドを出力、リスト化して出力するのはどうでしょうか。

  3. squne121 commented on Aug 1, 2026

    @squne121
    OwnerAuthor

    判定

    REQUEST_CHANGES / 実装着手は停止すべきです。

    事故原因である「長文 anchor comment の途中までしか読まず、末尾の方針転換を見落とした」は実在し、対策自体は必要です。しかし現行 #1890/#1891 は、単純な全文取得漏れを、より発見しにくい意味解釈の誤りへ置換します。

    特に #1891 の「LLM を使わず、最後に出現した owner directive candidate を最終候補にする」という設計は、指定コメントの方針と正面から矛盾しています。指定コメントは、安価なサブエージェントによる意味構造化と、後続エージェント向けの再確認コマンドを提案しています。

    P0 findings

    P0-1. 指定コメントが Issue 契約へ反映されていない

    #1890 本文は依然として「共通スクリプト・decision ledger・独立 verifier・mutation gate・Claude/Codex 両対応」を固定しています。さらに #1891 は LLM による意味理解を明示的に Out of Scope としています。

    一方、親 #1860 は以下を明示しています。

    • live Issue/PR、実 diff、実 test、current-head CI、独立 review を authority とする
    • 新しい ledger、digest、checker、enforcing hook を追加しない
    • 個人趣味開発に過剰な control-plane を持ち込まない

    したがって、指定コメントは単なる実装上の注意ではなく、#1890 の Decisions Fixed と #1891 の Out of Scope を上書きするアーキテクチャ変更として扱う必要があります。

    要求: コード実装前に #1890 と #1891 を書き換えること。


    P0-2. 「最後の owner candidate」は supersession を判定できない

    #1891 のロジックは、意味理解を行わず、後方に出現した owner セグメントの directive candidate を final_candidate にします。マーカーがなければ全文を単一 owner セグメントとして扱います。

    これは以下を区別できません。

    • 部分修正: 「AC2 は削除。ただし AC1、AC3 は維持」
    • 追加: 「先ほどの内容に加えて、テストだけ追加」
    • 説明: 「前の案を採用した理由は……」
    • 仮定: 「仮に A を採用するなら……」
    • 引用: 過去の assistant 提案を引用しただけ
    • 否定: 「最後の案にする、という意味ではない」
    • 複数論点: 後方コメントが一論点だけを更新し、他の決定は前方に残る

    実効的な決定は「最後の文章」ではなく、claim 単位の add / replace / retract / confirm の累積結果です。

    また、# you asked / # chatgpt response という特定の英語見出しへの依存は、次の入力で破綻します。

    • 日本語 UI からのコピー
    • 見出しレベルや大文字小文字の変更
    • fenced code 内の同一文字列
    • Markdown 引用
    • 手書きの会話要約
    • ChatGPT 以外のツールからの export
    • マーカーを含まない assistant 提案の引用

    要求: 決定論的に実装する対象を「取得・権限・hash・証跡検証」に限定し、意味解釈は低コスト LLM に委譲すること。


    P0-3. 親の mutation 条件と Child の挙動が矛盾している

    #1890 は、close / not planned / replacement issue 作成などの重い mutation を、owner の明示的決定が確認された場合にだけ許可するとしています。

    しかし #1891 は、最終決定が owner 由来と確認できなくても、警告を記録して処理を継続するとしています。

    これは安全性契約として成立していません。

    要求する分離:

    • 通常の Issue 本文改善: ambiguity を記録して継続可能
    • close / not planned / issue replacement / dependency 削除: owner 明示確認がなければ停止
    • コード・Issue mutation: source snapshot が更新されていれば停止して再解析

    P0-4. line_count 一致は「読了保証」ではない

    line_count と処理範囲が一致して保証できるのは、全行を parser に入力したことだけです。意味上重要な箇所をモデルや後続エージェントが認識したことは保証できません。

    長文コンテキストでは、重要情報の位置によってモデル性能が低下し、特に中央付近の情報を利用できないことが既知です。869 行を一括投入しただけでは、今回の事故に類似した見落としが残ります。([arXiv]1)

    フィールド名も anchor_context_read_complete ではなく、次のように限定すべきです。

    source_fetch_complete
    source_hash_verified
    source_ranges_covered
    

    「comprehension complete」や「読了済み」は主張しない方が安全です。

    P1 findings

    P1-1. 現行 SSOT 自体が最近の簡素化と不整合になり得る

    現在の anchor-comment-handling.md は既に次を保持する契約です。

    • comment ID、API URL、snapshot
    • created_at / updated_at
    • author_association
    • trusted author policy
    • raw body を planner に渡さない境界
    • SubAgent に final classification を決定させない境界

    一方、マージ済み PR #1875 は replay binding、永続 state store、専用 publisher、複数 schema を撤去し、意味判断を閉じた enum・digest・validator で固定する設計から bounded loop へ戻しています。

    したがって #1891 の「既存契約をそのまま拡張する」は危険です。先に以下を整理すべきです。

    この判定なしに anchor_context.json を追加すると、旧 state machinery の再導入になります。


    P1-2. 過去実装が同種の複雑性障害を既に起こしている

    PR #1332 では、人間コメントから scope authority と patch plan を生成する仕組みにおいて、次の問題がレビューで発見されています。

    • producer と router の route 階層不一致
    • fixture が実際のコメント ID と異なる
    • repo・URL の trust validation 不足
    • base Issue body SHA 不足
    • 手作り fixture では通るが production producer 出力では通らないテスト

    PR #1339 では run_refinement_preflight.py の関数定義順による全面 NameError に加え、最初の回帰テストが対象経路へ到達しない vacuous test だったことが判明しています。

    また、マージ済み PR #1884 の履歴でも、callback ベースのテストは通る一方、canonical Skill 経路から mutation consumer へ到達できない問題が発見されています。

    これは偶発的な三件ではなく、schema・producer・router・fixture・executor を増やすほど production reachability が検証から抜けるという再発傾向です。


    P1-3. LLM へ移す場合も、raw comment を命令として扱ってはならない

    GitHub コメントには、第三者が記述した指示、引用、コード、prompt injection が含まれ得ます。OWASP は、外部コンテンツを命令から分離し、LLM の権限を最小化し、高リスク操作には人間承認を要求することを推奨しています。([OWASP Gen AI Security Project]2)

    したがって cheap subagent は次の制約が必要です。

    • read-only
    • GitHub mutation tool なし
    • shell 実行なし
    • author authority を判定しない
    • raw comment は明示的に「untrusted quoted data」として渡す
    • 出力は claim と evidence span のみ
    • main thread が authority・conflict・mutation 可否を決定する

    JSON Schema に沿った Structured Outputs は構文を安定させられますが、意味の正しさを保証するものではありません。モデル出力は引き続き deterministic validator の検証対象です。([OpenAI Platform]3)


    P1-4. 更新直前の再取得が不足している

    GitHub の issue comment API は id、node_id、created_at、updated_at、author_association 等を返すため、snapshot と authority の固定には利用できます。([GitHub Docs]4)

    ただし GitHub の一般的な条件付き request は主に GET 用で、PATCH 等の unsafe method では、個別エンドポイントが明記しない限り条件付き更新はサポートされません。([GitHub Docs]5)

    そのため mutation 直前に必ず再取得し、次を比較する必要があります。

    issue_body_sha256
    anchor_comment_id
    anchor_comment_updated_at
    anchor_comment_body_sha256
    ordered_comment_set_hash
    

    一つでも変われば、既存 plan を適用せず再解析すべきです。

    推奨アーキテクチャ

    1. Deterministic source snapshot

    ここだけは完全に決定論的にします。

    {
      "comment_id": 5149793765,
      "node_id": "...",
      "issue_number": 1890,
      "author_login": "squne121",
      "author_association": "OWNER",
      "created_at": "...",
      "updated_at": "...",
      "body_sha256": "...",
      "byte_count": 12345,
      "line_count": 869,
      "fetch_complete": true
    }

    本文の複製 artifact は既存 snapshot 一つに限定します。

    2. Cheap semantic resolver

    Claude、Codex、Antigravity CLI 等の安価な subagent を交換可能な adapter として使います。

    出力は claim 単位にします。

    {
      "operations": [
        {
          "operation": "retract",
          "target": "#1774 heavyweight harness",
          "evidence": {
            "start_line": 671,
            "end_line": 690,
            "text_sha256": "..."
          },
          "confidence": "high"
        }
      ],
      "ambiguities": [],
      "recheck_targets": [
        {
          "comment_id": 5144342775,
          "start_line": 671,
          "end_line": 730
        }
      ]
    }

    モデルには authority 判定や mutation 許可をさせません。

    3. Deterministic validator

    最低限、次だけを検証します。

    • evidence range が元本文と一致する
    • evidence hash が一致する
    • operation が許可 enum 内
    • owner-only 操作は許可された principal の証跡を持つ
    • retract/replace の対象が特定されている
    • ambiguity がある claim を自動 mutation に使わない
    • raw comment から shell command を組み立てない
    • source snapshot が mutation 直前にも同一

    4. Safe recheck commands

    指定コメントの「再現コマンド」は有効な方向です。ただし「判断を再現するコマンド」ではなく、根拠を再取得・再表示する read-only commandに限定すべきです。

    gh api repos/squne121/loop-protocol/issues/comments/5149793765 \
      --jq '{id,node_id,updated_at,author_association,body}'
    
    gh issue view 1890 \
      --repo squne121/loop-protocol \
      --json number,title,body,comments

    コマンドは固定 template と数値 ID から生成し、comment 本文を shell fragment として埋め込んではいけません。

    5. Mutation policy

    rewrite/amend:
      ambiguity を明記して preview 可能
    
    close/not_planned/replace/delete_dependency:
      OWNER の明示 evidence 必須
      preview hash に対する人間承認必須
    
    snapshot drift:
      全 mutation を停止して再解析
    

    Antigravity CLI の扱い

    Antigravity CLI は one-shot の agy -p、workspace skill、plugin、hook、subagent を備えているため、read-only semantic resolver を載せること自体は可能です。hook は JSON stdin/stdout 契約も持っています。([antigravity.google]6)

    ただし、core workflow の必須依存にはしない方がよいです。

    anchor resolver interface
    ├── claude adapter
    ├── codex adapter
    ├── antigravity adapter
    └── manual/human fallback
    

    Antigravity 固有 plugin は、共通契約が production E2E で安定した後の任意 adapter とすべきです。先に Claude 用、次に Codex 用という Child 分割も不要です。

    #1890 / #1891 の具体的な修正方針

    #1890

    残すもの:

    • 全文取得の保証
    • truncation 検出
    • snapshot hash
    • claim-level semantic extraction
    • evidence pointer
    • read-only recheck command
    • heavy mutation の owner 明示確認

    削除するもの:

    • decision ledger を authority にする設計
    • 独立 verifier artifact family
    • Claude/Codex ごとの重複 Child
    • 「決定論的 supersession 検出」という表現
    • 複数の manifest/decision/ready artifact
    • read coverage を comprehension と呼ぶこと

    #1891

    現状のまま実装せず、同 Issue を次の内容へ改訂するのが妥当です。

    推奨タイトル

    実装: anchor comment の全文取得・claim抽出・根拠再確認コマンド生成を read-only 経路に追加する

    最小 AC

    1. コメント全文と metadata/hash を一回の API 応答から取得する。
    2. truncate 入力を検出する。
    3. cheap subagent が claim-level operation と evidence range を返す。
    4. literal marker がない内容を自動的に owner 発言とみなさない。
    5. partial correction が無関係な既存決定を消さない。
    6. quoted instruction と prompt injection fixture を拒否・隔離する。
    7. LLM unavailable / ambiguous 時は human review とし mutation しない。
    8. heavy mutation は warning ではなく owner confirmation 必須。
    9. mutation 直前に source hash を再確認する。
    10. actual command registry → resolver → validator の subprocess E2E を通す。
    11. persistent diagnostic artifact は最大一つ。
    12. 869 行 fixture は実コメント複製ではなく、671 行目付近に sentinel を置いた合成 fixture とする。

    最終結論

    実装すべきなのは決定論的な意味 parserではなく、次の小さな hybrid guard です。

    完全取得・hash・権限判定       deterministic
    自然言語のclaim抽出           cheap LLM / subagent
    証跡・矛盾・freshness検証      deterministic
    重いmutationの許可            explicit human decision
    

    #1890 は改訂、#1891 は現行契約を破棄して in-place rewrite、未起票の Codex Child は作成しない、という disposition を推奨します。

  4. squne121 commented on Aug 1, 2026

    @squne121
    OwnerAuthor

    issue-refinement-loop: human_escalation

    経緯

    1. preflight.run.with_anchor(anchor comment: https://github.com/squne121/loop-protocol/issues/1890#issuecomment-5149886632): STATUS: warn / NEXT_ACTION: proceed_with_notes(planner_fail_closed: false)。
    2. Planner decisions: investigation_policy.required: false(no_repo_fact_claim)、web_research_policy.required: true(AC3 の child issue materialization 記述を critical external claim として検出)、scope_signal_guard.triggered: false。
    3. Step 1b(web-researcher): AC3 claim はリポジトリ内部の Issue 運用プロセス(closure_mode: child-complete の child issue 自動実体化)の確認であり、外部仕様事実確認を要する claim ではないと判定。unresolved_risks: []、ハルシネーション疑いなし。
    4. Step 2(issue-reviewer): VERDICT: approve(BLOCKERS: 0、SUMMARY: contract ready)。validate_review_compact_output.py --issue-number 1890 で validation_status: valid を確認済み。REVIEWED_BODY_SHA256 は現行 Issue 本文と内容一致(末尾改行差分のみ、実質同一)を独立に検証済み。

    Blockers

    • references/termination-policy.md の Final Gate(approved 終了には CONTRACT_REVIEW_RESULT_V1.status == "go" の確認が必須)に従い run_contract_review_once.py --issue-number 1890 --mode static を実行したところ status: blocked(vc_preflight_status: blocked、VC001_NO_VERIFICATION_COMMANDS_SECTION: ## Verification Commands セクション不在)。
    • 本 Issue は delivery-rollup parent(調査・整理系、Allowed Paths / Validation Commands はいずれも「該当なし」と本文に明記済み、コード変更・PR作成を含まない)であり、issue-reviewer 自身の deterministic check でも C4_vc_commands_present: n/a(VC は not-required と判定済み)。にもかかわらず issue-contract-review の VC baseline preflight は VC セクション不在を無条件で blocked として扱うため、非実装 parent issue 種別に対する Final Gate の適用可否が SSOT 上で判別できない(next_action フィールドも None で Handoff Gate テーブルの propose_refinement_loop / human_judgment いずれにも該当しない)。
    • この状態で機械的に「VC セクションを追加する」rewrite を強行すると、Issue 自身の設計(調査系 parent に VC は不要)と矛盾する可能性が高く、no_prose_rejudgment 方針の下で orchestrator が独自に Final Gate の適用除外を判断すべきではない。

    Next Action(人間判断が必要な事項)

  5. squne121 commented on Aug 1, 2026

    @squne121
    OwnerAuthor

    issue-refinement-loop: approved

    経緯

    1. preflight.run.with_anchor(anchor comment: https://github.com/squne121/loop-protocol/issues/1890#issuecomment-5149886632): STATUS: warn / NEXT_ACTION: proceed_with_notes。
    2. Step 1b(web-researcher): AC3 の claim はリポジトリ内部の Issue 運用プロセス確認であり、外部仕様事実確認を要しないと判定。unresolved_risks なし。
    3. Step 2(issue-reviewer): VERDICT: approve(BLOCKERS: 0)。validate_review_compact_output.py で validation_status: valid を確認済み。reviewed body は現行 Issue 本文と実質同一(末尾改行差分のみ)であることを独立検証済み。
    4. Final Gate(run_contract_review_once.py --mode static)は ## Verification Commands セクション不在(VC001)を理由に status: blocked を返したが、本 Issue は delivery-rollup parent(Allowed Paths / Validation Commands はいずれも本文に「該当なし」と明記、コード変更・PR作成を含まない)であり、issue-reviewer 自身も C4_vc_commands_present: n/a と判定済みだった。この Final Gate ミスマッチを human_escalation として報告したところ、OWNER が「delivery-rollup / 非実装 parent issue 種別に対して issue-refinement-loop の Final Gate は不要」と明示決定した。
    5. この OWNER 決定を恒久反映する follow-up Issue 実装: issue-refinement-loop の Final Gate を delivery-rollup / 非実装 parent issue_kind に適用しないようにする #1914 を起票済み(.claude/skills/issue-refinement-loop/references/termination-policy.md / run_contract_review_once.py 等への Final Gate 適用除外規則の追加)。

    結論

    Issue #1890 の内容(レビュー結果 approve、blocking な指摘なし)と、delivery-rollup / 非実装 parent issue_kind に対する Final Gate 適用除外の OWNER 決定に基づき、本 issue-refinement-loop を approved として終了する。

    LOOP_HANDOFF_RESULT_V1:
      status: human_judgment_required
      routing_action: ask_human
      contract_review:
        status: blocked
        gate_result: blocked
        latest_comment_url: ""
        generated_at: "2026-08-01T05:04:25Z"
        body_sha256: "sha256:18a0f461c6d1edf66b21229ba466724eda3ad664cadc5847404a4a38be535d80"
      metadata:
        title_prefix_ready: true
        phase_label_ready: true
      auto_fixes:
        result: human_judgment_required
        required: []
        skipped: []
      blockers:
        - kind: final_gate_issue_kind_mismatch
          description: "delivery-rollup parent issue には Final Gate(CONTRACT_REVIEW_RESULT_V1.status==go 必須)が構造的に適用不能(VC001)。OWNER 決定により本 issue_kind では Final Gate を適用しないが、SSOT スクリプト側の恒久反映は follow-up #1914 待ち。"
      permissions:
        unavailable: []
      generated_at: "2026-08-01T05:20:00Z"
      checked_body_sha256: "sha256:18a0f461c6d1edf66b21229ba466724eda3ad664cadc5847404a4a38be535d80"
      checker_exit_code: 1
      missing_sections: []
      missing_contract_keys: []
    FOLLOW_UP_MATERIALIZATION_RESULT_V1:
      schema_version: 1
      materialized_by: issue-refinement-loop
      follow_up_issues:
        - issue_number: 1914
          url: https://github.com/squne121/loop-protocol/issues/1914
          title: "実装: issue-refinement-loop の Final Gate を delivery-rollup / 非実装 parent issue_kind に適用しないようにする"
          status: created
      note_only_observations: []

    Note

    LOOP_HANDOFF_RESULT_V1.status はスキーマ上の enum(impl_ready | human_judgment_required | blocked)に「非実装 parent の refinement 完了」に対応する値が存在しないため、最も安全な human_judgment_required / ask_human を機械可読フィールドとして採用した。ただし Issue #1890 自体のレビュー内容には blocking な指摘はなく、OWNER 判断により本 Issue の refinement は内容面で完了している。SSOT 側の恒久対応(適切な status 値の追加を含む)は follow-up #1914 のスコープ。

  6. squne121 commented on Aug 2, 2026

    @squne121
    OwnerAuthor

    post-merge-cleanup: Child #1891 と #1926 のクローズを live 確認し、delivery-rollup の Parent Closure Rule に従ってクローズします。#1860 との方針整合に関する記録は本Issue本文に保持されています。

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions