Repository navigation
test: E2E daemon + state file 検証 (close without merge) #23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -87,7 +87,7 @@ Claude が action フィールドに従い行動 | |
|
|
||
| | コンポーネント | 種別 | 役割 | | ||
| |---|---|---| | ||
| | `hooks-post-pr-monitor.exe` | スタンドアロン CLI (Rust) | PR 作成 + CronCreate 監視開始 | | ||
| | `hooks-post-pr-monitor.exe` | スタンドアロン CLI (Rust) | PR 作成 + daemon 起動 + state file 管理 | | ||
| | `hooks-pre-tool-validate.exe` | PreToolUse hook (Rust) | `gh-pr-create-guard` で直接の `gh pr create` をブロック | | ||
| | `check-ci-coderabbit.exe` | スタンドアロン CLI (Rust) | CI・CodeRabbit 状態チェック → JSON 出力 | | ||
| | `post-pr-create-review-check` SKILL.md | Claude Skill | 監視結果の解釈・報告手順 | | ||
|
|
@@ -144,6 +144,14 @@ check_coderabbit = true | |
| 信頼性が低かった。push-pipeline と同じ「ガード + 専用コマンド + claude -p」パターンに | ||
| 統一することで、CronCreate の実行を確実にした。 | ||
|
|
||
| - **2026-04-05**: `claude -p --resume` → daemon + state file アーキテクチャに変更。 | ||
| VSCode 拡張では `~/.claude/sessions/` に CLI セッションのみ登録されるため、 | ||
| `claude -p --resume <session_id>` で VSCode セッションにアクセスできないことが判明。 | ||
| 外部プロセスから Claude セッションに状態を注入する設計自体がアンチパターンであると認識。 | ||
| 新設計: daemon が外部で監視を完結させ、結果を `.claude/pr-monitor-state.json` に書き出す。 | ||
| Claude は state file を読むだけ。CronCreate は UX 最適化レイヤーとして維持(state file の | ||
| cat のみ実行)し、コア機能ではない。フォールバック: 手動 `cat` で確認可能。 | ||
|
Comment on lines
+147
to
+153
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ADR 本文のフロー図も新設計に揃えた方がよいです。 変更履歴は daemon + state file 化を説明していますが、Line 55-83 のアーキテクチャ図はまだ 🤖 Prompt for AI Agents |
||
|
|
||
| ## 参考 | ||
|
|
||
| - ADR-001 — hooks の実装言語として Rust を採用 | ||
|
|
||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
同ファイル冒頭の SessionStart 説明がまだ旧
--resumeフローです。Line 11-12 には
.session-idとclaude -p --resumeが残っているので、このセクションだけ新設計に更新すると設定ファイル内の説明が矛盾します。🤖 Prompt for AI Agents