Pin the start state
Read the current tip SHA from your backend session record. Use the same SHA for every attempt.TypeScript
Create the attempt branches
Create each attempt from the same SHA. Branch creation writes refs only and does not copy Git objects.TypeScript
expectedHeadSha: baseSha for its first
commit, then use each returned commit SHA for the next write.
TypeScript
Compare the results
Read each attempt tip as a commit diff from the pinned start state. Evaluate each diff with tests, code review, or your own evaluation method.TypeScript
getCommitDiff() for path filters and response fields.
Promote the winner
Promote the best ephemeral branch to a normal branch. You can then review and merge the normal branch.TypeScript
TypeScript