Revert the extract-first seal; restore merge-then-extract#796
Merged
frankmcsherry merged 1 commit intoJul 13, 2026
Merged
Conversation
The extract-first seal (TimelyDataflow#793) folded the returned frontier during the per-chain extract, before cross-chain consolidation, so a kept time whose updates cancel across two un-merged chains was wrongly reported — the batcher held a capability that never discharges, stalling progress. Restore the merge-then-extract seal: all chains merge into one (consolidating equal (data,time), dropping zeros) before extract folds the frontier, so the frontier reflects post-consolidation distinct times. Keeps regression tests (frontier_is_post_consolidation) so the property is guarded if a future seal revisits the extract-first idea. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Merged
frankmcsherry
added a commit
that referenced
this pull request
Jul 15, 2026
Rewrite the release-plz-generated changelogs into the house style: categorized Added/Changed/Removed sections plus a closing summary of the breaking surface. Add the omitted timely 0.31 bump, drop the reverted extract-first seal pair (#793/#796), de-duplicate the HRTB entries, and flag the new Chunk and JoinTactic/ReduceTactic surface as experimental. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The extract-first seal (#793) folded the returned frontier during the per-chain
extract, before cross-chain consolidation. Two ladder chains that never merged
can carry cancelling updates at the same kept time (an insert and a retract of
one record at a future/delayed time, arriving in different batches); their diffs
net to zero, so that time needs no capability — but per-chain extract inserts it
into the frontier from each chain, and the batcher then holds a capability it
can never discharge (the chains may sit un-merged indefinitely under the
geometric ladder), stalling progress. It affects every MergeBatcher, including
the mainline VecMerger-backed OrdVal/OrdKey batchers.
This restores merge-then-extract: all chains merge into one (consolidating equal
(data, time), dropping zeros) before extract folds the frontier, so the frontier
reflects the post-consolidation set of distinct kept times. Cost is ~14% on the
SCC benchmark — exactly the seal-side win #793 had claimed.
Adds merge_batcher unit tests (frontier_is_post_consolidation) guarding the
property, so a future seal that revisits the extract-first idea can't silently
reintroduce the bug.