Repository navigation
U7b ハブと登録簿の起動の回数の撤廃(#3604 #3864) - #4031
Merged
takemi-ohama merged 12 commits intoNov 22, 2026
Merged
Conversation
…かめる(#3604 #3864) 決定 13・I15 のハブと登録簿の側のテスト。1 日に 30 回の restart・上限ちょうどの入れ替え・止まった対象の上限超え・ 前の版の starts の除去・spin_of の値の規則・hub_context が NDF_RELAY_MAX_STARTS を読まないこと。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KYHP7z4QjHh8vkcxvdbGUP
#3864) hub_decide.Lanes の starts_today・max_starts、hub.Context の max_starts・today、registry.Starts を消す。 spawn は starts を書かず、restart は読まず増やさず、書き戻す項目と hub ls の項目から前のバージョンの starts を外す。 cli.hub_context の仮の max_starts を外し、relay.result のスキーマから starts を消す(commands.md は生成し直した)。 relay.md の上限の表と止まる理由を再起動ループの検出に替える。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KYHP7z4QjHh8vkcxvdbGUP
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… spawn にする(#3604 #3864) - 端末のラッパー: ndf relay run --resume <ID> に、すべてのセッションに付ける引数(権限の制約など)を足す - 名前つきのラッパー: restart(登録簿の最初の作業指示を流し直す)でなく、作業を保存して /exit した後に 同じ名前・作業ディレクトリ・役割・計画で ndf relay spawn -- --resume <ID> … を打つ - コマンドは shlex.join で語ごとに quote し、空白やシェルの構文を含む再開先も 1 語で渡す - 案内のコマンドを CLI のパーサーへ通し、制約と再開先がそのまま戻ることを確かめる Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…#3864) - ラッパーは再開の値(セッション ID・引き継ぐ引数・今のアカウント・作業ディレクトリ・役割・計画)を relay/wrappers/<名前>/again.json へ 0600 で書き、案内は ndf relay run|spawn --name <名前> --again だけにする (--mcp-config の認証ヘッダーや --append-system-prompt の本文を画面・tmux の履歴に出さない。複数行の値も 1 行で再開できる) - --again の最初のセグメントはアカウントを選び直さず、再開の値のアカウント(None は既定のログイン)で起動し、起動できたら値を消す - spawn --again は後継を tmux で --again で起動し(引数をコマンドに載せない)、登録簿の引数(最初の作業指示)を上書きしない Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…へ落とさない(#3604 #3864) - run --again はラッパーの錠を取った後に再開の値を読み(Settings.again_load)、作業ディレクトリ・役割・計画・計画への質問の経路をその値で組む。起動できたら読んだ値のままのときだけ消す - NDF_RELAY=0 や端末でないときの run --again は claude を直接起動せず、起動前に precondition で断る - spawn --again は別の種類(spawn-again)で頼み、again を知らない同じメジャーの旧版が通常の spawn として起動しない - spawn --again の環境は再開の値のアカウントで組み、今のアカウントの選び方を読まない - 登録の無い名前の spawn --again は引数を持たない項目で登録し、再開の値の引数を 0600 でない登録簿や restart の tmux のコマンドに移さない - --again を足した引数の仕様(relay.args.schema.json・commands.md)を生成し直す Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ain の設定を錠の後に 1 度だけ組む(#3604 #3864) - ハブは {"kind": "spawn", "again": true} も再開の要求として扱う(通常の spawn で新しい会話・制約の無い起動・登録簿の上書きをしない) - 登録簿に無い名前を --again で登録した項目に args_unknown を付け、restart は動いているラッパーを止める前に precondition で断る - run --again は錠の前に仮の設定(wrapper.again_pending)だけを渡し、プラグインの識別を 1 度読んで錠の後の設定に使い回す - a3f9753 で Lanes から起動の回数を外したのに残っていたテストの引数を直す Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
takemi-ohama
commented
Nov 22, 2026
takemi-ohama
commented
Nov 22, 2026
takemi-ohama
commented
Nov 22, 2026
takemi-ohama
commented
Nov 22, 2026
takemi-ohama
commented
Nov 22, 2026
takemi-ohama
commented
Nov 22, 2026
takemi-ohama
commented
Nov 22, 2026
takemi-ohama
commented
Nov 22, 2026
takemi-ohama
commented
Nov 22, 2026
takemi-ohama
commented
Nov 22, 2026
takemi-ohama
commented
Nov 22, 2026
takemi-ohama
commented
Nov 22, 2026
takemi-ohama
commented
Nov 22, 2026
takemi-ohama
commented
Nov 22, 2026
takemi-ohama
commented
Nov 22, 2026
takemi-ohama
commented
Nov 22, 2026
takemi-ohama
commented
Nov 22, 2026
takemi-ohama
commented
Nov 22, 2026
Contributor
Author
cross-review の記録(PR #4031)終わり方: ラウンドの上限で止まった。ラウンド 5・指摘 18(直した 18・見送った 0・未解決 0) ラウンドと修正
指摘
|
…3864) cross-review の r2-1〜r5-3 の修正が足した仕組みで、承認済みの設計(SPIN_LINE は案内の 1 行)に無い起動引数と保存の形を足すため、設計への指摘として集める。戻すのは 5d3648b・d39e544eb・58a50f31c・6641e287c。r1-2 の案内のサブコマンドの直し(c69255d1e)は残す。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KYHP7z4QjHh8vkcxvdbGUP
) 案内に書いた ndf relay run --resume は今の起動引数に無く、ndf check(spec-skill)が落ちる。案内のコマンドの形は設計で決めるので、設計への指摘として集める。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KYHP7z4QjHh8vkcxvdbGUP
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
takemi-ohama
marked this pull request as ready for review
November 22, 2026 00:10
takemi-ohama
merged commit Nov 22, 2026
3738476
into
sprint/3604-3864-relay-accounts
34 checks passed
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.
概要
実装の単位 U7b「ハブと登録簿の起動の回数の撤廃」(実装計画の Task 12)。リレーハブの
restartの可否を名前つきのラッパーの数だけで決め、1 日の起動の回数(Lanes.starts_today・max_starts・Context.max_starts・today・registry.Starts)を消す。満たす受け入れ条件: 3864:13(
relay.mdの側)・決定 13・I15実装の中で決めたこと
hub lsの項目からも前のバージョンのstartsを外す(hub.RETIRED_KEYS・_current)。詳細設計はrestartの書き戻しだけを挙げるが、relay.resultのスキーマの項目はadditionalProperties: falseなので、前のバージョンの登録簿にstartsが残ったままndf relay lsを打つと結果の形の誤りで落ちる。restartの書き戻しと一覧で同じ関数を使うhub.spin_of・_checked_env・spawn_envの空文字のNDF_RELAY_SPINは U7a(U7a 再起動ループの検出(#3604 #3864) #4026)で入っていたので作り直さず、詳細設計の単体テストの観点のうち無かったspin_ofの値の規則(無い・空・0・30・abc・-1・NDF_RELAY_MAX_STARTS=abc)のテストだけを足したtests/progress/test_plan_lane_question.pyは U7a の時点で 1 日の起動の上限を参照していなかったので変えていないplugins/ndf/docs/contracts/commands.mdはスキーマの変更に合わせてndf check --write-specで生成し直したテスト
テストは CI で走らせる(
.ndf/project.jsonのtest.ci.only)。先に push したテストだけのコミット: 42b6be1(実装: a3f9753)差分: 9 files changed, 115 insertions(+), 96 deletions(-)(
uv.lock・env.mdを除く)関連: #3604 #3864
🤖 Generated with Claude Code
https://claude.ai/code/session_01KYHP7z4QjHh8vkcxvdbGUP