fix: harden dispatch replay and minimal discovery (#194) - #281
Merged
Merged
Conversation
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.
Closes the remaining source-side reliability gaps in #194 without changing provider-routing authority.
What changed:
agent_start.attemptKeyat the public MCP boundary so every consequential dispatch is replay-bound before provider effects;grep,glob, andlsin minimal mode while keeping the Codex tool surface unchanged;DISCOVERY_CANCELLED/DISCOVERY_TIMEOUTerrors;Verification on the exact Candidate tree
bb4511d762f1b6d674655054a696a8f496ba0b01:npm run typecheck: PASS;npm run build: PASS;git diff --check: PASS;src/server.test.ts: 83/84 PASS; sole failure is the pre-existing P1 Convergence: resolve RECONNECT_REQUIRED session snapshot deadlock after server restart #159 restart/rebindECONNRESET, reproduced identically on clean main1f1ec946....Core physical snapshot:
a224ca6afb1b51030430206dfda022be4a06adfebb4511d762f1b6d674655054a696a8f496ba0b01No provider-specific policy is moved into discovery or the host.