Repository navigation
feat(collab): add manual batch resume - #175
Open
shizhenwei1984-cell wants to merge 2 commits into
Open
shizhenwei1984-cell wants to merge 2 commits into
shizhenwei1984-cell wants to merge 2 commits into
Conversation
Compose the corrected third manual/resume slice by replaying c2915e2fd59c1787ef467f09ef5e18452d8f0886..5871c8e78d84db1968f3b8cec5a12078d2056e7f (a9d627f59ca1b2e26c70f2a6115af730ff2634d9 plus manual HOLD fixes 5871c8e78d84db1968f3b8cec5a12078d2056e7f) onto accepted threshold base 8e4c75fce8fedf80b8a43efb08423b98813a85df. Includes: - join_policy "manual" and MCP tool batch_resume (with optional note) - Truthful overlapped resume receipts and in-flight wake ownership tracking - Consumed deferred-wake outcome preservation and ambiguous wake classification - Durable batch wake delivery state/error ledger persistence and validation - Automatic all/any/milestone refusal of batch_resume even after settlement (unless currently paused), with aligned BatchResumeTool contract wording - Finished-batch retention ordered by UpdatedSeq then SettledAt/CreatedAt within the 200-batch cap, plus truthful FlushBatch verification on settlement - Manual/resume, wake, ledger, and tool-registry regression coverage Preserves the threshold retained-report fix (8e4c75fc), ordinary batch same-key/receipt fixes (9bb6059d), AIDotNet#153 cursor and structured replies, and AIDotNet#156 GUI peer status. Excludes later exception policies, immediate/none wake policies, deadline, lease, quota, dependency, and launch permission work.
…ttlement atomically Fix the cap-miss persistence HOLD on d8bdb47a5d8524bf200b3ccd1f032d0a9bfb1b2c: 1. Check requiredBatchId inclusion in CollabLedger.FlushCore before serializing or calling _store.Save so a cap-miss candidate snapshot never overwrites the previously persisted sealed batch or advances _persistedVersion/_persistedBatchIds. 2. Add CollabLedger.TryCommitBatchTransition and use it in CollabCoordinator.TrySettleBatchAsync to hold _persistGate across staging (under Gate), pre-save snapshot inclusion check, off-Gate JSON serialization/store save, and commit or rollback (under Gate). No concurrent or background flush can observe or persist a staged settlement or coupled keyed-report dispatching marker before commit or rollback completes. 3. Add deterministic 200-finished cap-collision regressions with actual persisted snapshot reloads for direct FlushBatch, manual batch_resume (with healthy retry and restart replay), keyed automatic report settlement (preserving sealed batch and recorded event state before batch_seal retry), and atomic TryCommitBatchTransition rollback.
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.
Changes
manualbatch join policy andbatch_resume. A sealed manual batch collects reports without an automatic wake. An eligible resume saves one settlement and sends its aggregate wake, with the same receipt on retry.Local verification
mainwith feat(collab): add batch settlement thresholds #169 merged.