This repository was archived by the owner on Oct 1, 2026. It is now read-only.
Repository navigation
fix: fence ensemble responses by run token - #18
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
A late panelist response from a failed Consensus run could be counted in the next queued run because the server reduced each GenAgent reference to an agent name before invoking the strategy. Dispatches now carry the outer run token; the server retains that token with the reference and ignores responses or errors after the token has a terminal result. All published built-in strategies pass their token, including concurrent Pool dispatches. The old three-element operation remains available to external strategies, but it cannot provide run fencing.
Controlled backend tests cover the reported A1-error/B1-late sequence, late errors, repeated queued submissions, and a Consensus round boundary. The existing IEx drain test now compares entries without assuming lexicographic token order. The lockfile is refreshed to satisfy the current sibling adapters' wrapper requirements.
Validation:
mix format --check-formatted,mix compile --warnings-as-errors,mix credo --strict,mix test(90 passed),mix dialyzer,mix docs --warnings-as-errors.Addresses genagent/gen_agent#61. The unpublished local Graph feature branch still uses the legacy dispatch operation; it must be migrated before publication. This PR does not publish Graph.