Repository navigation
#453 を実装する(スプリント m8b) - #471
Merged
Merged
Conversation
一致テストに、子の parser を持たない末端の道から --context の集合を引いた NO_CONTEXT_LEAF_PATHS を足し、bash の補完の余分を比べる。zsh は補完の実行テスト に X1 の行を足し、実際の候補で余分を比べる。親の道は子の分岐を含むため比べない。 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
October 12, 2026 14:49
This was referenced Oct 12, 2026
Merged
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.
補完が
--contextを取らない末端の道で--contextを候補に出した場合に、テストが落ちるようにしました。あわせて、一致テストと実行テストが--contextの余分を末端の道で比べることを仕様書に書き足しました(#453)。利用者向けの変化
移行の手順
変更の要点
tests/cli/test_name_context_consistency.pyで、一致テストが--contextの余分を末端の道ごとに比べるようにしました。tests/cli/test_zsh_completion_run.pyで、--contextを取らない末端の道で補完が--contextを出すと、実行テストが落ちるようにしました。docs/specifications/cli-argument-resolution.mdに、上の 2 つのテストが末端の道で--contextの余分を比べることを書きました。テスト
設計と違う点
何を変えたか
tests/cli/test_name_context_consistency.py)に、--contextを取らない末端の道(子の parser を持たない parser の道から--contextの集合を引いたもの。NO_CONTEXT_LEAF_PATHS)を足し、bash の補完がdevbase <道> -で--contextを出したら道を挙げて落ちるtest_bash_completion_has_no_extra_contextを足したtests/cli/test_zsh_completion_run.py)に不変条件 X1 の行(devbase <道> -の候補に--contextが入らない)を足し、分岐の文字列でなく実際の候補で比べる。Requestにexclude(含まれてはならない語)を足したproject profileなど)は、zsh の分岐が子の分岐を含み子の--contextを拾うため、余分の比べ方から外す(シェル補完が --context を open と post-start でしか出さない #435 の設計の決定 5 のとおり)docs/specifications/cli-argument-resolution.mdに、末端の道の集合・bash の比べ方・X1・(a) の位置の規則を書いた今の補完の余分
無かった。今の補完で、
--contextを取らない末端の道 42 本のどれでも、bash も zsh もdevbase <道> -で--contextを出さない(補完のファイルは変えていない)。手で確かめたこと
env set|delete|editの分岐と zsh のenv setの分岐へ一時に--contextを足すと、test_bash_completion_has_no_extra_context(('env', 'delete'), ('env', 'edit'), ('env', 'set')を挙げる)とtest_no_extra_context_on_leaf_without_it(devbase env set -を挙げる)が落ちた。戻したexec|token)をtoken)にすると、従来のtest_bash_completion_offers_context_after_pathが落ちた。戻した。欠けの検査は変えていないtests/cliが全件通る(1068 passed)設計と違えたところ
-」(devbase <道> -)だけにした。[name]の後の-は、--contextを取らない末端の道に[name](プロジェクト名)を取るものが無いため比べないモード: standard / 通した工程: 実装 → 完了判定 → Pull Request
🤖 Generated with Claude Code