Skip to content

スプリント l20261031-5 - #2312

Merged
takemi-ohama merged 21 commits into
developfrom
sprint/l20261031-5
Oct 31, 2026
Merged

takemi-ohama merged 21 commits into
developfrom
sprint/l20261031-5

Conversation

@takemi-ohama

Copy link
Copy Markdown
Contributor

スプリント l20261031-5 の課題を develop へ取り込む。

利用者向けの変化

移行の手順

課題と設計

コミット

変更の統計

 .../scripts/refactor_lib/allocation.py             |   1 +
 .../scripts/refactor_lib/commands/report.py        |  10 +-
 .../scripts/refactor_lib/commands/setup.py         |  20 +-
 .../scripts/refactor_lib/init_test.py              |  96 ++++++++--
 .../cross-refactoring/scripts/refactor_lib/plan.py |   2 +-
 .../scripts/refactor_lib/timeline.py               |   7 +-
 .../cross-refactoring/tests/test_drive_contract.py |  61 ++++++
 .../skills/cross-refactoring/tests/test_init.py    | 162 +++++++++++++++-
 scripts/pytest_child_cleanup.py                    | 195 +++++++++++++++++++
 ...ross-refactoring__scripts__drive.py--lines.json |   2 +-
 ...s__refactor_lib__commands__setup.py--lines.json |   2 +-
 scripts/tests/test_check_script_structure.py       |   6 -
 scripts/tests/test_pytest_child_cleanup.py         | 145 ++++++++++++++
 scripts/tests/test_root_conftest.py                |  32 +---
 59 files changed, 1612 insertions(+), 191 deletions(-)

テスト(supervise.py の run のステップ)

ステップ exit 最後の行
collect 0

集めた実装の PR

閉じる課題

Closes #2047
Closes #2154
Closes #2204
Closes #2291

手動確認

モード: standard / 通した工程: 実装 → Pull Request

🤖 Generated with Claude Code

takemi-ohama and others added 21 commits October 31, 2026 14:39
根の conftest が scripts/pytest_child_cleanup.py を読み込み、親と xdist の各 worker を子の回収役にする。
自分の session で起こした子と、親が先に終わった孫も SIGTERM と終了の時点で止め、付け替わった孫のゾンビは
SIGCHLD で回収する。止める処理は lib/procs.py の child_pids と stop_tree を使う。

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
起動の配線は各スクリプトの代表の起動(supervise の run、phase-steps の転送、glossary の各副命令)に残す。

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- 着手前のテストの初回の上限を、履歴 → 手元の全体テストの直近の実測 → 宣言の所要の順で決める
- 想定最大時間を省いた実行は手順の枠が収まらなければ下限まで上げ、出所を状態と出力に残す
- 明示した想定最大時間に収まらないときと着手前のテストの打ち切りで SKIP を出し、駆動が終了コード 6 で返す
- 上限や想定最大時間を上げたら、ステップの延長のファイルへ見込みの秒を書く

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- 検査の雛形の refactor に on_exit の 6 → review を足す(new check / sprint / close の 3 つ)
- drive のステップは試行ごとに延長のファイルの置き場を子へ渡し、書かれた秒に余裕を足して締め切りを後ろへだけずらす
- フェーズレポートに「欠けを残して進んだステップ」の行、検査の記録に findings.refactor_skipped を足す
- cross-refactoring の SKILL.md と docs に、想定最大時間の出所・時間の枠の不足・終了コード 6 を書く

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… drive.py・setup.py)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
#2047 を実装する(スプリント l20261031-5)
#2291 を実装する(スプリント l20261031-5)

@takemi-ohama takemi-ohama left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤖 cross-review | round 1 | codex | APPROVE

指定された59ファイルの差分に、基準に該当する critical / major の修正指摘はありません。

@takemi-ohama takemi-ohama left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤖 cross-review | round 1 | kiro | APPROVE

59 ファイルを読んだ。時間の枠の不足で refactor を飛ばす経路(exit 6・gaps・on_exit {"6":"review"})、想定最大時間を省いたときの下限への引き上げ(settle_window)、子が書くステップの延長(NDF_STEP_EXTEND_FILE)、pytest の子孫プロセスの後始末(pytest_child_cleanup.py)、CI のキャッシュと concurrency、テストの in-proc 化を確認した。engine.py の on_exit は on_fail より先に見るため exit 6→review の遷移は成立する。run_ticking の extend は simultaneous 代入で timeout=longer に揃い、再延長と締め切りの前倒しが起きない。settle_window の floor 引き上げと grace_seconds=0 は設計文書と一致する。CI のキャッシュ・concurrency は所要と費用を下げる方向で、在庫の手元テストも subprocess から main() 呼びへ移して時間を縮めている。critical / major の基準(普通の経路での誤動作・秘密/データ/戻せない操作・トークン/時間/回数を増やす変更・実装を誤らせる設計の食い違い)に当たる指摘は見つからなかった。

@takemi-ohama

Copy link
Copy Markdown
Contributor Author

🔧 /ndf:fix サマリ | commit (なし)

対応件数: critical=0 / major=0 / minor=0(合計 0 件)
決着: 0 件 / 見送り: 0 件 / 却下: 0 件
CI: NONE

@takemi-ohama
takemi-ohama marked this pull request as ready for review October 31, 2026 17:43
@takemi-ohama
takemi-ohama merged commit 5e3d00b into develop Oct 31, 2026
25 checks passed
@takemi-ohama
takemi-ohama deleted the sprint/l20261031-5 branch October 31, 2026 17:44
This was referenced Oct 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant