| … | … | @@ -107,6 +116,37 @@ export const executorLayer: Layer.Layer< | |
| 132 | + | effectId: effect.id, | |
| 133 | + | effectType: effect.request.type, | |
| 134 | + | runId, | |
| 135 | + | cause: Cause.pretty(cause), | |
orchestration-v2/EffectWorker.ts:135
Cause.pretty(cause) puts arbitrary underlying error text into structured log annotations, potentially exposing payloads or credentials; the same applies to failRunCause below. Could you log a bounded category here and retain the original failure only as the error cause?
No longer relevant as of 254e06214a786f8b60afccde5affb896e8804cf7
Fixed in 254e062: both warnings now annotate identifiers only (effectId, effectType, runId) and pass the failure as the log cause instead of Cause.pretty text.
Sorry, I'm unable to act on this request because you do not have permissions within this repository.
| … | … | @@ -267,18 +286,13 @@ export const layer: Layer.Layer< | |
| 276 | - | checkpointScope === undefined | |
| 277 | - | ) { | |
| 278 | - | return yield* new ProviderTurnStartError({ | |
| 289 | + | const missingExecutionState = () => | |
orchestration-v2/ProviderTurnStartService.ts:289
missingExecutionState only forwards its argument into a new error, which the error convention disallows. Could you construct ProviderTurnStartError directly at the failure boundary instead? This needs changes at both call sites, so no single-hunk suggestion applies.
No longer relevant as of 254e06214a786f8b60afccde5affb896e8804cf7
Fixed in 254e062: the helper is gone and ProviderTurnStartError is constructed at both failure sites. (It took no argument, but it was still a constructor-only helper.)