When main moves, the restacker gives each waiting ready change a new version, and the worker builds every required check of each new version from scratch. Between 2026-11-05 and 2026-11-08, 57 restacked versions of 33 changes took 125 of the worker's 213 batch-minutes (59%); one change waiting on approval was built seven times. Ready changes wait on approval for a median 0.64 h and up to two days, so the cost grows with the wait. The integrator already judges whether evidence transfers to a new tip when it lands a change. Outcome: for a restacked version, the worker reuses the earlier version's results for each check whose inputs the restack left unchanged, by the rule the integrator uses to judge transfer, and builds only the rest. The change and `valley pending --checks` show which results were reused, and from which version. Done when a worker test restacks a change over an unrelated landing and the new version shows its checks passed with no rebuild, and a restack over a landing that touches a check's inputs rebuilds that check. Related: oc-33cf366 (the worker stops a batch a restack superseded), oc-d28b43a (approvals carry across a rebase).
No comments.