Skip to content

#333 を実装する(スプリント m10a) - #441

Merged
takemi-ohama merged 1 commit into
sprint/m10afrom
feat/issue-333-m10a
Oct 7, 2026
Merged

takemi-ohama merged 1 commit into
sprint/m10afrom
feat/issue-333-m10a

Conversation

@takemi-ohama

Copy link
Copy Markdown
Contributor

snapshot の rotate が、消した世代の数と外した数の両方を返すようにしました。消した世代があるときも、外した数を要約に出します(#333)。

利用者向けの変化

  • snapshot の rotate の要約に、消した世代の数と外した数の両方が出ます。消した世代があるときも、外した数を表示します。

移行の手順

  • 無し

変更の要点

  • lib/devbase/snapshot/manager.py: rotate が消した数と外した数の両方を返すように変えた
  • lib/devbase/commands/snapshot.py: 戻り値の変更に合わせ、消した世代があるときも外した数を要約に出すようにした
  • docs/specifications/snapshot-series.md・docs/user/cli-reference/05-snapshot.md: rotate の戻り値と要約の説明を更新した
  • tests/snapshot/test_manager_series.py: 消した数と外した数の返り方を確かめる試験を追加・更新した

テスト

ステップ exit 結果
test-limited 0 範囲テスト 1 本(124.5 秒 / 戦略 local-full)、status ok

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

🤖 Generated with Claude Code

SnapshotManager.rotate() は RotateResult(deleted, removed) を返す。
_snapshot_rotate は entry_count の差から外した数を逆算せず、戻り値で要約を決める。
使われなくなった entry_count を消す。

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@takemi-ohama
takemi-ohama marked this pull request as ready for review October 7, 2026 05:41
@takemi-ohama
takemi-ohama merged commit 156dbb5 into sprint/m10a Oct 7, 2026
10 checks passed
@takemi-ohama takemi-ohama mentioned this pull request Oct 7, 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