Repository navigation
Accumulate unfinished windows through waits and retries - #46
Merged
Merged
Conversation
Pin horizon eligibility, retry absorption and failure lifetime, complete-window bounds, and stored-policy mode changes before implementing the optional mode. Existing defaults remain the baseline.
Keep failure allowance and admitted input with an unresolved window. Evaluate the complete offered payload against native bounds, retain default behavior, and refuse a mode switch while old state is unfinished. Preserve revision-3 read compatibility and require failure state for accumulating waits.
A forced flush with no fresh events currently offers wait at retry, and end loses its closing reason. Pin both public control semantics without allowing either to shorten retry not-before.
Apply forced and ended controls at the pending retry boundary. Exercise revision-3 data, waiting restart, terminal outcomes and cross-runtime failure allowance, and document the mode and stored-state limits.
An empty gap or pruned background input currently bypasses retry/horizon merging and leaks into the next unrelated window. Pin the retained-window metadata and wait allowance before correcting the transition.
Route accumulating retries and horizons through the same settlement path, including empty fresh input. Fold gap/drop metadata once, retain wait allowance, and document held-only end and frozen legacy fixture semantics.
Include the updated intake parent while preserving accumulating continuation behavior.
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.
Summary
Add opt-in
settle.continuation: 'accumulate'in both runtimes. An unresolved window keeps its wait and provider-failure allowances, absorbs retained arrivals at retry not-before, and applies bounds to the complete offered payload. Omission keeps existing separate behavior.Revision 4 preserves failure allowance in waiting state. Writers refuse mode changes while a held batch or fresh input remains. Legacy separate snapshots remain readable. Native completion tokens, close/release behavior and dead-letter fields retain their meanings.
Stacked on #45 (
feat/serial-intake). Retarget tomainafter that PR lands. Do not merge into the feature branch.Original implementation evidence
After: native runtime tests cover the new mode's ordering, allowances, controls, complete-window bounds and metadata, with failing tests committed before fixes. Existing defaults remain covered by the frozen differential suite.
Integration check
The branch includes main's folded-event exports at
30f8f06. The changes introduced by this layer are unchanged after removing diff line numbers and blob hashes. The combined stack has the same tree as the previously tested composition. All eight distinct CI jobs passed on this updated head. The optional Macroscope review check was skipped.Merge Danger
Door: one-way once enabled
Accumulating state requires compatible readers and writers. Drain unresolved windows under their saved mode, or use new scopes, before changing mode or rolling back. A reducer-version change does not fence older writers.
Blast Radius: reducer
The default remains separate. This adds no distributed ownership or hard memory cap. Package publication is separate.