Skip to content

feat(skills): add a tool-neutral delegation skill with T3 Code operations - #268

Merged
furedea merged 7 commits into
mainfrom
docs/delegation-skill
Nov 21, 2026
Merged

furedea merged 7 commits into
mainfrom
docs/delegation-skill

Conversation

@furedea-agent

@furedea-agent furedea-agent Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

概要

herdr-delegation の手順を引き継ぎ,道具に依存しない delegation Skill を作った.本体は操作名(Start・Prompt・Wait・Read・Close・Clean up)だけを使い,t3 thread の具体的な操作は references/t3.md に置く.T3 Code を既定の transport とし,Herdr は fallback ではなく,利用者が明示したときだけ使う非推奨の道具にした.T3 が使えないとき(たとえば #265・#266 が入る前)は lane を始めず,理由を利用者に報告する.transport を勝手に切り替えない.herdr-delegation は description と先頭の 1 行で,利用者が明示したときだけ使うと示した(本文は変えていない).

Refs #264(計画:#264 (comment) の delegskill lane)

flowchart LR
    D["development-cycle<br/>branches.md"] -- "T3 があれば" --> S["delegation/SKILL.md<br/>(操作名だけ)"]
    D -- "T3 がなければ" --> X["lane を始めず報告"]
    U["利用者が Herdr を明示"] -.-> H["herdr-delegation(非推奨)"]
    S --> T["references/t3.md<br/>t3 thread の操作・guard の契約"]
    S -. "Herdr 削除時に移す先" .-> R["references/herdr.md"]
Loading

変更前後

変更前 変更後
委譲の Skill herdr-delegation(herdr の操作が本文に) delegation(本文は道具に依存しない).herdr-delegation はそのまま
道具の操作の置き場所 Skill の本文 references/<transport>.md.reference のない道具は development-cycle が示す Skill
lane の渡し方 Herdr が使えれば Herdr 既定は T3.T3 が使えなければ lane を始めず報告.Herdr は利用者が明示したときだけ
branches.md Herdr の手順と共通の規則が混在 共通の lane 規則と ## Herdr on Explicit Request 節に分けた(herdr のコマンドの文面は変えていない)

変更

  • agents/skills/delegation/SKILL.md(新規):受け手の選び方(Codex のコマンドの規則を含む),brief,レビューの割り当て,実装の割り当て,待機と照合,後片付けを herdr-delegation から引き継いだ.道具の固有の記述は操作の表(Start・Prompt・Wait・Read・Close・Clean up)に置き換えた.道具の選び方は「利用者の指定,なければ development-cycle の Branches and worktrees」,reference は「references/ の道具名のファイル,なければ development-cycle が示す Skill」と書いたので,Herdr の操作を後で references/herdr.md に移しても SKILL.md は変えなくてよい.
  • agents/skills/delegation/references/t3.md(新規):前提(t3 thread list,1 回の Bash に t3 thread 1 つ,sandbox の EPERM),受け手(claudeAgent・codex.Antigravity は受け手にしない,[Question]: Is using agy acp from a non-editor ACP client permitted under the Additional Terms? google-antigravity/antigravity-cli#1493),guard の契約(feat(hooks): guard t3 thread so lanes start only on Claude or Codex #265 の挙動を契約として記述),操作(Start・Wait・Prompt・Read・Close・Clean up と --wait の終了コード 0・1・2).
  • agents/skills/development-cycle/SKILL.md:委譲先を delegation にし,Herdr は利用者が明示したときだけ使う非推奨の道具として herdr-delegation を残した.
  • agents/skills/development-cycle/references/branches.md:上の表のとおり.

T3 の操作で選んだ形と理由

  • Start は --wait なしの --json を前景で実行:feat(hooks): guard t3 thread so lanes start only on Claude or Codex #265 の guard は start --json の stdout の threadId を PostToolUse で記録する.Claude は終了コードが 0 でない Bash に PostToolUse を出さないので,start --wait --json が 1・2 で終わると記録されず,以後の send が確認になる(feat(hooks): guard t3 thread so lanes start only on Claude or Codex #265 の申し送り).
  • Wait は t3 thread show --json の polling:send は lane に turn を足すので待機に使わない.show --json を 1 回ずつ独立した呼び出しで実行し,thread.status・activeRunId・latestRunId・pendingRequestCount で判断する.間は t3 を含まない background の sleep 300.フィールドと値は T3 0.1.10 の packages/contracts/src/orchestratorMcp.ts(OrchestratorMcpThreadDetail)と orchestrationV2.ts(OrchestrationV2RunStatus),apps/server/src/cli/thread.ts(threadShowCommand)で確認した.t3 を loop や Monitor に入れると 1 つの t3 thread コマンドでなくなり sandbox の中で失敗するので使わない.
  • 回答待ち(pendingRequestCount > 0):人が T3 の画面で答え,親は答えない.親はどの lane が待っているかを伝え,polling を続ける.
  • model:claude-sonnet-5-5(claudeAgent),gpt-6.1-sol(codex).T3 0.1.10 の apps/server/src/provider/model-manifest.json で 2026-11-21 に確認.CLI に model を一覧するコマンドはない.
  • Close:CLI に thread を止める・アーカイブするコマンドはないので,人が T3 の画面でアーカイブする.
  • Clean up:cleanup_worktrees.py が ~/.t3/worktrees を Herdr と同じ条件で消す,と契約として書いた(実装は t3cleanup lane).

テスト

  • uv run --frozen pytest -q:6328 passed,2 skipped(レビュー修正後に tests/test_workflow_skill_layout.py tests/skills を再実行:67 passed)
  • uv run --frozen pytest -q -m integration tests/test_workflow_skill_layout.py:4 passed(Claude と Codex の両方で delegation の name と description が描画される)
  • agent-harness generate-skills --provider claude|codex:両方に delegation/SKILL.md と delegation/references/t3.md が出る
  • agent-harness install → agent-harness verify:成功..claude/skills/delegation が入る
  • dprint check(変更した 4 ファイル),pre-commit(ls-lint ほか),commitlint:成功
  • T3 の thread で 1 lane を実際に動かす確認:計画どおり全 lane の merge 後に行う

レビューへの対応

  • T3 を guard・cleanup より先に選び得る(P2,2 件):T3 を選ぶ条件を「sandbox の中で t3 thread list が通る」にした(c70df2bc).
  • Start の provider が claudeAgent 固定(P2):--provider <provider> にし,選んだ受け手に合わせると書いた.
  • effort を設定できない(P3):branches.md の規則を「設定できるときは medium」にし,t3.md に 0.1.10 の制限を書いた.
  • 終了コード 2 の後の Wait が turn を積み上げる(P3):再び Wait する前に Read で確認し,Wait は 1 回だけにした.
  • Claude Code が background の待機を止めた場合(P2,2 回目):0・1・2 以外の終了は待機の終わりとして,Read で状態を見てから Wait を 1 回だけ出す.brief は送り直さない(73db7b49).
  • feat(hooks): sweep merged T3 Code lane worktrees like Herdr ones #266 より先に merge された場合の cleanup(P2,2 回目):実装の lane を T3 に渡すのは,インストール済みの cleanup_worktrees.py が ~/.t3/worktrees を扱うときだけにし,それまでは実装の lane を始めず報告する(4 回目の指示で Herdr への切り替えをやめた).
  • 計画レビューで worktree を作らない Start(P2,2 回目):--worktree と --branch を付けない形を足した.
  • 待機の send が turn を積む(P2,3 回目):待機を t3 thread show --json の polling に作り直した(b330a65d).
  • 初回利用で model slug を決められない(P2,3 回目):具体的な slug と確認日を書いた.
  • grep -F .t3/worktrees がコメントにも一致する(P3,3 回目):^LANE_WORKTREES = の定数の行に一致する検査にした.
  • guard の契約を守る hook がこの PR にない(P2,3 回目):コードは変えず Limits に記録した(下記).
  • 計画レビューの条件が t3.md と食い違う,provider instance を選ばない(P2,5 回目,2 件):P1 だけを直す回なので変えず,理由を返して resolve し,Limits に記録した.
  • Prompt の後の待機が前の turn の状態を読む,background の作業の後の run を待たない(P2,4 回目,2 件):利用者の判断で待機の手順は変えず,計画の「T3 の thread で 1 lane を実際に動かして確認」に回した.activeRunId・latestRunId の動きを確かめてから別の PR で直す.

計画との差

  • なし.Skill の描画は agents/skills/ のディレクトリを自動で拾うので,agents/skill_rendering.json や Nix の変更は要らなかった.
範囲・前提・限界
  • merge の順序:feat(hooks): guard t3 thread so lanes start only on Claude or Codex #265(guard)と feat(hooks): sweep merged T3 Code lane worktrees like Herdr ones #266(cleanup)の後に merge するのがよい.T3 を選ぶのは t3 thread list が sandbox の中で通るとき(guard と同時に入る excludedCommands の t3 thread * が要る)だけなので,先に入っても T3 は選ばれず,lane を始めずに報告する.実装の lane は,インストール済みの cleanup_worktrees.py が ~/.t3/worktrees を扱うまで(feat(hooks): sweep merged T3 Code lane worktrees like Herdr ones #266)T3 に渡さないので,cleanup の順序にも依存しない.
  • references/t3.md の t3 thread のコマンドは fenced の bash block ではなく inline code にした.tests/skills/test_skill_commands.py は skill の bash block を hook で判定し,guard が入るまで t3 thread は未登録になるため.期待値ファイルはこの lane の範囲外.
  • 他の lane のファイルで herdr-delegation を指しているもの(報告のみ,未変更):docs/DESIGN.md,docs/DESIGN_ja.md(t3adr lane).docs/adr/0023_*・0024_* は過去の決定の記録なので変えない.
  • 未確認:--worktree origin/<base> のような remote-tracking ref を T3 が受けるか(help は「branch, tag, or commit」).thread が run のない状態で status が idle になるか直前の run の状態になるかは実機で見ていない(activeRunId が null を終了の条件にした).インストール済みの 0.1.10 の CLI に effort を指定する --option はない.
  • Limits:references/t3.md の Guard Contract を守る hook は feat(hooks): guard t3 thread so lanes start only on Claude or Codex #265 で入り,この PR には含まれない.T3 を選ぶ条件(sandbox の中で t3 thread list が通る)は feat(hooks): guard t3 thread so lanes start only on Claude or Codex #265 の excludedCommands がないと満たされないので,それまで T3 は選ばれず,lane を始めずに報告する.Antigravity を受け手にしない規則の強制も feat(hooks): guard t3 thread so lanes start only on Claude or Codex #265 の guard による.
  • Limits:Prompt の直後の show が前の turn の状態を返す場合と,background の作業の後に起きる run を,今の待機は区別しない(実機確認に回した,上記).
  • Limits:branches.md の手順 3 は計画レビューにも cleanup の条件をかけるので,feat(hooks): sweep merged T3 Code lane worktrees like Herdr ones #266 が入るまで計画レビューも始めずに報告する(t3.md は計画レビューに cleanup の条件をかけない).条件の検査は feat(hooks): sweep merged T3 Code lane worktrees like Herdr ones #266 の定数 LANE_WORKTREES(その diff で定義を確認済み)に依存するので,feat(hooks): sweep merged T3 Code lane worktrees like Herdr ones #266 はこの名前を保つ必要がある.
  • Limits:--provider は claudeAgent・codex の既定の instance だけを使う(feat(hooks): guard t3 thread so lanes start only on Claude or Codex #265 の guard の方針).それらが無効な環境では Start が失敗し,利用者に報告する.
  • Limits:polling の間隔(sleep 300)は固定で,lane の終了から最大 5 分遅れて気づく.
  • Limits:branches.md の手順は T3 が使えるかを先に見るので,利用者が Herdr を明示しても,その手順だけを読むと T3 が選ばれる(P2,最終回).delegation/SKILL.md は明示された transport を使うと書いているので,そちらに従う.手順の並びは後の PR で直す.
  • Limits:Wait の --messages 1 では,最新のメッセージが assistant の返信でないとき返信が出力に入らない(P3,最終回).待機の手順と同じく,T3 の実機での確認に回す.
  • 範囲外:guard・cleanup の実装,ADR,Herdr と herdr-delegation の削除(非推奨にしただけで動作は残す).
  • 脅威モデル:計画のとおり.lane は親の session に送らない,send は自分が起動した thread だけ,を Skill に書き,強制は guard(feat(hooks): guard t3 thread so lanes start only on Claude or Codex #265)が行う.

🤖 Generated with Claude Code

furedea and others added 2 commits November 21, 2026 02:41
…ions

Carry over herdr-delegation's workflow into a delegation skill whose body
names transport operations (Start, Prompt, Wait, Read, Close, Clean up)
instead of tool commands, so a transport is swapped by adding or replacing
a file under references/. references/t3.md maps the operations to the
t3 thread CLI and states the guard contract and that Antigravity is never
a recipient.

Refs #264

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Prefer T3 Code threads for lanes and keep Herdr as the fallback until its
removal, moving the Herdr-only commands and rules into their own section.

Refs #264

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@furedea

furedea commented Nov 20, 2026

Copy link
Copy Markdown
Owner

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-21T11:54:33.295318Z 2da4d8d Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions

Copy link
Copy Markdown

Review summary

Read-only review of the new delegation skill, references/t3.md, and the branches.md and development-cycle changes. I found nothing that is certain breakage and no security problems. The herdr-to-common split in branches.md looks faithful: the Herdr commands are unchanged and the anchors still resolve.

Findings, posted inline:

  • P2 branches.md:12: T3 becomes the preferred transport before the guard (feat(hooks): guard t3 thread so lanes start only on Claude or Codex #265) and the t3cleanup support exist in this repo. I found no t3 handling in the hooks, command_permissions.json or the cleanup script. The merge-order note is only in the PR description.
  • P3 branches.md:41: "Lanes run on Sonnet at medium effort" now applies to every transport, but the T3 CLI can't set effort.
  • P3 t3.md:59: Wait is built on send --wait, so repeating it after exit 2 queues duplicate messages in the lane.

Test coverage: the T3 commands are inline code rather than bash blocks, so tests/skills/test_skill_commands.py doesn't check them. The PR description acknowledges this. The real T3 lane run is still unchecked, as the test plan says.

🤖 Generated with Claude Code

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 079cda9314

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

…en provider

Select T3 only when `t3 thread list` succeeds as a sandboxed call, which
the installed hooks allow only together with the T3 guard; pass the chosen
recipient's provider to Start; read the thread before waiting again after
exit 2 so Wait messages do not pile up; and state that the 0.1.10 CLI
cannot set the effort.

Refs #264

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@furedea

furedea commented Nov 20, 2026

Copy link
Copy Markdown
Owner

@codex review

@github-actions

Copy link
Copy Markdown

Review summary

This PR only changes skill documentation, so I found no security issues or code bugs. I left two P2 comments inline.

  • P2, references/t3.md Wait: Claude Code kills a background Bash call at its own limit (1800000 ms by default), and a lane waiting for CI can run longer. The reference only covers exit codes 0, 1 and 2, so it doesn't say what to do when the harness stops a Wait. The Herdr flow handles this with --timeout and agent list. A re-Wait also queues another turn on the lane.
  • P2, branches.md cleanup rule: The text says cleanup_worktrees.py removes T3 worktrees, but the hook currently only covers ~/.herdr/worktrees. Until the t3cleanup lane lands, T3 lanes would be left uncleaned and agents are told not to remove them by hand. The PR description notes the merge ordering, but the repo doesn't enforce it.

I checked the new links (delivery.md#wait-for-ci, #review-on-github, the t3.md and SKILL.md anchors) and the ## Herdr Fallback split of branches.md, and found no problems. I haven't verified the T3 CLI behavior the docs describe (for example --worktree origin/<base>). The PR already lists that as unverified.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c70df2bcd8

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Read the thread before waiting again when the harness stops a background
wait, and never resend the brief; add a Start form for a plan review that
creates no worktree or branch; and hand implementation lanes to T3 only
once the installed cleanup_worktrees.py covers ~/.t3/worktrees, falling
back to the next transport until then.

Refs #264

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@furedea

furedea commented Nov 21, 2026

Copy link
Copy Markdown
Owner

@codex review

@github-actions

Copy link
Copy Markdown

Review summary

This PR only changes docs and skill text, and I found no P0 or P1 problems. The links and anchors I checked resolve: delivery.md#review-on-github, delivery.md#wait-for-ci, and the new ## Herdr Fallback and ## Branch Names headings.

  • P2: references/t3.md describes a Guard Contract for t3 thread and a ~/.t3/worktrees cleanup that this repo doesn't implement. cleanup_worktrees.py only covers .herdr/worktrees, and there are no T3 hooks. The runtime gates fail closed, so selection falls back to Herdr today. Still, the contract is unenforced and untested, and the Antigravity-never-a-recipient rule depends on it.
  • P3: The grep -F .t3/worktrees coverage check matches any mention of the string in the script. --dry-run or a named constant would be a stronger check.

I didn't run the code, and I haven't checked the T3 CLI behaviour (send --wait exit codes and queued messages) against T3 Code 0.1.10.

🤖 Generated with Claude Code

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 73db7b4936

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Every t3 thread send adds a turn to the lane, so Wait now polls
`t3 thread show --json` one call at a time, with a background sleep in
between, and decides from thread.status, activeRunId, latestRunId, and
pendingRequestCount as T3 Code 0.1.10 defines them. Name the model slugs
from T3's model manifest, and detect cleanup coverage from the
LANE_WORKTREES constant so a comment cannot satisfy the check.

Refs #264

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@furedea

furedea commented Nov 21, 2026

Copy link
Copy Markdown
Owner

@codex review

@github-actions

Copy link
Copy Markdown

Review summary

This PR is documentation only: the new delegation skill, references/t3.md, and the development-cycle and branches.md edits. I ran no tests and found no P0 or P1 issues.

Finding (inline, P2): the T3 Wait procedure can return on stale state after a Prompt. It only checks activeRunId == null and an idle status, so right after send it can read the previous turn's LANE-BLOCKED reply as the new result. Fix: record latestRunId before send and require it to change. The comment also notes that --messages 1 may not contain the assistant reply the procedure needs.

Notes (no action requested):

  • Docs ahead of the code: the T3 path can't be selected from this repo yet. agents/hooks/cleanup_worktrees.py still defines HERDR_WORKTREES, not the LANE_WORKTREES constant that t3.md greps for. This repo has no t3 thread guard hooks either. Selection therefore falls back to Herdr, which is safe and matches the stated merge order after feat(hooks): guard t3 thread so lanes start only on Claude or Codex #265 and feat(hooks): sweep merged T3 Code lane worktrees like Herdr ones #266. The T3 path stays untested until then.
  • PR description out of date: it describes Wait as t3 thread send --wait with exit codes 0, 1 and 2. The committed t3.md polls show and has no exit-code handling. Please update the description so reviewers don't validate against the wrong design.
  • No automated coverage: the t3 thread commands are inline code, so tests/skills/test_skill_commands.py doesn't check them. The PR acknowledges this, and the real-thread lane run is still unchecked.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b330a65d4f

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Word Herdr as the deprecated transport used only when T3 Code is
unavailable, for example before the T3 guard and cleanup are installed,
and mark herdr-delegation deprecated in its description and first line so
it no longer triggers by default. Its body is unchanged.

Refs #264

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@furedea

furedea commented Nov 21, 2026

Copy link
Copy Markdown
Owner

@codex review

@github-actions

Copy link
Copy Markdown

Review summary: this PR changes only Skill docs, so there is no runtime code to break. I found one issue and posted it inline.

  • P2 (branches.md:12): the T3 gate in development-cycle and the one in delegation/references/t3.md disagree. t3.md says a plan review needs only the t3 thread list check. branches.md also requires cleanup_worktrees.py to cover ~/.t3/worktrees before any lane goes to T3. The grep in t3.md also expects a LANE_WORKTREES constant that doesn't exist yet. It fails closed until feat(hooks): sweep merged T3 Code lane worktrees like Herdr ones #266 uses that exact name.

Not re-raised because the PR description already records them as accepted limits: the Wait procedure can read a stale turn state after Prompt, and delegation and herdr-delegation are not covered by an end-to-end T3 run. docs/DESIGN*.md still point at herdr-delegation, which the PR also notes as out of scope.

I didn't run the tests. I only read the diff.

🤖 Generated with Claude Code

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 8559e12b80

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

…navailable

Herdr is a deprecated tool used only on the user's explicit request, not
a fallback transport. When T3 Code is unavailable, the parent starts no
lane and reports the reason.

Refs #264

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@furedea

furedea commented Nov 21, 2026

Copy link
Copy Markdown
Owner

@codex review

@github-actions

Copy link
Copy Markdown

Review summary

This PR only changes Markdown skill files, so there is no executable code or test change to review. I checked the new delegation skill and references/t3.md against the guard code already in the repo: agents/hooks/lib/t3_thread.py, t3_ownership.py, command_permissions.json and cleanup_worktrees.py.

No P0, P1 or P2 findings.

What matches the code:

  • The Guard Contract in t3.md agrees with the hooks:
    • start needs --provider (claudeAgent or codex) and --model.
    • start must be one plain start --json call, with project . and 2 positionals.
    • send is limited to threads this session started.
    • show and list are read-only.
    • Unknown options ask.
  • The documented command forms (show --json --messages 1 <thread>, flags before positionals) parse under the GRAMMARS table.
  • The grep -E '^LANE_WORKTREES = .*\.t3/worktrees' prerequisite matches cleanup_worktrees.py:37.
  • The cross-links between development-cycle, delegation and herdr-delegation are consistent.

P3

  • Inline comment on t3.md: the poll uses --messages 1, but the reply is defined as the last assistant message of latestRunId. That reply may not be in the output.
  • docs/DESIGN.md and docs/DESIGN_ja.md (lines 34, 37 and 38) still describe the workflow as Herdr worktrees and herdr agent wait under herdr-delegation. They now contradict the T3 default. This is outside the diff, so I left it as a note. It is fine to fix in a follow-up lane if one is planned.
  • branches.md item 4 says to "start no lane and stop", so item 5 (target branch already checked out elsewhere) is unreachable when T3 is unavailable. This is harmless, but you could move item 5 above the transport choice.

The wording "before the T3 guard and cleanup are installed (#265, #266)" is conditional. In this tree both are already present, so the PR is accurate today. The text will go stale once those issues are closed, so consider rewording it then.

I only read the files. I didn't run any tests or the T3 CLI, and I couldn't verify the status values (idle, completed, waiting and so on) against T3 0.1.10.

🤖 Generated with Claude Code

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 2da4d8d3a2

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@furedea
furedea merged commit dc2c3cc into main Nov 21, 2026
29 checks passed
@furedea
furedea deleted the docs/delegation-skill branch November 21, 2026 12:04
furedea pushed a commit that referenced this pull request Nov 21, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.4.0](v0.3.1...v0.4.0)
(2026-11-21)


### Features

* **hooks:** add the Antigravity hook adapter
([#263](#263))
([22b5980](22b5980))
* **hooks:** guard t3 thread so lanes start only on Claude or Codex
([#265](#265))
([aa0de7a](aa0de7a))
* **hooks:** sweep merged T3 Code lane worktrees like Herdr ones
([#266](#266))
([8c730aa](8c730aa))
* **skills:** add a tool-neutral delegation skill with T3 Code
operations ([#268](#268))
([dc2c3cc](dc2c3cc))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: furedea-release[bot] <353651101+furedea-release[bot]@users.noreply.github.com>
furedea added a commit that referenced this pull request Nov 21, 2026
… failures (#272)

## 概要

#268 のレビュー P2 と,T3 での最初の実 Start で見つかった失敗を,docs に反映した(文書のみ).

1. `branches.md` の「Choose the workspace in this order」で,T3 を使う手順(旧
3)が,利用者による transport の明示(旧 4 の中でのみ言及)より前にあった.T3 が使えるときに利用者が Herdr を明示しても
T3 に回ってしまうため,明示の指定を T3 の手順より前に出した.
2. `t3 thread start` が `threadId` と `runId` を返したあと `status:
failed`,`worktreePath: null` になった.CLI は原因を表示せず,原因は
`~/.t3/userdata/logs/server.trace.ndjson` の
`branch_already_exists`(ブランチが別の worktree で checkout 済み)にだけあった.Start
前の確認と,失敗時の原因の探し方を `t3.md` に書いた.

Refs #264

## 変更前後

| 順 | 変更前 | 変更後 |
| -- | ----------------------------------------------------------- |
--------------------------------------------------------------------------------------------------------------
|
| 1 | 既に task worktree にいる | 同じ |
| 2 | 利用者が現在の checkout を明示 | 同じ |
| 3 | T3 が使えれば T3 | 利用者が Herdr を明示すれば,T3 が使えても Herdr |
| 4 | T3 が使えなければ lane を始めない.Herdr は利用者の明示のみ | それ以外で T3 が使えれば T3(既定) |
| 5 | 対象ブランチが別の worktree にある | T3 が使えなければ lane を始めず理由を報告.transport
を勝手に切り替えず,使えないことを理由に Herdr も使わない |
| 6 | - | 対象ブランチが別の worktree にある(旧 5) |

## 変更

- `agents/skills/development-cycle/references/branches.md`:上の表のとおり.step
番号を参照する箇所は他になく,リンクのアンカー(`#herdr-on-explicit-request`,`#prerequisites`)は変えていない.
- `agents/skills/delegation/references/t3.md`:Start の前に,`<branch>`
がローカルにも他の worktree にもないことを `git branch --list <branch>` と `git worktree
list` で確認する(あれば T3 が `branch_already_exists` で run を失敗させる).Wait の
`failed` などの判断に,CLI は原因を表示しないので,報告の前に
`~/.t3/userdata/logs/server.trace.ndjson` をスレッド id か run id で探す,と追記した.
- `docs/DESIGN.md`・`docs/DESIGN_ja.md`・ADR-0028:新しい順序と矛盾する文はないため変更しない.

## 確認

- `agent-harness install` と `verify`:エラーなし
- `uv run pytest`:6495 passed,2 skipped,1 failed.失敗は
`tests/hooks/test_model_rules_process.py::test_only_the_op_process_receives_the_token_and_only_allowlisted_variables`(sandbox
の環境変数 `LC_CTYPE` が余分に見える)で,docs のみの変更とは無関係
- `git diff --check`,lefthook(shfmt,ls-lint,shellcheck,commitlint):問題なし

## Limits

Wait 手順の他の未決事項(`send` 直後の古い読み取り,background タスク,`--messages 1`)は範囲外で,この
trial の後に親が決める.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: furedea <[email protected]>
Co-authored-by: Claude Sonnet 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant