Skip to content

Commit dc8e6e1

Browse files
Add Li+github.md to hook-unavailable fallback in subagent delegation
Refs #897 hook が利用できない環境でのフォールバックに Li+github.md パスを追加。 サブエージェントが hook チェーンなしで起動した場合、on_issue による Li+github.md 自動読込が発火しないため、明示的にパスを伝える必要がある。 対象ファイル: Li+github.md, Li+agent.md, docs/2.-Task.md, docs/4.-Adapter.md
1 parent 5b81a86 commit dc8e6e1

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

Li+agent.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ Subagent reads Li+core.md, then hook chain drives the rest:
8888
self-assign → on_issue fires → Li+github.md loaded
8989
branch create → on_branch fires → Li+operations.md loaded
9090
commit / PR / CI → corresponding hooks fire → operations rules loaded
91-
Fallback: if hooks are unavailable, also convey Li+operations.md path.
91+
Fallback: if hooks are unavailable, also convey Li+github.md path and Li+operations.md path.
9292

9393
Subagent issue management:
9494
- Subagent may update issue body when premise or constraints change during implementation.

Li+github.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ Issue Rules
132132
self-assign → on_issue fires → Li+github.md loaded
133133
branch create → on_branch fires → Li+operations.md loaded
134134
commit / PR / CI → corresponding hooks fire → operations rules loaded
135-
Fallback: if hooks are unavailable, also convey Li+operations.md path.
135+
Fallback: if hooks are unavailable, also convey Li+github.md path and Li+operations.md path.
136136
Detailed parent instructions risk conflicting with operations rules.
137137

138138
Issue body update:

docs/2.-Task.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ issue / commit / PR の形式に適用する。
146146

147147
### 伝達内容
148148

149-
親はサブエージェントに Li+core.md パスと issue URL を伝える。Li+github.md、Li+operations.md パス、手順の詳細、ブランチ名、コミットメッセージ、意図は伝えない。意図は issue body に記載されている。サブエージェントは Li+core.md を読み、以降は hook チェーンで自律的にオペレーションファイルを読み込む(self-assign → on_issue → Li+github.md、branch 作成 → on_branch → Li+operations.md、以降 commit / PR / CI も同様)。hook が発火しない環境では、フォールバックとして Li+operations.md パスも伝える。親からの詳細指示はオペレーションルールと矛盾するリスクがある。
149+
親はサブエージェントに Li+core.md パスと issue URL を伝える。Li+github.md、Li+operations.md パス、手順の詳細、ブランチ名、コミットメッセージ、意図は伝えない。意図は issue body に記載されている。サブエージェントは Li+core.md を読み、以降は hook チェーンで自律的にオペレーションファイルを読み込む(self-assign → on_issue → Li+github.md、branch 作成 → on_branch → Li+operations.md、以降 commit / PR / CI も同様)。hook が発火しない環境では、フォールバックとして Li+github.md パスと Li+operations.md パスも伝える。親からの詳細指示はオペレーションルールと矛盾するリスクがある。
150150

151151
### issue body 更新
152152

docs/4.-Adapter.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ bootstrap は次回セッションから有効。現セッションは Li+config
135135
- branch create → on_branch 発火 → Li+operations.md 読込
136136
- commit / PR / CI → 対応 hook 発火 → operations ルール読込
137137

138-
フォールバック:hook が利用できない場合は Li+operations.md パスも追加で伝える。
138+
フォールバック:hook が利用できない場合は Li+github.md パスと Li+operations.md パスも追加で伝える。
139139

140140
### issue 管理
141141

0 commit comments

Comments
 (0)