Repository navigation
Fix: ndf-next を出さずに終えるレーンが自分のラッパーを止める(#2436 の保留 2 件) - #2462
Merged
Merged
Conversation
… fca6fe464619 の (a)) ndf-next を出さずにセッションを終えても対話の claude が入力待ちで残り、ラッパーが running のまま止まらなかった。 終わり方が 3 か所とも「最後に relay.py stop で自分のラッパーを止める」になるようにした。 - 一時レーン: 起動の 1 行(helper_spawn)の「終わり」に relay.py stop <一時レーンの名前> を入れた(配布と保留の周回の両方) - 問いで保留した 1 スプリントのレーン・一時レーン: 問いの hook が返す保留の手順の最後に停止の 1 行を足した - 待ちだけで止まったループのレーン: 止まった結果に metrics.stop_self を付けた。並列の計画のレーンのときだけ返し、 利用者の端末のラッパーは止めない - 答えの後に持ち主を起こす要否(parallel.py の _owner_restart)を、ラッパーの状態でなくレーンの側の待ちの記録で決める (ループは waiting_only で止まった記録、1 スプリントのレーンは引継ぎ文書の依頼の id、一時レーンはラッパーの状態) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KYHP826qdiDahV9gSeoGPK
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.
何を直したか
課題 #2436 のスプリント PR #2452 の cross-review で保留した 2 件は、根が同じだった。
ndf-nextを出さずにセッションを終えても対話の claude が入力待ちで残るため、ラッパー(relay)が running のまま止まらない。判断 fca6fe464619 で選んだ (a)「レーンが終わるときにrelay.py stopで自分のラッパーを止める」を、終わり方が 3 つある箇所すべてに入れた。parallel_run.helper_spawn)の/goalの「終わり」にpython3 <relay.py> stop <一時レーンの名前>を入れた。配布と保留の周回のどちらの起動も同じ。名前が決まっているので$NDF_RELAY_NAMEを頼らない。手順書(parallel.md の手順 4)も合わせたask_guard.hold_text)の最後に停止の 1 行を足したsprint_loop_record.stopped_result)にmetrics.stop_selfを付けた。並列の計画のレーンか一時レーンのときだけ返すので、利用者の端末で動くラッパーは止めない(loop.md)parallel.pyの_owner_restart)parallel_lane.lane_waits)。ループのレーンは記録がwaiting_onlyで止まっていること、1 スプリントのレーンは引継ぎ文書に依頼の id があること、記録を持たない一時レーンはラッパーが止まっていることで決める保留 2 件との対応
_owner_restartをレーンの側の記録で決める判定(止め損ねても起こし損ねない)検証
uv run --frozen --project . --all-extras pytest . -q -n 4: 11284 passed, 4 skippedstop_selfを返し、レーンでないラッパーでは返さない(test_sprint_loop.py)、保留の手順の停止(test_ask_guard.py)--branch sprint/p2436)・check-lint・check-script-structure・build-runtime-plugins--check・check-skill-frontmatter・check-ndf-contracts・check-skill-repo-assumptions・check-skill-shell-vars・check-service-boundary・check-markdown-links・glossary check(structure と all)・validate-runtime-plugins🤖 Generated with Claude Code
https://claude.ai/code/session_01KYHP826qdiDahV9gSeoGPK