spec(subagent): simplify delegation to hook-chain driven workflow#895
Merged
liplus-lin-lay merged 5 commits intomainfrom Mar 27, 2026
Merged
spec(subagent): simplify delegation to hook-chain driven workflow#895liplus-lin-lay merged 5 commits intomainfrom
liplus-lin-lay merged 5 commits intomainfrom
Conversation
Collaborator
Author
CHANGES_REQUESTEDLi+github.md と docs/2.-Task.md の変更は正確。ただし以下の Target Files が未対応:
|
a9afbf9 to
dc8e6e1
Compare
サブエージェントへの伝達を最小化し、hook チェーン駆動で自律的にオペレーション ファイルを読み込むワークフローに変更。 変更前: Li+core.md パス、Li+operations.md パス、issue 番号、リポジトリ、意図を伝達 変更後: Li+core.md パスと issue URL のみ伝達。意図は issue body に記載済み。 Li+operations.md は hook チェーン(on_issue → on_branch → ...)で自動読み込み。 hook 非対応環境ではフォールバックとして operations パスも渡す。 Refs #890
…_Label_Flow Issue_Flow のブランチ関連記述(sub-issue ブランチルール、gh issue develop リンク制約、 ブランチリンクターゲット)を operations レイヤーの Branch_And_Label_Flow に移動。 on_issue で読み込む内容を issue 管理(ラベル・アサイン・body)に集中させる。 docs/2.-Task.md と docs/3.-Operations.md も対応更新。 Refs #891
Li+agent.md: 委譲ルールをhookチェーン駆動に更新(core path + issue URLのみ伝達)。 Li+github.md で適用済みの簡素化仕様と同じセマンティクスに統一。 Li+claude.md: assignees系APIコール(gh issue assign / gh api .*/issues/.*/assignees)を on_issueブロックより前でインターセプトし、Li+operations.md Branch_And_Label_Flow を 読み込むよう修正。assign = 即行動 = ブランチ作業開始のため。 Refs #890
委任セクションをhookチェーン駆動仕様に更新。 post-tool-use.sh テーブルに assignees インターセプト行を追加。 Refs #890
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
This was referenced Mar 27, 2026
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.
Refs #890
Part of #889
変更内容
サブエージェントへの伝達ルールを hook チェーン駆動 に書き換え。親からの伝達を最小化した。
背景
従来: 親が core + operations パス + issue 番号 + repo + intent を伝達 → サブが2ファイル読み込み。
課題: operations パスの明示伝達が冗長。hook (PostToolUse) がサブで発火することを確認済み。
変更の具体
Li+github.md (Subagent Delegation, L129-133)
Convey: Li+core.md path, Li+operations.md path, issue number, repository, intentConvey: Li+core.md path, issue URLLi+github.md (Issue_Flow, Sub-issue)
see Li+operations.md Branch_And_Label_Flowに置換docs/2.-Task.md (伝達内容, L148)