Skip to content
refs

Check only new commits when a merged task branch is pushed again

Aman Kumarcommitted Oct 9, 20262a8fab6parent 577c909

Treat the whole history of the pushed branch's previous tip as known. A task branch merged into main and updated from it no longer fails on old main commits. Commit counts per push no longer include the default branch's history. Plannotator review returned no changes requested. All 118 tests, production build, and diff checks pass. The new test fails on the old code.

1 decision

Treat every commit reachable from an update's previous tip as already known when finding the commits a push added.

Why

  • A walk that stops only at the exact previous tip passes through merge commits into the default branch's history
  • Old default-branch commits without decision records then refused the push
  • The same walk inflated commit_count in commits.recorded

Paths considered

  1. Chosen
  2. merge-baseThe artifacts API exposes log, not a merge-base call, and the history set gives the same result.

Touches

  • decisions.ts
  • admit.test.ts
Evidence · 1
  • tasks/2 push refused on be8ce84, the initial commit, after the branch was merged into main
2 files changed · +28 −8
apps/backend/decisions.ts+2 −2
apps/backend/test/admit.test.ts+26 −6