From c9ab485fd41cf182dd7dcee0511fbb9135afe821 Mon Sep 17 00:00:00 2001 From: Durable Workflow Date: Sun, 11 Oct 2026 19:42:51 +0000 Subject: [PATCH 1/6] Expose capability checked operator service catalog reads --- docs/portal/operate/troubleshooting.md | 38 ++++++++ src/Client.php | 94 +++++++++++++++++++ tests/ServiceCatalogReadClientTest.php | 121 +++++++++++++++++++++++++ 3 files changed, 253 insertions(+) create mode 100644 tests/ServiceCatalogReadClientTest.php diff --git a/docs/portal/operate/troubleshooting.md b/docs/portal/operate/troubleshooting.md index ae0616ca..f8dae70e 100644 --- a/docs/portal/operate/troubleshooting.md +++ b/docs/portal/operate/troubleshooting.md @@ -41,6 +41,44 @@ Confirm the client's `taskQueue` exactly matches the worker's queue. Then confir If the workflow scheduled an activity, repeat the same check for the activity type. A workflow worker can be healthy while the activity capacity it needs is absent. +## Inspect a durable service call + +Use an operator credential in the namespace you are investigating. The +service catalog read methods return bounded pages and the original durable +call, including its deadline, attempts and terminal cause. + +```php +$page = $client->listServiceCatalogCalls([ + 'scope' => 'caller', + 'status_bucket' => 'failed', + 'per_page' => 50, +]); +foreach ($page['data'] as $row) { + $call = $client->describeServiceCatalogCall($row['id']); +} +``` + +Browse registered endpoints, services and operations with +`listServiceCatalogEndpoints()`, `listServiceCatalogServices()` and +`listServiceCatalogOperations()`. Their corresponding +`describeServiceCatalogEndpoint()`, `describeServiceCatalogService()` and +`describeServiceCatalogOperation()` methods use catalog IDs. Lists accept +`page` and `per_page`. Filter services by `endpoint_id`, operations by +`endpoint_id` or `service_id`, and calls by those IDs or `operation_id`. + +The methods require the backend's advertised `service_catalog_read_contract` +version 1. An absent or incompatible capability raises `ServerException` with +`reason: backend_capability_unavailable` and the required/advertised contract. +A discovery outage keeps its actual connection or backend failure. It does not +become an unsupported-capability message. + +Foreign linked runs remain opaque references. Foreign input, output and failure +payload references are null, with `payloads_in_observer_namespace: false`. +Authorized payload references remain opaque runtime objects. A visible call +does not authorize browsing another namespace. See the +[Server read contract](https://github.com/durable-workflow/server/blob/main/docs/contracts/service-catalog-reads.md) +for scopes, filters, pagination and detail bounds. + ## A result wait timed out `WorkflowHandle::result()` polls for a bounded caller duration. When it times out, the durable execution may still be running. Call `describe()` and inspect its status before starting anything again. Reuse the original workflow ID or an application idempotency key; do not create duplicates just because the client lost patience. diff --git a/src/Client.php b/src/Client.php index 0953241a..1b2ef0ad 100644 --- a/src/Client.php +++ b/src/Client.php @@ -173,6 +173,100 @@ public function clusterInfo(bool $includeDiagnostics = false): ClusterInfo return ClusterInfo::fromArray($this->control('GET', $path)); } + /** + * @param array $filters + * @return array + */ + public function listServiceCatalogEndpoints(array $filters = []): array + { + return $this->serviceCatalogRead('/service-catalog/endpoints', $filters); + } + + /** @return array */ + public function describeServiceCatalogEndpoint(string $endpointId): array + { + return $this->serviceCatalogRead('/service-catalog/endpoints', id: $endpointId); + } + + /** + * @param array $filters + * @return array + */ + public function listServiceCatalogServices(array $filters = []): array + { + return $this->serviceCatalogRead('/service-catalog/services', $filters); + } + + /** @return array */ + public function describeServiceCatalogService(string $serviceId): array + { + return $this->serviceCatalogRead('/service-catalog/services', id: $serviceId); + } + + /** + * @param array $filters + * @return array + */ + public function listServiceCatalogOperations(array $filters = []): array + { + return $this->serviceCatalogRead('/service-catalog/operations', $filters); + } + + /** @return array */ + public function describeServiceCatalogOperation(string $operationId): array + { + return $this->serviceCatalogRead('/service-catalog/operations', id: $operationId); + } + + /** + * @param array $filters + * @return array + */ + public function listServiceCatalogCalls(array $filters = []): array + { + return $this->serviceCatalogRead('/service-catalog/calls', $filters); + } + + /** @return array */ + public function describeServiceCatalogCall(string $callId): array + { + return $this->serviceCatalogRead('/service-catalog/calls', id: $callId); + } + + /** + * @param array $filters + * @return array + */ + private function serviceCatalogRead(string $path, array $filters = [], ?string $id = null): array + { + if ($id !== null) { + if (trim($id) === '') { + throw new InvalidArgumentException('Catalog detail requires a non-empty ID.'); + } + $path .= '/'.$this->segment($id); + } + $schema = 'durable-workflow.v2.service-catalog-read.contract'; + $contract = $this->clusterInfo()->raw['service_catalog_read_contract'] ?? null; + if (!is_array($contract) || ($contract['schema'] ?? null) !== $schema || ($contract['version'] ?? null) !== 1) { + throw new ServerException( + 'The connected backend does not advertise service catalog operator reads with contract version 1.', + 501, + 'backend_capability_unavailable', + [ + 'capability' => 'service_catalog_reads', + 'required_contract' => $schema, + 'required_contract_version' => 1, + 'advertised_contract' => $contract, + ], + ); + } + if ($filters !== []) { + $path .= '?'.http_build_query($filters, '', '&', PHP_QUERY_RFC3986); + } + + return $this->control('GET', $path); + } + /** Discover ordinary runtime capabilities using the worker credential. */ public function workerClusterInfo(): ClusterInfo { diff --git a/tests/ServiceCatalogReadClientTest.php b/tests/ServiceCatalogReadClientTest.php new file mode 100644 index 00000000..0ccf6f9c --- /dev/null +++ b/tests/ServiceCatalogReadClientTest.php @@ -0,0 +1,121 @@ + [['id' => 'call-1']], 'call_deadline_at' => '2026-10-11T19:00:01.123456Z', + 'failure_type' => 'ServiceCallTimedOut', 'input_payload_reference' => ['reference_id' => 'opaque-1']]; + $transport = new FakeTransport([$this->discovery(), $surface]); + $client = new Client('https://server.example', token: 'operator-token', namespace: 'tenant-a', transport: $transport); + $result = $detail ? $client->{$method}('call/1') : $client->{$method}(['page' => 2, 'per_page' => 10]); + + self::assertSame($surface, $result); + self::assertCount(2, $transport->requests); + self::assertSame('https://server.example/api/cluster/info', $transport->requests[0]['uri']); + self::assertSame('https://server.example/api/service-catalog/'.$path.($detail ? '/call%2F1' : '?page=2&per_page=10'), $transport->requests[1]['uri']); + foreach ($transport->requests as $request) { + self::assertSame('GET', $request['method']); + self::assertNull($request['body']); + self::assertSame('tenant-a', $request['headers']['X-Namespace']); + self::assertSame('2', $request['headers']['X-Durable-Workflow-Control-Plane-Version']); + self::assertSame('Bearer operator-token', $request['headers']['Authorization']); + } + } + + public static function readMethods(): array + { + return [ + ['listServiceCatalogEndpoints', 'endpoints', false], ['describeServiceCatalogEndpoint', 'endpoints', true], + ['listServiceCatalogServices', 'services', false], ['describeServiceCatalogService', 'services', true], + ['listServiceCatalogOperations', 'operations', false], ['describeServiceCatalogOperation', 'operations', true], + ['listServiceCatalogCalls', 'calls', false], ['describeServiceCatalogCall', 'calls', true], + ]; + } + + public function testDescribeRejectsBlankIdentitiesBeforeDiscovery(): void + { + $transport = new FakeTransport(); + $client = new Client('https://server.example', transport: $transport); + foreach (self::readMethods() as [$method, , $detail]) { + if (!$detail) { + continue; + } + foreach (['', ' '] as $id) { + try { + $client->{$method}($id); + self::fail('Blank identity must not turn a detail lookup into a collection read.'); + } catch (\InvalidArgumentException $exception) { + self::assertStringContainsString('non-empty ID', $exception->getMessage()); + self::assertCount(0, $transport->requests); + } + } + } + } + + #[DataProvider('unsupportedContracts')] + public function testUnsupportedBackendIsExplainedBeforeAttemptingARead(mixed $contract): void + { + $transport = new FakeTransport([['service_catalog_read_contract' => $contract]]); + $client = new Client('https://server.example', transport: $transport); + try { + $client->listServiceCatalogCalls(); + self::fail('Missing or unsupported read capability must be diagnosed.'); + } catch (ServerException $exception) { + self::assertSame(501, $exception->status); + self::assertSame('backend_capability_unavailable', $exception->reason); + self::assertSame('service_catalog_reads', $exception->details['capability']); + self::assertSame(1, $exception->details['required_contract_version']); + self::assertSame($contract, $exception->details['advertised_contract']); + self::assertCount(1, $transport->requests); + } + } + + public static function unsupportedContracts(): array + { + return [[null], ['legacy'], [[]], [['schema' => 'other', 'version' => 1]], + [['schema' => 'durable-workflow.v2.service-catalog-read.contract', 'version' => 2]], + [['schema' => 'durable-workflow.v2.service-catalog-read.contract', 'version' => '1']]]; + } + + public function testActualReadRefusalsRetainTheServerReasonAndDiscoveryFailuresAreNotUnsupported(): void + { + $transport = new FakeTransport([$this->discovery(), new TransportException('Forbidden', 403, ['reason' => 'forbidden'])]); + $client = new Client('https://server.example', transport: $transport); + try { + $client->describeServiceCatalogCall('call-1'); + self::fail('Worker role must remain refused by the backend.'); + } catch (ServerException $exception) { + self::assertSame(403, $exception->status); + self::assertSame('forbidden', $exception->reason); + } + + $transport = new FakeTransport([new TransportException('Backend unavailable', 503, ['reason' => 'backend_unavailable'])]); + $client = new Client('https://server.example', transport: $transport); + try { + $client->listServiceCatalogCalls(); + self::fail('Discovery failure must retain the backend failure.'); + } catch (ServerException $exception) { + self::assertSame(503, $exception->status); + self::assertSame('backend_unavailable', $exception->reason); + self::assertCount(1, $transport->requests); + } + } + + private function discovery(): array + { + return ['service_catalog_read_contract' => ['schema' => 'durable-workflow.v2.service-catalog-read.contract', 'version' => 1]]; + } +} From f709f682c42f696d84c83937961d065fd47c3d75 Mon Sep 17 00:00:00 2001 From: Durable Workflow Date: Sun, 11 Oct 2026 20:10:39 +0000 Subject: [PATCH 2/6] Decode authorized catalog terminal output through bounded runtime transport --- src/Client.php | 10 ++- src/Transport/RuntimePayloads.php | 7 ++ tests/ServiceCatalogReadClientTest.php | 89 ++++++++++++++++++++++++++ 3 files changed, 105 insertions(+), 1 deletion(-) diff --git a/src/Client.php b/src/Client.php index 1b2ef0ad..27f55b0e 100644 --- a/src/Client.php +++ b/src/Client.php @@ -230,7 +230,15 @@ public function listServiceCatalogCalls(array $filters = []): array /** @return array */ public function describeServiceCatalogCall(string $callId): array { - return $this->serviceCatalogRead('/service-catalog/calls', id: $callId); + $response = $this->serviceCatalogRead('/service-catalog/calls', id: $callId); + if (($response['payloads_in_observer_namespace'] ?? null) === true) { + $response['output_available'] = is_array($response['output_envelope'] ?? null); + $response['output'] = $response['output_available'] + ? $this->decodedResponsePayload($response, 'output') + : null; + } + + return $response; } /** diff --git a/src/Transport/RuntimePayloads.php b/src/Transport/RuntimePayloads.php index 3e906262..11670b5a 100644 --- a/src/Transport/RuntimePayloads.php +++ b/src/Transport/RuntimePayloads.php @@ -40,6 +40,13 @@ public function response(array $response, string $requestPath, bool $worker): ar $paths = [...$paths, ...$this->historyPaths(['task', 'history_events']), ...$this->historyPaths(['history_events']), ...$this->exportPaths(['task', 'history_export'])]; } else { + if (preg_match('~\A/service-catalog/calls/[^/]+\z~', $path) + && ($response['payloads_in_observer_namespace'] ?? null) === true + && is_array($response['output_payload_reference'] ?? null)) { + // Keep the opaque reference while hydrating only the authorized + // terminal output of this exact call, never arbitrary metadata. + $response['output_envelope'] = $response['output_payload_reference']; + } foreach (['input_envelope', 'output_envelope', 'result_envelope'] as $field) { $paths[] = [$field]; } diff --git a/tests/ServiceCatalogReadClientTest.php b/tests/ServiceCatalogReadClientTest.php index 0ccf6f9c..d512680a 100644 --- a/tests/ServiceCatalogReadClientTest.php +++ b/tests/ServiceCatalogReadClientTest.php @@ -5,11 +5,19 @@ namespace DurableWorkflow\Tests; use DurableWorkflow\Client; +use DurableWorkflow\Codec\AvroPayloadCodec; +use DurableWorkflow\Exception\ExternalPayloadException; use DurableWorkflow\Exception\ServerException; use DurableWorkflow\Exception\TransportException; use DurableWorkflow\Tests\Support\FakeTransport; +use DurableWorkflow\Transport\Psr18Transport; +use DurableWorkflow\Transport\RuntimePayloads; +use GuzzleHttp\Client as GuzzleClient; +use GuzzleHttp\Promise\Create; +use GuzzleHttp\Psr7\Response; use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; +use Psr\Http\Message\RequestInterface; final class ServiceCatalogReadClientTest extends TestCase { @@ -118,4 +126,85 @@ private function discovery(): array { return ['service_catalog_read_contract' => ['schema' => 'durable-workflow.v2.service-catalog-read.contract', 'version' => 1]]; } + + #[DataProvider('outputs')] + public function testOwnedTerminalOutputIsDecodedWithoutReplacingTheOpaqueReference(mixed $value): void + { + $codec = new AvroPayloadCodec(); + $envelope = $codec->envelope($value); + $transport = new FakeTransport([$this->discovery(), [ + 'id' => 'call-1', 'payloads_in_observer_namespace' => true, + 'output_payload_reference' => $envelope, + ]]); + $result = (new Client('https://runtime.test', transport: $transport))->describeServiceCatalogCall('call-1'); + self::assertTrue($result['output_available']); + self::assertSame($envelope, $result['output_payload_reference']); + self::assertSame($codec->encode($value), $codec->encode($result['output'])); + } + + public static function outputs(): array + { + return [[null], [false], [0], [''], [['result', ['nested' => 'value']]]]; + } + + public function testExternalOutputUsesOnlyTheConfiguredRuntimeNamespaceAndOperatorCredential(): void + { + $codec = new AvroPayloadCodec(); + $value = ['result', str_repeat('x', 10000)]; + $blob = $codec->envelope($value)['blob']; + $reference = ['schema' => RuntimePayloads::SCHEMA, 'reference_id' => 'ep_01ARZ3NDEKTSV4RRFFQ69G5FAV', + 'codec' => 'avro', 'size_bytes' => strlen($blob), 'sha256' => hash('sha256', $blob)]; + $envelope = ['codec' => 'avro', 'external_payload' => $reference]; + $requests = []; + $http = new GuzzleClient(['handler' => function (RequestInterface $request, array $options) use (&$requests, $blob, $envelope) { + $requests[] = $request; + self::assertFalse($options['allow_redirects']); + if (count($requests) === 1) { + return Create::promiseFor(new Response(200, [], json_encode($this->discovery(), JSON_THROW_ON_ERROR))); + } + if (count($requests) === 2) { + return Create::promiseFor(new Response(200, [], json_encode([ + 'id' => 'call-1', 'payloads_in_observer_namespace' => true, 'output_payload_reference' => $envelope, + ], JSON_THROW_ON_ERROR))); + } + + return Create::promiseFor(new Response(200, [ + 'Content-Type' => 'application/octet-stream', 'X-Durable-Workflow-Payload-Codec' => 'avro', + 'X-Durable-Workflow-Payload-Size' => (string) strlen($blob), + 'X-Durable-Workflow-Payload-SHA256' => hash('sha256', $blob), + ], $blob)); + }]); + $client = new Client('https://runtime.test/api/runtime/v1/namespaces/owner-id', namespace: 'owner', + transport: new Psr18Transport($http), controlToken: 'operator', workerToken: 'worker'); + $result = $client->describeServiceCatalogCall('call-1'); + self::assertSame($codec->encode($value), $codec->encode($result['output'])); + self::assertSame($envelope, $result['output_payload_reference']); + self::assertCount(3, $requests); + self::assertSame('https://runtime.test/api/runtime/v1/namespaces/owner-id/api/external-payloads/v1/'.$reference['reference_id'], (string) $requests[2]->getUri()); + self::assertSame('owner', $requests[2]->getHeaderLine('X-Namespace')); + self::assertSame('Bearer operator', $requests[2]->getHeaderLine('Authorization')); + } + + public function testForeignOrUnverifiedOutputsAreNotFetchedAndOwnedDownloadsHonorTheByteLimit(): void + { + $blob = (new AvroPayloadCodec())->envelope(['private'])['blob']; + $reference = ['schema' => RuntimePayloads::SCHEMA, 'reference_id' => 'ep_01ARZ3NDEKTSV4RRFFQ69G5FAV', + 'codec' => 'avro', 'size_bytes' => strlen($blob), 'sha256' => hash('sha256', $blob)]; + foreach ([false, null, true] as $authorized) { + $transport = new FakeTransport([$this->discovery(), [ + 'payloads_in_observer_namespace' => $authorized, + 'output_payload_reference' => ['codec' => 'avro', 'external_payload' => $reference], + ]]); + $client = new Client('https://runtime.test', transport: $transport, maxExternalPayloadBytes: 1); + try { + $result = $client->describeServiceCatalogCall('call-1'); + self::assertNotTrue($authorized); + self::assertArrayNotHasKey('output', $result); + } catch (ExternalPayloadException $exception) { + self::assertTrue($authorized); + self::assertSame('external_payload_oversized', $exception->reason); + } + self::assertCount(2, $transport->requests); + } + } } From 6d7f132c09204499879765dcda8fa0a9d9382709 Mon Sep 17 00:00:00 2001 From: Durable Workflow Date: Sun, 11 Oct 2026 20:10:39 +0000 Subject: [PATCH 3/6] Prepare stable PHP SDK 2.3.0 operator read release --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index fed39923..75c602de 100644 --- a/composer.json +++ b/composer.json @@ -82,7 +82,7 @@ } }, "durable-workflow": { - "product-train": "2.2.8", + "product-train": "2.3.0", "supported-server-versions": "2.5.0", "worker-protocol-version": "1.19", "control-plane-version": "2", From e5130cd935e3bc28711cf1e8b68f0c150d7fe722 Mon Sep 17 00:00:00 2001 From: Durable Workflow Date: Sun, 11 Oct 2026 20:14:20 +0000 Subject: [PATCH 4/6] Hydrate the declared opaque catalog reference shape --- src/Transport/RuntimePayloads.php | 2 +- tests/ServiceCatalogReadClientTest.php | 28 ++++++++++++++++++-------- 2 files changed, 21 insertions(+), 9 deletions(-) diff --git a/src/Transport/RuntimePayloads.php b/src/Transport/RuntimePayloads.php index 11670b5a..249e6b31 100644 --- a/src/Transport/RuntimePayloads.php +++ b/src/Transport/RuntimePayloads.php @@ -45,7 +45,7 @@ public function response(array $response, string $requestPath, bool $worker): ar && is_array($response['output_payload_reference'] ?? null)) { // Keep the opaque reference while hydrating only the authorized // terminal output of this exact call, never arbitrary metadata. - $response['output_envelope'] = $response['output_payload_reference']; + $response['output_envelope'] = ['codec' => 'avro', 'external_payload' => $response['output_payload_reference']]; } foreach (['input_envelope', 'output_envelope', 'result_envelope'] as $field) { $paths[] = [$field]; diff --git a/tests/ServiceCatalogReadClientTest.php b/tests/ServiceCatalogReadClientTest.php index d512680a..f2242e6c 100644 --- a/tests/ServiceCatalogReadClientTest.php +++ b/tests/ServiceCatalogReadClientTest.php @@ -13,6 +13,8 @@ use DurableWorkflow\Transport\Psr18Transport; use DurableWorkflow\Transport\RuntimePayloads; use GuzzleHttp\Client as GuzzleClient; +use GuzzleHttp\Handler\MockHandler; +use GuzzleHttp\HandlerStack; use GuzzleHttp\Promise\Create; use GuzzleHttp\Psr7\Response; use PHPUnit\Framework\Attributes\DataProvider; @@ -131,14 +133,24 @@ private function discovery(): array public function testOwnedTerminalOutputIsDecodedWithoutReplacingTheOpaqueReference(mixed $value): void { $codec = new AvroPayloadCodec(); - $envelope = $codec->envelope($value); - $transport = new FakeTransport([$this->discovery(), [ - 'id' => 'call-1', 'payloads_in_observer_namespace' => true, - 'output_payload_reference' => $envelope, - ]]); + $blob = $codec->envelope($value)['blob']; + $reference = ['schema' => RuntimePayloads::SCHEMA, 'reference_id' => 'ep_01ARZ3NDEKTSV4RRFFQ69G5FAV', + 'codec' => 'avro', 'size_bytes' => strlen($blob), 'sha256' => hash('sha256', $blob)]; + $handler = new MockHandler([ + new Response(200, [], json_encode($this->discovery(), JSON_THROW_ON_ERROR)), + new Response(200, [], json_encode([ + 'id' => 'call-1', 'payloads_in_observer_namespace' => true, 'output_payload_reference' => $reference, + ], JSON_THROW_ON_ERROR)), + new Response(200, [ + 'Content-Type' => 'application/octet-stream', 'X-Durable-Workflow-Payload-Codec' => 'avro', + 'X-Durable-Workflow-Payload-Size' => (string) strlen($blob), + 'X-Durable-Workflow-Payload-SHA256' => hash('sha256', $blob), + ], $blob), + ]); + $transport = new Psr18Transport(new GuzzleClient(['handler' => HandlerStack::create($handler)])); $result = (new Client('https://runtime.test', transport: $transport))->describeServiceCatalogCall('call-1'); self::assertTrue($result['output_available']); - self::assertSame($envelope, $result['output_payload_reference']); + self::assertSame($reference, $result['output_payload_reference']); self::assertSame($codec->encode($value), $codec->encode($result['output'])); } @@ -154,7 +166,7 @@ public function testExternalOutputUsesOnlyTheConfiguredRuntimeNamespaceAndOperat $blob = $codec->envelope($value)['blob']; $reference = ['schema' => RuntimePayloads::SCHEMA, 'reference_id' => 'ep_01ARZ3NDEKTSV4RRFFQ69G5FAV', 'codec' => 'avro', 'size_bytes' => strlen($blob), 'sha256' => hash('sha256', $blob)]; - $envelope = ['codec' => 'avro', 'external_payload' => $reference]; + $envelope = $reference; $requests = []; $http = new GuzzleClient(['handler' => function (RequestInterface $request, array $options) use (&$requests, $blob, $envelope) { $requests[] = $request; @@ -193,7 +205,7 @@ public function testForeignOrUnverifiedOutputsAreNotFetchedAndOwnedDownloadsHono foreach ([false, null, true] as $authorized) { $transport = new FakeTransport([$this->discovery(), [ 'payloads_in_observer_namespace' => $authorized, - 'output_payload_reference' => ['codec' => 'avro', 'external_payload' => $reference], + 'output_payload_reference' => $reference, ]]); $client = new Client('https://runtime.test', transport: $transport, maxExternalPayloadBytes: 1); try { From dbdacc87918982460ef7c66e53d00f0018cd0033 Mon Sep 17 00:00:00 2001 From: Durable Workflow Date: Sun, 11 Oct 2026 20:14:21 +0000 Subject: [PATCH 5/6] Document authorized catalog result inspection --- docs/portal/operate/troubleshooting.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/portal/operate/troubleshooting.md b/docs/portal/operate/troubleshooting.md index f8dae70e..31344a71 100644 --- a/docs/portal/operate/troubleshooting.md +++ b/docs/portal/operate/troubleshooting.md @@ -79,6 +79,14 @@ does not authorize browsing another namespace. See the [Server read contract](https://github.com/durable-workflow/server/blob/main/docs/contracts/service-catalog-reads.md) for scopes, filters, pagination and detail bounds. +For an authorized owner, call detail also includes `output_available` and the +decoded `output`. This keeps `false`, `0`, an empty string and `null` distinct +from a missing result. The original opaque reference remains available. +Downloads use the configured runtime and operator credential, verify size and +digest, and honor the client's `maxExternalPayloadBytes` limit. Foreign or +unverified output references are not fetched. Decoded values retain the SDK's +typed Avro binary and map adapters. + ## A result wait timed out `WorkflowHandle::result()` polls for a bounded caller duration. When it times out, the durable execution may still be running. Call `describe()` and inspect its status before starting anything again. Reuse the original workflow ID or an application idempotency key; do not create duplicates just because the client lost patience. From 7724638bfbf7169d967a686bcfa04b5826326522 Mon Sep 17 00:00:00 2001 From: Durable Workflow Date: Sun, 11 Oct 2026 20:16:16 +0000 Subject: [PATCH 6/6] Align the published quickstart contract with the stable minor --- docs/quickstart-contract.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/quickstart-contract.json b/docs/quickstart-contract.json index 3037d763..7b6e3277 100644 --- a/docs/quickstart-contract.json +++ b/docs/quickstart-contract.json @@ -3,9 +3,9 @@ "schema_version": 2, "package": { "name": "durable-workflow/sdk", - "published_version": "2.2.8", - "composer_requirement": "2.2.8", - "onboarding_requirement": "^2.2" + "published_version": "2.3.0", + "composer_requirement": "2.3.0", + "onboarding_requirement": "^2.3" }, "runtime_targets": { "server": {