Repository navigation
Give continuous events individual quiet durations - #44
Merged
Merged
Conversation
Pin distinct continuous durations, latest-end aggregation, unchanged defaults and atomic admission before implementing the extension.
Combine distinct continuous quiet durations by their latest end time while retaining independent triggers, processing clocks and default behavior. Persist explicit durations and rebuild summaries through replay and policy changes.
Invalid timing fields must not disappear during JSON copying. An explicit continuous duration must also work when no entry uses the configured default gap.
Keep the continuous-duration extension based on the corrected observation-time contract and its boundary tests.
Validate captured duration fields before JSON can erase them. Exclude the missing default-duration group from deadline arithmetic, so an unused infinite policy gap cannot suppress an explicit deadline.
Carry the merged main exports through the quiet-duration branch so subsequent stack layers retain both public APIs.
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
Continuous inputs can keep different quiet durations while sharing one window. Optional
Event.quietForMssets an event's duration in TypeScript and Python. Once a continuous entry supplies it:Other triggers retain their precedence. Omission keeps existing timing, including backwards clocks. Admission rejects invalid values or use on another kind before accepting the batch. Explicit durations survive storage and recovery; policy changes recompute omitted durations.
Stacked on #43. Merge that prerequisite first, then retarget this PR to
main.Original implementation evidence
NaN.Integration check
The branch includes main's folded-event exports at
6662e07. 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: Two-way before sources opt in. Afterward, a downgrade changes stored event timing.
Blast radius: Scheduling.
Reducer revision advances to 3. Processes sharing a store must use the same revision before opt-in; the existing replay path does not fence older writers. No package version or publication change is included.