Repository navigation
fix(delegation): correct the T3 Wait procedure and accept ADR-0028 - #273
Conversation
Detect an approval wait by pendingRequestCount, not status, treat waiting or pending background tasks as still working, guard a Prompt against the previous run's reply with latestRunId, and read more than one message. ADR-0028 is accepted after the first real lane (PR #272). Refs #264 Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
@codex review |
Codex Review Summary: ✅ CompletedThis 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 summary: no findings. The change is docs-only (
I did not run the checks myself. The 🤖 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: 55167b23ba
ℹ️ 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".
…waiting with --wait Refs #264 Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
@codex review |
Review summaryThis PR only changes docs:
No tests were added. That is reasonable for a procedure document, but nothing checks the new wording. 🤖 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: 7ffc1af7e7
ℹ️ 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".
…iting for held completion Refs #264 Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
@codex review |
|
Review summary (docs-only change) No P0 or P1 findings. The Wait procedure in
I did not run anything beyond reading the diff. The PR description's checks (adr-check, dprint, pytest) are not re-verified here. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: c42118d2ac
ℹ️ 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".
Refs #264 Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
@codex review |
Review summaryDocs-only change. I found no correctness or security problems in the revised Wait/Prompt procedure in Findings (2 inline comments):
No tests apply, since the change is documentation only. I did not run the checks myself and relied on the PR's reported results. 🤖 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: 033aa2392f
ℹ️ 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".
🤖 I have created a release *beep* *boop* --- ## [0.5.1](v0.5.0...v0.5.1) (2026-11-21) ### Bug Fixes * **delegation:** correct the T3 Wait procedure and accept ADR-0028 ([#273](#273)) ([85a459a](85a459a)) --- 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>
agent-config を 0.5.1 に上げる.T3 で lane を回す手順の修正(待ち方,transport の優先順位,Start 前の branch 確認)と ADR-0028 の accepted が入る. | 入力 | 変更前 | 変更後 | | --- | --- | --- | | `agent-config` | `7e350e03`(v0.5.0) | `7f39859b`(v0.5.1) | - [ ] CI - [ ] 反映後,`delegation` skill の `references/t3.md` が新しい Wait 手順(`show` の polling,`latestRunId` の確認)になっている <details> <summary>内容と出典</summary> - furedea/agent-config#272:利用者が明示した transport を T3 より先に見る,Start 前に branch の有無を確かめる,失敗の原因は `server.trace.ndjson` で調べる - furedea/agent-config#273:Wait 手順の修正(承認待ちは `pendingRequestCount`,終了は `status`,Prompt 後は `latestRunId` の変化を待つ),ADR-0028 を accepted - 変更は `flake.lock` のみ.agent-harness は `follows` で変わらない - 反映は #490(T3 server の常駐)と同じ `darwin-rebuild switch` で行う.その前に mbp の desktop app で Local environment をオフにする(#489 の plan 手順 3) </details> 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: furedea <132188853+furedea@users.noreply.github.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
概要
acceptedにする.latestRunIdを記録する手順でよいか.変更前後
pendingRequestCount > 0(statusはwaitingと記載)pendingRequestCount > 0のみ.statusはrunningのままactiveRunIdがnullかつstatusがidle/completedwaiting(awaited な背景作業が完了を保持)は稼働中扱い.pendingBackgroundTasksは規則に使わない(isAwaitedWork,threadStatus)send前にlatestRunIdを記録し,変わるまで失敗・取消を含むどの終了判定もしない.3 回ポーリングしても変わらなければ「新しい run が始まらなかった」と報告.sendが非 0 ならユーザーに報告--messages 1--messages 5.role: assistantかつrunId == latestRunIdの最後のメッセージ.無ければ--messagesを増やして再読proposedaccepted(amendedに根拠と,--waitではなくshowのポーリングで待つ旨の 2 行.本文は不変)検証
adr-check --base origin/main docs/adr: 通過dprint check(t3.md,ADR-0028): 差分なし(他 ADR の指摘は既存でこの変更の対象外)ls_lint: 通過uv run pytest -q -k "skill or delegation or adr": 131 passedall-green)とレビュー: 本 PR で確認Limits
SKILL.md,branches.md,guard / hooks,Herdr は対象外.status,amended2 項目)に加え,本文の 2 か所(Decision Outcome の--waitの文と,無タイムアウトの Consequence)へ「2026-11-22 に改訂し,親はt3 thread showをポーリングする」旨の注記を足した(033aa239,親の承認済み).注記以外の本文は変更していない.adr-check --base origin/mainは通る(origin/mainではproposedなので本文の変更検査の対象外).--waitの無タイムアウトの懸念を置き換える」と書くが,t3.md の上限は「新しい run が始まらない」場合の 3 回だけで,run 開始後のrunningやwaitingは無期限にポーリングされる(P3).「軽減する」に直すか,N 回で報告する規則を足す余地がある.shellと書いたが,codex-review は T3 0.1.10 の実際の kind はcommandとmonitorだと指摘している(P3).shellはcommandに直す余地がある.isAwaitedWork(orchestration-v2/RestartBackgroundNote.ts)とthreadStatus(OrchestratorMcpService.ts)に基づく.pendingBackgroundTasksなどのフィールドは T3 0.1.10 サーバーのソース(source map)の読解に基づく.Scope と根拠
agents/skills/delegation/references/t3.md(Operations の Wait / Prompt / Read),docs/adr/0028_hand_approved_lanes_to_t3_code_threads.md(front matter のみ).LANE-READYまで通り,cleanup_worktrees.pyが~/.t3/worktreesの worktree を削除した.Refs #264(feat(delegation): hand approved lanes to T3 Code threads with a tool-neutral delegation skill #264 を完了させる残りの修正のひとつ).Refs #264
🤖 Generated with Claude Code