Repository navigation
Add server-accepted orchestration completion outcomes - #81
Draft
Bernd Verst (berndverst) wants to merge 1 commit into
Draft
Bernd Verst (berndverst) wants to merge 1 commit into
Bernd Verst (berndverst) wants to merge 1 commit into
Conversation
Extend completion acknowledgements with accepted outcomes and explicit infrastructure failure provenance while preserving legacy wire compatibility. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 5f2c7eb1-d8ff-45e9-99d9-b64837f5772a
Draft
13 of 25 tasks
Bernd Verst (berndverst)
marked this pull request as draft
October 13, 2026 00:20
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.
Motivation
Provider/backend completion failures can replace an orchestration's requested outcome without reaching host failure telemetry or lifecycle notifications. Empty completion acknowledgements cannot communicate that server-adjusted outcome. This additive protocol contract supports the scenario tracked by Azure/azure-functions-durable-extension#3569.
Changes
CompleteOrchestrationWorkItemRequest.providerFailureat field 14 for explicit infrastructure-failure provenance, separate from ordinary application failures.CompleteOrchestrationWorkItemResponse.outcomeat field 1, carrying accepted instance/execution/function correlation, a stable token-free completion identity, the actual accepted status, and optional validated provider/backend failure diagnostics.CompleteInstanceWorkItemResponse.orchestratorResponseenvelope, so the initial streaming ACK carries the same outcome without changing RPCs or streaming field numbers.CompletionRequest,ExternalizedPayload,BackendValidation), acceptance semantics, and legacy interoperability.Compatibility and scope
All existing fields, enums, options, and RPC shapes are unchanged. Old clients ignore the additions; old servers may return empty ACKs. Missing outcomes, including later streaming health-ping ACKs, are not authoritative. Unaccepted/stale completions must not fabricate outcomes. Provenance is diagnostic metadata, not an authorization decision; implementations must validate and sanitize it rather than echoing caller-provided content. Both peers need contract support to report authoritative outcomes. Completion identities aid deduplication but do not guarantee durable notification delivery. This PR defines the protocol only; provider/backend and host behavior require coordinated implementation changes.
Validation
lib\java\gradlew.bat -p lib\java build --console=plain --quiet --no-daemonwith JDK 11: passed, including protobuf/gRPC generation, Java compilation, and 6 tests (0 failures/errors/skips).git diff --check: passed.The existing Gradle 7.0.2 wrapper cannot run with the environment's default Java 21; validation used a compatible JDK 11 without changing repository build configuration.