The scope is contained to two files plus a CHANGELOG note. No other code or docs reference migrate's --force.
cmd/entire/cli/migrate.go — delete:
forceFlag var + BoolVar("force", ...) registration (lines 41, 90)
- The
dryRun && force validation (lines 56–58)
force bool parameter from runMigrateCheckpointsV2, migrateCheckpointsV2, migrateOneCheckpoint
- The
existing != nil && force branch in migrateOneCheckpoint (lines 693–697)
pruneV2CheckpointForForce, pruneV2CheckpointRef, pruneV2ArchivedCheckpointRef, addRecomputedGenerationJSON, pruneCheckpointFromRoot (lines 1180–1362) — all force-only
- Comment cleanup:
packCurrentBatch at line 577 mentions "force migration may prune existing archived refs earlier in the loop" — outdated; the deferred NextGenerationNumber resolution is no longer load-bearing for that reason but is still fine as a "resolve when needed" optimization.
The existing != nil && !force branch becomes plain existing != nil — same body, just the "resume/backfill" path for already-migrated checkpoints.
cmd/entire/cli/migrate_test.go — delete:
TestMigrateCheckpointsV2_ForceOverwritesExisting (line 673)
TestMigrateCheckpointsV2_ForceMultipleCheckpoints (line 723)
TestPruneV2CheckpointForForce_RecomputesPartialArchivedGeneration (line 753) — tests the deleted helper directly
TestMigrateCmd_ForceFlag (line 819) — flag-exists assertion
TestMigrateCheckpointsV2_ForcePrunesSkippedV2Sessions (line 1210)
Update: every other migrateCheckpointsV2(..., false) call site drops the trailing false; the one migrateOneCheckpoint(... nil, false, nil, ...) at line 615 drops its false.
Note for CHANGELOG.md: the existing --force mention at line 147 is historical (records what shipped). Leave it; the removal goes under the next unreleased entry as a breaking-but-hidden-flag change.
One thing worth flagging: today the resume path (existing != nil && !force) explicitly handles "v2 has the checkpoint but its /full/* artifacts are missing" — repacks them in place. That's the real fallback if a future bug ships bad data: re-run, and the resume path will fix anything it detects as missing. If a bug ships data that looks correct but isn't, the only recourse becomes manual ref surgery (or temporarily re-introducing force on a branch). That's a reasonable trade — --force was never the right hammer for that anyway (you'd want surgical, not whole-checkpoint, repair) — but worth saying out loud.
Want me to go implement this now?