Skip to content

実装: scope reframe の no-progress retry 抑制を process restart をまたいで永続化する #2077

Closed as not planned

Description

@squne121

Machine-Readable Contract

contract_schema_version: v1
issue_kind: implementation
parent_issue: "none"
goal_ref: "同一 disposition/同一入力に対する no-progress な contract_update retry を process restart をまたいで抑制する"
change_kind: code

Parent Issue

なし(単独改善。ただし #2052 が本 Issue と責務重複する可能性があり、parent_issue: none の妥当性は Background / Notes for Reviewer を参照)

Parent Goal Ref

Current Validated Scope

Remaining Parent Gaps

  • scope-reframe の confirmed no-progress identity(fingerprint)が、既存の persistent state(route_after_rewrite.py の LOOP_REWRITE_ROUTER_STATE_V1)や canonical production caller に接続されていない(「永続化機構が存在しない」という以前の記述は不正確であり、正しくは「既存機構への未接続」である)

Outcome

process restart をまたいでも同一 disposition・同一入力に対する no-progress な contract_update retry を抑制できる永続化機構が実装され、対応する統合テスト(process-boundary を跨ぐ subprocess ベースの検証を含む)が追加されて PASS している状態。ただし本 Issue 着手前に、新規 store を作らず既存 route_after_rewrite.py router state または #2052 evidence state への統合可否を確定する。

Background

Issue #2048(PR #2057、マージ済み)の OWNER レビューで、replay/comment fingerprint suppression が production caller から history を渡されていないため機能しない問題が指摘された。最終的な解決では、should_post_comment / duplicate_comment / fingerprint 機構自体を削除し、comment_action: "none" に統一することで AC3(comment 重複投稿なし)を構造的に解決したが、これは「comment 投稿自体をやめる」という設計判断であり、「no-progress な contract_update retry を抑制する」というより広い目的(同一 disposition/同一入力に対する重複作業の防止)については、deterministic pure classifier による再計算で実質的に write 0 が保証されているものの、明示的な process-restart をまたいだ fingerprint 永続化機構は実装されていない。

さらに、PR #2057 の OWNER レビューでは、当時の fingerprint が anchor_comment_url + issue_body_sha256 のみで構成され、anchor body hash・comment ID・normalized delta・repo・issue number・disposition/version を欠くことが指摘済みである。#2053(PR #2068)が canonical payload digest・source generation・issue/comment hash・invocation binding を定義しようとしているため、本 Issue が独自の identity schema を先に作ると二重 SSOT になる。PR #2068 の authority digest contract が確定した後、それを再利用すべきである。

また、現行 main には既に route_after_rewrite.py が LOOP_REWRITE_ROUTER_STATE_V1 を --state-path 経由で永続化しており、rewrite_request_fingerprint / previous_rewrite_request_fingerprints を保存する仕組みが存在する。以前の Issue 本文にあった「process restart をまたいだ fingerprint / replay history の永続化機構は存在しない」という記述は不正確であり、正しくは「scope-reframe の confirmed no-progress identity が、この既存 persistent state / canonical production caller に接続されていない」である。

責務重複と依存関係

#2052 は SHA-bound evidence key・HEAD/Issue body/comment body/config/tool-version drift invalidation・identical no-progress command の再実行防止・mutation authority を cache にしない、という責務を既に所有している。本 Issue に新規 generic fingerprint store を作るより、#2052 の evidence index がこの persistence semantics を所有するかどうかを先に決定すべきである。所有する場合は本 Issue を #2052 に吸収し、所有しない場合はその理由と境界を明記する。

将来的に replay 抑制の永続化が必要になった場合の follow-up として記録する。現状は deterministic classifier により実害がないため、優先度判断は人間に委ねる(triage-required ラベル)。

In Scope

  • 未確定。着手時に scope reframe の該当コード(scope reframe 実装箇所)を調査し、永続化対象とする fingerprint history のデータ構造・保存先を決定した上で In Scope を確定する
  • 着手する場合は scope を「same-host sequential restart」に限定する(worktree / CLI session / CI job / GitHub Actions workflow run / runner・machine をまたぐ persistence は対象外とする。GitHub-hosted runner は job ごとに新しい VM が provision されるため checkout 内 JSON/SQLite だけでは別 job/run への persistence にならない)
  • 新規 DB / 新規 fingerprint store を作らず、既存の route_after_rewrite.py router state(LOOP_REWRITE_ROUTER_STATE_V1)または 実装: SHA-bound evidence index と command fingerprint budget で再読・重複調査・wait polling による context churn を抑制する #2052 の evidence state のどちらかに last_confirmed_no_progress: {fingerprint, disposition, classifier_version} 1件を統合する案を優先候補とする(unbounded history ではなく直近 1 件で restart 直後の直前 retry 重複だけを防ぐ)
  • fingerprint identity の schema は 実装: fix(issue-refinement-loop): bind freeform OWNER scope authority end-to-end and expose routing telemetry #2053(PR fix(issue-refinement-loop): bind freeform OWNER scope authority end-to-end and expose routing telemetry #2068)の canonical payload digest contract が確定した後、それを再利用する(独自 identity schema をここで新規定義しない)
  • persistence commit point は attempt 開始時ではなく、fresh authority/Issue input 確認 → pure classifier 実行 → 対象 disposition 確認 → write/effect が発生していないことの確定、の後に置く(attempt ledger と confirmed outcome ledger を混同しない)
  • 「何を suppress するのか」は classifier の再計算そのものではなく、classifier が同一の confirmed no-progress disposition を返した場合の後段 redundant orchestration(例: 重複する contract_update consumer invocation / issue_editor_required handoff / GitHub mutation)に限定する。pure classifier は fresh input/binding を毎回取得し毎回再計算する(persisted history を semantic authority にしない)

Out of Scope

Acceptance Criteria

  • AC1: process A が confirmed no-progress disposition を永続化して exit した後、別 subprocess として起動した process B が同一 fingerprint に対して downstream の redundant orchestration(contract_update consumer invocation 等)を 0 回に抑制することを、2 個の別 subprocess を用いた統合テストで示し PASS する
  • AC2: 永続化された last_confirmed_no_progress が既存の deterministic pure classifier の再計算結果と矛盾しないことを確認する回帰テストが PASS する
  • AC3: Issue body の SHA が drift した場合、process B は suppress せず fresh な retry を実行することを確認するテストが PASS する
  • AC4: fresh authority payload(PR fix(issue-refinement-loop): bind freeform OWNER scope authority end-to-end and expose routing telemetry #2068 の canonical digest 相当)が drift した場合、process B は suppress せず fresh な retry を実行することを確認するテストが PASS する
  • AC5: classifier / policy version が drift した場合、process B は suppress せず fresh な retry を実行することを確認するテストが PASS する
  • AC6: 永続化 state ファイルが malformed / corrupt な場合、process B は crash せず「state 不在」として扱い suppress しない defined behavior を持つことを確認するテストが PASS する
  • AC7: repo または issue number が一致しない場合、process B は suppress しないことを確認するテストが PASS する
  • AC8: 永続化 storage が利用不可(書込不可 / 読取不可)の場合、semantic authority を捏造せず fail-closed で suppress しないことを確認するテストが PASS する

Verification Commands

# AC1
$ uv run --locked pytest .claude/skills/issue-refinement-loop/tests/test_fingerprint_persistence.py -k fingerprint_persistence_across_restart_subprocess

# AC2
$ uv run --locked pytest .claude/skills/issue-refinement-loop/tests/test_fingerprint_persistence.py -k fingerprint_history_matches_classifier

# AC3
$ uv run --locked pytest .claude/skills/issue-refinement-loop/tests/test_fingerprint_persistence.py -k issue_body_sha_drift_does_not_suppress

# AC4
$ uv run --locked pytest .claude/skills/issue-refinement-loop/tests/test_fingerprint_persistence.py -k authority_payload_drift_does_not_suppress

# AC5
$ uv run --locked pytest .claude/skills/issue-refinement-loop/tests/test_fingerprint_persistence.py -k classifier_version_drift_does_not_suppress

# AC6
$ uv run --locked pytest .claude/skills/issue-refinement-loop/tests/test_fingerprint_persistence.py -k corrupt_state_defined_behavior_no_crash

# AC7
$ uv run --locked pytest .claude/skills/issue-refinement-loop/tests/test_fingerprint_persistence.py -k wrong_repo_or_issue_does_not_suppress

# AC8
$ uv run --locked pytest .claude/skills/issue-refinement-loop/tests/test_fingerprint_persistence.py -k storage_unavailable_fails_closed_no_fabricated_authority

Allowed Paths

Stop Conditions

Required Skills

なし

Runtime Verification Applicability

decision: immediate
reason: "process restart 境界と永続 state read/write は実 subprocess / filesystem I/O を伴い、direct unit fixture のみでは AC1 を証明できない"
applicable_acs:
  - AC1
  - AC2
  - AC3
  - AC4
  - AC5
  - AC6
  - AC7
  - AC8
execution_environment:
  cli_tools:
    - python3
    - uv
  auth_required: false
  network_required: false
skip_conditions:
  - "local repository checkout が存在せず subprocess を起動できない場合は SKIP ではなく environment blocked として扱う"
fallback_policy:
  fallback_success_is_pass: false
  notes: "fallback 経由の成功を PASS に変換しない。SKIP は exit code 77 で宣言し stdout に SKIP: prefix を付与する"
artifact_requirements:
  - "2 個の subprocess(process A / process B)の stdout/stderr ログ"
  - "pytest 実行結果 JSON"

Required Design References

  • docs/dev/agent-skill-boundaries.md
  • docs/dev/runtime-verification-policy.md

Scope Delta(該当時のみ記載)

N/A

Delivery Rule

1 Issue = 1 PR。Draft PR を既定とする。優先度は低く、着手前に Allowed Paths・In Scope の再確定調査、および #2052 との統合可否の決定を要する。

Notes for Reviewer

本 Issue は低優先度の follow-up であり、現状は deterministic pure classifier による再計算で実害が生じていない。triage-required ラベルにより人間の優先度判断に委ねる。着手時は scope reframe の該当実装箇所(issue-refinement-loop 系)を再調査し、In Scope / Allowed Paths を確定してから実装に入ること。

OWNER(squne121)による anchor comment(#2077 (comment) )でのレビューに基づき、disposition の優先順位を以下の通り記録する。本 SubAgent はこの disposition を確定させず、Issue の close / label 変更は行わない。triage-required ラベルのまま、優先度・disposition の最終判断は人間に委ねる。

  1. 第一候補: not planned。現状 write 0 / comment 0 で実害はなく、永続 state は correctness でなく optimization の性質を持つ。実装: SHA-bound evidence index と command fingerprint budget で再読・重複調査・wait polling による context churn を抑制する #2052 が duplicate/no-progress suppression の責務を既に所有し得る。導入: AIエージェント運用をminimal harnessへ縮退し、過剰なcontrol-planeを廃止する #1860 の minimal-harness 方針とも整合する。
  2. 第二候補: implementation でなく research / triage へ差し戻す。実装: SHA-bound evidence index と command fingerprint budget で再読・重複調査・wait polling による context churn を抑制する #2052・実装: fix(issue-refinement-loop): bind freeform OWNER scope authority end-to-end and expose routing telemetry #2053(PR fix(issue-refinement-loop): bind freeform OWNER scope authority end-to-end and expose routing telemetry #2068)・実装: implementation Issue の Runtime Verification Applicability 欠落を authoring・readiness・reviewer・consumer 全経路で fail-closed に統一する #2040(PR fix(contract-review): RVA 欠落を fail-closed に統一 #2070)の決着後に再評価する。
  3. 実装を継続する場合: scope を「same-host sequential restart」に限定し、新規 DB を作らず既存 route_after_rewrite.py router state または 実装: SHA-bound evidence index と command fingerprint budget で再読・重複調査・wait polling による context churn を抑制する #2052 の evidence state に last_confirmed_no_progress 1件を統合する案が minimal harness と最も整合する。

Source

dedupe_key: follow-up:squne121/loop-protocol:pr/2057:replay-fingerprint-persistence
source: post-merge-cleanup (PR #2057 / Issue #2048)

Activity

  1. added
    triage-required
    phase/implementation
    follow-up
    on Aug 11, 2026
  2. squne121 commented on Aug 11, 2026

    @squne121
    OwnerAuthor

    判定

    REQUEST_CHANGES。現状の #2077 は issue_kind: implementation としては着手不能です。
    さらに設計方針としては、現時点では 実装せず not planned 寄りに倒すのが最も整合的です。少なくとも #2052・#2053/PR #2068・#2040/PR #2070 の決着後に再評価すべきです。

    理由は、#2077 自身が「現状 deterministic classifier により実害なし」「In Scope / Allowed Paths 未確定」「ファイル/DB の複数案があれば停止」と明記しているためです。つまり実装 Issue なのに、正常に調査すると Stop Condition に必ず近づく自己矛盾があります。

    P0 — 1. 「process restart」が定義されていない

    AC1 の「process restart をまたぐ」が次のどこまでなのか不明です。

    • 同一 checkout・同一 filesystem 上で Python process だけ再起動
    • worktree をまたぐ
    • CLI session をまたぐ
    • CI job をまたぐ
    • GitHub Actions workflow run をまたぐ
    • runner / machine をまたぐ

    これは storage 選択の前提そのものです。

    特に GitHub-hosted runner は job ごとに新しい VM/container が provision されるため、checkout 内の JSON や SQLite を置くだけでは別 job/run への persistence になりません。([GitHub Docs]1)

    したがって AC1 は例えば次まで狭めるべきです。

    same-host / same durable state path / sequential process restart のみを対象とする。GitHub-hosted runner の job/run boundary、別 host、network filesystem は対象外。

    逆に GitHub Actions run をまたぐことまで要求するなら、#2077 は単純な file/DB follow-up ではなく、durable external state の設計 Issue に変わります。


    P0 — 2. fingerprint identity が安全性を満たしていない

    PR #2057 の OWNER review ですでに、当時の fingerprint が anchor_comment_url + issue_body_sha256 しか bind せず、anchor body hash、comment ID、normalized delta、repo、issue number、disposition/version が欠落していると指摘されています。また production caller が history を渡していなかったことも確認されています。

    #2077 はこれを「同一 disposition・同一入力」と書き換えていますが、「同一入力」の canonical contract がありません。

    最低でも versioned fingerprint payload を固定すべきです。例えば、

    scope_reframe_no_progress/v1
    repo
    issue_number
    issue_body_sha256
    authority_payload_sha256
    contract_patch_plan_sha256
    normalized_allowed_path_deltas
    disposition
    classifier_version
    repo_head または policy/tool version
    

    です。

    #2053 はすでに canonical payload digest、source generation、issue/comment hash、invocation binding を定義しようとしており、PR #2068 も現在 Draft/Open です。#2077 が独自の identity schema を先に作るのは二重 SSOT になります。

    PR #2068 の authority digest contract を確定させてから、それを再利用すべきです。


    P0 — 3. 「何を suppress するのか」が曖昧

    ここが最も危険です。

    現在 #2057 では full_rewrite_required の場合でも apply_transaction は 0 回で、comment publisher も存在せず、実際の mutation をしないことまで E2E で確認されています。

    つまり現在の restart replay は基本的に、

    同じ deterministic 判定と orchestration をもう一度実行する

    だけです。

    #2077 は「contract_update retry を抑制」と書いていますが、

    • classifier 再計算を省くのか
    • planner を省くのか
    • contract_update consumer invocation を省くのか
    • issue_editor_required handoff を省くのか
    • GitHub mutation を省くのか

    が決まっていません。

    persisted history を semantic authority にしてはいけません。

    安全な契約は、

    fresh input/binding を取得し pure classifier は毎回再計算する。
    classifier が同一の confirmed no-progress disposition を返した場合のみ、後段の redundant orchestration を省略する。

    です。

    これなら AC2 の「pure classifier と矛盾しない」も自然に成立します。


    P0 — 4. #2052 と責務が重複している

    #2052 はすでに、

    • SHA-bound evidence key
    • HEAD / Issue body / comment body / config / tool-version drift invalidation
    • identical no-progress command の再実行防止
    • mutation authority を cache にしない

    を明示的に所有しています。

    これは #2077 が定義すべき persistence semantics とほぼ同じです。

    したがって #2077 に新しい generic fingerprint store を作るより、

    1. 実装: SHA-bound evidence index と command fingerprint budget で再読・重複調査・wait polling による context churn を抑制する #2052 の evidence index が process restart persistence を所有するのか決定する
    2. 所有するなら 実装: scope reframe の no-progress retry 抑制を process restart をまたいで永続化する #2077 は 実装: SHA-bound evidence index と command fingerprint budget で再読・重複調査・wait polling による context churn を抑制する #2052 に吸収
    3. 所有しないなら、その理由と境界を 実装: scope reframe の no-progress retry 抑制を process restart をまたいで永続化する #2077 の Related / Dependency Dispositions に明記

    が必要です。

    現状の parent_issue: none / 単独改善という記述は実態と合っていません。


    P1 — 既に persistent router state は存在する

    #2077 の

    fingerprint / replay history の永続化機構は存在しない

    という記述は不正確です。

    現行 main の route_after_rewrite.py は LOOP_REWRITE_ROUTER_STATE_V1 を --state-path で永続化し、rewrite_request_fingerprint と previous_rewrite_request_fingerprints を state allowlist に含めています。

    load_rewrite_router_state() も session/CI rerun 後の restoration を明示的に扱い、source body change 時には reset を行います。保存側も fingerprint history を JSON に書き出しています。

    なので Remaining Gap は、

    scope-reframe の confirmed no-progress identity が既存 persistent state / canonical production caller に接続されていない

    と書くべきです。

    なお同ファイルには「AC9/AC10 fields are NOT persisted」と書いた直後に実際にはそれらを data へ保存している、古い docstring も残っています。
    新しい store を増やす前に、この state model の現状を整理した方が安全です。


    P1 — JSON を使うなら concurrency contract が必要

    現在の writer は、

    write tmp
    flush
    fsync
    os.replace(tmp, state_path)

    です。

    os.replace() の rename 自体は成功時 atomic です。([Python documentation]2)

    しかしそれは 複数 process の read-modify-write を serializable にするものではありません。現行実装は固定の <state_path>.tmp も使うので、overlapping writer を認めるなら別途 synchronization が必要です。これは repo 実装と Python の atomic-replace semantics からの推論です。 ([Python documentation]2)

    したがって #2077 はどちらかを明言すべきです。

    • 推奨: sequential restart only、concurrent writers は Out of Scope
    • または multi-process concurrency まで要求し、store transaction を導入

    前者なら既存 JSON state の拡張で十分な可能性があります。


    P1 — SQLite は「必要になった場合だけ」

    multi-process same-host を本当に対象にするなら SQLite は妥当です。

    SQLite は別 process/connection の同時 read を許しつつ write transaction を一度に1つに制限します。([SQLite]3) また UNIQUE/PRIMARY KEY と ON CONFLICT DO NOTHING を組み合わせれば fingerprint の claim/dedupe を DB constraint として表現できます。([SQLite]4)

    例えば概念上は、

    CREATE TABLE confirmed_no_progress (
      namespace TEXT NOT NULL,
      fingerprint TEXT NOT NULL,
      observed_at INTEGER NOT NULL,
      PRIMARY KEY (namespace, fingerprint)
    );

    として atomic な insert/no-op にできます。

    ただしこの用途で WAL mode を積極的に採る理由はありません。低頻度・小規模 state なら default journal の方が単純です。WAL は同一 host が必要で、network filesystem では使えません。さらに SQLite 公式 docs は、複数 connection が同時 write/checkpoint する場合に関係する WAL-reset bug が 2026年3月に修正されたことも記載しています。([SQLite]5)

    つまり「DB = SQLite WAL」と早期決定するのも過剰です。


    P1 — persistence commit point が欠落

    fingerprint をいつ保存するかも AC に必要です。

    「attempt 開始時」に保存してはいけません。プロセスがその直後に crash すると、次回 restart が「処理済み」と誤解して必要な処理まで suppress できます。

    保存対象は例えば、

    confirmed_no_progress
    

    だけにして、

    1. fresh authority / Issue input を確認
    2. pure classifier を実行
    3. proven_no_change 等の対象 disposition を確認
    4. write/effect が発生していないことを確定
    5. fingerprint を commit

    とするべきです。

    attempt ledger と confirmed outcome ledger を混同しないのが重要です。


    P1 — history 自体が不要な可能性が高い

    #2077 の目的が単に「restart 後に直前と同じ retry を繰り返さない」であれば、unbounded な fingerprint history は不要です。

    最小構成なら、

    last_confirmed_no_progress:
      fingerprint
      disposition
      classifier_version
    

    1件だけでも成立します。

    これなら、

    • GC
    • TTL
    • history growth
    • migration
    • multi-key lookup

    をほぼ全部避けられます。

    これは #1860 の「live state を authority とし、過剰な ledger/digest/control-plane を追加しない」という minimal-harness 方針とも整合します。


    P1 — #2040 / PR #2070 との近接 race

    #2077 は issue_kind: implementation ですが、現在 ## Runtime Verification Applicability がありません。

    一方 #2040 は implementation Issue の RVA 欠落を RVA002 として fail-closed にする変更で、PR #2070 は現在 Open / Draft / 未マージです。

    したがって #2070 が先に merge された場合、#2077 はそのままでは implementation workflow の入口で停止する設計になります。

    今のうちに最低でも、

    ## Runtime Verification Applicability
    
    - decision: immediate
    - reason: process restart 境界と永続 state read/write は実 subprocess / filesystem I/O を伴い、direct unit fixture のみでは AC1 を証明できない。

    を追加するのがよいです。


    Verification Commands も弱い

    現行 VC は、

    uv run pytest ... -k fingerprint_persistence_across_restart
    uv run pytest ... -k fingerprint_history_matches_classifier

    だけです。

    AC1 が process restart を要求する以上、少なくとも direct function call ではなく別 subprocess 2個で確認すべきです。PR #2057 でも「同一 Python process の dynamic import / callback fixture は process-boundary E2E の証拠にならない」と実際に問題になっています。

    最低限、次のケースが必要です。

    1. process A → confirmed no-progress を保存 → exit → process B → same fingerprint → downstream retry 0
    2. issue body SHA drift → suppress しない
    3. authority payload drift → suppress しない
    4. classifier/policy version drift → suppress しない
    5. malformed/corrupt state → defined behavior
    6. wrong repo / wrong issue → suppress しない
    7. storage unavailable → semantic authorityを捏造しない
    8. concurrency を Out of Scope にしない場合は overlapping subprocess test

    また repo の現在の VC 慣行に合わせ、uv run --locked pytest ... に統一した方がよいです。#2053 も実 subprocess を含む RVA/VC をその形で定義しています。

    推奨する disposition

    優先順位としては次です。

    第一候補: #2077 を not planned。
    現状 write 0 / comment 0 で実害がなく、永続 state は correctness ではなく optimization です。#2052 が duplicate/no-progress suppression を所有し、#1860 は control-plane 最小化を要求しています。

    第二候補: implementation ではなく research/triage に戻す。
    #2052 と #2053/PR #2068 が落ち着いた後に、実測された restart replay のコストを示してから implementation contract を作る。

    実装を残す場合: scope を「same-host sequential restart」に限定し、新規 DB は作らず、既存 router state または #2052 の evidence state に last_confirmed_no_progress 1件を統合する。この案が minimal harness と最も整合します。

    総合すると、現状の #2077 をそのまま impl-review-loop に渡すのは非推奨です。設計判断を Issue 本文の中へ戻さないと、実装 agent は正しく Stop Condition を踏むか、独断で file/SQLite/state schema を選んで scope を固定することになります。

  3. squne121 commented on Aug 11, 2026

    @squne121
    OwnerAuthor

    issue-refinement-loop: approved

    実施内容

    人間判断が必要な事項(本 loop の scope 外)

    OWNER 自身の anchor comment が明示的に disposition 判断を求めています。本 Issue 本文には忠実に反映済みですが、以下は issue-refinement-loop の範囲外であり、人間の triage 判断が必要です:

    1. disposition: not planned(OWNER 推奨第一候補)/ research・triage への差し戻し(推奨第二候補)/ 現状の implementation Issue のまま 実装: SHA-bound evidence index と command fingerprint budget で再読・重複調査・wait polling による context churn を抑制する #2052・実装: fix(issue-refinement-loop): bind freeform OWNER scope authority end-to-end and expose routing telemetry #2053(PR fix(issue-refinement-loop): bind freeform OWNER scope authority end-to-end and expose routing telemetry #2068)・実装: implementation Issue の Runtime Verification Applicability 欠落を authoring・readiness・reviewer・consumer 全経路で fail-closed に統一する #2040(PR fix(contract-review): RVA 欠落を fail-closed に統一 #2070) の決着後に再評価、のいずれか。
    2. issue-contract-review は本 loop では未実行(disposition 未確定のため意図的にスキップ)。disposition が implementation 継続に決した場合のみ、issue-contract-review を実行してから impl-review-loop へ handoff すること。

    Issue は open のまま、triage-required ラベルを維持し、body は go 状態(review-issue 全チェック PASS)で維持する。

    FOLLOW_UP_MATERIALIZATION_RESULT_V1:
      schema_version: 1
      materialized_by: issue-refinement-loop
      follow_up_issues: []
      note_only_observations: []
    LOOP_HANDOFF_RESULT_V1:
      status: blocked
      routing_action: blocked
      contract_review:
        status: blocked
        gate_result: missing_go
        latest_comment_url: null
        generated_at: null
        body_sha256: null
      metadata:
        title_prefix_ready: true
        phase_label_ready: true
      auto_fixes:
        result: human_judgment_required
        required: []
        skipped: []
      blockers:
        - kind: contract_review_not_run
          description: "issue-contract-review が本 loop では未実行のため CONTRACT_REVIEW_RESULT_V1 が存在せず、gate_result は missing_go。"
        - kind: disposition_undetermined
          description: "OWNER anchor comment が not_planned / research-triage 差し戻し / implementation継続の disposition 判断を明示的に要求しており、issue-refinement-loop の scope 外。人間の triage 判断が必要。"
      permissions:
        unavailable: []
      generated_at: "2026-08-11T03:01:18Z"
      checked_body_sha256: "f1bc12bfdcfea08ab12178e8077c34453da70476cfc827ba430fd74ff92ac6b1"
      checker_exit_code: 0
      missing_sections: []
      missing_contract_keys: []
  4. squne121 commented on Aug 11, 2026

    @squne121
    OwnerAuthor

    Disposition決定: not planned

    OWNERによる anchor comment(該当コメント)の推奨第一候補に従い、本 Issue を not planned としてクローズします。

    判断理由

    将来再検討する場合

    route restart replay のコストが実測で問題になった場合、または #2052 / #2053(PR #2068) / #2040(PR #2070) の決着後に必要性が再確認された場合は、本 Issue の内容(Background・OWNER指摘10論点・縮小実装案)を参照して新規 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

    follow-upphase/implementationtriage-required

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions