Repository navigation
Separate counted settlement from background retention - #48
Merged
Merged
Conversation
Pin inclusive counted settlement, independent background retention, held-state trimming and refusal of unresolved limit changes before adding the opt-in policy.
A writer with different timing must not resurrect input that the stored policy already settled and completed.
An opt-in accumulating policy can settle at counted equality while retaining background independently. Bound unresolved state across admission and result transitions, preserve immutable offers and metadata, and refuse policy changes while work remains. Replay stored tails under their saved policy before adopting writer settings.
Current-writer recovery and invariant checks now produce revision five; retain historical revision-four fixtures unchanged.
Carry the updated cleanup parent into the final stack layer. The assembled tree matches the previously verified combined candidate.
asher-aqi
changed the base branch from
fix/intake-preparation-cleanup
to
main
November 14, 2026 04:22
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
settle.eventLimits: { counted, background }(event_limitsin Python) for accumulating continuation.The counted threshold is inclusive. Background retention is FIFO across unresolved held and fresh input. Live offers stay immutable; retries keep their not-before time. Omission preserves scalar limits.
Revision 5 persists the option and refuses changes while work remains. Writer startup also fixes saved-tail replay that could reinterpret completed input under new settings. Stacked on #47.
Original implementation evidence
Integration check
The branch includes main's folded-event exports at
7140bbb. 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. Duplicate runs also passed. The optional Macroscope review check was skipped.Merge Danger
Door: two-way for callers that omit the option. Opt-in stored scopes must finish unresolved work before changing limits.
Blast Radius: window retention and replay. Requires explicit accumulating mode and compatible writer versions; this does not fence older writers. Atomic input can exceed the trigger. Raw-input capacity remains separate.