Repository navigation
Serialize input preparation and immediate effects - #45
Merged
Merged
Conversation
Declare the optional intake API and pin preparation, timer, backlog, delivery and cancellation behavior before implementation. Ordinary engine callers retain their existing entry points.
Register raw input before asynchronous preparation so timers and later arrivals share one local order. Keep ownership through callback result, release and deferral writes, with synchronous close fencing and shared admission limits. Store only existing reducer inputs and leave ordinary scopes unchanged.
Closing an intake currently acknowledges a CancelledError from judge or delivery without persisting the release. Pin immediate recovery from the retained store.
A CancelledError carried by an abort signal escapes native input application after a blocked load. Require a completed refusal with no event or cursor write.
Treat callback cancellation after close as a native release and await its receipt. Refuse an aborted raw input directly so a BaseException signal reason cannot escape application and strand the intake join.
Combine the main fold exports with serial intake. Preserve both error imports and package exports when carrying the parent branch forward.
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
Asynchronous preparation can overlap a quiet timer or an earlier delivery. Add an opt-in serial intake in both runtimes so raw registration, preparation and immediate effects share one local order.
Python exposes
Attend.open_intake; Node exposesopenIntakefrom/intake. Registration and close fence synchronously. Pending preparation shares the engine input budget, and close joins immediate completion/release writes. Snapshots and tails retain the existing reducer vocabulary and revision.Stacked on #44 (
feat/continuous-quiet). Retarget tomainafter #44 merges. Do not merge into the feature branch.Original implementation evidence
After: those controls pass, including immediate recovery from the retained store. Tests also cover timer-before-commit ordering, queued preparation, result-commit barriers, capacity refunds, reentrancy and close during application.
Integration check
The branch includes main's folded-event exports at
d14f43a. 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
Opt-in local scheduling; no persisted queue state or schema change. Closed handles are terminal. Raw registrations remain volatile, and callers must retain stable event ids and idempotent delivery across retries.
Blast Radius: runtime
Ordinary scopes retain their existing scheduling. Serial intake is a single-engine contract; it does not fence processes sharing a store. Package publication is separate.