fix(runs): a held action is described to the agent as waiting for approval, not a person's

This commit is contained in:
sam committed 2026-11-16 11:48:05 +11:00
1 parent 4cdb5996c5
commit e45fee9bc9
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -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"
+1 -1
View File
@@ -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)