Description
When users reword commits via git rebase -i (reword action), git commit --amend, or git filter-branch --msg-filter, the rewrite operation replaces the entire commit message. If the replacement message does not include the Partio-Checkpoint: trailer, the session link is permanently lost — partio rewind and partio doctor show no checkpoint for those commits, with no explanation of why.
This was reported in entireio/cli#834.
What to fix
In partio doctor, add a check that scans recent commits for this pattern:
- Find commits where a
Partio-Checkpoint: trailer is missing but the reflog shows a prior version of the commit that had one, or where adjacent commits in the session have trailers but this one does not.
- Report these commits with a clear message explaining that git rebase/amend operations can drop Partio trailers and how to avoid it.
- The check should be non-fatal and informational — it should not block any git operations.
Acceptance Criteria
partio doctor detects commits that are missing Partio-Checkpoint trailers and reports them
partio doctor output includes actionable guidance when trailer loss is detected
- Detection covers git rebase reword, interactive rebase, and
git commit --amend scenarios
make test passes
make lint passes
Source
Inspired by entireio/cli#834
Description
When users reword commits via
git rebase -i(reword action),git commit --amend, orgit filter-branch --msg-filter, the rewrite operation replaces the entire commit message. If the replacement message does not include thePartio-Checkpoint:trailer, the session link is permanently lost —partio rewindandpartio doctorshow no checkpoint for those commits, with no explanation of why.This was reported in entireio/cli#834.
What to fix
In
partio doctor, add a check that scans recent commits for this pattern:Partio-Checkpoint:trailer is missing but the reflog shows a prior version of the commit that had one, or where adjacent commits in the session have trailers but this one does not.Acceptance Criteria
partio doctordetects commits that are missing Partio-Checkpoint trailers and reports thempartio doctoroutput includes actionable guidance when trailer loss is detectedgit commit --amendscenariosmake testpassesmake lintpassesSource
Inspired by entireio/cli#834