Skip to content

実装: local_main_branch_guard.sh に実行ビットを付与し check-hook-integrity CI を green にする #1066

Closed as not planned

Description

@squne121

Machine-Readable Contract

contract_schema_version: v1
issue_kind: implementation
parent_issue: "#1047"
goal_ref: "check_hook_integrity.py が local_main_branch_guard.sh を not_executable で検出し CI が常時赤になる問題を解消する"
change_kind: chore

Parent Issue

#1047

Parent Goal Ref

PR #1062(Hook Executability Health Guard)のマージ後、check-hook-integrity CI workflow が local_main_branch_guard.sh の executable bit 欠如を正しく検出し exit 1 になる。根本修正として実行ビットを付与する。

Current Validated Scope

  • .claude/hooks/local_main_branch_guard.sh に実行ビットを付与する(git update-index --chmod=+x)

Remaining Parent Gaps

#1047 配下の他 child issue(Issue 3, 5〜9 等)

Outcome

uv run python3 .claude/hooks/check_hook_integrity.py --format json が decision: pass を返し、check-hook-integrity CI workflow が green になる。

In Scope

  • .claude/hooks/local_main_branch_guard.sh の executable bit 付与

Out of Scope

  • hook script 自体の内容変更
  • settings.json の変更
  • 他の hook の修正

Acceptance Criteria

  • AC1: uv run python3 .claude/hooks/check_hook_integrity.py --format json が decision: pass を返す(failures[] が空)
  • AC2: CI check-hook-integrity job が green になる

Verification Commands

# AC1
# baseline-expect: fail
$ uv run python3 .claude/hooks/check_hook_integrity.py --format json

# AC2
# baseline-expect: fail  
$ test -f .claude/hooks/local_main_branch_guard.sh

Runtime Verification Applicability

decision: not_applicable — 静的検証可能。

Allowed Paths

  • .claude/hooks/local_main_branch_guard.sh

Stop Conditions

  • Allowed Paths 外の変更が必要と判明した場合

Required Skills

  • git(executable bit 付与)

Background

PR #1062 が追加した check_hook_integrity.py が local_main_branch_guard.sh(mode 0o644、exec form 登録)を not_executable として正しく検出した。PR #1041 でコミット時に実行ビットが欠落したバグ。本 Issue はその修正。

Activity

  1. added
    enhancement
    phase/implementation
    agent/implementer
    on Jun 20, 2026
  2. squne121 commented on Jun 20, 2026

    @squne121
    OwnerAuthor

    PR #1062 の Scope Delta として の が適用済み(git mode: 100644 → 100755)。本 Issue の目的は達成されたため、重複としてクローズする。

  3. squne121 commented on Jun 20, 2026

    @squne121
    OwnerAuthor

    PR #1062 の Scope Delta として local_main_branch_guard.sh の chmod +x が適用済み(git mode: 100644 → 100755)。本 Issue の目的は達成されたため、重複としてクローズした。

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/implementerenhancementphase/implementation

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions