Repository navigation
fix(qq): preserve accepted work across controlled provider updates - #38
Open
Entropy-Enthalpy wants to merge 1 commit into
Open
Entropy-Enthalpy wants to merge 1 commit into
Entropy-Enthalpy wants to merge 1 commit into
Conversation
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
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.
Restarting the QQ Provider currently loses the source eligibility needed to reply to accepted work, while the native reply sequence and attempted budget remain process-local. Stopping the receiver also revokes its consumer lease before an in-flight acceptance can finish.
This change keeps compact source proofs and reply attempts in the existing QQ state owner. It writes the proof before acceptance, reserves each native sequence before sending, retains an uncertain send's spent budget across restart, and releases completed sources without resetting an active native reply budget. Controlled shutdown drains callbacks and canonical acceptance before saving the SDK's session/cursor and withdrawing the consumer lease. Reopening verifies the same account and waits for the new exclusive consumer before receiving.
The existing same-Host service gains optional
quiesceInbound,resumeInbound, andreleaseSourceoperations, documented indocs/qq-consumer-continuity.md. Native reply windows, media eligibility and receipt shapes remain intact. No SDK source, package identity, dependency version or update policy changes are included.Validation on Node 24.15.0 / Linux:
git diff --checkpass.Windows retains file flushing and atomic replacement. Node cannot fsync directories on Windows, so directory synchronization and its two syscall-failure tests are POSIX-specific. The existing Windows CI job now includes the QQ file/restart/update regressions; local Windows execution remains unverified.
A saved cursor supports a controlled update when the platform accepts resume. Platform replay retention, abrupt termination, power-loss guarantees and live QQ acceptance are outside this verification.