docs(agents): 自己チェックインによる PR ポーリングを禁じる - #173
Draft
orangewk wants to merge 1 commit into
Draft
Conversation
PR を購読すると webhook がレビュー・push・CI・state 変化のたびに セッションを起こす。その上に時限の自己チェックインを重ねても、 発火ごとに context を丸ごと読み直すだけで、相手が人間の判断待ちの ときは「変化なし」を確認して自分を再予約するだけに終わる。 トリガー履歴に残っていた 26 件はすべてこの形で、変化を一度も 捕まえていない。 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019vTUuGbx7Ua24QMmjkx2mN
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
AGENTS.mdに 1 行追加する。既存の教訓行と同じ形式(規範 + 日付つきの実例)。何が起きていたか
PR を購読すると、レビュー・push・CI 結果・state 変化のたびに webhook がセッションを起こす。それとは別に、agent が
send_laterで 1 時間後の自己チェックインを予約し、発火するたびに「変化なし」を確認して次を予約する、という往復が積み上がっていた。トリガー履歴に残っていた該当分は 26 件。
26 件すべてが「変化なし」で終わり、次を予約している。 変化を捕まえた回は一度もない。発火 1 回につき会話 context を丸ごと読み直すため、待ち相手が人間の判断(orange の agmsg 手動配達、Sol の監査)である案件ほど空振りが続く構造になっていた。
この 1 行が効く範囲と効かない範囲
ポーリングを誘導しているのは Claude Code on the web が注入するシステムプロンプトの「PR Activity Events」節であり、リポジトリ側のファイルではない。したがってこの行はそれを削除するものではなく、文脈上で打ち消すものである。
CLAUDE.md/.claude/は存在せず、AGENTS.mdと.github/PULL_REQUEST_TEMPLATE.mdのいずれもポーリングに言及していない(確認済み).claude/settings.jsonのpermissions.denyでsend_later自体を拒否する手があるが、正当なリマインダー用途も同時に死ぬため本 PR には含めていない検証
AGENTS.mdの 1 行追加のみ。コード・テストへの影響なし。Generated by Claude Code