Skip to content

docs(issue-refinement-loop): superseded_by_decision / max_iterations 終了時の派生改善候補追跡手順を明確化する #300

Closed

Description

@squne121

Machine-Readable Contract

```yaml
contract_schema_version: v1
issue_kind: implementation
parent_issue: none
goal_ref: "issue-refinement-loop SKILL.md の「派生改善候補の自動起票」セクションを approved 以外の終了(superseded_by_decision / max_iterations)でも機能するように拡張する"
change_kind: docs
```

Parent Issue

なし(単独改善)

Background

Issue #273 の refinement-loop(termination_reason: superseded_by_decision)実行中に判明した仕様上の曖昧さ。

現行 SKILL.md の「派生改善候補の自動起票」セクションには以下の記述がある:

main thread は termination_reason: approved 確定後に以下を実行する

この記述は approved の場合にのみ明示的に言及しており、superseded_by_decision / max_iterations / human_escalation で終了した場合に派生改善候補(ループ中に発見されたスコープ外の改善)をどう扱うかが未定義である。

今回の #273 ループでは:

Outcome

issue-refinement-loop/SKILL.md の「派生改善候補の自動起票」セクションが更新され、
approved 以外の終了でも発見済み派生改善候補を追跡・起票する手順が明記されている。

In Scope

  • SKILL.md の「派生改善候補の自動起票」セクションに superseded_by_decision / max_iterations の終了時処理を追加する
    • approved と同じ追跡・dedupe・起票ロジックを適用する(termination_reason 非依存にする)
    • FOLLOW_UP_MATERIALIZATION_RESULT_V1 をクローズ済み Issue にコメント追記するか、代替 Issue / 別チャネルに記録するかを明記する
  • Step 5 の終了処理表に「各 termination_reason での FOLLOW_UP 処理の有無」列を追加する

Out of Scope

  • SKILL.md の Step 0c 手順の変更
  • 新しい termination_reason の追加
  • issue-author / codebase-investigator SubAgent 定義の変更

Acceptance Criteria

  • AC1: SKILL.md の「派生改善候補の自動起票」セクションに termination_reason: approved の限定が除かれ、approved 以外でも適用されることが明記されている
  • AC2: Step 5 の終了処理表に各 termination_reason での FOLLOW_UP 処理の有無(実行する / スキップ)が記載されている
  • AC3: superseded_by_decision の場合に FOLLOW_UP_MATERIALIZATION_RESULT_V1 をどこに記録するか(クローズ済み docs: ssot-registry.md と ssot-catalog.md の同期ズレを解消する #273 へのコメント or 代替 Issue へのコメント)が明記されている

Verification Commands

```bash

AC1: 「approved 確定後」の限定記述が除かれているか確認

("termination_reason: approved 確定後" という限定が残っていないこと)

! rg "termination_reason.*approved.*確定後|approved.*確定後.*以下を実行"
.claude/skills/issue-refinement-loop/SKILL.md
&& echo "PASS: AC1 (limitation removed)"
|| echo "FAIL: AC1 (old limitation still present)"

AC2: Step 5 の表に FOLLOW_UP 列があること

rg "FOLLOW_UP|派生改善.*Step 5|Step 5.*派生改善"
.claude/skills/issue-refinement-loop/SKILL.md
&& echo "PASS: AC2" || echo "FAIL: AC2"

AC3: superseded_by_decision 時の FOLLOW_UP 記録先が明記されていること

rg "superseded_by_decision.*FOLLOW_UP|FOLLOW_UP.*superseded_by_decision"
.claude/skills/issue-refinement-loop/SKILL.md
&& echo "PASS: AC3" || echo "FAIL: AC3"

品質ゲート(docs-only のため build/test は参考)

pnpm typecheck && pnpm lint && pnpm test && pnpm build && echo "PASS: quality gate" || echo "FAIL: quality gate"
```

Allowed Paths

  • .claude/skills/issue-refinement-loop/SKILL.md

Stop Conditions

  • Step 0c の手順変更が必要と判明した場合(別 Issue で扱う)
  • 新しい termination_reason の定義が必要な場合(スコープ外)

Runtime Verification Applicability

  • decision: not_applicable
  • reason: docs-only 変更。AC1〜AC3 は rg による静的確認で完結

Delivery Rule

  • 1 Issue = 1 PR
  • Draft PR で起票し、AC1〜AC3 全件 PASS を確認してからレビュー依頼する

Source

Activity

  1. squne121 commented on May 27, 2026

    @squne121
    OwnerAuthor

    Decision: Absorbed

    Reasoning: Absorbed into the termination policy documentation.

    Evidence:

  2. squne121 commented on May 27, 2026

    @squne121
    OwnerAuthor

    CLOSE_DECISION_V1

    CLOSE_DECISION_V1:
      generated_at: "2026-05-28T00:00:00Z"
      generated_by: issue-395-sweep
      issue_number: 300
      decision: completed
      state_reason: completed
      evidence: "references/termination-policy.md に follow-up candidate tracking が記載済み。#393 PR で実装済み"
      absorbed_by:
        - pr: https://github.com/squne121/loop-protocol/pull/415
          issue: 393
      sweep_source: https://github.com/squne121/loop-protocol/issues/395
  3. squne121 commented on May 27, 2026

    @squne121
    OwnerAuthor

    CLOSE_DECISION_V1_CORRECTION

    CLOSE_DECISION_V1:
      generated_at: "2026-05-28T12:00:00Z"
      generated_by: issue-395-sweep-correction
      issue: "#300"
      decision: absorbed
      github_state: CLOSED
      github_state_reason: completed
      absorbed_by:
        - pr: "#415"
          issue: "#393"
      evidence:
        - type: ssot_migrated
          ref: "https://github.com/squne121/loop-protocol/pull/415"
      residual_gaps: []

    訂正理由: 前回コメントの decision: completed は #395 Outcome の語彙外。正しくは decision: absorbed(absorbed by #393)。termination_reason 非依存 follow-up tracking は references/termination-policy.md に SSOT 化済み。

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