Repository navigation
#2228 を実装する(スプリント m26-2) - #2308
Merged
Merged
Conversation
lib/closing.py に閉じる予定の参照(最終工程の後に閉じる: #N)と defer_closing を足し、closing-issues.sh と closing_issues / closing_refs / closing_numbers が 2 つの形を読む。pr-steps.py と supervise_lib/pr.py は、宛先が 既定ブランチ(決められないときを含む)なら本文を置き換えてから送る(lib/repo.py の merge_closes_issues)。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
--final-stage(配布 / リリース後テスト / 振り返り。省けば振り返り)を受け、閉じる条件 3 を課題ごとに判定する。 振り返りは課題の本文の「振り返り: <コメントの URL>」の行のうち、識別子が記録の PR の最後の配布の記録のコメントの 識別子以上のものを数える(lib/dist_record.py の dist_comment_id。記録の PR の読みは 1 回のまま)。本文を読めなければ failed で止まる。リリース後テストは --with-verification の有無にかかわらず条件 2 を見る。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
pr-steps.py と supervise_lib/pr.py が同じ判定(merge_closes_issues → defer_closing)を持たないようにする。 番号で指した PR の宛先は既存の pr_for_report で読む(REST の退避も同じものを使う)。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
閉じる条件 3(最終工程の記録)・--final-stage の値と呼ぶ側の対応・まとめのプランの並び・閉じる予定の参照を 正本へ書く。pr・release-verification・retrospective・release・merged と development-workflow の references は 閉じる条件と順序を写さず正本を指す。用語集の「最終工程の記録」をその実行の振り返りに絞り、docs/glossary.md を作り直す。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…s.py の PR の読み書きを pr_steps_lib へ分ける(#2228) - sprint_close_lib/final_stage.py: 閉じる条件 3(final_stage_gap・gap_item と最終工程の定数) - sprint_close_lib/collect.py: 記録の PR の読み取り(read_record)、スプリントの PR の課題の集め方(sprint_issues)、参照だけの課題(referenced_items) - pr_steps_lib/gh_pr.py: repo_owner_name・existing_pr・pr_for_report・target_pr・send_body・rest_create - pr-steps.py が 500 行以下になったため、例外リストの行数の項目を消す 振る舞いは変えない。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KYHP7yPdcB8dBzbZpQCnR4
衝突 2 件を両方の変更を残して解いた(sprint-close.py の説明文、4-close.json の release-verify の依頼文と close の位置)。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
設計の構成要素の契約の写しのパスをリポジトリの根からの形に直す。 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 31, 2026 16:40
This was referenced Oct 31, 2026
Merged
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.
ndf プラグインで、スプリント m26-2 の変更をスプリントのブランチへ集める流れを整えました(#2228)。
sprint-close.pyは最終工程の記録を確かめてから Issue を閉じます。既定ブランチ宛の PR の本文では、Issue を閉じる語を「閉じる予定の参照」へ置き換えます。利用者向けの変化
sprint-close.pyは、最終工程の記録を確かめてから Issue を閉じる移行の手順
sprint-close.pyの閉じる条件が増える(契約の変更)。呼ぶのは同じ版のplugins/ndfの中のプラン・Skill の本文だけなので、同じ版で呼ぶ側も直す。利用者の手での移行は要らない。この版より前に工程を通り、判定の材料を持たないまま開いている課題の扱いは未決 2(#2228の要求の移行性)変更の要点
lib/closing.pyのdefer_for_baseに寄せた(課題を閉じる時点を 1 つにし、最終の工程を通ってから閉じる #2228・既定ブランチ宛の実装 PR の本文の閉じる語で、マージの時点に課題が閉じ、仕上げの工程と受け入れ条件のチェックが閉じた課題に残る #2082)sprint-close.pyの閉じる条件に、最終工程の記録の確認を足した(課題を閉じる時点を 1 つにし、最終の工程を通ってから閉じる #2228・sprint-close: 最終工程を通っていない課題を、リリース後テストの前に閉じないようにする #2119)plugins/ndfの中のプランと Skill の本文だけなので、同じ版でまとめて直したsprint-close.pyの最終工程の判定と Issue の集め方をsprint_close_libへ移したpr-steps.pyの PR の読み書きをpr_steps_libへ移したdocs/glossary.mdを用語集から作り直したtest_supervise_pr_closing.pyを新設したtest_supervise_pace.pyとtest_supervise_pace_verify.pyを更新したテスト
supervise.pyの run のステップの結果です。sprint/m26-2を取り込んだissues/issue-2228-design-decisions.mdほか)で止まったdesign-tests は exit 1(stopped)で止まっています。マージの前に確認が要ります。
設計と違う点
scripts/sprint-close.pyの行・構造の図のsprint_closefinal_stage_gapはsprint-close.pyでなくplugins/ndf/scripts/sprint_close_lib/final_stage.pyにある。引数も(stage, body)でなく(stage, body, since)(since は決定 10 の比べる基準)sprint-close.pyの行数を抑えるため sprint-close 専用のパッケージへ分けた。共有のlibには置いておらず、決定 6 の「libに置かない」は守っている。sinceは決定 10 と入出力の契約の表が求める引数で、構造の図が古いread_recordread_recordはsprint-close.pyでなくplugins/ndf/scripts/sprint_close_lib/collect.pyにあるscripts/pr-steps.py・scripts/supervise_lib/pr.py・処理の流れの「Pull Request の本文を送る」merge_closes_issuesとdefer_closingを別々に呼ばず、lib/closing.pyのdefer_for_base(root, base, text)を通して呼ぶ。pr-steps.pyの PR の読み書きはplugins/ndf/scripts/pr_steps_lib/gh_pr.pyへ分けたlib/repo.pyのmerge_closes_issues)と置き換え(defer_closing)の振る舞いは設計のとおりモード: standard / 通した工程: 実装 → 完了判定 → Pull Request
🤖 Generated with Claude Code