Skip to content

feat(guardrails): medium-priority operational hooks #126

@terisuke

Description

@terisuke

概要

guardrail.ts に未実装の中優先度運用フック6本を追加。

実装対象

1. post-merge-close-issues (tool.execute.after for bash)

  • gh pr merge 成功後に関連 issue の自動クローズ提案
  • PR本文/コミットメッセージの Fixes #N / Closes #N パターン検出

2. enforce-memory-update-on-commit (tool.execute.after for bash)

  • git commit 後にメモリ更新を促すリマインダー
  • 重要な学びや決定があった場合のメモリ保存督促

3. enforce-issue-close-verification (tool.execute.before for bash)

  • gh issue close 前に受入基準の検証を要求
  • 基準の1つずつにコード引用とテスト結果の証拠を要求

4. enforce-soak-time (tool.execute.before for bash)

  • develop→main マージ前に半日以上の soak time を確認
  • infra・migration 変更は1営業日以上

5. enforce-follow-up-limit (tool.execute.before for bash)

  • 同一 feature 系統の fix PR が2本連続でないか確認
  • feature freeze 発動条件の検出

6. enforce-doc-update-scope (tool.execute.after for edit/write)

  • コード修正時に関連ドキュメントの同時更新を促す
  • grep で参照箇所を検索して未更新を検出

フック型

全て advisory (ソフトリマインダー)。ハードブロックにするとワークフローが重くなりすぎるため。

受入基準

  • guardrail.ts に 6 フック追加
  • 各フックの発火確認
  • state.json に関連追跡フィールド追加

関連

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions