From e45fee9bc9c2cb0318ef770dc5f5b69ff082ac49 Mon Sep 17 00:00:00 2001 From: Sam Catlow Date: Mon, 16 Nov 2026 11:48:05 +1100 Subject: [PATCH] fix(runs): a held action is described to the agent as waiting for approval, not a person's --- modules/runs/dry.go | 2 +- modules/runs/interpreter.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/runs/dry.go b/modules/runs/dry.go index afbf9e9f7..744122249 100644 --- a/modules/runs/dry.go +++ b/modules/runs/dry.go @@ -99,7 +99,7 @@ const ( // DryWouldRun is an action that changes something and judgement lets run // unattended. It was not executed. DryWouldRun = "would_run" - // DryWouldAsk is an action judgement holds for a person. + // DryWouldAsk is an action judgement holds for approval. DryWouldAsk = "would_ask" // DryRefused is an action judgement or a hard rule refuses. DryRefused = "refused" diff --git a/modules/runs/interpreter.go b/modules/runs/interpreter.go index e555e2698..355dd5299 100644 --- a/modules/runs/interpreter.go +++ b/modules/runs/interpreter.go @@ -871,7 +871,7 @@ func call(ctx context.Context, box Toolbox, judge Judge, rc *Context, d connecto } out, err := judge.Execute(ctx, decision, input, key) if errors.Is(err, judgement.ErrHeld) { - return fmt.Sprintf("held at %s for a person's approval: %s. It is asked when your investigation ends, so don't propose it again.", decision.Level, findingsOf(decision)), nil + return fmt.Sprintf("held at %s for approval: %s. It is asked when your investigation ends, so don't propose it again.", decision.Level, findingsOf(decision)), nil } if errors.Is(err, connectors.ErrOutcomeUnknown) { return "", fmt.Errorf("%w: %w", core.ErrOutcomeUnknown, err)