Repository navigation
feat(delegation): offer herdr-core terminals as an alternative lane transport - #281
Conversation
|
@codex review |
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Review summaryI found one P2 problem (inline comment on P2. Terminal addresses recorded in What I checked and found fine
P3, no action required. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 2b95d21e4f
ℹ️ 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".
|
@codex review |
Review summaryI reviewed the new Findings
Notes (no action required)
No P0 or P1 issues found. 🤖 Generated with Claude Code |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 1921ad3dd0
ℹ️ 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".
|
@codex review |
|
Review summary I read the whole diff, including the new Findings
What looked fine
Not reviewed
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 05f5e3f992
ℹ️ 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".
|
@codex review |
Review summaryI found no P0, P1 or P2 issues, and left one P3 as an inline comment. I read the new
🤖 Generated with Claude Code |
|
Codex Review: Didn't find any major issues. Hooray! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
Lanes now run in herdr-core terminals started with `hc run`, so every hc call leaves the sandbox and the guard bounds what it may do: `hc run` starts only claude or codex with their lane options, and send, kill, and rm reach only the addresses this session's own `hc run --json` printed. The T3 thread guard, its ownership record, its sandbox exclusion, its permissions, and the ~/.t3/worktrees lane root are removed. Refs #280 BREAKING CHANGE: `t3 thread` commands no longer leave the sandbox or have permission rules; `hc *` leaves the sandbox instead. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The Herdr app shows herdr-core terminals on the desktop and the iPhone, so delegation starts lanes with `hc run`, waits on the agents' own OSC 7501 status with `hc wait`, and reads replies with `hc read`. The T3 reference is replaced by references/hc.md, and herdr-delegation now points at the new flow. Refs #280 Co-Authored-By: Claude Opus 5.5 <[email protected]>
ADR-0029 supersedes ADR-0028 now that T3 Code is gone, and the design overview names hc instead of t3 thread. Refs #280 Co-Authored-By: Claude Opus 5.5 <[email protected]>
…resses `hc run --cwd` now has to lie in this session's checkout or a lane worktree it created, because the lane's sandbox is rooted there. A start records the terminal's creation time beside its address, and send, kill, and rm ask the core with `hc get` that the address still names that terminal, since an address is unique only within one core. Refs #280 Co-Authored-By: Claude Opus 5.5 <[email protected]>
…e rechecked Refs #280 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Without --cwd the lane inherits whatever directory the call runs in, which the ownership check cannot see, so a start without it now asks. Refs #280 Co-Authored-By: Claude Opus 5.5 <[email protected]>
A session may open a Herdr workspace on any directory, so a recorded workspace is no evidence that the directory is the session's. Only the checkouts it created with `herdr worktree create` now count, beside its own checkout. Refs #280 Co-Authored-By: Claude Opus 5.5 <[email protected]>
ADR-0029 on main now records leaving session content to atuin. Co-Authored-By: Claude Opus 5.5 <[email protected]>
A single word after the agent's options may be a subcommand such as `claude update` or `codex login` rather than a message. Co-Authored-By: Claude Opus 5.5 <[email protected]>
42eeaf5 to
da71266
Compare
|
@codex review |
|
Review summary (read-only, no inline findings) I read the guard, ownership and hook-wiring changes and the delegation docs. I did not run the test suite.
P3 (description only): the PR body says ADR-0029 is accepted, but the added ADR is The unverified-on-device points listed in the PR body (OSC 7501 status, |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: da71266ab0
ℹ️ 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".
T3 Code stays the default lane transport, so its guard, ownership record, sandbox exclusion, permissions, and lane root return, and the hc checks run beside them. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…e alternative The parent uses herdr-core when the user asks for the Herdr app or hc, or when T3 Code is unavailable. Since every hc command starts a core that inherits the caller's environment, the Herdr app must be running before the first hc call. Co-Authored-By: Claude Opus 5.5 <[email protected]>
ADR-0028 stays accepted: T3 Code remains the default transport. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
@codex review |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Review summaryI found no P0 or P1 problems and left one P3 inline comment. I read the diff only; I did not run the tests or a real What I checked
Finding
Not a code finding
🤖 Generated with Claude Code |
…core Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
@codex review |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Review summary (read-only)No P0–P2 findings, so I posted no inline comments. Read: the Checked and found sound:
P3, no action needed:
Merge risk is low. Before merging, confirm the real |
🤖 I have created a release *beep* *boop* --- ## [0.6.0](v0.5.1...v0.6.0) (2026-12-01) ### ⚠ BREAKING CHANGES * **settings:** declare the harness protection and the agent GitHub policy ([#286](#286)) ### Features * **delegation:** offer herdr-core terminals as an alternative lane transport ([#281](#281)) ([e0488ef](e0488ef)) * **settings:** declare the harness protection and the agent GitHub policy ([#286](#286)) ([ac335be](ac335be)) ### Bug Fixes * **hooks:** explain gh asks caused by other commands on the line ([#284](#284)) ([16ecae8](16ecae8)) --- 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>
lane の transport に herdr-core(
hc)を代替経路として追加します.T3 Code は既定の transport のまま残します.ユーザーが Herdr アプリや
hcを求めたとき,または T3 Code を使えないときに,lane を Herdr アプリ(デスクトップ・iPhone)から見て承認・応答できるようにするためです.判断事項:下の「未確認事項」(実機で未検証の点)と,worktree 作成に Herdr TUI の
herdr worktree createを使う設計.Closes #280
flowchart TD S{lane を起動} -->|ユーザーが Herdr アプリ / hc を指定| H[herdr-core] S -->|指定なし| T{T3 Code を使える?} T -->|はい| T3[T3 Code thread(既定)] T -->|いいえ| A{herdr-core を使える?<br/>Herdr アプリ起動済み} H --> A A -->|はい| HC[hc run で hc terminal] A -->|いいえ| X[lane を起動せず理由を報告]herdr worktree createの後にhc run --bg --no-parent --json --name --cwd --label ... claude|codex "<brief>"hcは core が無いと起動し,その core は呼び出し元の環境を引き継ぐため,最初のhc呼び出しの前にユーザーに確認するhc wait <address> --timeout 1800 --jsonのturn/statusで判定<hc>タグは検証不能なため,--no-parentで note も止める)t3 thread *t3 thread *とhc *hc runは claude/codex のみ.許可外のエージェントオプションは deny.他プログラム・テンプレート・--on・未知オプション・1 語の brief(claude updateなど)は askhc run --jsonが出した address のみ send/kill/rm 可.毎回hc getでcreated_msを照合するhc run --cwd検証
uv run pytest: 6611 passed, 2 skipped(T3 のテストを復元し,tests/hooks/test_hc_terminal.pyとtests/hooks/test_hc_ownership.pyを追加)ruff check/ruff format --check/ty checkbats tests/bootstrap_server.bats tests/codex/execpolicy.batst3_thread.py,t3_ownership.py,references/t3.md,cleanup の~/.t3/worktrees,permissions,settings,hooks)はorigin/mainと同じ内容に戻したレビュー対応
--cwd無制限,P1 primary workspace を root とみなす(Codex): 修正.--cwd省略時の継承(Codex): 修正.~/.t3/worktreesを掃除する(Codex): T3 を残すことになったため,origin/mainの掃除対象がそのまま残る.hc lsが停止中の core を起動する(Codex): Herdr アプリの起動を前提条件としてreferences/hc.mdと ADR-0030 に明記.未確認事項・前提・範囲
hcが core lock を開けず(Operation not permitted),実機でhc run --bg --jsonの出力,hc waitの挙動,Herdr アプリでの表示は確認できていない.仕様はhc --help,hc --skill(0.1.22),herdr-core のschema/hc.openrpc.jsonとAGENTS.md,herdr-app のdefaults/AGENTS.mdから読んだ.hc server statusも含め,どのhcコマンドも core が無ければ起動する(herdr-coreplatform/unix.rsのmay_autostart,status_may_start_core).起動せずに稼働を確かめるhcコマンドは無い.herdr worktree createを使う(hc に worktree コマンドが無く,sandbox は他リポジトリの.git/worktreesに書けないため).🤖 Generated with Claude Code