From ed3ea0b9394b1972c046945b8b5cf2baa8838e00 Mon Sep 17 00:00:00 2001 From: Dylan Tinianov Date: Tue, 29 Sep 2026 13:35:22 -0400 Subject: [PATCH 1/2] confidentialworkflow: add execution_duration_ms to ConfidentialWorkflowResponse Enclave-measured wall-clock duration of the WASM execution in milliseconds, so the workflow node can emit a cre:workflow:compute usage MeterRecord for confidential executions (CRE-6780). Optional: presence distinguishes an unavailable measurement from a measured zero, and older enclaves leave it unset. Co-Authored-By: Claude Fable 5.1 --- .../compute/confidentialworkflow/v1alpha/client.proto | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cre/capabilities/compute/confidentialworkflow/v1alpha/client.proto b/cre/capabilities/compute/confidentialworkflow/v1alpha/client.proto index c73c39e8..c68540a7 100644 --- a/cre/capabilities/compute/confidentialworkflow/v1alpha/client.proto +++ b/cre/capabilities/compute/confidentialworkflow/v1alpha/client.proto @@ -74,6 +74,11 @@ message ConfidentialWorkflowResponse { // the same sdk.v1alpha.ExecutionResult as the serialized execution_result // bytes field; the two are independent on the wire. sdk.v1alpha.ExecutionResult sdk_execution_result = 2; + // execution_duration_ms is the enclave-measured wall-clock duration of the + // WASM execution in milliseconds, used to meter confidential compute + // (cre:workflow:compute). Presence distinguishes an unavailable measurement + // from a measured zero; older enclaves leave it unset. + optional int64 execution_duration_ms = 3; } message ProvidedTeesResponse { From 9a61d619275abd096ac5189394b2b7683b1df24a Mon Sep 17 00:00:00 2001 From: "app-token-issuer-engops[bot]" <144731339+app-token-issuer-engops[bot]@users.noreply.github.com> Date: Tue, 29 Sep 2026 17:37:30 +0000 Subject: [PATCH 2/2] Auto-fix: buf format, gofmt, go generate, go mod tidy --- cre/go/installer/pkg/embedded_gen.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cre/go/installer/pkg/embedded_gen.go b/cre/go/installer/pkg/embedded_gen.go index 8e55e778..f4ddff00 100755 --- a/cre/go/installer/pkg/embedded_gen.go +++ b/cre/go/installer/pkg/embedded_gen.go @@ -1017,6 +1017,11 @@ message ConfidentialWorkflowResponse { // the same sdk.v1alpha.ExecutionResult as the serialized execution_result // bytes field; the two are independent on the wire. sdk.v1alpha.ExecutionResult sdk_execution_result = 2; + // execution_duration_ms is the enclave-measured wall-clock duration of the + // WASM execution in milliseconds, used to meter confidential compute + // (cre:workflow:compute). Presence distinguishes an unavailable measurement + // from a measured zero; older enclaves leave it unset. + optional int64 execution_duration_ms = 3; } message ProvidedTeesResponse {