Skip to content

調査: PreToolUse hook chain(local_main_branch_guard/worktree_scope_guard)の繰り返し誤ブロックを踏まえ無効化・縮小・現状維持の方針を決定する #1690

Closed
1 of 1 issue completed

Description

@squne121

Machine-Readable Contract

contract_schema_version: v1
issue_kind: research
parent_issue: "none"
goal_ref: "local_main_branch_guard / worktree_scope_guard を中心とする PreToolUse hook chain が正当な作業(Issue起票・メモリ保存・issue-refinement-loopのmutationステップ等)を繰り返し無条件ブロックしている実態を確定的に記録し、hook全体を無効化する・大幅縮小する・現状維持して個別バグ修正(#1684・#1689)で対応する、のいずれを採るか方針を決定する"
change_kind: research-only

Parent Issue

なし(単独改善)

Outcome

.claude/hooks/local_main_branch_guard.sh / .claude/hooks/worktree_scope_guard.sh を中心とする PreToolUse hook chain について、無効化・縮小・現状維持のいずれを採るかの方針が本Issueに確定的に記録され、方針に応じた実装Issue(.claude/settings.json の hooks セクション削除、または個別バグ修正)が起票され本Issueからリンクされている状態。

Background

2026-07-23、Issue #1674 に対して issue-refinement-loop を実行した際、以下が観測された:

これらの繰り返しブロックにより作業が長時間停止したため、.claude/settings.json の hooks セクション(PreToolUse: secret_boundary_guard・local_main_branch_guard・worktree_scope_guard・guard-japanese-prose・rtk_boundary_shadow_guard・ci_test_performance_advisory・root_temporary_residue_advisory、Stop/SubagentStop: session_manifest_coordinator)は、ユーザーの判断によりローカル(未コミット)で .claude/settings.json から一時的に削除された。本Issueは、この一時的な回避を恒久方針にすべきかどうかを検討する。

In Scope

Out of Scope

Acceptance Criteria

Verification Commands

  • gh issue view <this-issue-number> --repo squne121/loop-protocol --json body --jq ".body" — AC1〜AC4の記録内容を確認する

Allowed Paths

  • 読み取り専用。リポジトリ変更なし(既定)

Stop Conditions

  • Outcome / Scope / AC が検索可能な形で記載されていない場合は即停止
  • Allowed Paths 外への書き込みを試みた場合は即停止
  • 権限不足(permission denied)により操作が完了できない場合は即停止
  • 成果物の書き込みに失敗した場合(I/O エラー等)は即停止

Handoff Contract

Notes for Reviewer

Sub-issues

Sub-issues

1 of 1 Issues completed
Loading 1 sub-issues

Activity

  1. added
    state/queued
    phase/research
    agent/research
    on Jul 23, 2026
  2. squne121 commented on Aug 12, 2026

    @squne121
    OwnerAuthor

    Disposition: CLOSED / completed

    #1782 の敵対的レビュー(https://github.com/squne121/loop-protocol/issues/1782#issuecomment-5266277591)に基づき close する。

    根拠:

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

    agent/researchphase/researchstate/queued

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions