Skip to content

実装: agent-retrospective plugin の README/SKILL.md 説明を現状実装スコープに合わせて狭める #2420

Closed

Description

@squne121

Machine-Readable Contract

contract_schema_version: v1
issue_kind: implementation
parent_issue: "none"
goal_ref: "plugins/agent-retrospective/README.md, plugins/agent-retrospective/skills/run/SKILL.md"
change_kind: docs

Parent Issue

なし(単独改善)

Parent Goal Ref

該当なし(親 Issue なし)

Current Validated Scope

該当なし(親 Issue なし)

Remaining Parent Gaps

該当なし(親 Issue なし)

Outcome

plugins/agent-retrospective/README.md と plugins/agent-retrospective/skills/run/SKILL.md の説明文(Outcome/frontmatter description/導入文)が、current main(PR #2411 post-fix head)の実装事実を正確に反映するよう改訂され、該当 2 ファイルの commit として merge される。

正確化すべき実装事実は以下の 4 点。

  1. one-shot 性: portable plugin 版は、人間が明示トリガーで起動する one-shot(単発実行) の proposal-only improvement generator である。project Skill 版(.claude/skills/agent-retrospective/)と同じ意味での「継続的 retrospective」ではない。
  2. cross-run state: previous-state backend は FixturePreviousStateProvider のみ(STATE_BACKEND_CHOICES = ("fixture",))で、fixture にヒットしない限り毎回 no_history から開始する(no_history から開始 という言い回しで明記する)。real な persistent cross-run delta tracking は未実装。
  3. evidence source topology: 標準実行(--runtime-evidence-file 未指定)の observer manifest は codebase-investigator(repository/codebase 調査)と web-researcher(native WebSearch/WebFetch による live Web 調査)の 2 本立てであり、どちらも --task(省略時は DEFAULT_TASK)を受け取って自動的に起動する。runtime observer(retrospective-runtime-observer)だけが --runtime-evidence-file 明示指定時にのみ追加される。「Web は caller が明示供給しない限り存在しない」という記述は誤りであり、書いてはならない。「repository / runtime / Web の 3 source」という並列的な表現も、runtime だけが opt-in である非対称性を隠すため避ける。
  4. repository identity 解決: --repository-id が指定されればそれを使用し、省略時は git remote get-url origin から自動導出する。導出できない場合は repository_id_unresolved として失敗する(run_retrospective.py の default_repository_id_from_git_remote() / main() 参照)。local/<slug>-<short-sha> のような fallback 実装は現在存在しない。

完了条件は、改訂後の README.md/SKILL.md 本文中に「継続的」という誇張表現が残っておらず、上記 4 点それぞれが両ファイルで確認できる状態(Acceptance Criteria 参照)。

Runtime Verification Applicability

decision: not_applicable
reason: documentation-only 変更であり、実行時挙動の変更を伴わないため

In Scope

  • plugins/agent-retrospective/README.md の説明文から「継続的」という表現を除去し、one-shot(単発実行)である旨を明記する
  • plugins/agent-retrospective/skills/run/SKILL.md の frontmatter description および本文から「継続的」という表現を除去し、one-shot である旨を明記する
  • 両ファイルに、state backend が fixture-only であり毎回 no_history から開始 する旨(real な persistent cross-run delta tracking が未実装である旨)を、既存の状態列挙(available/no_history/legacy_unavailable/partial/stale)とは別に、独立した説明文として明記する
  • plugins/agent-retrospective/skills/run/SKILL.md の「repository / runtime / Web の 3 source」という並列的な表現を、「標準実行では repository/codebase と live Web の 2 source を自動調査し、runtime evidence は --runtime-evidence-file 明示指定時のみ追加される」という非対称性が伝わる表現に改訂する
  • 両ファイルに、origin remote が無い repository では repository_id_unresolved となり、現在 fallback 実装が存在しない旨を明記する

Out of Scope

  • fixture 以外の永続的な cross-run delta 履歴(real persistence)の実装
  • web/runtime evidence の自動収集経路の追加実装
  • local/<slug>-<short-sha> 等の repository-id fallback 実装(docs-only の本 Issue の Allowed Paths(README/SKILL.md)では実現できず、run_retrospective.py の変更が必要になるため。fallback 実装が必要と判断される場合は別 Issue とする)
  • plugins/agent-retrospective/.claude-plugin/plugin.json の description 改訂(distribution-facing metadata として改善余地はあるが、本 Issue の Outcome 達成に必須ではないため Allowed Paths に含めない)
  • README/SKILL.md 以外のファイルへの変更
  • 新しい runtime harness・sandbox・permission daemon・live E2E test matrix の追加

Acceptance Criteria

  • AC1: plugins/agent-retrospective/README.md と plugins/agent-retrospective/skills/run/SKILL.md のいずれにも「継続的」という表現が残っていない
  • AC2: plugins/agent-retrospective/README.md と plugins/agent-retrospective/skills/run/SKILL.md の両方に、one-shot(単発実行)である旨の記述(「単発」または「one-shot」という語)が含まれている
  • AC3: plugins/agent-retrospective/README.md と plugins/agent-retrospective/skills/run/SKILL.md の両方に、「no_history から開始」する fixture-only state backend である旨の記述(no_history から開始 という文字列。既存の5状態列挙の一部としての単独出現とは区別する)が含まれている
  • AC4: plugins/agent-retrospective/README.md と plugins/agent-retrospective/skills/run/SKILL.md の両方に、origin remote が無い repository では repository_id_unresolved となる旨の記述が含まれている
  • AC5: plugins/agent-retrospective/skills/run/SKILL.md から「repository / runtime / Web の 3 source」という並列的な表現が除去され、かつ README.md と SKILL.md のいずれかに、標準実行が live Web を自動調査することを示す記述(「live Web」という語を含む)が含まれている

Verification Commands

# AC1
$ ! rg -q '継続的' plugins/agent-retrospective/README.md plugins/agent-retrospective/skills/run/SKILL.md

# AC2
$ rg -q -e '単発' -e 'one-shot' plugins/agent-retrospective/README.md
$ rg -q -e '単発' -e 'one-shot' plugins/agent-retrospective/skills/run/SKILL.md

# AC3
$ rg -q 'no_history から開始' plugins/agent-retrospective/README.md
$ rg -q 'no_history から開始' plugins/agent-retrospective/skills/run/SKILL.md

# AC4
$ rg -q 'repository_id_unresolved' plugins/agent-retrospective/README.md
$ rg -q 'repository_id_unresolved' plugins/agent-retrospective/skills/run/SKILL.md

# AC5
$ ! rg -q 'repository / runtime / Web の 3 source' plugins/agent-retrospective/skills/run/SKILL.md
$ rg -q 'live Web' plugins/agent-retrospective/README.md plugins/agent-retrospective/skills/run/SKILL.md

Allowed Paths

  • plugins/agent-retrospective/README.md
  • plugins/agent-retrospective/skills/run/SKILL.md

Stop Conditions

  • Allowed Paths 外の変更が必要と判明した場合
  • In Scope の固定契約(キー集合・スキーマ・型定義)の変更が必要になった場合
  • 新規 Issue の起票が必要と判断した場合(スコープ分割が発生する場合)
  • 後続 Phase / 別スコープへの波及が判明した場合
  • nested SubAgent delegation が必要になった場合
  • 外部サービス利用・権限昇格・既存テスト大規模改変が必要になった場合

Required Skills

なし

Required Design References

  • docs/adr/0007-agent-retrospective-boundaries.md(agent-retrospective の run boundary・source authority・mutation boundary の決定記録。本 Issue が正確化する source topology・proposal-only 性の背景設計)
  • plugins/agent-retrospective/README.md
  • plugins/agent-retrospective/skills/run/SKILL.md

Delivery Rule

  • 1 Issue = 1 PR を原則とする
  • worktree での作業を推奨し、Draft PR を既定とする
  • documentation-only 変更のため優先度は低(priority/low 相当)とし、他の作業を妨げない timing で着手してよい

Background

PR #2411(Closes #2240「agent-retrospective を optional plugin distribution として配布可能にする」)の post-merge-cleanup で顕在化した follow-up。PR は既に merge 済み。

PR の人間レビュアーが「P2-2, non-blocking」として指摘した内容: plugins/agent-retrospective 自身の README.md/SKILL.md による自己説明が、実際の実装スコープに対してやや誇張されている。この指摘は当該 PR では意図的に低優先度・任意の documentation scoping 作業として先送りされ、修正されなかった。

本 Issue は当初、上記指摘を pre-fix(PR #2411 の adversarial review 前)の認識のまま起票されていた。OWNER が anchor comment(#2420 (comment) )で REQUEST_CHANGES / reframe_in_place を指摘し、issue-refinement-loop による codebase-investigator(current main HEAD 488dae6 に対する fact-check、全 8 claim supported)と web-researcher(Claude Code 公式ドキュメント fact-check)による独立検証を経て、post-fix head を基準に本文を再定義した。主な訂正点は次の通り。

  • 誤: 「Web/runtime evidence は呼び出し側が明示供給する場合のみ」 → 正: 標準実行は codebase-investigator + web-researcher(repository + live Web)の 2 observer を自動起動する。--runtime-evidence-file 明示指定時のみ runtime observer が追加される。
  • README/SKILL.md の両方が「継続的」「repository / runtime / Web の 3 source」という誇張・不正確な表現を含んでおり、README だけの修正では SKILL.md の誇張表現が残る構造だったため、AC/VC を両ファイル対象に修正した。
  • local/<slug>-<short-sha> の任意 fallback 実装は、docs-only の Allowed Paths(README/SKILL.md)と自己矛盾する(run_retrospective.py の変更が必要)ため Out of Scope へ明示的に移動した。
  • AC1 の Verification Command が rg -c "継続的"(禁止語が存在すると exit 0 = 成功と誤認しうる正の count assertion)だったため、! rg -q '継続的' ...(no match が成功)という負論理へ修正した。

Sibling Issue #2418 との関係

Issue #2418(実装: agent-retrospective plugin の base_sha と live working tree の乖離を明示する)も同じ README.md/SKILL.md を変更対象とする。scope-rollup preflight(plan_issue_scope_rollup.py)の判定は conflict_type: same_file_disjoint_anchor / ordering_constraint: parallel_ok / escalation_required: false であり、両 Issue は同一ファイル内の別 anchor(本 Issue は説明文の正確化、#2418 は base_sha resolution の説明)を扱うため吸収・scope 拡張はしない。1 Issue = 1 PR を維持し、PR の順序は連続してマージすることでコンフリクトを避けることを推奨する(強制ではない)。

Notes for Reviewer

  • dedupe_key: follow-up:squne121/loop-protocol:pr/2411:scope_documentation_fixture_backend
  • 本 Issue は documentation-only の低優先度 follow-up であり、fixture backend の実装拡張や multi-source evidence 自動収集の実装は明示的に Out of Scope とする
  • local/<slug>-<short-sha> fallback の実装は本 Issue の Allowed Paths(docs-only)に含まれないため実装しない。README/SKILL.md にはその制約(repository_id_unresolved、fallback なし)を正確に記載するのみ
  • plugins/agent-retrospective/.claude-plugin/plugin.json の description 改善は本 Issue の blocker ではない(別途 Issue 化するかは canonical scope-delta machinery の判断に委ねる)
  • 実装時の注意: AC4 の VC は repository_id_unresolved を単一行内の連続 token として検出する(rg は行をまたいで一致しない)。追記時に Markdown の折り返しでこの語を複数行に分割しないこと

Activity

  1. added
    phase/implementation
    kind/implementation
    area/docs
    follow-up
    on Aug 30, 2026
  2. squne121 commented on Sep 3, 2026

    @squne121
    OwnerAuthor

    判定

    REQUEST_CHANGES — reframe_in_place を推奨します。

    #2420 の方向性、つまり「portable plugin 版を project Skill 版と同じ “継続的 retrospective” と説明しない」は正しいです。plugin 版は fixture-only の PreviousStateProvider しか持たず、実履歴がなければ毎回 no_history → new になるため、persistent cross-run delta を持つ意味での continuous retrospective ではありません。

    ただし、Issue 本文が PR #2411 の fix_delta 前の認識を一部引き継いでおり、そのまま AC3 を実装すると README/SKILL を逆に不正確にします。 ここが blocker です。#2420 自体には現在コメントがなく、後から契約を補正する authority もありません。

    Severity | Finding | 評価・推奨 -- | -- | -- P0 | AC3 の Web source 認識が現実と矛盾 | #2420 は「repository evidence のみ自動収集、web/runtime は呼び出し側が明示供給」と要求しています。しかし現在の標準 manifest は runtime 無指定でも codebase-investigator + web-researcher の2本です。 さらに task または DEFAULT_TASK は両 observer に渡されます。 web-researcher 自身も WebSearch / WebFetch を持つ実 web 調査 agent です。 **「deterministic collector は repository のみ」と「standard observer path は repository/codebase + Web」**を区別してください。runtime だけが --runtime-evidence-file 明示時です。 P0 | Outcome は README + SKILL を要求するのに、AC/VC が README しか検証しない | 現在 SKILL の frontmatter にはまだ「継続的」「任意の repository」があり、本文にも「repository / runtime / Web の 3 source」とあります。 README だけ直せば現 AC1–4 は全 PASS できるため、contract が目的を保証していません。README と SKILL の両方を AC に入れるべきです。 P1 | optional fallback 実装が Allowed Paths と自己矛盾 | Issue は local/- fallback を「任意実装」としていますが、Allowed Paths は README/SKILL の2ファイルだけです。fallback は最低でも run_retrospective.py を変更するため、Stop Condition に即座に抵触します。 docs-only の #2420 から fallback 実装を削除するのが最も整合的です。 P1 | local/- 自体も repository identity として弱い | が現在の HEAD を意味するなら commit ごとに repository_id が変わります。将来 persistence を復活させた際に cross-run identity と相性が悪いです。趣味開発用途でも、今ここで雑な fallback を追加するより、現状の明示 --repository-id を維持した方が設計負債が少ないです。 P1 | 「multi-source を消す」は過剰修正 | current standard path は実際に codebase + web の observer を起動します。したがって「multi-source ではない」と書き換えるのではなく、“repository snapshot + live Web research、runtime は任意” と source ごとの性質を明示する方が正確です。 P1 | 「any repository」も全面否定ではなく条件付きで残すべき | Claude Code の plugin packaging 自体は任意位置の directory を --plugin-dir でロードでき、plugin skill は namespace 付きで利用できる仕様です。(Claude) 問題は packaging ではなく plugin 固有の repository ID 解決です。実装は args.repository_id がなければ origin から導出し、それも失敗した場合だけ repository_id_unresolved になります。 「portable packaging」と「origin-less standard invocation」の制約を分けるべきです。 P1 | AC1 の Verification Command が判定として危険 | rg -c "継続的" ... は禁止語が存在すると普通に exit 0 になります。「コマンド成功 = AC PASS」と扱う automation では真逆の判定になり得ます。! rg -q ... にすべきです。また Outcome にある multi-source / any repository 相当を現 VC は検証していません。 P2 | plugin.json も distribution-facing description | manifest の description は plugin manager で表示される metadata です。Claude 公式仕様でもその用途が明示されています。(Claude) 現在の plugin.json は README/SKILL ほど過剰ではありませんが、「repository/runtime evidence」とだけ書き Web を落としています。 品質を優先するなら plugin.json も Allowed Paths に足す価値があります。ただし blocker ではありません。

    #2420 が記述すべき実装スコープ

    実装を確認した限り、portable plugin 版の現在地は次の説明が最も正確です。

    「人間が明示起動する one-shot / proposal-only improvement generator。標準実行では task(未指定なら non-empty default task)を codebase investigator と web researcher に渡し、repository と live Web を調査する。runtime observer は runtime evidence file が明示された場合だけ追加する。cross-run state は fixture-only で real persistence を持たず、通常は no_history から始まる。repository ID は origin から自動導出し、導出不能時は lower-level CLI で明示指定しない限り repository_id_unresolved となる。」

    これなら「継続的」という誇張を除きつつ、現在実装済みの Web research を消してしまいません。PR #2411 では元の adversarial review 後に task wiring、runtime observer 条件化、observer 並列化、evidence mapping、permission/env、uv、smoke が修正され、P2-2 の docs narrowing だけが deferred されました。つまり #2420 は pre-fix P2-2 の文章をコピーするのではなく、post-fix head を基準に再定義すべきです。

    Claude Code 公式仕様でも $ARGUMENTS は skill 呼び出し後の引数全文を受け取るため、PR #2411 後の --task "$ARGUMENTS" 配線は正規の実装です。(Claude) Plugin layout も .claude-plugin/ には plugin.json だけを置き、skills/ / agents/ を plugin root に置く現在の構成が公式仕様通りです。(Claude) また venv を ${CLAUDE_PLUGIN_DATA} に逃がした既存 fix も Claude と uv 双方の現在仕様に整合します。(Claude) (Astral Docs)

    Verification はこの程度で十分

    個人趣味開発という前提なら、#2420 で新しい test harness、sandbox、permission daemon、live matrix を追加する必要はありません。静的な documentation verification だけで十分です。例えば契約を修正した上で、VC はこの程度にします。

    # one-shot への narrowing
    rg -n 'one-shot|単発' \
      plugins/agent-retrospective/README.md \
      plugins/agent-retrospective/skills/run/SKILL.md
    

    continuous という誤解を与える表現が plugin docs から消えたこと

    ! rg -n '継続的 retrospective'
    plugins/agent-retrospective/README.md
    plugins/agent-retrospective/skills/run/SKILL.md

    real cross-run persistence がないこと

    rg -n 'fixture|no_history'
    plugins/agent-retrospective/README.md
    plugins/agent-retrospective/skills/run/SKILL.md

    Web は standard observer path、runtime は explicit input

    rg -n 'web-researcher|WebSearch|WebFetch'
    plugins/agent-retrospective/skills/run/SKILL.md
    rg -n 'runtime-evidence-file'
    plugins/agent-retrospective/README.md
    plugins/agent-retrospective/skills/run/SKILL.md

    origin-less repository の現制約

    rg -n 'repository_id_unresolved|--repository-id'
    plugins/agent-retrospective/README.md
    plugins/agent-retrospective/skills/run/SKILL.md

    セキュリティ面も #2420 では広げるべきではありません。前身 PR で必要 tool の permission、Claude/provider 環境変数の継承、structured smoke、non-empty fake-runner regression まで既に修正されています。ここで custom sandbox や追加 credential harness を再導入すると、今回の目的である「説明を実装に合わせる」こととは無関係に workflow を重くします。

    なお sibling の #2418 も、同じ README/SKILL を対象に base_sha と live working tree の乖離を文書化する post-merge follow-up です。 2件を別 PR にする規約を維持するなら、競合回避のため連続で処理するのがよいです。リポジトリ運用上許されるなら、どちらも PR #2411 の「実装済み挙動を正確に説明する」だけの docs cleanup なので、1つの小さな docs PR にまとめる方が趣味開発としては摩擦が少ないです。

    結論として、#2420 は実装開始前に refinement を1回入れるべきです。最大の修正点は AC3 を「Web も caller-supplied」としないこと、次に README/SKILL の両方を AC/VC の対象にすることです。fallback 実装と追加 harness はこの Issue から外すのを推奨します。

    ## 判定

    REQUEST_CHANGES — reframe_in_place を推奨します。

    #2420 の方向性、つまり「portable plugin 版を project Skill 版と同じ “継続的 retrospective” と説明しない」は正しいです。plugin 版は fixture-only の PreviousStateProvider しか持たず、実履歴がなければ毎回 no_history → new になるため、persistent cross-run delta を持つ意味での continuous retrospective ではありません。

    ただし、Issue 本文が PR #2411 の fix_delta 前の認識を一部引き継いでおり、そのまま AC3 を実装すると README/SKILL を逆に不正確にします。 ここが blocker です。#2420 自体には現在コメントがなく、後から契約を補正する authority もありません。

    Severity Finding 評価・推奨
    P0 AC3 の Web source 認識が現実と矛盾 #2420 は「repository evidence のみ自動収集、web/runtime は呼び出し側が明示供給」と要求しています。しかし現在の標準 manifest は runtime 無指定でも codebase-investigator + web-researcher の2本です。 さらに task または DEFAULT_TASK は両 observer に渡されます。 web-researcher 自身も WebSearch / WebFetch を持つ実 web 調査 agent です。 **「deterministic collector は repository のみ」と「standard observer path は repository/codebase + Web」**を区別してください。runtime だけが --runtime-evidence-file 明示時です。
    P0 Outcome は README + SKILL を要求するのに、AC/VC が README しか検証しない 現在 SKILL の frontmatter にはまだ「継続的」「任意の repository」があり、本文にも「repository / runtime / Web の 3 source」とあります。 README だけ直せば現 AC1–4 は全 PASS できるため、contract が目的を保証していません。README と SKILL の両方を AC に入れるべきです。
    P1 optional fallback 実装が Allowed Paths と自己矛盾 Issue は local/<slug>-<short-sha> fallback を「任意実装」としていますが、Allowed Paths は README/SKILL の2ファイルだけです。fallback は最低でも run_retrospective.py を変更するため、Stop Condition に即座に抵触します。 docs-only の #2420 から fallback 実装を削除するのが最も整合的です。
    P1 local/<slug>-<short-sha> 自体も repository identity として弱い <short-sha> が現在の HEAD を意味するなら commit ごとに repository_id が変わります。将来 persistence を復活させた際に cross-run identity と相性が悪いです。趣味開発用途でも、今ここで雑な fallback を追加するより、現状の明示 --repository-id を維持した方が設計負債が少ないです。
    P1 「multi-source を消す」は過剰修正 current standard path は実際に codebase + web の observer を起動します。したがって「multi-source ではない」と書き換えるのではなく、“repository snapshot + live Web research、runtime は任意” と source ごとの性質を明示する方が正確です。
    P1 「any repository」も全面否定ではなく条件付きで残すべき Claude Code の plugin packaging 自体は任意位置の directory を --plugin-dir でロードでき、plugin skill は namespace 付きで利用できる仕様です。(Claude) 問題は packaging ではなく plugin 固有の repository ID 解決です。実装は args.repository_id がなければ origin から導出し、それも失敗した場合だけ repository_id_unresolved になります。 「portable packaging」と「origin-less standard invocation」の制約を分けるべきです。
    P1 AC1 の Verification Command が判定として危険 rg -c "継続的" ... は禁止語が存在すると普通に exit 0 になります。「コマンド成功 = AC PASS」と扱う automation では真逆の判定になり得ます。! rg -q ... にすべきです。また Outcome にある multi-source / any repository 相当を現 VC は検証していません。
    P2 plugin.json も distribution-facing description manifest の description は plugin manager で表示される metadata です。Claude 公式仕様でもその用途が明示されています。(Claude) 現在の plugin.json は README/SKILL ほど過剰ではありませんが、「repository/runtime evidence」とだけ書き Web を落としています。 品質を優先するなら plugin.json も Allowed Paths に足す価値があります。ただし blocker ではありません。

    #2420 が記述すべき実装スコープ

    実装を確認した限り、portable plugin 版の現在地は次の説明が最も正確です。

    「人間が明示起動する one-shot / proposal-only improvement generator。標準実行では task(未指定なら non-empty default task)を codebase investigator と web researcher に渡し、repository と live Web を調査する。runtime observer は runtime evidence file が明示された場合だけ追加する。cross-run state は fixture-only で real persistence を持たず、通常は no_history から始まる。repository ID は origin から自動導出し、導出不能時は lower-level CLI で明示指定しない限り repository_id_unresolved となる。」

    これなら「継続的」という誇張を除きつつ、現在実装済みの Web research を消してしまいません。PR #2411 では元の adversarial review 後に task wiring、runtime observer 条件化、observer 並列化、evidence mapping、permission/env、uv、smoke が修正され、P2-2 の docs narrowing だけが deferred されました。つまり #2420 は pre-fix P2-2 の文章をコピーするのではなく、post-fix head を基準に再定義すべきです。

    Claude Code 公式仕様でも $ARGUMENTS は skill 呼び出し後の引数全文を受け取るため、PR #2411 後の --task "$ARGUMENTS" 配線は正規の実装です。(Claude) Plugin layout も .claude-plugin/ には plugin.json だけを置き、skills/ / agents/ を plugin root に置く現在の構成が公式仕様通りです。([Claude]1) また venv を ${CLAUDE_PLUGIN_DATA} に逃がした既存 fix も Claude と uv 双方の現在仕様に整合します。([Claude]3) ([Astral Docs]4)

    Verification はこの程度で十分

    個人趣味開発という前提なら、#2420 で新しい test harness、sandbox、permission daemon、live matrix を追加する必要はありません。静的な documentation verification だけで十分です。例えば契約を修正した上で、VC はこの程度にします。

    # one-shot への narrowing
    rg -n 'one-shot|単発' \
      plugins/agent-retrospective/README.md \
      plugins/agent-retrospective/skills/run/SKILL.md
    
    # continuous という誤解を与える表現が plugin docs から消えたこと
    ! rg -n '継続的 retrospective' \
      plugins/agent-retrospective/README.md \
      plugins/agent-retrospective/skills/run/SKILL.md
    
    # real cross-run persistence がないこと
    rg -n 'fixture|no_history' \
      plugins/agent-retrospective/README.md \
      plugins/agent-retrospective/skills/run/SKILL.md
    
    # Web は standard observer path、runtime は explicit input
    rg -n 'web-researcher|WebSearch|WebFetch' \
      plugins/agent-retrospective/skills/run/SKILL.md
    rg -n 'runtime-evidence-file' \
      plugins/agent-retrospective/README.md \
      plugins/agent-retrospective/skills/run/SKILL.md
    
    # origin-less repository の現制約
    rg -n 'repository_id_unresolved|--repository-id' \
      plugins/agent-retrospective/README.md \
      plugins/agent-retrospective/skills/run/SKILL.md

    セキュリティ面も #2420 では広げるべきではありません。前身 PR で必要 tool の permission、Claude/provider 環境変数の継承、structured smoke、non-empty fake-runner regression まで既に修正されています。ここで custom sandbox や追加 credential harness を再導入すると、今回の目的である「説明を実装に合わせる」こととは無関係に workflow を重くします。

    なお sibling の #2418 も、同じ README/SKILL を対象に base_sha と live working tree の乖離を文書化する post-merge follow-up です。 2件を別 PR にする規約を維持するなら、競合回避のため連続で処理するのがよいです。リポジトリ運用上許されるなら、どちらも PR #2411 の「実装済み挙動を正確に説明する」だけの docs cleanup なので、1つの小さな docs PR にまとめる方が趣味開発としては摩擦が少ないです。

    結論として、#2420 は実装開始前に refinement を1回入れるべきです。最大の修正点は AC3 を「Web も caller-supplied」としないこと、次に README/SKILL の両方を AC/VC の対象にすることです。fallback 実装と追加 harness はこの Issue から外すのを推奨します。

  3. squne121 commented on Sep 3, 2026

    @squne121
    OwnerAuthor

    推奨は reframe_in_place で Issue #2420 を refinement し直すことです。現 Issue は AC3 が current implementation と矛盾し、README だけ直せば AC が通る一方で SKILL.md の誇張表現が残せる構造になっています。さらに任意 fallback 実装は docs-only の Allowed Paths と衝突しています。指定コメントの指摘を trusted human context として取り込み、実装前に contract を更新するのが妥当です。

    現行 plugin の SKILL.md では、標準 observer wave は codebase-investigator と web-researcher、runtime observer は --runtime-evidence-file 指定時だけ追加されます。また state backend は fixture-only なので persistent cross-run retrospective ではありません。したがって「Web も caller supplied」と書き換えるのではなく、この source topology をそのまま contract に反映するべきです。 README/SKILL の現在の冒頭には実際に「継続的」「任意の repository」という表現が残っています。

    また #2418 も同じ README/SKILL を変更対象にして現在 open なので、#2420 に取り込んで scope を膨らませるより、canonical scope-rollup 判定に従いつつ基本は別 Issue のまま衝突順序だけ記録するのが扱いやすいです。

    実際の「承認不要」については、repo の loop policy は iteration 間の確認を不要にできますが、Claude Code 自身の Bash/Edit/Web permission は別レイヤです。利用可能ならセッション側は auto mode が最も適しています。プロンプトの文言だけで permission enforcement を解除することはできません。 ([code.claude.com]1) Claude Code の subagent は明示起動でき、foreground なら完了まで main thread をブロックし、background の場合も completion notification を待って結果を consume できます。 ([code.claude.com]2)

    以下を新規 Claude Code セッションにそのまま渡す想定です。

    #2420 (comment)

    を operator-asserted direct human context / trusted human-context anchor として、Issue #2420 に対する issue-refinement-loop を実行してください。

    目的は 実装開始ではなく、Issue #2420 の contract を current main の実装事実に合わせて reframe_in_place し、implementation-ready になるまで refinement loop を完了すること です。

    人間への iteration ごとの承認確認は不要です。canonical loop policy の範囲内で自律継続してください。

    Authority / canonical procedure

    最初に以下をロードし、現在の repository 内容を正本として扱ってください。

    • .claude/skills/issue-refinement-loop/SKILL.md
    • .claude/skills/issue-refinement-loop/references/index.md
    • planner / command registry、および planner が要求する normative references

    issue-refinement-loop は thin orchestrator として扱い、planner / reviewer / rewrite routing の判定ロジックを独自に prose で再実装しないでください。

    特に、

    • REFINEMENT_LOOP_PLAN_V1
    • canonical command registry
    • scope-rollup policy
    • anchor-comment handling
    • rewrite route
    • termination policy

    を SSOT としてください。

    対象:

    • repository: squne121/loop-protocol
    • issue: #2420
    • anchor_comment_url:
      https://github.com/squne121/loop-protocol/issues/2420#issuecomment-5526240232
    • max_iterations: repository default を使用

    anchor URL は with_human_context lane として扱ってください。
    unlabeled anchor や with_agent_report lane に落とさないでください。

    Human approval policy

    この refinement loop の iteration 間では私への承認確認を挟まないでください。

    needs_fix / request_changes となった場合、canonical routing が継続を許す限り、

    1. investigation
    2. review
    3. contract rewrite
    4. fresh preflight
    5. fresh review

    を自動で繰り返してください。

    「この修正を行ってよいですか」「Issue 本文を更新しますか」等の確認は不要です。

    この依頼は、Issue #2420 の refinement に必要な repository read、GitHub Issue read/update/comment、canonical artifact 作成、SubAgent dispatch、Web research、および repository-defined verification command の実行を許可するものです。

    ただし Claude Code runtime 自身の permission system をこの文章で変更したと解釈してはいけません。現在の session permission mode / allow rules の範囲で実行し、repo loop policy と Claude Code permission policy を混同しないでください。

    Canonical human-context mutation lane

    まず canonical preflight を direct human context lane で実行してください。

    repository の current command registry が現在もこの command id を正本としていることを確認したうえで、概念的には:

    preflight.run.with_human_context

    を使用します。

    trusted contract patch plan が生成され、canonical routing が mutation を許可した場合のみ、

    contract_update.run.with_human_context

    を main control-plane から実行してください。

    lower-level wrapper を直接叩いて canonical executor / capability preflight を迂回しないでください。

    SubAgent や isolation worktree から trusted contract mutation command を直接実行させないでください。

    必須 SubAgent investigation

    調査・事実確認は main thread だけで済ませず、repository-defined SubAgent を使用してください。

    少なくとも codebase-investigator に、指定 anchor comment の decision-relevant claims を current main に対して fact-check させてください。

    調査対象には最低限以下を含めてください。

    anchor comment には Claude Code の current plugin / Skill / WebSearch / WebFetch 等に関する external claim も含まれるため、canonical planner が Web research を decision-relevant と判定した場合は web-researcher も起動してください。

    可能なら read-only の codebase-investigator と web-researcher は並列 dispatch してください。

    SubAgent 完了待ち — 必須

    SubAgent を起動しただけで次工程へ進まないでください。

    起動した全 SubAgent の作業完了を必ず待ってください。

    background execution になった場合も completion notification / final result が返るまで待ち、running 状態のまま final classification、Issue rewrite、review、終了報告へ進まないでください。

    すべての SubAgent result を main control-plane に fan-in し、fact-check evidence として consume してから次工程へ進んでください。

    SubAgent の一部失敗・timeout・結果欠落がある場合は、それを成功扱いせず canonical failure/routing policy に従ってください。

    SubAgent に Issue mutation を行わせないでください。final classification と Issue mutation の owner は main control-plane です。

    #2420 で解消すべき blocker

    指定 anchor comment の REQUEST_CHANGES / reframe_in_place を単純コピーせず current main で再検証したうえで、少なくとも以下の問題を contract から除去してください。

    1. Web source の誤認を修正

    現在の実装が anchor comment の記述どおりであることを検証してください。

    期待している distinction は以下です。

    • deterministic repository collector と observer execution を混同しない

    • standard observer path:

      • codebase / repository investigation
      • live Web research
    • runtime observer:

      • --runtime-evidence-file が明示された場合のみ
    • Web evidence を「caller が明示供給しなければ存在しない」と書かない

    Issue の AC3 / Outcome / Background 等に pre-fix の誤認が残っている場合は current implementation に合わせて修正してください。

    2. one-shot / persistence の説明を正確化

    portable plugin 版は、

    • human-explicit invocation
    • one-shot
    • proposal-only improvement generator
    • fixture-only previous-state backend
    • real persistent cross-run state/delta tracking は未実装
    • 通常 no_history から開始

    という現在地が伝わる contract にしてください。

    project Skill 版と同じ意味で「継続的 retrospective」であるかのような記述を要求しないでください。

    3. README と SKILL の両方を AC / VC 対象にする

    Outcome が

    • plugins/agent-retrospective/README.md
    • plugins/agent-retrospective/skills/run/SKILL.md

    の双方の説明修正を要求するなら、Acceptance Criteria と Verification Commands も双方を検証する形にしてください。

    README だけ直して AC が全部 PASS できる contract は不可です。

    特に SKILL.md frontmatter / introduction に残る過剰表現も verification 対象にしてください。

    4. repository-id constraint を正確にする

    current implementation を確認し、

    • --repository-id があればそれを利用
    • 省略時は origin remote から自動導出
    • origin から導出できなければ explicit repository id が必要
    • 未解決の場合は repository_id_unresolved

    という現状を正確に文書化してください。

    5. fallback implementation は #2420 から削除

    local/<slug>-<short-sha> 等の repository-id fallback implementation は #2420 の docs-only scope から外してください。

    理由:

    • current Allowed Paths は README / SKILL の docs
    • fallback implementation には runtime code 変更が必要
    • HEAD-derived identity は future cross-run persistence と相性が悪い

    #2420 では現制約を正確に文書化するだけで十分です。

    新たな fallback implementation Issue を勝手に起票する必要もありません。
    canonical policy が明確に materialization を要求する場合だけそれに従ってください。

    6. Verification Command の負論理を修正

    禁止表現が存在しないことを検証する VC は、

    rg -c ...

    の exit 0 を PASS と誤解しうる形にしないでください。

    例えば current contract と一致するなら、

    ! rg -q '...' file1 file2

    のように「no match が成功」となる VC にしてください。

    positive assertions と negative assertions を区別してください。

    7. docs-only のまま維持

    この Issue の refinement では、新しい runtime harness、sandbox、permission daemon、live E2E matrix 等を追加要求しないでください。

    Runtime Verification Applicability は current facts を再確認したうえで、docs-only なら not_applicable を維持してください。

    実装 Issue の目的は distribution-facing documentation を実態に合わせることです。

    8. sibling #2418 との collision

    Issue #2418 も README/SKILL を変更対象としているため、scope-rollup / collision policy を実行してください。

    ただし #2418 の base_sha / live working tree documentation responsibility を、理由なく #2420 に吸収して scope expansion しないでください。

    原則 1 Issue = 1 PR を維持するなら、implementation sequencing / collision note を #2420 に残すだけで構いません。

    canonical scope-rollup planner が別の decision を返した場合のみ、その decision に従ってください。

    refinement 後に期待する contract の意味

    文言は reviewer / editor に最適化させて構いませんが、意味としては概ね次を満たしてください。

    「agent-retrospective plugin distribution は、人間が明示起動する one-shot / proposal-only improvement generator。標準実行では task を codebase investigator と web researcher に渡して repository/codebase と live Web を調査する。runtime observer は runtime evidence file が明示された場合だけ追加する。cross-run state は fixture-only で real persistence を持たず、通常 no_history から開始する。repository identity は explicit --repository-id または origin remote から解決し、解決不能なら repository_id_unresolved となる。」

    これは guidance であり、current implementation と違う点が見つかった場合は current repository evidence を優先し、差異を review result に明記してください。

    plugin.json

    .claude-plugin/plugin.json の description 改善は blocker として自動的に #2420 へ追加しないでください。

    current implementation / distribution-facing contract の調査結果から、Outcome 達成に本当に必要と canonical scope-delta machinery が判定した場合だけ扱ってください。

    単なる「ついで修正」で Allowed Paths を増やさないでください。

    Loop completion

    Issue body を rewrite したら、その rewrite 自体を成功扱いせず、fresh preflight と fresh review を実行してください。

    needs_fix / request_changes が残る場合は、max_iterations の範囲内で自動修正を継続してください。

    以下のいずれかになるまで終了しないでください。

    • canonical review が approve / proceed
    • canonical termination policy が明示する hard stop
    • max_iterations 到達
    • genuine human_judgment_required
    • environment / capability failure により継続不能

    単なる「慎重を期して人間に確認」は停止理由にしないでください。

    既知事実を私へ質問し直さず、repository / GitHub / SubAgent evidence から解決してください。

    完了条件

    成功時は、Issue #2420 が implementation-ready になっていることを確認してください。

    最低限、

    • anchor comment の blocker が current-main evidence に基づいて処理済み
    • Issue body が in-place 更新済み
    • README + SKILL の双方を acceptance / verification がカバー
    • Web / runtime source topology が正確
    • fixture-only / no real cross-run persistence が正確
    • origin-less repository constraint が正確
    • fallback implementation が docs-only scope から除外済み
    • negative VC の exit semantics が正しい
    • 実装: agent-retrospective plugin の base_sha と live working tree の乖離を明示する #2418 との overlap/collision が処理済み
    • fresh review が implementation-ready を承認

    を確認してください。

    最後に、実行した canonical command IDs、SubAgent の実行結果、iteration 数、Issue mutation、最終 review verdict、残存 blocker の有無を簡潔に報告してください。

    このセッションでは Issue refinement までです。実装、branch/worktree での production code/doc edit、PR 作成には進まないでください。

    この形なら、指定コメントを authority として contract mutation に使いつつ、SubAgent の調査完了前に rewrite が走るのを防ぎ、#2420 を refinement だけで implementation-ready まで持っていく指示になります。

  4. squne121 commented on Sep 3, 2026

    @squne121
    OwnerAuthor

    issue-refinement-loop 完了報告(reframe_in_place)

    結果: approve / implementation-ready

    anchor comment(#2420 (comment) 、OWNER、REQUEST_CHANGES / reframe_in_place)を trusted human-context anchor として、Issue 本文を reframe_in_place しました。

    実行した canonical command

    • preflight.run.with_human_context(初回・fresh ×2、計3回)
    • run_root_review_pipeline.py produce(Step 2 deterministic review、計3回)
    • semantic_review_trigger.py / semantic_review_transport.py pin-bundle / record-result(Step 2.5、計2回)
    • join_review_results.py
    • plan_issue_scope_rollup.py(実装: agent-retrospective plugin の base_sha と live working tree の乖離を明示する #2418 との衝突判定)
    • edit-issue skill 経由の controlled transaction(本文更新、計2回)

    SubAgent 実行結果

    • codebase-investigator: anchor comment の repo claim 8件(C1–C8)を current main HEAD(488dae69)に対し fact-check。全 8 件 supported。
    • web-researcher: anchor comment が引用する Claude Code 公式ドキュメント claim 5件(W1–W5)を fact-check。W1/W2/W4/W5 supported、W3(--task "$ARGUMENTS" の具体的配線パターン)は inconclusive(実装: agent-retrospective plugin の README/SKILL.md 説明を現状実装スコープに合わせて狭める #2420 の契約判断には無関係のため未反映)。
    • issue-design-reviewer(Step 2.5、計2回): 1回目に high severity finding 1件(AC3 の SKILL.md 側 VC が既存文脈で vacuous pass する設計ギャップ)を検出 → 本文修正で解消。2回目は low severity finding 1件(AC3/AC4 間の実装注意書きの非対称性)のみ、blocking なし。

    Issue mutation

    iteration 数

    2(max_iterations 未到達)

    最終 review verdict

    • Step 2 deterministic: approve
    • Step 2.5 semantic: approve(low severity warning 1件、blocking なし)

    残存 blocker

    なし。低優先度の任意改善(AC3 の line-wrap 注意書きを Notes for Reviewer に追記する等)が semantic review から提案されていますが、non-blocking のため本文には反映していません。

    follow-up materialization

    • local/<slug>-<short-sha> fallback 実装は Issue 自身の Out of Scope に条件付き記述(「必要と判断される場合は別 Issue とする」)として残しており、本ループでは新規 Issue を起票していません(note_only_observations として記録、未 materialize)。

    Scope note(#2418 との関係)

    plan_issue_scope_rollup.py の判定は conflict_type: same_file_disjoint_anchor / ordering_constraint: parallel_ok / escalation_required: false。scope 吸収はせず、Issue 本文の Background に衝突順序に関する注記のみ追加しました。


    このセッションのスコープについて: 依頼指示により、本セッションは Issue refinement までとし、実装・branch/worktree での production code/doc edit・PR 作成・impl-review-loop への自動 handoff(LOOP_HANDOFF_RESULT_V1 / run_root_transition())は実行していません。Issue #2420 は implementation-ready 状態で終了します。

  5. self-assigned this
    on Sep 3, 2026
  6. squne121 commented on Sep 3, 2026

    @squne121
    OwnerAuthor

    推奨は、#2420 をそのまま impl-review-loop に投入し、APPROVE + live mergeability 成立による draft_pr_ready まで自律継続させることです。refinement はすでに approve / implementation-ready、blocker なしで完了しており、#2418 も same_file_disjoint_anchor / parallel_ok / escalation_required:false と判定済みです。

    また、refinement 時点の main HEAD から既に main が進んでいるため、過去の refinement 結果を実装開始 authorization として再利用するのではなく、impl-review-loop の Root-Owned Synchronous Entry Transition で live Issue / current main を再評価してから Step 1 に入らせるのが適切です。現行 plugin docs にはまだ「継続的」等の修正対象記述が残っています。

    SubAgent については repository の Common Completion Protocol に合わせ、final result を受領しただけで次へ進まず、list_agents で canonical task が terminal completed になったこととの両方を確認させます。

    実際に permission prompt も抑えたい場合は Claude Code 側を Auto mode で実行するのが適しています。プロンプト自体は Claude Code の permission enforcement を解除できません。Auto mode は tool call を background safety checks 付きで自動承認する現在の正式な permission mode です。 ([Claude]1)

    以下を新規 Claude Code セッションにそのまま渡す想定です。

    #2420

    Issue #2420 に対して impl-review-loop を実行してください。

    目的は、Issue #2420 の current live contract に従って実装・独立検証・PR review・必要な fix_delta 適用を自律的に反復し、マージ操作だけを残した IMPL_REVIEW_LOOP_RESULT_V1.status: draft_pr_ready / termination_reason: approved の状態まで到達させることです。

    人間への iteration ごとの承認確認は不要です。
    実装、worktree/branch 作成、ファイル編集、verification、commit、bounded push、PR 作成・更新、CI 待機、PR review、review blocker の修正、必要な branch update / rereview は、現在の repository の canonical policy が許す範囲で自律継続してください。

    PR の merge、auto-merge 有効化、merge commit / squash / rebase merge の実行は行わないでください。
    最終 merge 判断だけを人間に残してください。

    Authority / canonical procedure

    最初に current checkout から以下を読み、現在の repository 内容を正本として扱ってください。

    過去の refinement 完了コメントや過去の contract snapshot は audit / telemetry として参照して構いませんが、それ単独を Step 1 authorization として使用しないでください。

    Issue #2420 は直前の issue-refinement-loop で implementation-ready まで refinement 済みですが、その後 main が進んでいる可能性があります。
    したがって実装開始時には必ず current live state を再取得し、impl-review-loop の Root-Owned Synchronous Entry Transition を正規経路として使用してください。

    capability preflight → live Issue fetch → current-run issue-contract-review → live Issue 再取得 → root entry routing → invoke_impl_review_loop の一続きの current-run transition を崩さないでください。

    過去の LOOP_HANDOFF_RESULT_V1 や refinement report の存在だけを根拠に Step 1 を直接起動しないでください。

    Human approval policy

    この実行では、通常の loop iteration 間の human approval gate を不要とします。

    以下について「実行してよいですか」「続けますか」等の確認を人間へ挟まず、canonical policy の範囲で自律継続してください。

    • implementation-worker の起動
    • canonical worktree / branch の作成
    • Issue Allowed Paths 内の編集
    • commit
    • canonical bounded publish / push
    • PR 作成・PR body 更新
    • test-runner による Verification Commands の実行
    • pr-reviewer による review
    • REQUEST_CHANGES の blocker を fix_delta とした次 iteration
    • current head が変化した場合の再 verification / rereview
    • BEHIND に対する canonical update_branch
    • main drift に対する scope-clean reconciliation
    • required CI の待機・readback・必要な bounded retry
    • mechanical な PR body hygiene / closing keyword 修正

    ただし、プロンプトの文言で Claude Code runtime 自身の permission enforcement を迂回しようとしないでください。
    セッションが Auto mode 等で許可している操作はそのまま実行し、runtime/policy が実際に拒否した操作については canonical recovery を試してください。

    単なる SubAgent の human_review_required: true 自己申告、optional artifact の missing/stale、scope-rollup telemetry の異常などは、それだけでは停止理由にしないでください。
    現行 impl-review-loop の routing policy をそのまま適用してください。

    Issue #2420 の実装境界

    Issue body の Allowed Paths を厳守してください。

    現時点の主対象は以下です。

    • plugins/agent-retrospective/README.md
    • plugins/agent-retrospective/skills/run/SKILL.md

    Issue body の current contract が変更されていた場合は live body を優先してください。

    特に次を scope 外へ広げないでください。

    Issue #2420 は docs-only として完結させてください。

    実装内容は live Issue の Outcome / AC / Verification Commands を正本とし、少なくとも以下の contract を崩さないでください。

    1. portable plugin 版を one-shot / 単発実行として正確に説明すること。
    2. fixture-only previous-state backend であり、real persistent cross-run tracking は未実装で、fixture hit がなければ no_history から開始 することを明記すること。
    3. standard observer path は repository/codebase + live Web で、runtime observer は --runtime-evidence-file 明示指定時のみ追加される非対称 topology として記述すること。
    4. --repository-id 省略時は origin から導出し、導出不能なら repository_id_unresolved となり、現状 fallback 実装が存在しないことを明記すること。

    no_history から開始 および repository_id_unresolved は Issue の literal Verification Commands が検出できる形を維持してください。
    Markdown の line wrap によって token を途中で分断しないでください。

    Sibling Issue #2418

    Issue #2418 は同じ README/SKILL を対象にしますが、refinement での scope-rollup 判定は same_file_disjoint_anchor / parallel_ok です。

    したがって:

    実行中に #2418 側の PR が merge されるなどして main が進んだ場合は、人間確認に戻すのではなく、impl-review-loop の canonical main-drift / update-branch / scope-clean reconciliation routing に従って candidate head を更新し、必要な verification と PR review を current head で再実行してください。

    actual Git conflict が発生した場合だけ canonical conflict handling に従ってください。

    SubAgent execution — 必須

    Step 1 / Step 2 / Step 4 は root が直接代行せず、current impl-review-loop の定義どおり SubAgent に委譲してください。

    想定される canonical agents:

    • Step 1: implementation-worker
    • Step 2: test-runner
    • Step 4: pr-reviewer

    各 SubAgent について 必ず作業完了を待ってから次の routing に進んでください。

    Common Completion Protocol を厳守してください。

    1. spawn_agent 後、canonical task_name を保存する。
    2. SubAgent が background 実行になった場合でも、途中通知・mailbox activity・timeout・steer 応答を「完了」とみなさない。
    3. 対象 SubAgent の final result を実際に受領・consume する。
    4. その後 list_agents で同じ canonical task が terminal completed になっていることを確認する。
    5. final result と terminal completed の両方が揃うまで次 Step に進まない。
    6. errored / interrupted / shutdown / not_found は成功扱いしない。current skill の bounded recovery procedure を適用する。
    7. background completion notification が来ても、result と lifecycle terminal state の双方の確認を省略しない。

    特に Step 2 の test-runner 完了を確認する前に Step 4 の pr-reviewer を起動しないでください。

    Step 1 — Implementation

    implementation-worker に current live Issue number / Issue URL / actual Allowed Paths / fix_delta を具体値で渡してください。

    initial implementation では Issue #2420 の current body を契約として最小 diff を作成してください。

    REQUEST_CHANGES から戻る場合は reviewer blockers のみを serialized fix_delta として worker に渡し、無関係なリファクタリングや scope expansion を行わせないでください。

    worktree、branch、commit、push、PR は implement-issue / open-pr の current canonical procedure に従ってください。

    Step 2 — Independent Verification

    Step 1 完了後は test-runner SubAgent に Issue #2420 の live body に記載された literal Verification Commands をそのまま実行させてください。

    コマンドを「同等の別コマンド」に書き換えないでください。

    test-runner report について、root は current PR head SHA、current Issue body SHA、literal command hashes を独立に照合し、current-head VC_ADJUDICATION_RESULT_V1 を生成してください。

    blocking == false が current head に束縛されていることを確認するまで Step 4 を起動しないでください。

    本 Issue は Runtime Verification Applicability: not_applicable の docs-only issue なので、新しい runtime harness、sandbox、live E2E matrix を追加しないでください。

    Step 4 — PR Review

    current-head VC gate が通った場合だけ pr-reviewer SubAgent を起動してください。

    reviewer には actual PR number と current head SHA を渡し、current head に対する review を行わせてください。

    REQUEST_CHANGES の場合:

    • blockers を具体的な fix_delta に正規化
    • Step 1 へ戻す
    • implementation-worker の完了を待つ
    • head が変わったら Step 2 verification を再実行
    • Step 4 review を current head で再実行

    この循環に人間の承認確認を挟まないでください。

    reviewed head と live PR head が不一致なら verdict を stale として扱い、人間を呼ばず current head で rereview してください。

    Step 5 — Termination target

    終了目標は次です。

    IMPL_REVIEW_LOOP_RESULT_V1:
      status: draft_pr_ready
      termination_reason: approved
      merge_ready: true

    少なくとも以下を current live state で満たしてください。

    • pr-reviewer verdict: APPROVE
    • reviewer blockers: []
    • reviewed_head_sha == current PR head SHA
    • Issue Verification Commands が current head で nonblocking PASS
    • Allowed Paths compliance
    • required CI / branch-protection evaluation が canonical policy 上 OK
    • live mergeability が MERGEABLE
    • merge_state_status が canonical approvable state(CLEAN / HAS_HOOKS)

    APPROVE 単独で終了しないでください。

    BEHIND なら canonical update_branch → verification → PR rereview を自律実行してください。

    main drift で evidence が stale なら scope-clean reconciliation を行い、必要な evidence だけ current base/current head に再bindしてください。

    Merge boundary — 絶対停止位置

    IMPL_REVIEW_LOOP_RESULT_V1.status: draft_pr_ready
    かつ
    termination_reason: approved
    かつ
    merge_ready: true

    に到達したら停止してください。

    ここから先の GitHub merge mutation は実行禁止です。

    以下を実行しないでください。

    • gh pr merge
    • GitHub API による merge
    • auto-merge の enable
    • merge queue への投入
    • squash / merge / rebase merge
    • post-merge-cleanup

    PR の実際の Draft/Ready フラグの扱いは current open-pr / impl-review-loop の canonical procedure に従ってください。
    draft_pr_ready という loop terminal status と GitHub の Draft PR flag を混同しないでください。

    Final report

    終了時に簡潔に以下を報告してください。

    通常の iteration approval は求めず、canonical hard stop が発生しない限り、マージ直前の approved / merge-ready 状態まで自律継続してください。

    この形なら、#2420 の refinement を重複実行せず、current main への再bind、SubAgent 完了待ち、レビュー差し戻しの自動反復、CI/mergeability 確認までを impl-review-loop に任せつつ、merge mutation だけを明確に残せます。

  7. squne121 commented on Sep 3, 2026

    @squne121
    OwnerAuthor

    implement-issue: 実装完了 (2026-09-03T14:05:54Z)

  8. squne121 commented on Sep 3, 2026

    @squne121
    OwnerAuthor

    impl-review-loop: 完了 (2026-09-03T14:20:00Z)

    IMPL_REVIEW_LOOP_RESULT_V1:
      schema_version: 1
      status: draft_pr_ready
      pr_url: "https://github.com/squne121/loop-protocol/pull/2487"
      head_sha: "53562db3274d053a391b607e88fe8404732dc4cc"
      issue_number: 2420
      termination_reason: approved
      merge_ready: true
      iteration: 0
    
    FOLLOW_UP_MATERIALIZATION_RESULT_V1:
      schema_version: 1
      materialized_by: impl-review-loop
      follow_up_issues: []
      note_only_observations: []
    
    ISSUE_SCOPE_ROLLUP_DECISION_V2:
      schema_version: 2
      recorded_at: "2026-09-03T14:20:00Z"
      rollup_plan_ref:
        body_sha256: null
        generated_at: null
      decision: skipped
      executed_actions: []
      skipped_reason: "manual advisory diagnostic not invoked for this run; sibling Issue #2418 scope-rollup already recorded as same_file_disjoint_anchor/parallel_ok in Issue body"
      candidates_reviewed: []
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area/docsfollow-upkind/implementationphase/implementation

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions