Here's where the value actually goes. Short version: CheckpointsCount is never shown in interactive CLI output — its real consumer is the backend (entire.io), which renders it as the "steps" number in the session UI. That's exactly the surface this PR set out to fix.
The consumers, by how much they matter
1. Backend / dashboard (the real consumer)
The value is written into the on-disk metadata.json artifacts and pushed on the entire/checkpoints/v1 branch:
- per-session →
CommittedMetadata.checkpoints_count (committed.go:443)
- root aggregate →
CheckpointSummary.checkpoints_count = sum of per-session values (committed.go:519, summed at committed.go:659)
entire.io reads these and displays "X steps". The PR body's "API/frontend pass the value through unchanged" is the claim that this end is fine — worth a sanity check that the backend doesn't relabel it (e.g. a tooltip or column header that literally says "checkpoints" rather than "steps"), since the number's meaning just changed under it. That's in the entire.io repo, not here.
2. entire checkpoint explain --json
checkpointExportJSON.checkpoints_count (explain_export.go:297, set at :393 from summary.CheckpointsCount). Machine-readable output — anyone scripting against it now gets a prompt count.
3. Debug/info logs
slog.Int("checkpoints_condensed", result.CheckpointsCount) at manual_commit_condensation.go:1213 and manual_commit_hooks.go:1411. Note the log key is checkpoints_condensed but the value is now a prompt count — same flavor of stale label as the checkpoint.go:428 comment. Logging-only, low stakes.
4. Logic — none anymore. The only conditional that used it (== 0) was migrated to SaveStepCount. The aggregation sum at committed.go:659 is the one piece of "logic," and summing prompt windows across sessions is the intended new behavior.
Not consumers
entire status, session list/info, clean, activity — these display state.StepCount under the label "Checkpoints," which is unchanged (still the SaveStep count). So the interactive CLI is unaffected by the semantic change.
So the blast radius is
- The backend "steps" display (the intended fix — verify the label there matches).
--json scripting consumers (now prompt count).
- Two stale labels in this repo: the
checkpoint.go:428 comment and the checkpoints_condensed log key.
Want me to fix the two stale labels here, and/or check the entire.io side for where checkpoints_count is read and how it's labelled in the UI?