Repository navigation
Done
Description
承認済みの lane を Herdr の pane ではなく T3 Code の thread(t3 thread CLI)で動かせるようにし,herdr-delegation に代わる,道具に依存しない delegation Skill を作る(T3 の操作は references/t3.md に分ける).
仕事の状態(Issue・計画・brief・PR・LANE-READY)は今と同じく T3 の外に置き,T3 は起動と待機の手段と人が見る画面に限る(#181 の「Interface と Harness は交換可能」に合わせる).
決めること:計画の lane 分割と,guard が許す t3 thread の形.
flowchart LR
U["人(T3 の画面)"] --> P["親 session(Claude)"]
P -- "t3 thread start --worktree --provider claudeAgent|codex" --> L["lane thread(T3 の worktree)"]
P -- "t3 thread send --wait / show" --> L
L -- "commit・push・PR(furedea-agent)" --> G["GitHub"]
P -- "cleanup_worktrees.py" --> W["~/.t3/worktrees"]
| 今(Herdr) | 変更後(T3) | |
|---|---|---|
| lane の起動 | herdr worktree create → herdr agent start |
t3 thread start . --worktree <base> --provider <id> --model <slug> |
| 指示と待機 | herdr agent prompt → herdr agent wait --until done |
t3 thread send <id> - --wait(終了コード 1 = 失敗,2 = 承認・質問待ち) |
| 返答の取得 | herdr agent read |
t3 thread show <id> |
| sandbox の外で動くもの | herdr * |
t3 thread * だけ(t3 service や t3 connect は sandbox の中) |
| 送ってよい相手 | この session が起動した agent(herdr_ownership.py) |
この session が起動した thread |
| 起動してよい provider | Claude,Codex | Claude(claudeAgent),Codex(codex)だけ.Antigravity は規約上,別のエージェントから自動で動かさない |
| 後片付け | .herdr/worktrees |
.herdr/worktrees と ~/.t3/worktrees |
受け入れ条件
- guard が
t3 thread startを,許可した provider と明示した--providerのときだけ通す.provider を省いた形(プロジェクトの既定が Antigravity になり得る)とantigravityなどそれ以外は拒否する - guard が
t3 thread sendを,この session が起動した thread にだけ通す.人の thread や親の thread への送信は確認を求める -
t3 thread showとlistは読み取りとして通る.t3 thread以外のt3サブコマンドは今までどおり確認を求める -
agents/claude/settings.jsonのexcludedCommandsにt3 thread *が入り,Claude の sandbox からt3 threadが動く(今は~/.t3への書き込みがEPERMで失敗する).Codex でも同じ形が動く -
cleanup_worktrees.pyが~/.t3/worktreesの lane worktree を,Herdr の worktree と同じ条件(merge 済み PR の head と一致,未保存の変更なし)で消す -
delegationSkill の本体が道具に依存しない形で brief,完了条件(LANE-READY/LANE-BLOCKED),待機,後片付けを説明し,references/t3.mdがt3 threadの操作を説明する.herdr-delegationは残す - Herdr から T3 への移行を ADR に記録し,ADR-0010 との関係(一部置き換え)を front matter に書く
前提・確認済みの事実・範囲外
確認済み(2026-11-20,T3 Code 0.1.10)
- T3 の Claude(Agent SDK)と Codex(app-server)の thread で,PreToolUse・Stop・SessionStart の hook,guard の拒否(
--no-verify),sandbox(~への書き込み拒否),GH_CONFIG_DIR=/Users/kaito/.config/agent-harness/ghがすべて効いた t3 thread startは--worktree <ref>・--branch・--provider・--model・--title・--wait・--jsonを持つ.--waitにタイムアウトの指定はない- T3 の worktree は
~/.t3/worktreesに作られる - Claude の sandbox から
t3を動かすと~/.t3/userdataのchmodがEPERMで失敗する - provider instance の ID は
claudeAgent,codex,antigravity(利用者が付けられる)
規約
agy acpを別のエージェントやループから動かすのは consumer OAuth では不可(google-antigravity/antigravity-cli#1493).T3 の画面で人が Antigravity と話すのは可
範囲外
- Herdr と
herdr-delegationの削除(移行が終わってから別の Issue で行う) - T3 の
delegate_task・サブエージェント・Agent Rooms を lane に使うこと(手順が T3 の中に入るため) - T3 Connect や外部からの接続の設定
- feat(agent-runtime): build persistent, isolated, provider-neutral agent infrastructure #181 の基盤そのもの
Metadata
Metadata
Assignees
Labels
No labels
Activity
furedea-agent commentedon Nov 20, 2026
実行計画
4 つの lane に分け,触るファイルを重ねない.すべて並列に進められる.lane はこれまでどおり Herdr で動かす(T3 の lane はこの Issue の完了後から).
t3adrdocs/DESIGN.md・DESIGN_ja.mdの Herdr の記述を更新docs/adr/0028_*.md,docs/adr/0010_*.md(front matter のみ),docs/DESIGN*.mddocs/t3-lanes-adrt3guardt3 threadの許可・拒否と,この session が起動した thread の記録.excludedCommandsにt3 thread *agents/hooks/lib/t3_*.py(新規),agents/hooks/guard_command.py,agents/command_permissions.json,agents/hooks/rules/*.json,agents/claude/settings.json,tests/hooks/test_t3_*.pyfeat/guard-t3-threadt3cleanupcleanup_worktrees.pyが~/.t3/worktreesも対象にするagents/hooks/cleanup_worktrees.py,agents/hooks/lib/primary_workspaces.py(必要なら),tests/hooks/test_cleanup_worktrees*.pyfeat/cleanup-t3-worktreesdelegskilldelegationSkill を新設(本体は道具に依存せず,T3 の操作はreferences/t3.md).development-cycleから参照するagents/skills/delegation/SKILL.md・references/t3.md(新規),agents/skills/development-cycle/SKILL.md,references/branches.mddocs/delegation-skillt3adr(docs(adr): hand approved lanes to T3 Code threads #267 merged)t3guard(feat(hooks): guard t3 thread so lanes start only on Claude or Codex #265 merged)t3cleanup(feat(hooks): sweep merged T3 Code lane worktrees like Herdr ones #266 merged)delegskill(feat(skills): add a tool-neutral delegation skill with T3 Code operations #268 merged)LANE-READYで終わる,cleanup_worktrees.pyが片付ける)activeRunId・latestRunId・statusの動きを確かめ,feat(skills): add a tool-neutral delegation skill with T3 Code operations #268 の待機手順で未対応の P2 2 件をどう直すかを決めて,別の小さな PR で直すsend直後のshowが前の run を見て,前のLANE-BLOCKEDを最新の返答と誤読する(待つ run をrunIdで決める)--messages 1では最新が assistant 以外のとき返答が出力に入らない(feat(skills): add a tool-neutral delegation skill with T3 Code operations #268 P3)branches.mdで利用者が明示した transport を T3 の判定より先に見るよう直す(feat(skills): add a tool-neutral delegation skill with T3 Code operations #268 P2)acceptedにするlane ごとの要点と脅威モデル
脅威モデル(全 lane 共通):agent は
t3 threadの引数・メッセージ・環境変数を作れる.hook,Nix store,T3 の server,GitHub の設定は信頼する.t3 threadは sandbox の外で動くので,送ったメッセージは別の agent の turn として動く.t3guardstart:--providerは必須でclaudeAgentかcodexだけ.省略・それ以外は拒否(Antigravity を自動で動かさないため.ID は利用者が付けられるので名前の許可リストで判定する)send:この session がstartした thread ID にだけ許す.ID は server が作るので,記録の方法(PostToolUse で--jsonの出力を読む,--titleで照合するなど)を lane で調べて選び,理由を PR に書く.herdr_ownership.pyの作りを参考にするshow・list:許可.t3のほかのサブコマンド:今までどおり確認command_permissions.jsonから作られる規則)でも同じ形を判定するt3cleanup~/.t3/worktreesの構造(<project>/<branch>か)と,T3 の自動削除の設定とぶつからないかを調べるdelegskillherdr-delegationの構成(受け手の選び方,brief,レビューの割り当て,待機,後片付け)を引き継ぐ.道具に依存しない部分はSKILL.mdに,t3 threadの操作(起動・送信・待機・読み取り・終了コード・~/.t3/worktrees)はreferences/t3.mdに置く.道具を替えるときは reference を足すか差し替えるだけで済む形にするherdr-delegationの操作をreferences/herdr.mdへ移せるよう,SKILL.mdから Herdr 固有の記述を外す--waitの終了コード 2(承認・質問待ち)は,人が T3 の画面で答える.親は答えないherdr-delegationは消さないt3adrt3 threadCLI/T3 のdelegate_task.退けた理由を書く(delegate_taskは手順が T3 の中に入り,feat(agent-runtime): build persistent, isolated, provider-neutral agent infrastructure #181 の交換可能性に反する)[-]feat(delegation): hand approved lanes to T3 Code threads with a t3-delegation skill[/-][+]feat(delegation): hand approved lanes to T3 Code threads with a tool-neutral delegation skill[/+]fix(hooks): run only literal t3 thread lines outside the sandbox
build(deps): list the t3 hook modules as first-party for deptry
fix(skills): gate T3 lanes on the sandboxed guard and follow the chos…
fix(hooks): skip symlinks in lane roots when sweeping
fix(hooks): keep other programs and redirects out of t3 thread lines
test(hooks): create the symlink test's worktree without committing
fix(hooks): start T3 lanes only in this project and in recordable forms
fix(skills): cover T3 wait timeouts, plan reviews, and cleanup coverage
fix(skills): wait for T3 lanes by polling thread show instead of send
docs(adr): deprecate Herdr in favour of T3 Code threads
feat(skills): make T3 Code the default transport and deprecate Herdr
feat(hooks): guard t3 thread so lanes start only on Claude or Codex (#…
feat(hooks): sweep merged T3 Code lane worktrees like Herdr ones (#266)
docs(adr): drop the Herdr fallback for lanes
fix(skills): stop lanes instead of falling back to Herdr when T3 is u…
feat(skills): add a tool-neutral delegation skill with T3 Code operat…
docs(adr): hand approved lanes to T3 Code threads (#267)
build(nix): update agent-config to 0.4.0 and agent-harness to 0.9.15 (#…
docs(skills): honour an explicit transport before T3 and record Start…
fix(delegation): record in ADR-0028 that the parent polls instead of …
fix(delegation): gate T3 Wait decisions on the new run and rely on wa…
fix(delegation): align DESIGN and ADR-0028 with the show-polling Wait
fix(delegation): correct the T3 Wait procedure and accept ADR-0028 (#273
feat(settings)!: declare the harness protection and the agent GitHub …
furedea commentedon Dec 2, 2026
残項目(
branches.mdの transport 優先順修正・T3 Wait 手順修正・ADR-0028 の accepted 化)は #272・#273 で完了済みのためクローズします.