Skip to content

導入: issue-refinement-loop に semantic design review lane を追加し未解決 design finding の見逃しを防ぐ #2294

Closed
3 of 3 issues completed

Description

@squne121

Machine-Readable Contract

contract_schema_version: v1
issue_kind: parent
goal_ref: "issue-refinement-loopがdeterministic checkerで処理できないsemantic design findingを未解決のまま処理完了扱いにしない構造へ修正する"
change_kind: workflow
parent_mode: "delivery-rollup"
closure_mode: "child-complete"

Summary

#2273 の敵対的レビュー(コメント1、コメント2)で指摘された P0-3〜P0-6 / P1-1〜P1-5 級の設計 finding が、issue-refinement-loop の 1 周では「機械的な文言置換では対応できないため次回 iteration や issue-contract-review に委ねる」として処理未完のまま loop 終了した。4 系統の独立調査(現行アーキテクチャ監査 / 履歴監査 / impl-review-loop 比較監査 / Claude Code 公式仕様調査)と 3 回の独立設計レビュー(bootstrap semantic review / adversarial review / contract-regression review)を経て root cause と target architecture を確定した。本 Issue は tracking parent であり、実装は Child C(ADR)→ Child A(semantic design review lane 実装)→ Child B(docs 明文化)の順で 3 分割する。

Goal

issue-refinement-loop および関連 custom agent が、決定論的に処理できる領域(syntax / facts / invariants / routing mechanics / evidence collection / transactional mutation)は script へ委譲して token/context 予算を節約しつつ、AC・schema・architecture・workflow contract など決定論的に解けない領域では Claude Code の推論能力を積極的に使う構造へ修正され、「機械的に直せないので次回に委ねる」という形で semantic finding が未解決のまま処理完了扱いになる構造的欠陥(#2273 で実際に発生)が解消された状態。

Root cause(確定・repository evidence で検証済み)

最重要原則(今回の設計判断の中心)

Deterministic code: facts/invariants/syntax/reproducible checks/routing mechanics/evidence collection/transactional mutation/race guards
LLM reasoning: semantics/architecture/requirement completeness/AC設計/schema設計/trade-offs/contradiction resolution/evidence interpretation/fix design
Orchestrator: context budgeting/delegation/result joining/bounded iteration/authority-aware escalation

deterministic に判定できないこと自体を human escalation の理由にしてはならない。LLM が repository evidence、外部一次資料、Owner Decision、Issue/PR history から十分な根拠を得て合理的に決定できるなら、LLM が判断・修正案作成まで担当する。human escalation は、複数の合理的設計案から Owner の価値判断が必要 / canonical Owner Decision 同士が矛盾 / authority 不足 / bounded 調査でも dispositive evidence 無し / Owner 明示要求、の genuinely human-only な場合に限定する。

Desired Destination

  • Child C(ADR)が merge 可能な状態で確定している
  • Child A(issue-refinement-loop への semantic design review lane 追加)が merge 可能な状態で実装されている
  • Child B(impl-review-loop/pr-reviewer/pr-review-judge/pr-reviewer-lite の既存分離の docs 明文化)が merge 可能な状態で実装されている
  • 上記 3 child すべてが Closed(merge 済み)になった時点で本 parent を Closed にする

Current Validated Scope

このタイミングで write-capable に扱う範囲は「Child C / A / B の起票、および C→A→B の順序での blocked_by 関係の明示、#2273 への follow-up link の追記」のみ。3 child の実装内容そのものはそれぞれの child issue の Allowed Paths に閉じる。

Decisions Fixed

  • 2026-08-22: root cause は「deterministic checker が構文的完全性のみを見ており、semantic design finding を capture・追跡する仕組みが一度も制度化されていない(never-built gap)」と確定した。
  • 2026-08-22: 対応は 3 child(C: ADR、A: semantic design review lane 実装、B: 既存分離の docs 明文化)に分割し、順序を C→A→B(A は C 完了後着手、B は A 完了後着手)に固定した。
  • 2026-08-22: semantic review の新規 SubAgent は Sonnet 5 に effort: high を指定する(Claude Code 公式仕様 https://code.claude.com/docs/en/model-config#adjust-effort-level で対象 model への effort 指定が正式サポート済みと確認済み)。
  • 2026-08-22: semantic review 追加は既存の ISSUE_REVIEW_RESULT_COMPACT_V2(固定 11 行 wire)と LOOP_REWRITE_ROUTER_STATE_V1(additionalProperties:false)にフィールドを追加せず、新規 sidecar artifact semantic_review_result_v1 として分離する。
  • 2026-08-22: Step 番号は「Step 2.5」を使い、過去に不採用となった「Step 3」(feat: impl-review-loop / issue-refinement-loop の Step 3 (adversarial review) を例外ゲート条件化する #428 の adversarial review 案)は再利用しない。

Quality Decision Record

  • Status: N/A(本 parent は delivery-rollup であり quality-gate ではない)
  • 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 C / Child A / Child B の 3 child issue すべてが Closed(対応 PR が merge 済み)になった時点で本 parent を close する。
  • quality-gate / routing-map / decision-log は該当しないため N/A。
  • close 判定に quality-gate 系の Quality Decision Record は用いない(本 parent では N/A 扱いのまま close する)。

Child Issues

Remaining Parent Gaps

Phase Handoff Contract

Acceptance Criteria

  • AC1: Child A / B / C がそれぞれ起票されており、本 parent の Child Issues セクションに実際の Issue 番号が反映されている
  • AC2: Child A が Child C を、Child B が Child A を blocked_by として native dependency 登録している(C→A→B の順序が GitHub 上で機械的に確認できる)
  • AC3: Child C(ADR)が OWNER 判断を経て docs/adr/ へ merge 可能な状態(PR が Draft/Ready を問わず作成され、CI green)になっている
  • AC4: 実装: Claude-GPT に workflow-profile capability preflight と controlled GitHub route を配線する #2273 に本 parent への follow-up link がコメントとして追記されている
  • AC5: Child C / Child A / Child B すべてが Closed(対応 PR merge 済み)になった時点で本 parent が Closed になる

Notes

Sub-issues

Sub-issues

3 of 3 Issues completed
Loading 3 sub-issues

Activity

  1. added
    tracking
    state/in-progress
    on Aug 22, 2026
  2. squne121 commented on Aug 24, 2026

    @squne121
    OwnerAuthor
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

    state/in-progresstracking

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions