Skip to content

feat(impl-review-loop): startup を capsule-first に強制し raw 初期調査を禁止する #1114

Closed as not planned

Description

@squne121

背景

impl-review-loop の現行 procedure は build_intake_capsule.py を最初に実行する設計だが、実行ログでは main agent が raw gh issue view、comments fetch、git status、manual grep を先に行った(Issue 107 impl-review-loop 実行ログで観測)。これにより hook block、重複調査、context 汚染が発生した。

Outcome

impl-review-loop 起動直後の入口を run_impl_review_start.py に集約し、Issue metadata、contract snapshot、repo state、next_action を IMPL_REVIEW_START_RESULT_V1 として一括返す。SKILL/procedure から raw 初期調査手順を削除し、capsule が fresh/valid の間は同一情報の再取得を禁止する。

Acceptance Criteria

  • AC1: run_impl_review_start.py が build_intake_capsule.py を呼び出し、IMPL_REVIEW_START_RESULT_V1 を stdout JSON のみで返す
  • AC2: stdout は 4096 bytes 以下。超過時は artifact path 付き compact fallback を返す
  • AC3: route は proceed_to_step_1 / ensure_contract_snapshot / run_contract_blocker_triage / refresh_contract_snapshot / already_closed / human_review_required のいずれか
  • AC4: Issue が closed かつ no-diff/evidence-close contract の場合、already_closed として Step 1 実装へ進まない
  • AC5: preparation.md / SKILL.md に「raw gh issue view / comments fetch / main git status は startup script より前に実行しない」と明記される
  • AC6: regression fixture で 実装: gemini-cli-headless-delegation の正本パス記載を .claude/skills に統一する #107 型 no-diff close issue が already_closed または no_diff_finalize route になる
  • AC7: tests が PASS する

Allowed Paths

  • .claude/skills/impl-review-loop/scripts/run_impl_review_start.py
  • .claude/skills/impl-review-loop/scripts/build_intake_capsule.py
  • .claude/skills/impl-review-loop/steps/preparation.md
  • .claude/skills/impl-review-loop/SKILL.md
  • .claude/skills/impl-review-loop/tests/

Verification Commands

uv run pytest .claude/skills/impl-review-loop/tests/ -k intake_or_start_or_capsule -q
uv run python3 .claude/skills/impl-review-loop/scripts/run_impl_review_start.py --issue-number 107 --repo squne121/loop-protocol --max-stdout-bytes 4096

Source

Audit trigger: Issue #107 impl-review-loop 実行ログ観測

Activity

  1. added
    enhancement
    on Jun 21, 2026
  2. squne121 commented on Aug 1, 2026

    @squne121
    OwnerAuthor

    Disposition: already implemented(#1889 restructuring 起因の再調査で判明)

    #1889(現 parent tracker「導入: AI間ローカルhandoffと人間向けGitHub証跡をphase別に統一する」)の owner comment は当初、本 Issue の残存要件を Child A(#1909, SubAgent 発火前 context bundle)へ統合した上で not planned close する案でした。

    しかし本 Issue の AC・現状リポジトリを独立に確認したところ、本 Issue が要求する「impl-review-loop 起動直後を capsule-first にし raw 初期調査を禁止する」機能は、既に実装済みであることを確認しました。

    したがって Child A への統合対象ではなく、#958 / PR #1005 により既に完了済みの重複 Issue として close します(not planned ではなく completed / duplicate disposition)。close_reason: 実装済み・重複。

    close: not planned(重複実装済みのため)

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

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions